Package nl.gx.webmanager.cms.workflow
Interface WorkflowModel
-
- All Superinterfaces:
Wrapper
public interface WorkflowModel extends Wrapper
This interface represents a Workflow model. A Workflow model is based on a Workflow repository model and additionally assigns roles to the activities. Furthermore a Workflow model defines the roles that are allowed to modify the Workflow model- Author:
- ivol
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description WorkflowModel
copy()
Copy the Workflow model and return the copy.WorkflowModelInstance
createInstance(String name)
Deprecated.UseWorkflowService.createWorkflowModelInstance(WorkflowModel)
insteadRole[]
getRoles(WorkflowActivity workflowActivity)
Return the roles assigned by this Workflow model to the given Workflow activity.WorkflowActivityRole[]
getWorkflowActivityRoles()
Return an array containing all Workflow activity roles.WorkflowRepositoryModel
getWorkflowRepositoryModel()
Return the Workflow repository model on which the Workflow model is based.boolean
isUserModifier()
Returns true if the current user has the rights to modify this WorkflowModel object.void
setWorkflowRepositoryModel(WorkflowRepositoryModel workflowRepositoryModel)
Sets the WorkflowRepositoryModel on thisWorkflowModel
to the value of the workflowRepositoryModel parameter and synchronizes theWorkflowActivityRole
objects of thisWorkflowModel
accordingly.void
setWorklowActivityRoles(WorkflowActivityRole[] workflowActivityRoles)
Sets the activity roles on thisWorkflowModel
to theWorkflowActivityRole
objects passed by the workflowActivityRoles parameter.
-
-
-
Method Detail
-
getWorkflowRepositoryModel
WorkflowRepositoryModel getWorkflowRepositoryModel()
Return the Workflow repository model on which the Workflow model is based.- Returns:
- the Workflow repository model on which the Workflow model is based.
-
setWorkflowRepositoryModel
void setWorkflowRepositoryModel(WorkflowRepositoryModel workflowRepositoryModel) throws IllegalArgumentException
Sets the WorkflowRepositoryModel on thisWorkflowModel
to the value of the workflowRepositoryModel parameter and synchronizes theWorkflowActivityRole
objects of thisWorkflowModel
accordingly. TODO: Publishes an "Update" event in case the value of the workflowRepositoryModel parameter is different from the currently assignedWorkflowRepositoryModel
(do this in the context of GXWM-29199).- Parameters:
workflowRepositoryModel
- TheWorkflowRepositoryModel
which is assigned.- Throws:
IllegalArgumentException
- In case anull
value is passed in the workflowRepositoryModel parameter
-
createInstance
@Deprecated WorkflowModelInstance createInstance(String name)
Deprecated.UseWorkflowService.createWorkflowModelInstance(WorkflowModel)
insteadCreates a new instance of this Workflow model with the given name.- Parameters:
name
- Name of the Workflow model instance to create- Returns:
- New instance of this Workflow model
-
copy
WorkflowModel copy()
Copy the Workflow model and return the copy.- Returns:
- Copy of the Workflow model
-
getWorkflowActivityRoles
WorkflowActivityRole[] getWorkflowActivityRoles()
Return an array containing all Workflow activity roles. These are activity - role mappings for the Workflow model.- Returns:
- array containing all Workflow activity roles
-
setWorklowActivityRoles
void setWorklowActivityRoles(WorkflowActivityRole[] workflowActivityRoles)
Sets the activity roles on thisWorkflowModel
to theWorkflowActivityRole
objects passed by the workflowActivityRoles parameter.- Parameters:
workflowActivityRoles
- theWorkflowActivityRole
objects to set on thisWorkflowModel
-
getRoles
Role[] getRoles(WorkflowActivity workflowActivity)
Return the roles assigned by this Workflow model to the given Workflow activity.- Parameters:
workflowActivity
- Workflow activity to retrieve the roles for- Returns:
- roles assigned by this Workflow model to the given Workflow activity
-
isUserModifier
boolean isUserModifier()
Returns true if the current user has the rights to modify this WorkflowModel object.- Returns:
- true if the current user has the rights to modify this WorkflowModel object
-
-