Package com.hybris.backoffice.workflow
Interface WorkflowsTypeFacade
- All Known Implementing Classes:
DefaultWorkflowsTypeFacade
public interface WorkflowsTypeFacade
Defines available attachments types and allows operation on attachments.
-
Method Summary
Modifier and TypeMethodDescriptionfindCommonAttachmentType(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().Based on configuration returns all supported attachment class names as opposed togetSupportedAttachmentClassNames()Based on configuration returns supported attachment classes names for current user.Based on configuration returns supported type codes for current user.Based on configuration returns supported ComposedTypes for current user, but excluding blacklisted ComposedTypes for UI.
-
Method Details
-
getSupportedAttachmentClassNames
Based on configuration returns supported attachment classes names for current user.- Returns:
- list of attachments class names.
-
getAllAttachmentClassNames
Based on configuration returns all supported attachment class names as opposed togetSupportedAttachmentClassNames()- Returns:
- list of attachments class names.
-
getSupportedAttachmentTypeCodes
Based on configuration returns supported type codes for current user.- Returns:
- list of type codes.
-
getSupportedAttachmentTypes
List<ComposedTypeModel> getSupportedAttachmentTypes()Based on configuration returns supported ComposedTypes for current user, but excluding blacklisted ComposedTypes for UI. (e.g. Audit Report Data can be added as a attachment in automated process, but it shouldn't be able to add from UI.- Returns:
- list of ComposedTypes
-
findCommonAttachmentType
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().
-