public interface PrintJobService
| Modifier and Type | Method and Description |
|---|---|
void |
assignJob(WorkflowModel workflow,
PrincipalModel principal)
This method should be used to handle the assignment of the given
UserModel to the given
WorkflowModel. |
WorkflowModel |
createJob(AbstractCommentModel workflowJob,
ItemModel attachment,
PrincipalModel assignee)
This method should be used to create a
WorkflowModel for the given
CommentModel. |
PrincipalModel |
getAssignee(UserModel user)
This method should find a
PrincipalModel for the given UserModel which has all access rights to
edit/create CommentModels and change the states within a
WorkflowModel. |
List<WorkflowActionModel> |
getCurrentActions(WorkflowModel workflow)
This method should be used to get the current active
WorkflowActionModels of the given
WorkflowModel. |
List<PrintJobHistoryEntryDTO> |
getJobHistory(WorkflowModel workflow)
This method should be used to get a list of
PrintJobHistoryEntryDTO from the WorkflowModel sorted
by
creation time. |
boolean |
isStatusChangeAllowed(UserModel currentUser,
WorkflowModel workflow)
|
void assignJob(WorkflowModel workflow, PrincipalModel principal)
UserModel to the given
WorkflowModel.workflow - the WorkflowModel which will be given the UserModel as assigneeprincipal - the UserModel or UserGroupModel which should
be assigned to the WorkflowModelWorkflowModel createJob(AbstractCommentModel workflowJob, ItemModel attachment, PrincipalModel assignee)
WorkflowModel for the given
CommentModel.workflowJob - the CommentModel for which the WorkflowModel
should be created.attachment - the item which should be set to the WorkflowModelassignee - the UserModel or UserGroupModel which should be
set as the assignee of the WorkflowModelWorkflowModelPrincipalModel getAssignee(UserModel user)
PrincipalModel for the given UserModel which has all access rights to
edit/create CommentModels and change the states within a
WorkflowModel.user - the UserModel where the PrincipalModels should be takenPrincipalModel which may be the UserModel itself or one of its groupsList<WorkflowActionModel> getCurrentActions(WorkflowModel workflow)
WorkflowActionModels of the given
WorkflowModel.workflow - the WorkflowModel where the current WorkflowActionModel should be foundWorkflowActionModels of the given WorkflowModel or empty List.List<PrintJobHistoryEntryDTO> getJobHistory(WorkflowModel workflow)
PrintJobHistoryEntryDTO from the WorkflowModel sorted
by
creation time.workflow - WorkflowModel where the PrintJobHistoryEntryDTO should be taken.PrintJobHistoryEntryDTOs list sorted by creation time.boolean isStatusChangeAllowed(UserModel currentUser, WorkflowModel workflow)
currentUser - The user that will be checked permission onworkflow - The affected workflowCopyright © 2017 SAP SE. All Rights Reserved.