|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.workflow.engine.AbstractReferrableObject
com.silverpeas.workflow.engine.model.StateImpl
public class StateImpl
Class implementing the representation of the <state> element of a Process Model.
Constructor Summary | |
---|---|
StateImpl()
Constructor |
|
StateImpl(String name)
Constructor |
Method Summary | |
---|---|
void |
addActivity(ContextualDesignation label)
Add an activity Method needed primarily by Castor |
void |
addDescription(ContextualDesignation description)
Add a description Method needed primarily by Castor |
void |
addLabel(ContextualDesignation label)
Add a label Method needed primarily by Castor |
String |
castor_getTimeoutInterval()
Get the timeout interval of this state |
void |
castor_setTimeoutInterval(String timeoutInterval)
Set the timeout interval of this state |
AllowedActions |
createAllowedActions()
Create and return an object implementing AllowedActions |
ContextualDesignation |
createDesignation()
Create an object implementing ContextualDesignation Method needed primarily by Castor |
QualifiedUsers |
createQualifiedUsers()
Create and return an object implementing QalifiedUsers |
TimeOutActions |
createTimeOutActions()
Create and return an object implementing TimeOutActions |
ContextualDesignations |
getActivities()
Get all the activities |
String |
getActivity(String role,
String language)
Get activity in specific language for the given role |
Action[] |
getAllowedActions()
Get actions available in this state |
AllowedActions |
getAllowedActionsEx()
Get all the allowed actions |
String |
getDescription(String role,
String language)
Get description in specific language for the given role |
ContextualDesignations |
getDescriptions()
Get all the descriptions |
Action[] |
getFilteredActions()
|
int |
getId()
|
QualifiedUsers |
getInterestedUsers()
Get all the users interested by this state |
QualifiedUsers |
getInterestedUsersEx()
Get all the users interested by this state |
String |
getKey()
Get the unique key, used by equals method |
String |
getLabel(String role,
String language)
Get label in specific language for the given role |
ContextualDesignations |
getLabels()
Get all the labels |
String |
getName()
Get the name of this state |
AbstractDescriptor |
getParent()
|
Action |
getTimeoutAction()
Get the timeout action of this state Action that will played if timeout is triggered |
TimeOutAction[] |
getTimeOutActions()
Get timeout actions for this state |
TimeOutActions |
getTimeOutActionsEx()
Get all the timeout actions |
int |
getTimeoutInterval()
Get the timeout interval of this state |
boolean |
getTimeoutNotifyAdmin()
Get flag for admin notification if true, the timeout manager will send a notification to all supervisors |
QualifiedUsers |
getWorkingUsers()
Get the pre-conditions to enter this state |
QualifiedUsers |
getWorkingUsersEx()
Get all the users who can act in this state |
boolean |
hasId()
|
Iterator<ContextualDesignation> |
iterateActivity()
Iterate through the activities |
Iterator<ContextualDesignation> |
iterateDescription()
Iterate through the descriptions |
Iterator<ContextualDesignation> |
iterateLabel()
Iterate through the Labels |
void |
setAllowedActions(AllowedActions allowedActions)
Set the allowed actions |
void |
setFilteredActions(AllowedActions allowedActions)
|
void |
setId(int id)
Implemented methods |
void |
setInterestedUsers(QualifiedUsers interestedUsers)
Set all the users interested by this state |
void |
setName(String name)
Set the name of this state |
void |
setParent(AbstractDescriptor parent)
|
void |
setTimeoutAction(Action timeoutAction)
Set the timeout action of this state Action that will played if timeout is trigerred |
void |
setTimeOutActions(TimeOutActions timeOutActions)
Set the timeout actions |
void |
setTimeoutInterval(int hours)
Set the timeout interval of this state |
void |
setTimeoutNotifyAdmin(boolean timeoutAction)
Set flag for admin notification if true, the timeout manager will send a notification to all supervisors |
void |
setWorkingUsers(QualifiedUsers workingUsers)
Set all the users who can act in this state |
Methods inherited from class com.silverpeas.workflow.engine.AbstractReferrableObject |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateImpl()
public StateImpl(String name)
name
- state nameMethod Detail |
---|
public ContextualDesignations getLabels()
State
getLabels
in interface State
public String getLabel(String role, String language)
State
getLabel
in interface State
role
- role for which the label is
public void addLabel(ContextualDesignation label)
State
addLabel
in interface State
public Iterator<ContextualDesignation> iterateLabel()
State
iterateLabel
in interface State
public ContextualDesignations getActivities()
State
getActivities
in interface State
public String getActivity(String role, String language)
State
getActivity
in interface State
role
- role for which the activity is
public void addActivity(ContextualDesignation label)
State
addActivity
in interface State
public Iterator<ContextualDesignation> iterateActivity()
State
iterateActivity
in interface State
public ContextualDesignations getDescriptions()
State
getDescriptions
in interface State
public String getDescription(String role, String language)
State
getDescription
in interface State
role
- role for which the description is
public void addDescription(ContextualDesignation description)
State
addDescription
in interface State
public Iterator<ContextualDesignation> iterateDescription()
State
iterateDescription
in interface State
public ContextualDesignation createDesignation()
State
createDesignation
in interface State
public Action[] getAllowedActions()
getAllowedActions
in interface State
public TimeOutAction[] getTimeOutActions()
getTimeOutActions
in interface State
public TimeOutActions getTimeOutActionsEx()
State
getTimeOutActionsEx
in interface State
public AllowedActions getAllowedActionsEx()
State
getAllowedActionsEx
in interface State
public AllowedActions createAllowedActions()
State
createAllowedActions
in interface State
public TimeOutActions createTimeOutActions()
State
createTimeOutActions
in interface State
public Action[] getFilteredActions()
getFilteredActions
in interface State
public void setFilteredActions(AllowedActions allowedActions)
setFilteredActions
in interface State
public QualifiedUsers getInterestedUsers()
State
getInterestedUsers
in interface State
null
public QualifiedUsers getInterestedUsersEx()
State
getInterestedUsersEx
in interface State
null
if none are
definedpublic String getName()
getName
in interface State
public QualifiedUsers getWorkingUsers()
getWorkingUsers
in interface State
public QualifiedUsers getWorkingUsersEx()
State
getWorkingUsersEx
in interface State
null
if none are definedpublic void setTimeOutActions(TimeOutActions timeOutActions)
State
setTimeOutActions
in interface State
public void setAllowedActions(AllowedActions allowedActions)
State
setAllowedActions
in interface State
public QualifiedUsers createQualifiedUsers()
State
createQualifiedUsers
in interface State
public void setInterestedUsers(QualifiedUsers interestedUsers)
setInterestedUsers
in interface State
QualifiedUsers
- object containing interested userspublic void setName(String name)
State
setName
in interface State
public void setWorkingUsers(QualifiedUsers workingUsers)
setWorkingUsers
in interface State
QualifiedUsers
- object containing these userspublic int getTimeoutInterval()
State
getTimeoutInterval
in interface State
public void setTimeoutInterval(int hours)
State
setTimeoutInterval
in interface State
hours
- interval in hours (as a int)public String castor_getTimeoutInterval()
public void castor_setTimeoutInterval(String timeoutInterval)
timeoutInterval
- interval in hourspublic Action getTimeoutAction()
getTimeoutAction
in interface State
public void setTimeoutAction(Action timeoutAction)
State
setTimeoutAction
in interface State
timeoutAction
- timeout actionpublic boolean getTimeoutNotifyAdmin()
getTimeoutNotifyAdmin
in interface State
public void setTimeoutNotifyAdmin(boolean timeoutAction)
State
setTimeoutNotifyAdmin
in interface State
public String getKey()
getKey
in interface ReferrableObjectIntf
getKey
in class AbstractReferrableObject
equals
,
hashCode
public void setId(int id)
setId
in interface AbstractDescriptor
public int getId()
getId
in interface AbstractDescriptor
public void setParent(AbstractDescriptor parent)
setParent
in interface AbstractDescriptor
public AbstractDescriptor getParent()
getParent
in interface AbstractDescriptor
public boolean hasId()
hasId
in interface AbstractDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |