|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.lifecycle.LifeCycleServiceFwd
LifeCycleService provides client invokable methods to life cycle services.
These methods are executed on the server side.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
LifeCycleServiceFwd()
|
Method Summary | |
State[] |
allStates()
Deprecated. in R4.0. Use the appropriate call on the EnumeratedType object to get these values. |
Phase |
augmentRoles(LifeCycleManaged object)
Given a LifeCycleManaged object, the current State of the Object and the RoleHolder (the phase object), change the role participants to reflect those in the RoleHolder2 Supported API: false |
void |
augmentRoles(Team team)
Given a team, rebuild all the ad hoc acls for objects associated with the team. |
boolean |
canCreateLifeCycleTemplate(WTUser user)
Determines if a given user is entitled to create a Life Cycle Templates. |
boolean |
canCreateLifeCycleTemplate(WTUser user,
WTContainerRef context)
Determines if a given user is entitled to create a Life Cycle Templates in the given container. |
LifeCycleTemplate |
copyTemplate(LifeCycleTemplate lifeCycleTemplate,
String copyName,
String folderLocation)
Produces a copy of the LifeCycleTemplate object and persists it with the name passed as argument. |
LifeCycleTemplate |
copyTemplate(LifeCycleTemplate lifeCycleTemplate,
String copyName,
String folderLocation,
WTContainerRef context)
Produces a copy of the LifeCycleTemplate object and persists it with the name passed as argument. |
void |
createDefaultTransitions(WTCollection lifeCycleTemplates)
Creates all default transitions for all life cycle templates in the specirfied collection, according to the directives specified in the wt.properties system configuration. |
LifeCycleSignature |
createLifeCycleSignature(Persistable object,
WTPrincipal signer,
String comments,
Role role,
boolean vote)
Answer an initialized but unpersisted LifeCycleSignature instance Supported API: false |
LifeCycleManaged |
demote(LifeCycleManaged object,
LifeCycleSignature signature)
Move the object to the previous phase. |
LifeCycleManaged |
deny(LifeCycleManaged object,
LifeCycleSignature signature)
Remove the object from the gate and return the object to the submitter Supported API: false |
LifeCycleManaged |
drop(LifeCycleManaged object,
LifeCycleSignature signature)
Transition the object to an end state Supported API: false |
void |
exportTemplates(Vector lifeCycleVector,
String fileName,
boolean appendFlag)
Populate a file with the xml equivalent of the LifeCycleTemplate objects. |
QueryResult |
findAllTemplateMasters(WTContainerRef context)
Answer a vector of all life cycle template masters for the WTContainerRef passed. |
Vector |
findAllTemplates()
Answer a vector of all life cycle templates. |
Vector |
findAllTemplates(WTContainerRef context)
Answer a vector of all life cycle templates for the WTContainerRef passed. |
Vector |
findAllTemplates(WTContainerRef context,
boolean routingOnly)
Answer a vector of all life cycle templates for the WTContainerRef passed. |
Vector |
findAssociatedProcesses(LifeCycleManaged object,
WfState state)
Given a Life Cycle Managed object, return the Workflow processes associated with the current phase. |
Vector |
findCandidateMasterReferences(Class targetClass)
Answer a vector of life cycle template references valid for the class Supported API: false |
Vector |
findCandidateMasterReferences(Class targetClass,
WTContainerRef context)
Answer a vector of life cycle template references valid for the target class in the container. |
Vector |
findCandidateMasterReferences(LifeCycleManaged object)
Answer a vector of life cycle template references valid for the life cycle managed object Supported API: false |
Vector |
findCandidateTemplates(Class targetClass)
Answer a vector of enabled life cycle template references valid for the class findCandidateMasterReference is the preferable to use instead of this method. |
Vector |
findCandidateTemplates(LifeCycleManaged object)
Answer a vector of enabled life cycle template references valid for the life cycle managed object findCandidateMasterReference is the preferable to use instead of this method. |
Vector |
findExportImportFileNames()
Retrieve a vector of file names from the Import/Export directory Supported API: false |
Enumeration |
findPredecessorStates(LifeCycleManaged object)
Given a particular LifeCycleManged object, answer an enumeration of all the predecessor States Supported API: false |
Vector |
findRoutingTemplates(WTContainerRef context)
Return an Enumeration of all lifecycle templates for the WTContainerRef passed. |
WTKeyedMap |
findSetStateCandidates(WTCollection lcms)
Determines the allowable states the session principal can set the objects in the collection to. |
Vector |
findStates(LifeCycleTemplate aLifeCycleTemplate)
Given a particular LifeCycleTemplate, answer a Vector of all the Life Cycle States used in that LifeCycle Supported API: false |
Enumeration |
findSuccessorStates(LifeCycleManaged object)
Given a particular LifeCycleTemplate, answer an enumeration of all the Successor States Supported API: false |
Set |
findTransitions(WTSet promotables)
For a given Set of promotables return the intersection of thier common Transitions. |
Set |
findTransitions(WTSet promotables,
Transition transition)
For a given Set of Promotables, return the intersection of common Transitions. |
Vector |
getAllReviewerList(LifeCycleManaged object)
Answer a vector of LifeCycleSignatures Supported API: false |
Vector |
getAllSignatures(LifeCycleManaged object)
Answer a vector of signatures for all roles for the object for the current phase and all preceeding phases. |
Vector |
getCriteria(LifeCycleManaged object)
Answer a vector of Criterion objects for the current phase Supported API: false |
ArrayList |
getCriterion(LifeCycleHistory history)
returns an ArrayList of Criterion for a LifeCycleHistory Supported API: false |
Phase |
getCurrentPhase(LifeCycleManaged object)
Deprecated. at R4.0 - This method should not be used outside of the Life Cycle service. This phase object should be considered private to LifeCycle. If you have a need to access information on this object, please send a detailed request via Windchill Technical Marketing. |
ObjectReference |
getCurrentWorkflow(LifeCycleManaged object)
Given a LifeCycleManaged object, return a reference to the current WfProcess. |
QueryResult |
getHistory(LifeCycleManaged object)
Answer an enumeration of LifeCycleHistory objects based on supplied object. |
LifeCycleTemplate |
getLatestIteration(LifeCycleTemplateMaster master)
Given a LifeCycleTemplateMaster, return the latest iteration (LifeCycleTemplate) Supported API: false |
LifeCycleTemplateReference |
getLatestIteration(LifeCycleTemplateMasterReference master)
Given a LifeCycleTemplateMasterReference, return the latest iteration (LifeCycleTemplateReference) Supported API: false |
LifeCycleTemplate |
getLifeCycleTemplate(LifeCycleManaged object)
Deprecated. in R4.0 - Use myObject.getLifeCycleTemplate() instead. |
LifeCycleTemplate |
getLifeCycleTemplate(String aTemplateName)
Given a String representation of the LifeCycleTemplate name, answer the LifeCycleTemplate. |
LifeCycleTemplate |
getLifeCycleTemplate(String aTemplateName,
WTContainerRef context)
Given a String representation of the LifeCycleTemplate name and a WTContainerRef, answer the LifeCycleTemplate. |
LifeCycleTemplateMaster |
getLifeCycleTemplateMaster(String aMasterName)
Given a String representation of the LifeCycleTemplateMaster name, answer the LifeCycleTemplateMasterReference Supported API: false |
LifeCycleTemplateMaster |
getLifeCycleTemplateMaster(String aMasterName,
WTContainerRef context)
Given a String representation of the LifeCycleTemplateMaster name and a WTContainerRef, answer the LifeCycleTemplateMasterReference Supported API: false |
LifeCycleTemplateReference |
getLifeCycleTemplateReference(String aName)
Given a String representation of the LifeCycleTemplater name, find the latest iteration or working copy of the LifeCycleTemplate. |
LifeCycleTemplateReference |
getLifeCycleTemplateReference(String aName,
WTContainerRef context)
Given a String representation of the LifeCycleTemplater name and a WTContainerRef, find the latest iteration or working copy of the LifeCycleTemplate. |
private static Manager |
getManager()
|
Vector |
getPhaseTemplates(LifeCycleTemplate template)
Given a LifeCycleTemplate, return a vector of all the PhaseTemplate objects Supported API: false |
State |
getPredecessorState(LifeCycleManaged lcmObject)
This operation determines the current state of the object and returns the predecessor state for the object. |
Vector |
getReviewerList(LifeCycleManaged object)
Answer a vector of LifeCycleSignatures Supported API: false |
Vector |
getRoles(LifeCycleManaged object)
Answer a vector of strings - role names for the current phase Supported API: false |
WTKeyedMap |
getSeriesSelectors(WTSet lcms)
Given a WTSet of objects, returns a WTKeyedMap whose keys are those elements of the argument set that are LifeCycleManaged and whose values are the keys' corresponding SeriesRangeSelector values for their current states, if applicable. |
ArrayList |
getSignatures(LifeCycleHistory history)
returns an ArrayList of LifeCycleSignatures for a LifeCycleHistory Supported API: false |
Vector |
getSignatures(LifeCycleManaged object)
Answer a vector of signatures for all roles for the object for the current phase. |
Vector |
getSignatures(LifeCycleManaged object,
Role role)
Answer a vector of LifeCycleSignature for the current phase based on object and role. |
Vector |
getSignatures(LifeCycleManaged object,
WTUser user)
Answer a vector of LifeCycleSignatures based on supplied object & user. |
Vector |
getSignatures(LifeCycleManaged object,
WTUser user,
Role role)
Answer a vector of LifeCycleSignature for the current phase based on object, user and role. |
String |
getStateLink(LifeCycleManaged object)
Deprecated. at 5.0 |
State |
getSuccessorState(LifeCycleManaged lcmObject)
This operation determines the current state of the object and returns the successor state for the object. |
boolean |
hasAugmentRoleAccess(Role role,
LifeCycleManaged object)
Given a role and a LifeCycleManaged object, determines whether the current user has the permissions required to update the role participants Supported API: false |
void |
importTemplates(String fileName)
Given a WTContainerRef and a jar or zip file that contains a version of any number of LifeCycleTemplate objects, import these objects. |
void |
importTemplates(String fileName,
WTContainerRef context)
Given a WTContainerRef and a jar or zip file that contains a version of any number of LifeCycleTemplate objects, import these objects. |
boolean |
isA(LifeCycleManaged object,
WTUser user,
Role role)
Deprecated. at 8.0. A user no longer has to belong to a specific role in order to complete a lifecycle task |
boolean |
isInFinalPhase(LifeCycleManaged object)
Answers whether the LifeCycleManaged object is in the Final phase of its LifeCycle Supported API: false |
boolean |
isInInitialPhase(LifeCycleManaged object)
Answer whether the LifeCycleManaged object is in the Initial phase Supported API: false |
boolean |
isState(LifeCycleTemplate aLifeCycleTemplate,
State aState)
Given a particular LifeCycleTemplate and a State, answer whether or not the State is used in the LifeCycle Supported API: false |
Set |
navigate(LifeCycleManaged lcmObject,
Transition name,
boolean successor)
Navigate the transition of the current state of the LifeCycleManagedObject using the passed transition. |
Set |
navigate(LifeCycleTemplateReference lctRef,
State state,
Transition transition,
boolean successor)
Navigate the transition from the passed state using the passed transition. |
Map |
navigate(WTCollection c,
Transition transition,
boolean successor)
Navigate the PhaseSuccessors for the Transition for all objects in the WTCollection. |
Map |
navigate(WTKeyedMap c,
Transition transition,
boolean successor)
Navigates the PhaseTemplate->PhaseSuccession using param transition. |
LifeCycleManaged |
promote(LifeCycleManaged object,
LifeCycleSignature signature)
Move the object to the next phase. |
LifeCycleManaged |
reassign(LifeCycleManaged object,
LifeCycleTemplateReference lctRef)
Reassign a life cycle managed object to a new life cycle. |
LifeCycleManaged |
reassign(LifeCycleManaged object,
LifeCycleTemplateReference lctRef,
WTContainerRef context)
Reassign a life cycle managed object to a new life cycle in a certain WTContainerRef. |
WTList |
reassign(WTList list,
LifeCycleTemplateReference lctRef,
WTContainerRef context,
boolean preserveState)
Reassign all objects in a WTList to a lifecycle. |
WTList |
reassign(WTList list,
LifeCycleTemplateReference lctRef,
WTContainerRef context,
State state)
Reassign the life cycle managed objects in a WTList to a new life cycle in a certain WTContainerRef. |
Vector |
saveCriteria(LifeCycleManaged object,
Vector criteria)
Deprecated. at R5.0 |
TransactionResult |
saveLifeCycleTemplate(TransactionContainer aTran)
Store or update a LifeCycleTemplate. |
TransactionResult |
saveLifeCycleTemplate(TransactionContainer aTran,
WTContainerRef context)
Store or update a LifeCycleTemplate. |
TransactionResult |
saveLifeCycleTemplate(TransactionContainer aTran,
WTContainerRef context,
boolean bypassDefaultTransitions)
Store or update a LifeCycleTemplate. |
State[] |
selectableStates()
Deprecated. in R4.0. Use the appropriate call on the EnumeratedType object to get these values. |
void |
setEnabled(LifeCycleTemplate aTemplate,
boolean enable)
Enable/Disable the Life Cycle Template Master Supported API: false |
void |
setEnabled(LifeCycleTemplateMaster aMaster,
boolean enable)
Enable/Disable the Life Cycle Template Master Supported API: false |
LifeCycleManaged |
setLifeCycleState(LifeCycleManaged object,
State state)
Set the state of the Life Cycle Managed object. |
LifeCycleManaged |
setLifeCycleState(LifeCycleManaged object,
State state,
boolean terminAssocRunningProcesses)
Set the state of the Life Cycle Managed object and provide the option to terminate the associated workflows. |
LifeCycleManaged |
setLifeCycleState(LifeCycleManaged object,
State state,
boolean terminAssocRunningProcesses,
Timestamp timestamp)
Set the state of the Life Cycle Managed object. |
WTList |
setLifeCycleState(WTList list,
Map stateMap,
WTList terminateList)
Set the state of the Life Cycle Managed objects in the WTList list. |
WTList |
setLifeCycleState(WTList list,
State state,
boolean terminAssocRunningProcesses)
Set the state of the Life Cycle Managed objects and provide the option to terminate the associated workflows. |
void |
setRouting(LifeCycleTemplate aTemplate,
boolean routing)
Set/reset the rouing attribute on the Life Cycle Template Master. |
void |
setRouting(LifeCycleTemplateMaster aMaster,
boolean routing)
Set/reset the routing attribute of the Life Cycle Template Master. |
LifeCycleManaged |
submitForApproval(LifeCycleManaged object)
Submit the object for review. |
LifeCycleManaged |
validateSubmitForApproval(LifeCycleManaged object)
Perform pre-submit validations Supported API: false |
LifeCycleSignature |
vote(LifeCycleManaged object,
LifeCycleSignature signature)
Record a signer disposition (Yes/No) and any comments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public LifeCycleServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public LifeCycleManaged submitForApproval(LifeCycleManaged object) throws WTException, LifeCycleException
submitForApproval
in interface LifeCycleService
object
- the LifeCycleManaged object that should be submitted for approval
WTException
LifeCycleException
public LifeCycleSignature vote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
vote
in interface LifeCycleService
object
- the LifeCycleManaged object that should be voted onsignature
- the signature object where the vote results should be recorded
WTException
LifeCycleException
public LifeCycleManaged promote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
The doPromote method is executed
Supported API: false
promote
in interface LifeCycleService
object
- the LifeCycleManaged object that should be promotedsignature
- the Signature object where the results and information about the promote should be recorded
WTException
LifeCycleException
public LifeCycleManaged demote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
The doDemote method is executed
Supported API: false
demote
in interface LifeCycleService
object
- the LifeCycleManaged object that should be demoted.signature
- the Signature object where the results and information about the demote should be recorded
WTException
LifeCycleException
public LifeCycleManaged deny(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
deny
in interface LifeCycleService
object
- the LifeCycleManaged object that should be deniedsignature
- the Signature object that the result and information about the deny is recorded
WTException
LifeCycleException
public LifeCycleManaged drop(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
drop
in interface LifeCycleService
object
- the LifeCycleManaged object that should be moved to a final/dropped statesignature
- the LifeCycleSignature object records information about the drop process
WTException
LifeCycleException
public LifeCycleManaged reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef) throws WTException, LifeCycleException
reassign
in interface LifeCycleService
object
- the LifeCycleManaged object that should be assigned to a new life cyclelctRef
- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned to
WTException
LifeCycleException
public LifeCycleTemplate getLifeCycleTemplate(LifeCycleManaged object) throws WTException, LifeCycleException
getLifeCycleTemplate
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria in the retrieval of the LifeCycleTemplate
WTException
LifeCycleException
public Vector getSignatures(LifeCycleManaged object, WTUser user, Role role) throws WTException, LifeCycleException
getSignatures
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria in the retrieval of signature objectsuser
- the WTUser object used as search criteria in the retrieval of Signature objectsrole
- the Role object used as search criteria in the retrieval of the Signature objects
WTException
LifeCycleException
public Vector getSignatures(LifeCycleManaged object, Role role) throws WTException, LifeCycleException
getSignatures
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria in the retrieval of the Signature objectsrole
- the Role object used as search criteria in the retrieval of Signature objects
WTException
LifeCycleException
public Vector getSignatures(LifeCycleManaged object) throws WTException, LifeCycleException
getSignatures
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria in the retrieval of Signature objects
WTException
LifeCycleException
public Vector getSignatures(LifeCycleManaged object, WTUser user) throws WTException, LifeCycleException
getSignatures
in interface LifeCycleService
object
- The LifeCycleManaged object used as search criteria in the retrieval of Signature objectsuser
- the WTUser object used as search criteria in the retrieval of Signature objects
WTException
LifeCycleException
public Vector getAllSignatures(LifeCycleManaged object) throws WTException, LifeCycleException
getAllSignatures
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria in the retrieval of Signature objects
WTException
LifeCycleException
public LifeCycleSignature createLifeCycleSignature(Persistable object, WTPrincipal signer, String comments, Role role, boolean vote) throws WTException
createLifeCycleSignature
in interface LifeCycleService
object
- the Persistable object that the LifeCycleSignature is associated tosigner
- the WTPrincipal who did the workcomments
- any comments the signer recorded about the work accomplishedrole
- the Role object, used to represent the role the signer was participating asvote
- a boolean signer designation, used to record the disposition
WTException
public Vector getReviewerList(LifeCycleManaged object) throws WTException, LifeCycleException
getReviewerList
in interface LifeCycleService
object
- The LifeCycleManaged object used as search criteria in the retrieval of Signature objects
WTException
LifeCycleException
public Vector getAllReviewerList(LifeCycleManaged object) throws WTException, LifeCycleException
getAllReviewerList
in interface LifeCycleService
object
- The LifeCycleManaged object used as search criteria in the retrieval of Signature objects
WTException
LifeCycleException
public Vector getRoles(LifeCycleManaged object) throws WTException, LifeCycleException
getRoles
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria in the retrieval of Role objects
WTException
LifeCycleException
public Vector getCriteria(LifeCycleManaged object) throws WTException, LifeCycleException
getCriteria
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria in the retrieval of Criterion objects
WTException
LifeCycleException
public TransactionResult saveLifeCycleTemplate(TransactionContainer aTran) throws WTException, LifeCycleException
saveLifeCycleTemplate
in interface LifeCycleService
aTran
- a TransactionContainer that contains a set of LifeCycleTemplate, PhaseTemplate, AdHocAclSpec, Criterion and Transition assertions that need to be applied against one or more LifeCycleTemplate objects
WTException
LifeCycleException
public Vector saveCriteria(LifeCycleManaged object, Vector criteria) throws WTException, LifeCycleException
saveCriteria
in interface LifeCycleService
object
- the LifeCycleManged object that the associated criteria should be applied tocriteria
- a Vector of Criterion objects that should be applied to the LifeCycleManaged object
WTException
LifeCycleException
public State[] allStates() throws WTException
allStates
in interface LifeCycleService
WTException
public State[] selectableStates() throws WTException
selectableStates
in interface LifeCycleService
WTException
public QueryResult getHistory(LifeCycleManaged object) throws WTException, LifeCycleException
Usage:
LifeCycleHistory aHistory = null;
Enumeration e = LifeCycleHelper.service.getHistory(aLifeCycleManaged);
while (e.hasMoreElements()) {
aHistory = (LifeCycleHistory)e.nextElement();
// -- do stuff
}
Supported API: false
getHistory
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria for the retrieval of History information
WTException
LifeCycleException
public Phase getCurrentPhase(LifeCycleManaged object) throws WTException
getCurrentPhase
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria in the retrieval of the current phase object
WTException
public boolean isA(LifeCycleManaged object, WTUser user, Role role) throws WTException, LifeCycleException
isA
in interface LifeCycleService
object
- the LifeCycleManaged objectuser
- the designated userrole
- the designated role
WTException
LifeCycleException
public boolean isInInitialPhase(LifeCycleManaged object) throws WTException
isInInitialPhase
in interface LifeCycleService
object
- The LifeCycleManaged object
WTException
public boolean isInFinalPhase(LifeCycleManaged object) throws WTException
isInFinalPhase
in interface LifeCycleService
object
- The LifeCycleManaged object
WTException
public LifeCycleTemplate getLifeCycleTemplate(String aTemplateName) throws LifeCycleException, WTException
null/code>.
Supported API: false
- Specified by:
getLifeCycleTemplate
in interface LifeCycleService
- Parameters:
aTemplateName
- the name of the LifeCycleTemplate to retrieve
- Returns:
- LifeCycleTemplate
- Throws:
LifeCycleException
WTException
public LifeCycleManaged validateSubmitForApproval(LifeCycleManaged object) throws WTException, LifeCycleException
validateSubmitForApproval
in interface LifeCycleService
object
- the LifeCycleManaged object to be submitted
WTException
LifeCycleException
public boolean hasAugmentRoleAccess(Role role, LifeCycleManaged object) throws WTException, LifeCycleException
hasAugmentRoleAccess
in interface LifeCycleService
role
- The LifeCycleManaged object that the role/participant mapping is being added toobject
- the object whose team is being modified
WTException
LifeCycleException
public Vector findCandidateTemplates(LifeCycleManaged object) throws WTException, LifeCycleException
findCandidateTemplates
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria in the retrieval of canidate LifeCycleTemplates
WTException
LifeCycleException
public Vector findCandidateTemplates(Class targetClass) throws WTException, LifeCycleException
findCandidateTemplates
in interface LifeCycleService
targetClass
- the class used as search criteria in the retrieval of canidate LifeCycleTemplates
WTException
LifeCycleException
public Vector findStates(LifeCycleTemplate aLifeCycleTemplate) throws WTException, LifeCycleException
findStates
in interface LifeCycleService
aLifeCycleTemplate
- the LifeCycleTemplate used to retrieve the appropriate states
WTException
LifeCycleException
public boolean isState(LifeCycleTemplate aLifeCycleTemplate, State aState) throws WTException, LifeCycleException
isState
in interface LifeCycleService
aLifeCycleTemplate
- the LifeCycleTemplate used in the lookupaState
- the State used in the lookup
WTException
LifeCycleException
public Enumeration findPredecessorStates(LifeCycleManaged object) throws WTException, LifeCycleException
findPredecessorStates
in interface LifeCycleService
object
- the LifeCycleManaged object of interest
WTException
LifeCycleException
public Enumeration findSuccessorStates(LifeCycleManaged object) throws WTException, LifeCycleException
findSuccessorStates
in interface LifeCycleService
object
- the LifeCycleManaged object of interest
WTException
LifeCycleException
public void setEnabled(LifeCycleTemplate aTemplate, boolean enable) throws WTException, LifeCycleException
setEnabled
in interface LifeCycleService
aTemplate
- the template to set the enabled flat onenable
- specifies whether or not the template is enabled
WTException
LifeCycleException
public void setEnabled(LifeCycleTemplateMaster aMaster, boolean enable) throws WTException, LifeCycleException
setEnabled
in interface LifeCycleService
aMaster
- the lifecycle template master to set the enabled flag onenable
- sets the value of the enabled flag to true or false
WTException
LifeCycleException
public Vector findCandidateMasterReferences(LifeCycleManaged object) throws WTException, LifeCycleException
findCandidateMasterReferences
in interface LifeCycleService
object
- the LifeCycleManaged object used as search criteria in the retrieval of canidate LifeCycleTemplates
WTException
LifeCycleException
public Vector findCandidateMasterReferences(Class targetClass) throws WTException, LifeCycleException
findCandidateMasterReferences
in interface LifeCycleService
targetClass
- the class used as search criteria in the retrieval of canidate LifeCycleTemplates
WTException
LifeCycleException
public LifeCycleTemplateMaster getLifeCycleTemplateMaster(String aMasterName) throws LifeCycleException, WTException
getLifeCycleTemplateMaster
in interface LifeCycleService
aMasterName
- the name of the LifeCycleTemplate to retrieve
LifeCycleException
WTException
public LifeCycleTemplateReference getLifeCycleTemplateReference(String aName) throws LifeCycleException, WTException
getLifeCycleTemplateReference
in interface LifeCycleService
aName
- the name of the LifeCycleTemplate to retrieve
LifeCycleException
WTException
public LifeCycleManaged setLifeCycleState(LifeCycleManaged object, State state, boolean terminAssocRunningProcesses) throws WTException, LifeCycleException
setLifeCycleState
in interface LifeCycleService
object
- The LifeCycleManaged object whose state should be updatedstate
- The state to set the LifeCycleManaged object to.terminAssocRunningProcesses
- a flag that determines whether or not to terminate the wf processes associated with this phase that are OPEN_RUNNING
WTException
LifeCycleException
public LifeCycleManaged setLifeCycleState(LifeCycleManaged object, State state) throws WTException, LifeCycleException
setLifeCycleState
in interface LifeCycleService
object
- The LifeCycleManaged object whose state should be updatedstate
- The state to set the LifeCycleManaged object to.
WTException
LifeCycleException
public Vector findAssociatedProcesses(LifeCycleManaged object, WfState state) throws WTException, LifeCycleException
findAssociatedProcesses
in interface LifeCycleService
object
- the Life Cycle Managed objectstate
- the Workflow state
WTException
LifeCycleException
public Vector findExportImportFileNames() throws WTException, LifeCycleException
findExportImportFileNames
in interface LifeCycleService
WTException
LifeCycleException
public void exportTemplates(Vector lifeCycleVector, String fileName, boolean appendFlag) throws WTException, LifeCycleException
exportTemplates
in interface LifeCycleService
lifeCycleVector
- an enumeration of LifeCycleTemplate objects that need to be exportedfileName
- the name of the file that the csv version of the templates should be written to (not including the .csv suffix or the directory name)appendFlag
- a flag that determines whether the exported data should overwrite any existing data or append it to the end
WTException
LifeCycleException
public void importTemplates(String fileName) throws WTException, LifeCycleException
importTemplates
in interface LifeCycleService
fileName
- the name of the file that the xml version of the templates should be imported from (not including the .csv extension or the directory name)
WTException
LifeCycleException
public LifeCycleTemplate copyTemplate(LifeCycleTemplate lifeCycleTemplate, String copyName, String folderLocation) throws WTException, LifeCycleException
copyTemplate
in interface LifeCycleService
lifeCycleTemplate
- the LifeCycleTemplate object that should be copiedcopyName
- the name of the new LifeCycleTemplatefolderLocation
- the folder location of the new LifeCycleTemplate
WTException
LifeCycleException
public Vector findAllTemplates() throws WTException, LifeCycleException
findAllTemplates
in interface LifeCycleService
WTException
LifeCycleException
public LifeCycleTemplate getLatestIteration(LifeCycleTemplateMaster master) throws WTException, LifeCycleException
getLatestIteration
in interface LifeCycleService
master
- the lifecycle master of interest
WTException
LifeCycleException
public LifeCycleTemplateReference getLatestIteration(LifeCycleTemplateMasterReference master) throws WTException, LifeCycleException
getLatestIteration
in interface LifeCycleService
master
- the lifecycle template master of interest
WTException
LifeCycleException
public Vector getPhaseTemplates(LifeCycleTemplate template) throws WTException, LifeCycleException
getPhaseTemplates
in interface LifeCycleService
template
- the lifecycle template to retrieve the phase templates for
WTException
LifeCycleException
public ObjectReference getCurrentWorkflow(LifeCycleManaged object) throws WTException, LifeCycleException
getCurrentWorkflow
in interface LifeCycleService
object
- the object whoose current workflow should be returned
WTException
LifeCycleException
public String getStateLink(LifeCycleManaged object) throws WTException, LifeCycleException
getStateLink
in interface LifeCycleService
object
- the object to build the statesLink for.
WTException
LifeCycleException
public Phase augmentRoles(LifeCycleManaged object) throws WTException, LifeCycleException
augmentRoles
in interface LifeCycleService
object
- The LifeCycleManaged object that the role/participant mapping is being added to
WTException
LifeCycleException
public State getSuccessorState(LifeCycleManaged lcmObject) throws WTException, LifeCycleException
getSuccessorState
in interface LifeCycleService
lcmObject
- The Life Cycle Managed object used to get the next state.
WTException
LifeCycleException
public State getPredecessorState(LifeCycleManaged lcmObject) throws WTException, LifeCycleException
getPredecessorState
in interface LifeCycleService
lcmObject
- The Life Cycle Managed object used to get the next state.
WTException
LifeCycleException
public boolean canCreateLifeCycleTemplate(WTUser user) throws WTException
canCreateLifeCycleTemplate
in interface LifeCycleService
user
- the user to test for lifecycle creation validation
WTException
public void augmentRoles(Team team) throws WTException, LifeCycleException
augmentRoles
in interface LifeCycleService
team
- The team being updated.
WTException
LifeCycleException
public LifeCycleTemplate getLifeCycleTemplate(String aTemplateName, WTContainerRef context) throws LifeCycleException, WTException
null/code>.
Supported API: false
- Specified by:
getLifeCycleTemplate
in interface LifeCycleService
- Parameters:
aTemplateName
- the name of the LifeCycleTemplate to retrievecontext
- the container to search for the lifecycle template
- Returns:
- LifeCycleTemplate
- Throws:
LifeCycleException
WTException
public LifeCycleTemplateReference getLifeCycleTemplateReference(String aName, WTContainerRef context) throws LifeCycleException, WTException
getLifeCycleTemplateReference
in interface LifeCycleService
aName
- the name of the LifeCycleTemplate to retrievecontext
- the container to search for the lifecycle template master
LifeCycleException
WTException
public Vector findAllTemplates(WTContainerRef context) throws WTException, LifeCycleException
findAllTemplates
in interface LifeCycleService
context
- the container to search for lifecycle templates
WTException
LifeCycleException
public LifeCycleTemplateMaster getLifeCycleTemplateMaster(String aMasterName, WTContainerRef context) throws LifeCycleException, WTException
getLifeCycleTemplateMaster
in interface LifeCycleService
aMasterName
- the name of the LifeCycleTemplate to retrievecontext
- the container to search for the lifecycle template master
LifeCycleException
WTException
public void importTemplates(String fileName, WTContainerRef context) throws WTException, LifeCycleException
importTemplates
in interface LifeCycleService
fileName
- the name of the jar or zip file that the xml version of the templates should be imported fromcontext
- the container to import the lifecycle template into
WTException
LifeCycleException
public LifeCycleManaged reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef, WTContainerRef context) throws WTException, LifeCycleException
reassign
in interface LifeCycleService
object
- the LifeCycleManaged object that should be assigned to a new life cyclelctRef
- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned tocontext
- the container where the objects associated workflow processes will be created
WTException
LifeCycleException
public TransactionResult saveLifeCycleTemplate(TransactionContainer aTran, WTContainerRef context) throws WTException, LifeCycleException
saveLifeCycleTemplate
in interface LifeCycleService
aTran
- a TransactionContainer that contains a set of LifeCycleTemplate, PhaseTemplate, AdHocAclSpec, Criterion and Transition assertions that need to be applied against one or more LifeCycleTemplate objectscontext
- the container the lifecycle template is being saved in
WTException
LifeCycleException
public Vector findCandidateMasterReferences(Class targetClass, WTContainerRef context) throws WTException, LifeCycleException
findCandidateMasterReferences
in interface LifeCycleService
targetClass
- the class used as search criteria in the retrieval of canidate LifeCycleTemplatescontext
- the container to search for lifecycle template masters
WTException
LifeCycleException
public QueryResult findAllTemplateMasters(WTContainerRef context) throws WTException, LifeCycleException
findAllTemplateMasters
in interface LifeCycleService
context
- the container to search for lifecycle templates
WTException
LifeCycleException
public void setRouting(LifeCycleTemplate aTemplate, boolean routing) throws WTException, LifeCycleException
setRouting
in interface LifeCycleService
aTemplate
- the template to set the routing statis onrouting
- sets the routing flag to true or false
WTException
LifeCycleException
public void setRouting(LifeCycleTemplateMaster aMaster, boolean routing) throws WTException, LifeCycleException
setRouting
in interface LifeCycleService
aMaster
- the lifecycle template master to set the routing status onrouting
- sets the routing flag to true or false
WTException
LifeCycleException
public Vector findRoutingTemplates(WTContainerRef context) throws WTException, LifeCycleException
findRoutingTemplates
in interface LifeCycleService
context
- the container to search for lifecycle templates
WTException
LifeCycleException
public Vector findAllTemplates(WTContainerRef context, boolean routingOnly) throws WTException, LifeCycleException
findAllTemplates
in interface LifeCycleService
context
- the container to search for lifecycle templatesroutingOnly
- specifies whether only the lifecycle templates marked as routing should be returned or it all enabled lifecycle templates should be returned
WTException
LifeCycleException
public boolean canCreateLifeCycleTemplate(WTUser user, WTContainerRef context) throws WTException
canCreateLifeCycleTemplate
in interface LifeCycleService
user
- the user to validate creation privileges againstcontext
- the container to validate access against
WTException
public LifeCycleTemplate copyTemplate(LifeCycleTemplate lifeCycleTemplate, String copyName, String folderLocation, WTContainerRef context) throws WTException, LifeCycleException
copyTemplate
in interface LifeCycleService
lifeCycleTemplate
- the LifeCycleTemplate object that should be copiedcopyName
- the name of the new LifeCycleTemplatefolderLocation
- the folder location of the new LifeCycleTemplatecontext
- the container where the copy should be stored
WTException
LifeCycleException
public Set navigate(LifeCycleManaged lcmObject, Transition name, boolean successor) throws WTException
navigate
in interface LifeCycleService
lcmObject
- LifeCycleManagedObjectname
- Transition to navigatesuccessor
- get Successors
WTException
public WTList reassign(WTList list, LifeCycleTemplateReference lctRef, WTContainerRef context, boolean preserveState) throws WTException, LifeCycleException
reassign
in interface LifeCycleService
list
- the WtList of LifeCycleManaged objects that should be assigned to a new life cyclelctRef
- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned tocontext
- The container the object resides in. This may be null.preserveState
- If this is set to true, the existing state of objects will be preserved if the state is contained in the lifecycle template. Otherwise, the object will be set to the initial state of the lifecycle.
WTException
LifeCycleException
public WTList reassign(WTList list, LifeCycleTemplateReference lctRef, WTContainerRef context, State state) throws WTException, LifeCycleException
reassign
in interface LifeCycleService
list
- the WTList of LifeCycleManaged objects that should be assigned to a new life cyclelctRef
- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned tocontext
- The container which the object resides in.state
- The state the objects in the lifecycle should be assigned when reassigned to the lifecycle.
WTException
LifeCycleException
public WTList setLifeCycleState(WTList list, State state, boolean terminAssocRunningProcesses) throws WTException, LifeCycleException
setLifeCycleState
in interface LifeCycleService
list
- The LifeCycleManaged objects whose state should be updatedstate
- The state to set the LifeCycleManaged object to.terminAssocRunningProcesses
- a flag that determines whether or not to terminate the wf processes associated with this phase that are OPEN_RUNNING
WTException
LifeCycleException
public Set navigate(LifeCycleTemplateReference lctRef, State state, Transition transition, boolean successor) throws WTException
navigate
in interface LifeCycleService
lctRef
- reference to the LifeCycleTemplate.state
- State of the LifeCycleTemplate.transition
- Transtion to navigatesuccessor
- get Successors
WTException
public WTKeyedMap findSetStateCandidates(WTCollection lcms) throws WTException
findSetStateCandidates
in interface LifeCycleService
lcms
- a collection of lifecycle managed objects
WTException
public Map navigate(WTCollection c, Transition transition, boolean successor) throws WTException, LifeCycleException
navigate
in interface LifeCycleService
c
- a collection of lifecycle managed objectstransition
- the transition to navigatesuccessor
- boolean value to indicate if the navigate should be to a successor state
WTException
LifeCycleException
public ArrayList getSignatures(LifeCycleHistory history) throws WTException
getSignatures
in interface LifeCycleService
history
- the LifeCycleHistory of interest
WTException
public ArrayList getCriterion(LifeCycleHistory history) throws WTException
getCriterion
in interface LifeCycleService
history
- the LifeCycleHistory of interest
WTException
public LifeCycleManaged setLifeCycleState(LifeCycleManaged object, State state, boolean terminAssocRunningProcesses, Timestamp timestamp) throws WTException, LifeCycleException
setLifeCycleState
in interface LifeCycleService
object
- The LifeCycleManaged object whose state should be updatedstate
- The state to set the LifeCycleManaged object to.terminAssocRunningProcesses
- a flag that determines whether or not to terminate the wf processes associated with this phase that are OPEN_RUNNINGtimestamp
- An optional parameter that allows specification of the created and modified timestamps for the history objects.
WTException
LifeCycleException
public Map navigate(WTKeyedMap c, Transition transition, boolean successor) throws WTException, LifeCycleException
Usage:
WTKeyedHashMap map=new WTKeyedHashMap();
Set set = new Set[)
state=State.toState("DESIGN")
set.add(state)
map.put(lifecycleManagedObject, set)
WTKeyedHashSet returnMap = LifeCycleHelper.service.navigate(map, Transition.toTransition("SET_STATE"),
true)
Supported API: false
navigate
in interface LifeCycleService
c
- A WTKeyedMap that contains as its keys LifecycleManagedObject or LifeCycleTemplates and the values are a set of states to navigate.transition
- the name of the transition to navigatesuccessor
- specifies whether or not to return the successor state or the predessor.
WTException
LifeCycleException
public WTKeyedMap getSeriesSelectors(WTSet lcms) throws WTException
getSeriesSelectors
in interface LifeCycleService
lcms
- set of objects. Those that are not wt.lifecycle.LifeCycleManaged are ignored (and are excluded from the result).
WTException
public void createDefaultTransitions(WTCollection lifeCycleTemplates) throws WTException
wt.properties
system configuration. It is the caller's
responsibility to ensure that the invocation of this method will not
result in transition duplication, which will result in an exception's
being thrown. In general, the only way to ensure this is to invoke
this method only on life cycle templates that have no transitions
defined (not counting NEXT
transitions, which are for
internal usage and may not be specified for default initialization).
createDefaultTransitions
in interface LifeCycleService
lifeCycleTemplates
- a collection of lifecycle templates to create transitions for
WTException
public TransactionResult saveLifeCycleTemplate(TransactionContainer aTran, WTContainerRef context, boolean bypassDefaultTransitions) throws WTException, LifeCycleException
saveLifeCycleTemplate
in interface LifeCycleService
aTran
- a TransactionContainer that contains a set of LifeCycleTemplate, PhaseTemplate, AdHocAclSpec, Criterion and Transition assertions and transitions that need to be applied against one or more LifeCycleTemplate objectscontext
- the container the template is being saved inbypassDefaultTransitions
- specifies whether or not the default transitions should be created. if set to true, the transitions must be specified in the transaction container
WTException
LifeCycleException
public Set findTransitions(WTSet promotables) throws WTException
findTransitions
in interface LifeCycleService
promotables
-
WTException
public Set findTransitions(WTSet promotables, Transition transition) throws WTException
findTransitions
in interface LifeCycleService
promotables
- transition
-
WTException
public WTList setLifeCycleState(WTList list, Map stateMap, WTList terminateList) throws WTException, LifeCycleException
setLifeCycleState
in interface LifeCycleService
list
- The LifeCycleManaged objects whose state should be updatedstateMap
- The state to set the LifeCycleManaged object to. Key=LCMO, value StateterminateList
- The LifeCycleManaged objects whose workflow processes should be terminated.
WTException
LifeCycleException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |