Package com.hybris.backoffice.workflow
Interface WorkflowsTypeFacade
-
- All Known Implementing Classes:
DefaultWorkflowsTypeFacade
public interface WorkflowsTypeFacadeDefines available attachments types and allows operation on attachments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<ComposedTypeModel>findCommonAttachmentType(java.util.List<ItemModel> attachments)Finds common attachment type - gets common super type of given items and checks if it can be assigned to one of defined supported typesgetSupportedAttachmentTypeCodes().java.util.List<java.lang.String>getAllAttachmentClassNames()Based on configuration returns all supported attachment class names as opposed togetSupportedAttachmentClassNames()java.util.List<java.lang.String>getSupportedAttachmentClassNames()Based on configuration returns supported attachment classes names for current user.java.util.List<java.lang.String>getSupportedAttachmentTypeCodes()Based on configuration returns supported type codes for current user.java.util.List<ComposedTypeModel>getSupportedAttachmentTypes()Based on configuration returns supported ComposedTypes for current user.
-
-
-
Method Detail
-
getSupportedAttachmentClassNames
java.util.List<java.lang.String> getSupportedAttachmentClassNames()
Based on configuration returns supported attachment classes names for current user.- Returns:
- list of attachments class names.
-
getAllAttachmentClassNames
java.util.List<java.lang.String> getAllAttachmentClassNames()
Based on configuration returns all supported attachment class names as opposed togetSupportedAttachmentClassNames()- Returns:
- list of attachments class names.
-
getSupportedAttachmentTypeCodes
java.util.List<java.lang.String> getSupportedAttachmentTypeCodes()
Based on configuration returns supported type codes for current user.- Returns:
- list of type codes.
-
getSupportedAttachmentTypes
java.util.List<ComposedTypeModel> getSupportedAttachmentTypes()
Based on configuration returns supported ComposedTypes for current user.- Returns:
- list of ComposedTypes
-
findCommonAttachmentType
java.util.Optional<ComposedTypeModel> findCommonAttachmentType(java.util.List<ItemModel> attachments)
Finds common attachment type - gets common super type of given items and checks if it can be assigned to one of defined supported typesgetSupportedAttachmentTypeCodes().- Parameters:
attachments- list of items to be added as attachments.- Returns:
- supported attachment type - one of
getSupportedAttachmentTypeCodes().
-
-