|
||||||||||
| 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 name| Method Detail |
|---|
public ContextualDesignations getLabels()
State
getLabels in interface State
public String getLabel(String role,
String language)
State
getLabel in interface Staterole - role for which the label is
public void addLabel(ContextualDesignation label)
State
addLabel in interface Statepublic Iterator<ContextualDesignation> iterateLabel()
State
iterateLabel in interface Statepublic ContextualDesignations getActivities()
State
getActivities in interface State
public String getActivity(String role,
String language)
State
getActivity in interface Staterole - role for which the activity is
public void addActivity(ContextualDesignation label)
State
addActivity in interface Statepublic Iterator<ContextualDesignation> iterateActivity()
State
iterateActivity in interface Statepublic ContextualDesignations getDescriptions()
State
getDescriptions in interface State
public String getDescription(String role,
String language)
State
getDescription in interface Staterole - role for which the description is
public void addDescription(ContextualDesignation description)
State
addDescription in interface Statepublic Iterator<ContextualDesignation> iterateDescription()
State
iterateDescription in interface Statepublic ContextualDesignation createDesignation()
State
createDesignation in interface Statepublic Action[] getAllowedActions()
getAllowedActions in interface Statepublic TimeOutAction[] getTimeOutActions()
getTimeOutActions in interface Statepublic TimeOutActions getTimeOutActionsEx()
State
getTimeOutActionsEx in interface Statepublic AllowedActions getAllowedActionsEx()
State
getAllowedActionsEx in interface Statepublic AllowedActions createAllowedActions()
State
createAllowedActions in interface Statepublic TimeOutActions createTimeOutActions()
State
createTimeOutActions in interface Statepublic Action[] getFilteredActions()
getFilteredActions in interface Statepublic void setFilteredActions(AllowedActions allowedActions)
setFilteredActions in interface Statepublic QualifiedUsers getInterestedUsers()
State
getInterestedUsers in interface Statenullpublic QualifiedUsers getInterestedUsersEx()
State
getInterestedUsersEx in interface Statenull if none are
definedpublic String getName()
getName in interface Statepublic QualifiedUsers getWorkingUsers()
getWorkingUsers in interface Statepublic QualifiedUsers getWorkingUsersEx()
State
getWorkingUsersEx in interface Statenull if none are definedpublic void setTimeOutActions(TimeOutActions timeOutActions)
State
setTimeOutActions in interface Statepublic void setAllowedActions(AllowedActions allowedActions)
State
setAllowedActions in interface Statepublic QualifiedUsers createQualifiedUsers()
State
createQualifiedUsers in interface Statepublic void setInterestedUsers(QualifiedUsers interestedUsers)
setInterestedUsers in interface StateQualifiedUsers - object containing interested userspublic void setName(String name)
State
setName in interface Statepublic void setWorkingUsers(QualifiedUsers workingUsers)
setWorkingUsers in interface StateQualifiedUsers - object containing these userspublic int getTimeoutInterval()
State
getTimeoutInterval in interface Statepublic void setTimeoutInterval(int hours)
State
setTimeoutInterval in interface Statehours - 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 Statepublic void setTimeoutAction(Action timeoutAction)
State
setTimeoutAction in interface StatetimeoutAction - timeout actionpublic boolean getTimeoutNotifyAdmin()
getTimeoutNotifyAdmin in interface Statepublic void setTimeoutNotifyAdmin(boolean timeoutAction)
State
setTimeoutNotifyAdmin in interface Statepublic String getKey()
getKey in interface ReferrableObjectIntfgetKey in class AbstractReferrableObjectequals,
hashCodepublic void setId(int id)
setId in interface AbstractDescriptorpublic int getId()
getId in interface AbstractDescriptorpublic void setParent(AbstractDescriptor parent)
setParent in interface AbstractDescriptorpublic AbstractDescriptor getParent()
getParent in interface AbstractDescriptorpublic boolean hasId()
hasId in interface AbstractDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||