|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.PersistableItem
wt.clients.project.CRoleHolder
wt.clients.lifecycle.administrator.CIndirectRoleHolder
wt.clients.lifecycle.administrator.CPhaseTemplate
A client wrapper to handle phase templates.
Nested Class Summary | |
static class |
CPhaseTemplate.Server
Inner class that acts a lightweight service which executes methods on the server to reduce unnecessary client to server traffic and data transfer. |
Field Summary | |
private Hashtable |
allSelectors
|
private Hashtable |
allStates
|
private CAccessList |
cAccessList
|
private CCriteriaList |
cCriteriaList
|
private CLifeCycleTemplate |
cLifeCycleTemplate
|
private CPhaseSuccessionList |
cPhaseSuccessionList
|
(package private) static String |
DEFAULT_GATE_WFPROCESS
|
(package private) static String |
DEFAULT_PHASE_WFPROCESS
|
private PhaseTemplate |
phaseTemplate
|
static String |
SERVER_CLASS
|
(package private) RoleBatchContainer |
successorContainer
|
(package private) static String |
UNSPECIFIED_WFPROCESS
|
private boolean |
verbose
|
Fields inherited from class wt.clients.project.CRoleHolder |
roleHolder |
Fields inherited from class wt.clients.util.PersistableItem |
|
Constructor Summary | |
protected |
CPhaseTemplate()
Create a new client phase template. |
protected |
CPhaseTemplate(CLifeCycleTemplate clife_cycle_entry)
Create a new client phase template given a client life cycle template. |
protected |
CPhaseTemplate(CLifeCycleTemplate clife_cycle_entry,
PhaseTemplate phase)
Creates a new client phase template given a client life cycle template and a phase template. |
Method Summary | |
void |
addRole(String roleName)
Adds a role to this phase. |
void |
deleteRole(String role_name)
Deletes a role from this phase. |
protected CPhaseTemplate |
duplicate()
Returns a duplicates of this CPhaseTemplate. |
protected CPhaseTemplate |
duplicate(CLifeCycleTemplate clifecycle_template)
Returns a duplicates of this CPhaseTemplate. |
private Hashtable |
getAllSelectorsHashtable()
|
private Hashtable |
getAllStatesHashtable()
|
protected CAccessList |
getCAccessList()
Returns the access list for this phase. |
protected CCriteriaList |
getCCriteriaList()
Returns the criteria list for this phase. |
protected CLifeCycleTemplate |
getCLifeCycleTemplate()
Returns the client life cycle template this phase template lives in. |
protected CPhaseSuccessionList |
getCPhaseSuccessionList()
Returns the phase succession list for this phase. |
protected String |
getGateWfProcess()
|
protected ObjectReference |
getGateWfProcessReference()
|
protected BatchContainer |
getMainBatchContainer()
Returns the BatchContainer of this CPhaseTemplate. |
protected PhaseTemplate |
getPhaseTemplate()
Returns the phase template represented by this client phase template. |
protected String |
getPhaseWfProcess()
|
protected ObjectReference |
getPhaseWfProcessReference()
|
String |
getSeriesSelector()
|
SeriesRangeSelector |
getSeriesSelector(String selector_name)
|
protected String |
getState()
Returns the state of this phase. |
State |
getState(String state_name)
|
protected RoleBatchContainer |
getSuccessorContainer()
Returns the RoleBatchContainer for the successor link. |
protected PhaseTemplate |
getSuccessorPhaseTemplate()
Returns the success phase template to this phase template. |
private WfProcessTemplateMasterReference |
getWfTemplateMasterRef(String string)
|
protected boolean |
isFinalPhase()
Returns true if this is the final phase in the lifecycle. |
protected void |
refresh(PhaseTemplate phase_template)
Refreshes this CPhaseTemplate to it's database state. |
(package private) void |
remove()
|
void |
save()
Saves this client phase template. |
protected void |
setCAccessList(CAccessList caccess_list)
Sets the access list for this phase. |
protected void |
setCCriteriaList(CCriteriaList ccriteria_list)
Sets the criteria list for this phase. |
protected void |
setCPhaseSuccessionList(CPhaseSuccessionList cphase_succession_list)
Sets the phase succession list for this phase. |
protected void |
setGateWfProcess(String name,
ObjectReference reference)
|
protected void |
setGateWorkflowIdRef(ObjectReference processRef)
|
protected void |
setPhaseWfProcess(String name,
ObjectReference reference)
|
protected void |
setPhaseWorkflowIdRef(ObjectReference processRef)
|
protected void |
setSeriesSelector(String seriesSelector)
Sets the SeriesSelector of this phase. |
protected void |
setState(String state)
Sets the state of this phase. |
protected void |
setSuccessor(CPhaseTemplate phase)
Sets the successor of this CPhaseTemplate. |
String |
toString()
Returns a string representation of this phase, it's state. |
Methods inherited from class wt.clients.lifecycle.administrator.CIndirectRoleHolder |
addRoleTarget, deleteRoleTarget, getRoleList, getRoleTargets |
Methods inherited from class wt.clients.project.CRoleHolder |
addPrincipal, containsRole, deletePrincipal, getPrincipals, getRoleHolder, getRoles |
Methods inherited from class wt.clients.util.PersistableItem |
isCreated, isModified, refresh, setCreated, setModified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static String DEFAULT_PHASE_WFPROCESS
static String DEFAULT_GATE_WFPROCESS
static String UNSPECIFIED_WFPROCESS
private boolean verbose
private Hashtable allStates
private Hashtable allSelectors
public static final String SERVER_CLASS
private CAccessList cAccessList
private CLifeCycleTemplate cLifeCycleTemplate
private CCriteriaList cCriteriaList
private CPhaseSuccessionList cPhaseSuccessionList
private PhaseTemplate phaseTemplate
RoleBatchContainer successorContainer
Constructor Detail |
protected CPhaseTemplate()
protected CPhaseTemplate(CLifeCycleTemplate clife_cycle_entry) throws WTPropertyVetoException, WTException
clife_cycle_entry
- the client life cycle template that the new client phase template is part of
WTPropertyVetoException
- if the CPhaseTemplate cannot be named
WTException
- if the CPhaseTemplate cannot be createdprotected CPhaseTemplate(CLifeCycleTemplate clife_cycle_entry, PhaseTemplate phase) throws WTPropertyVetoException
clife_cycle_entry
- the client life cycle template the new client
phase template will live inphase
- the phase template represented by the new CPhaseTemplate
WTPropertyVetoException
- if the CPhaseTemplate cannot be namedMethod Detail |
protected BatchContainer getMainBatchContainer()
protected void setSuccessor(CPhaseTemplate phase) throws WTPropertyVetoException, WTException
phase
- the successor phase
WTPropertyVetoException
- if the Gate cannot be set
WTException
- if the successor cannot be setprotected PhaseTemplate getSuccessorPhaseTemplate() throws WTException
WTException
- if the successor cannot be returnedprotected PhaseTemplate getPhaseTemplate()
protected CLifeCycleTemplate getCLifeCycleTemplate()
protected RoleBatchContainer getSuccessorContainer() throws WTException
WTException
- if the successor container cannot be returnedpublic void save() throws WTException
save
in class PersistableItem
WTException
- if the template cannot be savedprotected void refresh(PhaseTemplate phase_template) throws WTException
WTException
- if the object cannot be refreshedprotected CPhaseTemplate duplicate() throws WTException
WTException
- if the template cannot be duplicatedprotected CPhaseTemplate duplicate(CLifeCycleTemplate clifecycle_template) throws WTException
clifecycle_template
- the life cycle template the duplicated phase template
will live in
WTException
- if the template cannot be duplicatedvoid remove() throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void addRole(String roleName) throws WTException, PropertyVetoException
WTException
- if the role cannot be added
PropertyVetoException
- if the role cannot be foundpublic void deleteRole(String role_name) throws WTException
deleteRole
in class CRoleHolder
role_name
- the specified role.
WTException
- if the role cannot be deletedprotected CAccessList getCAccessList() throws WTException
WTException
- if the access list cannot be returnedprotected void setCAccessList(CAccessList caccess_list)
caccess_list
- the access listprotected CCriteriaList getCCriteriaList()
protected void setCCriteriaList(CCriteriaList ccriteria_list)
ccriteria_list
- the criteria listprotected CPhaseSuccessionList getCPhaseSuccessionList() throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
protected void setCPhaseSuccessionList(CPhaseSuccessionList cphase_succession_list)
cphase_succession_list
- the criteria listprotected String getState()
protected void setState(String state) throws WTPropertyVetoException, WTException
state
- the state of this phase
WTPropertyVetoException
- if the specifed state is not legal
WTException
- if the state cannot be set on this phasepublic State getState(String state_name) throws WTException
WTException
protected void setSeriesSelector(String seriesSelector) throws WTPropertyVetoException, WTException
seriesSelector
- the seriesSelector of this phase
WTPropertyVetoException
- if the specifed seriesSelector is not legal
WTException
- if the seriesSelector cannot be set on this phasepublic SeriesRangeSelector getSeriesSelector(String selector_name) throws WTException
WTException
public String getSeriesSelector() throws WTException
WTException
private Hashtable getAllStatesHashtable() throws WTException
WTException
private Hashtable getAllSelectorsHashtable() throws WTException
WTException
protected boolean isFinalPhase()
public String toString()
protected String getGateWfProcess()
protected String getPhaseWfProcess()
protected void setPhaseWfProcess(String name, ObjectReference reference) throws WTPropertyVetoException
WTPropertyVetoException
protected void setGateWfProcess(String name, ObjectReference reference) throws WTPropertyVetoException
WTPropertyVetoException
protected void setPhaseWorkflowIdRef(ObjectReference processRef) throws WTPropertyVetoException
WTPropertyVetoException
protected void setGateWorkflowIdRef(ObjectReference processRef) throws WTPropertyVetoException
WTPropertyVetoException
protected ObjectReference getPhaseWfProcessReference()
protected ObjectReference getGateWfProcessReference()
private WfProcessTemplateMasterReference getWfTemplateMasterRef(String string) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |