|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.bookmarks.Bookmark
A bookmark.
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
The type of the DataObject
that stands behind this DomainObject . |
Fields inherited from class com.arsdigita.kernel.ACSObject |
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE, versionId |
Constructor Summary | |
Bookmark(com.arsdigita.persistence.DataObject dataObject)
|
|
Bookmark(String name,
String URLstring)
|
|
Bookmark(String name,
String URLstring,
String authorName)
|
Method Summary | |
protected void |
afterSave()
|
String |
getAuthor()
Get the original creator's name for this Bookmark. |
protected String |
getBaseDataObjectType()
|
BookmarkApplication |
getBookmarkApplication()
|
String |
getCreateDate()
Get the Creation Date of this Bookmark. |
String |
getDescription()
Get the Description of this Bookmark. |
String |
getModDate()
Get the last modification date of this Bookmark. |
String |
getName()
Get the title of this Bookmark. |
String |
getNumVisits()
Get the number of times this Bookmark has been visited, and return value as a String. |
int |
getSortKey()
Get the sort key of this Bookmark. |
String |
getURL()
Get the URL of this Bookmark. |
static BookmarkCollection |
retrieveAllBookmarks()
|
static Bookmark |
retrieveBookmark(BigDecimal bmrkID)
Retrieve an existing Bookmark based on an ID. |
static Bookmark |
retrieveBookmark(com.arsdigita.persistence.DataObject dataObject)
Retrieve an existing Bookmark based on a data object. |
static Bookmark |
retrieveBookmark(com.arsdigita.persistence.OID oid)
Retrieve an existing Bookmark based on an OID. |
void |
setAuthor(String sName)
Set the author for this Bookmark |
void |
setBookmarkApplication(BookmarkApplication bmrkapp)
|
void |
setDescription(String desc)
Set the description for this Bookmark. |
void |
setModDate()
Set the mod date for this Bookmark. |
void |
setName(String name)
Set the title of this Bookmark. |
void |
setSortKey(int sortKey)
|
void |
setURL(String url)
Set the URL of this Bookmark. |
void |
visitsPlusPlus()
Increment the counter for number of visits to this Bookmark. |
Methods inherited from class com.arsdigita.kernel.ACSObject |
assertPrivilege, beforeSave, checkPrivilege, doCreateCheck, doWriteCheck, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, initialize, isContainerModified, setID, setID |
Methods inherited from class com.arsdigita.domain.ObservableDomainObject |
addObserver, getObservers |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String BASE_DATA_OBJECT_TYPE
DataObject
that stands behind this DomainObject
.
Constructor Detail |
public Bookmark(com.arsdigita.persistence.DataObject dataObject)
public Bookmark(String name, String URLstring)
public Bookmark(String name, String URLstring, String authorName)
Method Detail |
protected String getBaseDataObjectType()
public static Bookmark retrieveBookmark(BigDecimal bmrkID)
public static Bookmark retrieveBookmark(com.arsdigita.persistence.DataObject dataObject)
dataObject
- the data object of the Bookmark to retrieve.
public static Bookmark retrieveBookmark(com.arsdigita.persistence.OID oid)
oid
- the OID of the Bookmark to retrieve.public BookmarkApplication getBookmarkApplication()
public void setBookmarkApplication(BookmarkApplication bmrkapp)
public static BookmarkCollection retrieveAllBookmarks()
public String getName()
public String getURL()
public String getDescription()
public String getCreateDate()
public String getModDate()
public String getAuthor()
public String getNumVisits()
public void setName(String name)
public void setURL(String url)
public void setDescription(String desc)
public void setModDate()
public void setAuthor(String sName)
sName
- public void visitsPlusPlus()
public int getSortKey()
public void setSortKey(int sortKey)
protected void afterSave()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |