|
|||||||||||
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.versioning.VersionedACSObject
com.arsdigita.cms.ContentItem
com.arsdigita.cms.contenttypes.ContentGroupAssociation
This is an object that places an object in a group. This has to be an object and not an association with link attribute because of the way that CMS versioning handles associations This class should be removed once versioning and persistence support versioned link attributes (sortKey)
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
CONTENT_GROUP
|
static String |
CONTENT_ITEM
|
static String |
SORT_KEY
|
protected static String |
versionId
|
Fields inherited from class com.arsdigita.cms.ContentItem |
ANCESTORS, AUDITING, CHILDREN, CONTENT_SECTION, CONTENT_TYPE, DRAFT, DRAFT_VERSION, LANGUAGE, LIVE, NAME, PARENT, PENDING, VERSION, VERSIONS |
Fields inherited from class com.arsdigita.versioning.VersionedACSObject |
IS_DELETED, MASTER |
Fields inherited from class com.arsdigita.kernel.ACSObject |
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE |
Constructor Summary | |
ContentGroupAssociation()
|
|
ContentGroupAssociation(ContentItem item,
ContentGroup group)
This creates a new association and sets the item and group to the passed in values. |
|
ContentGroupAssociation(com.arsdigita.persistence.DataObject obj)
|
|
ContentGroupAssociation(com.arsdigita.persistence.OID oid)
Constructor. |
|
ContentGroupAssociation(String type)
|
Method Summary | |
protected void |
beforeSave()
Make sure the item has a sortKey. |
String |
getBaseDataObjectType()
|
protected ContentGroup |
getContentGroup()
This returns the content group for this association |
protected ContentItem |
getContentItem()
This returns the content item for this association |
protected Integer |
getSortKey()
Get the sortKey for this association |
protected void |
setContentGroup(ContentGroup group)
This Sets the ContentGroup for this association. |
void |
setContentItem(ContentItem item)
Sets the content item for this association |
protected void |
setSortKey(Integer key)
Set the sortKey for this association |
protected void |
swapWithNext()
This swaps the sort key with the next item in the list or does nothing if no such item exists. |
protected void |
swapWithPrevious()
This swaps the sort key with the next item in the list or does nothing if no such item exists. |
Methods inherited from class com.arsdigita.versioning.VersionedACSObject |
applyTag, applyUniqueTag, autoPropagateMaster, getMaster, getRolledBackTo, getTransactions, getTransactions, isMaster, isRolledBack, isSubtype, permanentlyDelete, propagateMaster, recordAttributeChange, rollBackTo, rollBackTo, rollForward, save, setMaster, trackChanges |
Methods inherited from class com.arsdigita.kernel.ACSObject |
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getContainer, getDefaultDomainClass, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, 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, clear, delete, disconnect, equals, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final String versionId
public static final String BASE_DATA_OBJECT_TYPE
public static final String CONTENT_ITEM
public static final String CONTENT_GROUP
public static final String SORT_KEY
Constructor Detail |
public ContentGroupAssociation()
public ContentGroupAssociation(String type)
public ContentGroupAssociation(ContentItem item, ContentGroup group)
public ContentGroupAssociation(com.arsdigita.persistence.OID oid) throws com.arsdigita.domain.DataObjectNotFoundException
DataObject
is retrieved
from the persistent storage mechanism with an OID
specified by oid.
oid
- The OID
for the retrieved
DataObject
.public ContentGroupAssociation(com.arsdigita.persistence.DataObject obj)
Method Detail |
public String getBaseDataObjectType()
getBaseDataObjectType
in class ContentItem
public void setContentItem(ContentItem item)
protected void setContentGroup(ContentGroup group)
protected ContentItem getContentItem()
protected ContentGroup getContentGroup()
protected Integer getSortKey()
protected void setSortKey(Integer key)
protected void swapWithNext()
protected void swapWithPrevious()
protected void beforeSave()
beforeSave
in class ContentItem
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |