Class ActionImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.ActionImpl
-
- All Implemented Interfaces:
Serializable,Action
public class ActionImpl extends Object implements Action, Serializable
Class implementing the representation of the <action> element of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActionImpl()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsequencescreateConsequences()Create and return and object implementing ConsequencesQualifiedUserscreateQualifiedUsers()Create and return an object implementing QalifiedUsersQualifiedUsersgetAllowedUsers()Get all the users allowed to execute this actionConsequencesgetConsequences()Get all the consequences of this actionStringgetDescription(String role, String language)Get description in specific language for the given roleContextualDesignationsgetDescriptions()Get all the descriptionsFormgetForm()Get the form associated with this actionStringgetKey()Get the unique key, used by equals methodStringgetKind()Get the kind of this action (update, create or delete)StringgetLabel(String role, String language)Get label in specific language for the given roleContextualDesignationsgetLabels()Get all the labelsStringgetName()Get the name of this actionvoidsetAllowedUsers(QualifiedUsers allowedUsers)Set the list of users allowed to execute this actionvoidsetConsequences(Consequences consequences)Set the consequences of this actionvoidsetForm(Form form)Set the form associated to this actionvoidsetKind(String kind)Set the kind of this actionvoidsetName(String name)Set the name of this action
-
-
-
Method Detail
-
getLabels
public ContextualDesignations getLabels()
Description copied from interface:ActionGet all the labels
-
getLabel
public String getLabel(String role, String language)
Description copied from interface:ActionGet label in specific language for the given role- Specified by:
getLabelin interfaceAction- Parameters:
role- role for which the label islanguage- label's language- Returns:
- wanted label as a String object. If label is not found, search label with given role and default language, if not found again, return the default label in given language, if not found again, return the default label in default language, if not found again, return empty string.
-
getAllowedUsers
public QualifiedUsers getAllowedUsers()
Get all the users allowed to execute this action- Specified by:
getAllowedUsersin interfaceAction- Returns:
- object containing QualifiedUsers
-
getConsequences
public Consequences getConsequences()
Get all the consequences of this action- Specified by:
getConsequencesin interfaceAction- Returns:
- Consequences objects
-
getForm
public Form getForm()
Get the form associated with this action
-
getName
public String getName()
Get the name of this action
-
getKind
public String getKind()
Get the kind of this action (update, create or delete)
-
getDescriptions
public ContextualDesignations getDescriptions()
Description copied from interface:ActionGet all the descriptions- Specified by:
getDescriptionsin interfaceAction- Returns:
- an object containing the collection of the descriptions
-
getDescription
public String getDescription(String role, String language)
Description copied from interface:ActionGet description in specific language for the given role- Specified by:
getDescriptionin interfaceAction- Parameters:
role- role for which the description islanguage- description's language- Returns:
- wanted description as a String object. If description is not found, search description with given role and default language, if not found again, return the default description in given language, if not found again, return the default description in default language, if not found again, return empty string.
-
createQualifiedUsers
public QualifiedUsers createQualifiedUsers()
Create and return an object implementing QalifiedUsers
-
setAllowedUsers
public void setAllowedUsers(QualifiedUsers allowedUsers)
Set the list of users allowed to execute this action- Specified by:
setAllowedUsersin interfaceAction- Parameters:
allowedUsers- allowed users
-
createConsequences
public Consequences createConsequences()
Create and return and object implementing Consequences- Specified by:
createConsequencesin interfaceAction
-
setConsequences
public void setConsequences(Consequences consequences)
Set the consequences of this action- Specified by:
setConsequencesin interfaceAction- Parameters:
consequences-
-
setForm
public void setForm(Form form)
Set the form associated to this action
-
setName
public void setName(String name)
Set the name of this action
-
setKind
public void setKind(String kind)
Set the kind of this action
-
getKey
public String getKey()
Get the unique key, used by equals method- Returns:
- unique key
-
-