|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.content.virtual.workflow.Workflow
public class Workflow
Represents the Workflow document.
Methods which return an com.bea.content.paging.ISortableFilterablePagedList
from
IWorkflowManager
can sort and filter the responses. For a discussion on paging,
sorting and filtering, see com.bea.content.paging
and ContentListKeys
.
Native sortable properties for the BEA Repository are found via the
ISortablePagedList.getNativeSortableProperties()
method on a paged list of
Node objects.
For Workflows in the BEA Repository, the current list of native sortable and filterable properties is:
Field Summary | |
---|---|
static int |
DRAFT
Predefined Workflow status |
static int |
PUBLISHED
|
static int |
READY
|
static int |
REJECTED
|
static int |
RETIRED
|
static int |
UNDEFINED
Status which determines if the workflow set a object is not defined in it's corresponding workflow document |
static String |
WORKFLOW_STATUS_FIELD
|
Constructor Summary | |
---|---|
Workflow(ID id,
String name,
String comment,
Date createdDate,
Date modifiedDate)
Construct a workflow without setting the spinodeOps or the workflow document. |
|
Workflow(ID id,
String name,
String comment,
com.bea.content.virtual.workflow.schema.WorkflowDocument document,
Date createdDate,
Date modifiedDate)
Construct a Workflow without setting the spinodeOps variable. |
|
Workflow(ID id,
String name,
String comment,
com.bea.content.virtual.workflow.schema.WorkflowDocument document,
WorkflowOps spiWorkflowOps,
boolean isInheritedOnTarget,
Date createdDate,
Date modifiedDate)
Construct a Workflow |
Method Summary | |
---|---|
int |
getBeginStatus()
Return the status that marks the begin point of the workflow |
String |
getComment()
Return the comment associated with the workflow |
Date |
getCreatedDate()
Return the date workflow was created |
ID |
getId()
|
Date |
getModifiedDate()
Return the last modification date of the workflow |
String |
getName()
|
Set<String> |
getRolesForCapability(ContentContext context,
Node node,
String capability)
Return all the published roles for the node represented by the node id. |
Map<Integer,String> |
getStatusText()
Returns a map of status representation of the text. |
List<Integer> |
getStatusTransitions(ContentContext context,
Node node,
int originStatus)
Returns a list of valid status transitions for the user from the given status. |
List<WorkflowAction> |
getTransitionActions(ContentContext context,
Node node,
int fromState,
int toState)
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,
Node node,
int status)
Helper method to indicate whether or not a user has access to a from-status element to perform operations on the object. |
boolean |
isInheritedOnTarget()
Indicates whether or not the given workflow is inherited on the object of the workflow. |
boolean |
isWorkflowDocumentLoaded()
Indicates whether the workflow document has been loaded for this object. |
void |
setComment(String comment)
|
void |
setInheritedOnTarget(boolean isInheritedOnTarget)
Sets the isInheritedOnTarget value. |
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 int UNDEFINED
public static final String WORKFLOW_STATUS_FIELD
Constructor Detail |
---|
public Workflow(ID id, String name, String comment, com.bea.content.virtual.workflow.schema.WorkflowDocument document, WorkflowOps spiWorkflowOps, boolean isInheritedOnTarget, Date createdDate, Date modifiedDate)
id
- The ID of the workflowname
- The name of the workflow - workflow names are unique within a repositorycomment
- An optional comment associated with a workflowdocument
- The actual workflow documentspiWorkflowOps
- The SPI interface for the workflow.isInheritedOnTarget
- Indicates whether the workflow is inherited on target or not.public Workflow(ID id, String name, String comment, com.bea.content.virtual.workflow.schema.WorkflowDocument document, Date createdDate, Date modifiedDate)
id
- name
- comment
- document
- public Workflow(ID id, String name, String comment, Date createdDate, Date modifiedDate)
id
- name
- comment
- Method Detail |
---|
public boolean isWorkflowDocumentLoaded()
public ID getId()
public String getName()
public String getComment()
public void setComment(String comment)
public Date getCreatedDate()
public Date getModifiedDate()
public int getBeginStatus() throws RepositoryException
RepositoryException
public List<Integer> getStatusTransitions(ContentContext context, Node node, int originStatus)
context
- The ContentContext objectoriginStatus
- The origin status for the user.
public List<WorkflowAction> getTransitionActions(ContentContext context, Node node, int fromState, int toState) throws IOException, XmlException, ClassNotFoundException, InstantiationException, IllegalAccessException, com.bea.p13n.entitlements.common.EntitlementsException, RepositoryException
node
- The node on which actions are executed.fromState
- The start point of the transition.toState
- The end point of the transition.
IOException
XmlException
ClassNotFoundException
InstantiationException
IllegalAccessException
com.bea.p13n.entitlements.common.EntitlementsException
RepositoryException
public boolean hasTransitionAccess(ContentContext context, Node node, int status) throws IOException, XmlException, AuthenticationException, AuthorizationException, TransitionNotFoundException, NoSuchNodeException, com.bea.p13n.entitlements.common.EntitlementsException, RepositoryException
context
- The contentContext objectnode
- The node objectstatus
- The status to check.
IOException
XmlException
AuthenticationException
AuthorizationException
NoSuchNodeException
com.bea.p13n.entitlements.common.EntitlementsException
TransitionNotFoundException
- If the transition is not found
RepositoryException
public Set<String> getRolesForCapability(ContentContext context, Node node, String capability) throws AuthenticationException, AuthorizationException, NoSuchNodeException, RepositoryException
context
- The content context objectnode
- The node objectcapability
- The capability to retrieve
AuthenticationException
AuthorizationException
NoSuchNodeException
RepositoryException
public Map<Integer,String> getStatusText() throws RepositoryException
RepositoryException
public boolean isInheritedOnTarget()
public void setInheritedOnTarget(boolean isInheritedOnTarget)
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |