public class DefaultWorkflowAttachmentService extends java.lang.Object implements WorkflowAttachmentService
WorkflowAttachmentService| Constructor and Description |
|---|
DefaultWorkflowAttachmentService() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<WorkflowItemAttachmentModel> |
addItems(WorkflowModel workflowModel,
java.util.List<? extends ItemModel> itemsToAdd)
Adds items to workflow as an attachment
|
ItemModel |
containsItem(WorkflowModel workflowModel,
java.util.List<? extends ItemModel> itemsToAdd)
Checks if workflow contains item as an attachment and returns this item or null if not found
|
java.util.List<ItemModel> |
getAttachmentsForAction(WorkflowActionModel action)
Returns attachments assigned to action or empty list
|
java.util.List<ItemModel> |
getAttachmentsForAction(WorkflowActionModel action,
java.util.List<java.lang.String> attachmentClassNames)
Returns attachments assigned to action that match all class names passed as a paremeter
|
java.util.List<ItemModel> |
getAttachmentsForAction(WorkflowActionModel action,
java.lang.String attachmentClassName)
Returns attachments assigned to action that match class name or empty list
|
void |
setModelService(ModelService modelService) |
void |
setTypeService(TypeService typeService) |
public java.util.List<WorkflowItemAttachmentModel> addItems(WorkflowModel workflowModel, java.util.List<? extends ItemModel> itemsToAdd)
WorkflowAttachmentServiceaddItems in interface WorkflowAttachmentServiceworkflowModel - to which items should be addeditemsToAdd - items to addpublic ItemModel containsItem(WorkflowModel workflowModel, java.util.List<? extends ItemModel> itemsToAdd)
WorkflowAttachmentServicecontainsItem in interface WorkflowAttachmentServiceworkflowModel - to checkitemsToAdd - items to checkpublic java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action)
WorkflowAttachmentServicegetAttachmentsForAction in interface WorkflowAttachmentServicepublic java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, java.lang.String attachmentClassName)
WorkflowAttachmentServicegetAttachmentsForAction in interface WorkflowAttachmentServiceattachmentClassName - class name to be matchedpublic java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, java.util.List<java.lang.String> attachmentClassNames)
WorkflowAttachmentServicegetAttachmentsForAction in interface WorkflowAttachmentServiceattachmentClassNames - class names collection to be matchedpublic void setModelService(ModelService modelService)
modelService - the modelService to setpublic void setTypeService(TypeService typeService)
typeService - the typeService to setCopyright © 2018 SAP SE. All Rights Reserved.