public class WorkflowActivity extends BaseManager
Modifier and Type | Class and Description |
---|---|
static class |
WorkflowActivity.AssignmentMode |
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getAssetActionNames()
Returns the names of the configured asset actions.
|
WorkflowActivity.AssignmentMode |
getAssignmentMode()
Returns the assignment mode when applying this activity.
|
java.lang.String |
getDescription(int languageID)
Returns the description for the given language id.
|
java.util.Set<java.lang.Integer> |
getDestinationStateIDs()
Returns the state IDs this activity can use as destination states.
|
int |
getID()
Returns the id of this activity.
|
java.lang.String |
getMetadataTemplateName()
Return the metadata template name to use when applying this activity.
|
java.lang.String |
getName(int languageID,
boolean fallbackToDefaultName)
Returns the name for the given language id.
|
java.lang.String |
getPermissionTemplateName()
Return the permission template name to use when applying this activity.
|
java.lang.String |
getRecordRestrictionQueryName()
Return the query name to use when using the record restriction for this activity.
|
java.lang.String |
getRecordRestrictionQueryString()
Return the query string to use when using the record restriction for this activity.
|
java.util.Set<java.lang.Integer> |
getSourceStateIDs()
Returns the state IDs for which this activity should be available.
|
RestrictionsList |
getStaticAssignmentList()
Returns the list of roles and users that are assigned if the assignment mode is
WorkflowActivity.AssignmentMode.STATIC_ASSIGNMENT . |
boolean |
getUseAssetActions()
Returns whether this activity should apply one or more asset action.
|
boolean |
getUseMetadataTemplate()
Returns whether this activity should apply a metadata template.
|
boolean |
getUsePermissionTemplate()
Returns whether this activity should apply a permission template.
|
RestrictionsList |
getUserRestrictionsList()
Returns the list of roles and users that are allowed to use this activity if
isUserRestricted() returns true. |
boolean |
isInitialActivity()
Returns whether this activity should be available as an initial activity.
|
boolean |
isRecordRestricted()
Returns whether this activity should only be available for records matching a configured query.
|
boolean |
isUserRequiredToSpecifyNewAssignments()
Returns whether the user needs to be asked for new assignments when applying this activity.
|
boolean |
isUserRestricted()
Returns whether this activity should only be available for a specified list of users and roles.
|
void |
setAssetActionNames(java.util.Set<java.lang.String> actions)
Configures the asset action names.
|
void |
setAssignmentMode(WorkflowActivity.AssignmentMode assignmentMode)
Configures the assignment mode when applying this activity.
|
void |
setDescription(int languageID,
java.lang.String description)
Sets the description for the given language.
|
void |
setDestinationStateIDs(java.util.Set<java.lang.Integer> ids)
Configures the state IDs this activity can use as destination states.
|
void |
setInitialActivity(boolean value)
Specifies whether this activity should be available as an initial activity.
|
void |
setMetadataTemplateName(java.lang.String name)
Configures the metadata template name to use when applying this activity.
|
void |
setName(int languageID,
java.lang.String name)
Sets the name for the given language.
|
void |
setPermissionTemplateName(java.lang.String name)
Configures the permission template name to use when applying this activity.
|
void |
setRecordRestricted(boolean value)
Specifies whether this activity should only be available for a specified list of records and roles.
|
void |
setRecordRestrictionQueryName(java.lang.String queryName)
Configures the query name to use when using the record restriction for this activity.
|
void |
setRecordRestrictionQueryString(java.lang.String query)
Configures the query string to use when using the record restriction for this activity as a fallback in case the configured query is ont available.
|
void |
setSourceStateIDs(java.util.Set<java.lang.Integer> ids)
Configures the state IDs for which this activity should be available.
|
void |
setUseAssetActions(boolean value)
Specifies whether this activity should apply one or more asset action.
|
void |
setUseMetadataTemplate(boolean value)
Specifies whether this activity should apply a metadata template.
|
void |
setUsePermissionTemplate(boolean value)
Specifies whether this activity should apply a permission template.
|
void |
setUserRestricted(boolean value)
Specifies whether this activity should only be available for a specified list of users and roles.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public int getID()
public java.lang.String getDescription(int languageID)
languageID
- specifying the language for the descriptionpublic void setDescription(int languageID, java.lang.String description)
languageID
- the language to set the description fordescription
- the new descriptionpublic java.lang.String getName(int languageID, boolean fallbackToDefaultName)
languageID
- specifying the language for the namefallbackToDefaultName
- when set to true this method returns the default name when no localized name is available otherwise nullpublic void setName(int languageID, java.lang.String name)
languageID
- the language to set the name forname
- the new namepublic boolean isUserRestricted()
true
if the activity is only available for a specified list of users and rolespublic void setUserRestricted(boolean value)
value
- true
if the activity should only available for a specified list of users and roles, otherwise false
public RestrictionsList getUserRestrictionsList()
isUserRestricted()
returns true.public boolean isInitialActivity()
true
if the activity is available as an initial activitypublic void setInitialActivity(boolean value)
value
- true
if the activity is available as an initial activity, otherwise false
java.lang.IllegalStateException
- when not exactly destination state has been configuredpublic boolean isRecordRestricted()
true
if the activity is only available for records matching a configured querypublic void setRecordRestricted(boolean value)
value
- true
if the activity should only available for a specified list of records and roles, otherwise false
public java.lang.String getRecordRestrictionQueryName()
null
if not configuredpublic void setRecordRestrictionQueryName(java.lang.String queryName)
queryName
- query name to use when using the record restriction for this activitypublic java.lang.String getRecordRestrictionQueryString()
getRecordRestrictionQueryName()
using Preferences.getRecordQuery(String)
first and use this query string only as a fallback in case that query
is currently not available.public void setRecordRestrictionQueryString(java.lang.String query)
query
- query stringpublic boolean getUseMetadataTemplate()
true
if the activity should apply a metadata templatepublic void setUseMetadataTemplate(boolean value)
value
- true
if the activity should apply a metadata template, otherwise false
public java.lang.String getMetadataTemplateName()
null
if not configuredpublic void setMetadataTemplateName(java.lang.String name)
name
- metadata template name to use when applying this activity.public boolean getUsePermissionTemplate()
true
if the activity should apply a permission templatepublic void setUsePermissionTemplate(boolean value)
value
- true
if the activity should apply a permission template, otherwise false
public java.lang.String getPermissionTemplateName()
null
if not configuredpublic void setPermissionTemplateName(java.lang.String name)
name
- permission template name to use when applying this activity.public boolean getUseAssetActions()
true
if the activity should apply one or more asset actionpublic void setUseAssetActions(boolean value)
value
- true
if the activity should apply one or more asset action, otherwise false
public java.util.Set<java.lang.String> getAssetActionNames()
getUseAssetActions()
public void setAssetActionNames(java.util.Set<java.lang.String> actions)
actions
- configured asset action names to store or null
to cleargetUseAssetActions()
public WorkflowActivity.AssignmentMode getAssignmentMode()
public boolean isUserRequiredToSpecifyNewAssignments()
true
if the user needs to be asked for new assignments when applying this activity, false
otherwise.public RestrictionsList getStaticAssignmentList()
WorkflowActivity.AssignmentMode.STATIC_ASSIGNMENT
.WorkflowActivity.AssignmentMode.STATIC_ASSIGNMENT
public java.util.Set<java.lang.Integer> getSourceStateIDs()
public void setSourceStateIDs(java.util.Set<java.lang.Integer> ids)
ids
- state IDs for which this activity should be availablepublic java.util.Set<java.lang.Integer> getDestinationStateIDs()
public void setDestinationStateIDs(java.util.Set<java.lang.Integer> ids)
ids
- state IDs this activity can use as destination statespublic void setAssignmentMode(WorkflowActivity.AssignmentMode assignmentMode)
assignmentMode
- assignment mode when applying this activitywww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.