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 Consequences
createConsequences()
Create and return and object implementing ConsequencesQualifiedUsers
createQualifiedUsers()
Create and return an object implementing QalifiedUsersQualifiedUsers
getAllowedUsers()
Get all the users allowed to execute this actionConsequences
getConsequences()
Get all the consequences of this actionString
getDescription(String role, String language)
Get description in specific language for the given roleContextualDesignations
getDescriptions()
Get all the descriptionsForm
getForm()
Get the form associated with this actionString
getKey()
Get the unique key, used by equals methodString
getKind()
Get the kind of this action (update, create or delete)String
getLabel(String role, String language)
Get label in specific language for the given roleContextualDesignations
getLabels()
Get all the labelsString
getName()
Get the name of this actionvoid
setAllowedUsers(QualifiedUsers allowedUsers)
Set the list of users allowed to execute this actionvoid
setConsequences(Consequences consequences)
Set the consequences of this actionvoid
setForm(Form form)
Set the form associated to this actionvoid
setKind(String kind)
Set the kind of this actionvoid
setName(String name)
Set the name of this action
-
-
-
Method Detail
-
getLabels
public ContextualDesignations getLabels()
Description copied from interface:Action
Get all the labels
-
getLabel
public String getLabel(String role, String language)
Description copied from interface:Action
Get label in specific language for the given role- Specified by:
getLabel
in 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:
getAllowedUsers
in interfaceAction
- Returns:
- object containing QualifiedUsers
-
getConsequences
public Consequences getConsequences()
Get all the consequences of this action- Specified by:
getConsequences
in 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:Action
Get all the descriptions- Specified by:
getDescriptions
in interfaceAction
- Returns:
- an object containing the collection of the descriptions
-
getDescription
public String getDescription(String role, String language)
Description copied from interface:Action
Get description in specific language for the given role- Specified by:
getDescription
in 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:
setAllowedUsers
in interfaceAction
- Parameters:
allowedUsers
- allowed users
-
createConsequences
public Consequences createConsequences()
Create and return and object implementing Consequences- Specified by:
createConsequences
in interfaceAction
-
setConsequences
public void setConsequences(Consequences consequences)
Set the consequences of this action- Specified by:
setConsequences
in 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
-
-