Package de.hybris.platform.workflow.impl
Class DefaultWorkflowAttachmentService
java.lang.Object
de.hybris.platform.workflow.impl.DefaultWorkflowAttachmentService
- All Implemented Interfaces:
WorkflowAttachmentService
Default implementation of
WorkflowAttachmentService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItems(WorkflowModel workflowModel, List<? extends ItemModel> itemsToAdd) Adds items to workflow as an attachmentcontainsItem(WorkflowModel workflowModel, List<? extends ItemModel> itemsToAdd) Checks if workflow contains item as an attachment and returns this item or null if not foundReturns attachments assigned to action or empty listgetAttachmentsForAction(WorkflowActionModel action, String attachmentClassName) Returns attachments assigned to action that match class name or empty listgetAttachmentsForAction(WorkflowActionModel action, List<String> attachmentClassNames) Returns attachments assigned to action that match all class names passed as a paremetervoidremoveItems(WorkflowModel workflowModel, List<WorkflowItemAttachmentModel> itemsToRemove) Removes attachments from workflowvoidsetModelService(ModelService modelService) voidsetTypeService(TypeService typeService)
-
Constructor Details
-
DefaultWorkflowAttachmentService
public DefaultWorkflowAttachmentService()
-
-
Method Details
-
addItems
public List<WorkflowItemAttachmentModel> addItems(WorkflowModel workflowModel, List<? extends ItemModel> itemsToAdd) Description copied from interface:WorkflowAttachmentServiceAdds items to workflow as an attachment- Specified by:
addItemsin interfaceWorkflowAttachmentService- Parameters:
workflowModel- to which items should be addeditemsToAdd- items to add- Returns:
- attachments
-
removeItems
public void removeItems(WorkflowModel workflowModel, List<WorkflowItemAttachmentModel> itemsToRemove) Description copied from interface:WorkflowAttachmentServiceRemoves attachments from workflow- Specified by:
removeItemsin interfaceWorkflowAttachmentService- Parameters:
workflowModel- from which attachments should be removeditemsToRemove- items to remove
-
containsItem
Description copied from interface:WorkflowAttachmentServiceChecks if workflow contains item as an attachment and returns this item or null if not found- Specified by:
containsItemin interfaceWorkflowAttachmentService- Parameters:
workflowModel- to checkitemsToAdd- items to check- Returns:
- founded item or null
-
getAttachmentsForAction
Description copied from interface:WorkflowAttachmentServiceReturns attachments assigned to action or empty list- Specified by:
getAttachmentsForActionin interfaceWorkflowAttachmentService- Returns:
- attachments collection
-
getAttachmentsForAction
public List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, String attachmentClassName) Description copied from interface:WorkflowAttachmentServiceReturns attachments assigned to action that match class name or empty list- Specified by:
getAttachmentsForActionin interfaceWorkflowAttachmentServiceattachmentClassName- class name to be matched- Returns:
- attachments collection
-
getAttachmentsForAction
public List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, List<String> attachmentClassNames) Description copied from interface:WorkflowAttachmentServiceReturns attachments assigned to action that match all class names passed as a paremeter- Specified by:
getAttachmentsForActionin interfaceWorkflowAttachmentServiceattachmentClassNames- class names collection to be matched- Returns:
- attachments collection
-
setModelService
- Parameters:
modelService- the modelService to set
-
setTypeService
- Parameters:
typeService- the typeService to set
-