|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.cms.lifecycle.LifecycleService
This class provides method in associating ACSObject to Lifecycle and methods to access the association.
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
ITEM
|
static String |
ITEM_ID
|
static String |
LIFECYCLE
|
static String |
LIFECYCLE_ID
|
static String |
OBJECT_ID
|
static String |
SERVICE_ID
|
static String |
versionId
|
Constructor Summary | |
protected |
LifecycleService()
|
protected |
LifecycleService(BigDecimal id)
|
protected |
LifecycleService(com.arsdigita.persistence.DataObject obj)
|
protected |
LifecycleService(com.arsdigita.persistence.OID oid)
|
Method Summary | |
protected void |
afterDelete()
Remove the lifecycle if it doesn't have any remaining LifecycleService components |
protected void |
beforeDelete()
|
protected com.arsdigita.kernel.ACSObject |
getACSObject()
Get the ACSObject associated with this LifecycleService. |
protected BigDecimal |
getACSObjectID()
|
protected Lifecycle |
getLifecycle()
|
static Lifecycle |
getLifecycle(com.arsdigita.kernel.ACSObject object)
Get the lifecycle for an ACSObject. |
protected BigDecimal |
getLifecycleID()
|
protected static LifecycleService |
getLifecycleService(com.arsdigita.kernel.ACSObject object)
|
protected void |
initialize()
|
static boolean |
removeLifecycle(com.arsdigita.kernel.ACSObject object)
Remove the lifecycle for an ACSObject. |
protected void |
setACSObject(com.arsdigita.kernel.ACSObject object)
Set the ACSObject associated with this LifecycleService. |
static boolean |
setLifecycle(com.arsdigita.kernel.ACSObject obj,
Lifecycle cycle)
Set the lifecycle for a versioned object. |
protected void |
setLifecycle(Lifecycle lifecycle)
|
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterSave, beforeSave, clear, delete, disconnect, equals, get, getBaseDataObjectType, 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 versionId
public static final String BASE_DATA_OBJECT_TYPE
public static final String SERVICE_ID
public static final String OBJECT_ID
public static final String LIFECYCLE_ID
public static final String LIFECYCLE
public static final String ITEM
public static final String ITEM_ID
Constructor Detail |
protected LifecycleService()
protected LifecycleService(com.arsdigita.persistence.OID oid) throws com.arsdigita.domain.DataObjectNotFoundException
protected LifecycleService(BigDecimal id) throws com.arsdigita.domain.DataObjectNotFoundException
id
- The ID of the ACSObjectprotected LifecycleService(com.arsdigita.persistence.DataObject obj)
Method Detail |
protected void initialize()
protected BigDecimal getACSObjectID()
protected com.arsdigita.kernel.ACSObject getACSObject()
protected void setACSObject(com.arsdigita.kernel.ACSObject object)
protected BigDecimal getLifecycleID()
protected Lifecycle getLifecycle()
protected void setLifecycle(Lifecycle lifecycle)
public static boolean setLifecycle(com.arsdigita.kernel.ACSObject obj, Lifecycle cycle)
cycle
- the lifecycle to be applied
public static Lifecycle getLifecycle(com.arsdigita.kernel.ACSObject object)
protected static LifecycleService getLifecycleService(com.arsdigita.kernel.ACSObject object)
public static boolean removeLifecycle(com.arsdigita.kernel.ACSObject object)
protected void beforeDelete()
protected void afterDelete()
LifecycleService
components
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |