|
© 2004 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.content.virtual.lifecycle.LifeCycle
Represents the Life Cycle for a Node.
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 int READY
public static final int REJECTED
public static final int PUBLISHED
public static final int RETIRED
public static final String LIFECYCLE_STATUS_FIELD
protected RepositoryManager repositoryManager
Constructor Detail |
public LifeCycle(RepositoryManager repositoryManager)
Method Detail |
public List getStatusTransitions(ContentContext context, ID nodeId, int currentStatus)
context
- currentStatus
-
public String debugGetStatusText(int status)
status
- The status integer
public boolean isUserInRole(ContentContext context, Set set) throws EntitlementsException
set
- A set of passed in string roles.
EntitlementsException
public Set getPublishRolesForNode(ID nodeId) throws AuthenticationException, AuthorizationException, NoSuchNodeException, RepositoryException
nodeId
-
AuthenticationException
AuthorizationException
NoSuchNodeException
RepositoryException
public String buildTaxonomy(ID nodeId) throws AuthenticationException, AuthorizationException, NoSuchNodeException, RepositoryException
nodeId
-
AuthenticationException
AuthorizationException
NoSuchNodeException
RepositoryException
public String getId(ID id)
|
© 2004 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |