|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.content.virtual.lifecycle.LifeCycle
Represents the Life Cycle for a Node and defines the valid status transitions.
Below are valid transitions available with the current status:
From New (no status yet) to DRAFT
to READY
to PUBLISHED if user is in a publisher role
to RETIRED if user is in a publisher role
From DRAFT to READY
to PUBLISHED if user is in a publisher role
to RETIRED if user is in a publisher role
From READY to REJECTED if user is in a publisher role
to PUBLISHED if user is in a publisher role
to RETIRED if user is in a publisher role
From REJECTED to DRAFT
to READY
From PUBLISHED - there are no valid transitions from PUBLISHED. When a PUBLISHED Node is checked out it
automatically goes to DRAFT so it can never transition from a PUBLISHED status.
From RETIRED to DRAFT
to READY
to PUBLISHED if user is in a publisher role
Upon status transition the following occurs:
--> Status transition to READY : Assigned to user will be null. Assigned To Roles will be
set to the roles that can publish this node
--> Status transition to PUBLISHED : Assigned to user will be null. Assigned To Roles will be null
--> Status transition to REJECTED : Assigned to roles will be null. Assigned to user will be the last
user (who is not in the publishers role for that node) that was editing the node. This is an
invalid status for a new content item/node.
--> Status transition to RETIRED : Assigned to user will be set to null.
--> Status transition to DRAFT : Assigned to user will remain as it is.
Field Summary | |
static int |
DRAFT
|
static String |
LIFECYCLE_STATUS_FIELD
|
static int |
PUBLISHED
|
static int |
READY
|
static int |
REJECTED
|
protected RepositoryManager |
repositoryManager
|
static int |
RETIRED
|
Constructor Summary | |
LifeCycle(RepositoryManager repositoryManager)
|
Method Summary | |
String |
buildTaxonomy(ID nodeId)
Build a taxonomy for the node id |
String |
debugGetStatusText(int status)
Debug method to return a string equivalent of the status |
String |
getId(ID id)
|
Set |
getPublishRolesForNode(ID nodeId)
Return all the published roles for the node represented by the node id. |
List |
getStatusTransitions(ContentContext context,
ID nodeId,
int currentStatus)
Returns a list of valid status transitions for the user. |
boolean |
isUserInRole(ContentContext context,
Set set)
Checks to see if the current user is in any one of the passed in roles for that particular node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DRAFT
public static final String LIFECYCLE_STATUS_FIELD
public static final int PUBLISHED
public static final int READY
public static final int REJECTED
protected RepositoryManager repositoryManager
public static final int RETIRED
Constructor Detail |
public LifeCycle(RepositoryManager repositoryManager)
Method Detail |
public String buildTaxonomy(ID nodeId) throws AuthenticationException, AuthorizationException, NoSuchNodeException, RepositoryException
nodeId
-
AuthenticationException
AuthorizationException
NoSuchNodeException
RepositoryException
public String debugGetStatusText(int status)
status
- The status integer
public String getId(ID id)
public Set getPublishRolesForNode(ID nodeId) throws AuthenticationException, AuthorizationException, NoSuchNodeException, RepositoryException
nodeId
-
AuthenticationException
AuthorizationException
NoSuchNodeException
RepositoryException
public List getStatusTransitions(ContentContext context, ID nodeId, int currentStatus)
context
- currentStatus
-
public boolean isUserInRole(ContentContext context, Set set) throws com.bea.p13n.entitlements.common.EntitlementsException
set
- A set of passed in string roles.
com.bea.p13n.entitlements.common.EntitlementsException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |