Package de.hybris.platform.workflow.impl
Class DefaultWorkflowAttachmentService
- java.lang.Object
-
- de.hybris.platform.workflow.impl.DefaultWorkflowAttachmentService
-
- All Implemented Interfaces:
WorkflowAttachmentService
public class DefaultWorkflowAttachmentService extends java.lang.Object implements WorkflowAttachmentService
Default implementation ofWorkflowAttachmentService
-
-
Constructor Summary
Constructors Constructor Description DefaultWorkflowAttachmentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<WorkflowItemAttachmentModel>addItems(WorkflowModel workflowModel, java.util.List<? extends ItemModel> itemsToAdd)Adds items to workflow as an attachmentItemModelcontainsItem(WorkflowModel workflowModel, java.util.List<? extends ItemModel> itemsToAdd)Checks if workflow contains item as an attachment and returns this item or null if not foundjava.util.List<ItemModel>getAttachmentsForAction(WorkflowActionModel action)Returns attachments assigned to action or empty listjava.util.List<ItemModel>getAttachmentsForAction(WorkflowActionModel action, java.lang.String attachmentClassName)Returns attachments assigned to action that match class name or empty listjava.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 paremetervoidremoveItems(WorkflowModel workflowModel, java.util.List<WorkflowItemAttachmentModel> itemsToRemove)Removes attachments from workflowvoidsetModelService(ModelService modelService)voidsetTypeService(TypeService typeService)
-
-
-
Method Detail
-
addItems
public java.util.List<WorkflowItemAttachmentModel> addItems(WorkflowModel workflowModel, java.util.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, java.util.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
public ItemModel containsItem(WorkflowModel workflowModel, java.util.List<? extends ItemModel> itemsToAdd)
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
public java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action)
Description copied from interface:WorkflowAttachmentServiceReturns attachments assigned to action or empty list- Specified by:
getAttachmentsForActionin interfaceWorkflowAttachmentService- Returns:
- attachments collection
-
getAttachmentsForAction
public java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, java.lang.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 java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, java.util.List<java.lang.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
public void setModelService(ModelService modelService)
- Parameters:
modelService- the modelService to set
-
setTypeService
public void setTypeService(TypeService typeService)
- Parameters:
typeService- the typeService to set
-
-