|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
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
Workflow
object for workflow operations
@Deprecated public class LifeCycle
Represents the Life Cycle for a Node. Please use the com.bea.content.virtual.lifecycle.LifeCycleObject class. This class only uses a specific lifecycle document and does not work with custom lifecycle documents.
Field Summary | |
---|---|
static String |
DEFAULT_LIFECYCLE_LOCATION
Deprecated |
static int |
DRAFT
Deprecated |
static String |
LIFECYCLE_STATUS_FIELD
Deprecated |
static int |
PUBLISHED
Deprecated |
static int |
READY
Deprecated |
static int |
REJECTED
Deprecated |
protected RepositoryManager |
repositoryManager
Deprecated |
static int |
RETIRED
Deprecated |
Constructor Summary | |
---|---|
LifeCycle(RepositoryManager repositoryManager)
Deprecated |
Method Summary | |
---|---|
String |
buildTaxonomy(ID nodeId)
Deprecated Build a taxonomy for the node id |
String |
debugGetStatusText(int status)
Deprecated |
String |
getId(ID id)
Deprecated Convert the id to a string representation. |
Set |
getPublishRolesForNode(ID nodeId)
Deprecated Return all the published roles for the node represented by the node id. |
Set |
getRolesForCapability(ID nodeId,
String capability)
Deprecated For a given nodeId and capability, return all the roles set on the node. |
List |
getStatusTransitions(ContentContext context,
ID nodeId,
int currentStatus)
Deprecated Returns a list of valid status transitions for the user. |
List |
getTransitionActions(ContentContext context,
ID nodeId,
int fromState,
int toState)
Deprecated Return a list of WorkflowAction objects which represent the actions to be executed when making a transition from one state to another. |
boolean |
hasTransitionAccess(ContentContext context,
ID nodeId,
int status)
Deprecated Helper method to indicate whether or not a user has access to a from-status element. |
boolean |
isUserInRole(ContentContext context,
Set set)
Deprecated 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 String DEFAULT_LIFECYCLE_LOCATION
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
-
@Deprecated public String debugGetStatusText(int status)
status
- The status integer
public List getTransitionActions(ContentContext context, ID nodeId, int fromState, int toState) throws IOException, com.bea.xml.XmlException, ClassNotFoundException, InstantiationException, IllegalAccessException, AuthenticationException, AuthorizationException, NoSuchNodeException, com.bea.p13n.entitlements.common.EntitlementsException, RepositoryException
nodeId
- The nodeId on which actions are executed.fromState
- The start point of the transition.toState
- The end point of the transition.
IOException
com.bea.xml.XmlException
ClassNotFoundException
InstantiationException
IllegalAccessException
AuthenticationException
AuthorizationException
NoSuchNodeException
com.bea.p13n.entitlements.common.EntitlementsException
RepositoryException
public boolean hasTransitionAccess(ContentContext context, ID nodeId, int status) throws IOException, com.bea.xml.XmlException, AuthenticationException, AuthorizationException, NoSuchNodeException, com.bea.p13n.entitlements.common.EntitlementsException, RepositoryException
context
- The contentContext objectnodeId
- The nodeIDstatus
- The status to check.
IOException
com.bea.xml.XmlException
AuthenticationException
AuthorizationException
NoSuchNodeException
com.bea.p13n.entitlements.common.EntitlementsException
RepositoryException
public boolean isUserInRole(ContentContext context, Set set) throws com.bea.p13n.entitlements.common.EntitlementsException
context
- The object which represents the user profile.set
- A set of passed in string roles.
com.bea.p13n.entitlements.common.EntitlementsException
public Set getPublishRolesForNode(ID nodeId) throws AuthenticationException, AuthorizationException, NoSuchNodeException, RepositoryException
nodeId
-
AuthenticationException
AuthorizationException
NoSuchNodeException
RepositoryException
public Set getRolesForCapability(ID nodeId, String capability) throws AuthenticationException, AuthorizationException, NoSuchNodeException, RepositoryException
AuthenticationException
AuthorizationException
NoSuchNodeException
RepositoryException
public String buildTaxonomy(ID nodeId) throws AuthenticationException, AuthorizationException, NoSuchNodeException, RepositoryException
nodeId
-
AuthenticationException
AuthorizationException
NoSuchNodeException
RepositoryException
public String getId(ID id)
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |