Class DefaultWorkflowsTypeFacade
java.lang.Object
com.hybris.backoffice.workflow.impl.DefaultWorkflowsTypeFacade
- All Implemented Interfaces:
WorkflowsTypeFacade
Default implementation which returns supported attachment types based on
attachmentTypeCodes-
Constructor Summary
Constructors -
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 typesWorkflowsTypeFacade.getSupportedAttachmentTypeCodes().Based on configuration returns all supported attachment class names as opposed toWorkflowsTypeFacade.getSupportedAttachmentClassNames()com.hybris.cockpitng.util.type.BackofficeTypeUtilsprotected Optional<ComposedTypeModel>getClosestSupportedType(String attachmentTypeCode) com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacadeBased 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.com.hybris.cockpitng.dataaccess.facades.type.TypeFacadevoidsetAttachmentTypeCodes(Set<String> attachmentTypeCodes) voidsetBackofficeTypeUtils(com.hybris.cockpitng.util.type.BackofficeTypeUtils backofficeTypeUtils) voidsetPermissionFacade(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade) voidsetTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade) voidsetTypeService(TypeService typeService) voidsetUiBlacklistedAttachmentTypeCodes(Set<String> uiBlacklistedAttachmentTypeCodes) toClassNames(Set<String> typeCodes)
-
Constructor Details
-
DefaultWorkflowsTypeFacade
public DefaultWorkflowsTypeFacade()
-
-
Method Details
-
findCommonAttachmentType
Description copied from interface:WorkflowsTypeFacadeFinds common attachment type - gets common super type of given items and checks if it can be assigned to one of defined supported typesWorkflowsTypeFacade.getSupportedAttachmentTypeCodes().- Specified by:
findCommonAttachmentTypein interfaceWorkflowsTypeFacade- Parameters:
attachments- list of items to be added as attachments.- Returns:
- supported attachment type - one of
WorkflowsTypeFacade.getSupportedAttachmentTypeCodes().
-
getClosestSupportedType
-
getSupportedAttachmentClassNames
Description copied from interface:WorkflowsTypeFacadeBased on configuration returns supported attachment classes names for current user.- Specified by:
getSupportedAttachmentClassNamesin interfaceWorkflowsTypeFacade- Returns:
- list of attachments class names.
-
getAllAttachmentClassNames
Description copied from interface:WorkflowsTypeFacadeBased on configuration returns all supported attachment class names as opposed toWorkflowsTypeFacade.getSupportedAttachmentClassNames()- Specified by:
getAllAttachmentClassNamesin interfaceWorkflowsTypeFacade- Returns:
- list of attachments class names.
-
toClassNames
-
getSupportedAttachmentTypeCodes
Description copied from interface:WorkflowsTypeFacadeBased on configuration returns supported type codes for current user.- Specified by:
getSupportedAttachmentTypeCodesin interfaceWorkflowsTypeFacade- Returns:
- list of type codes.
-
getSupportedAttachmentTypes
Description copied from interface:WorkflowsTypeFacadeBased 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.- Specified by:
getSupportedAttachmentTypesin interfaceWorkflowsTypeFacade- Returns:
- list of ComposedTypes
-
getAttachmentTypeCodesForUser
-
getAttachmentTypeCodes
-
setAttachmentTypeCodes
-
getTypeFacade
public com.hybris.cockpitng.dataaccess.facades.type.TypeFacade getTypeFacade() -
setTypeFacade
public void setTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade) -
getTypeService
-
setTypeService
-
getBackofficeTypeUtils
public com.hybris.cockpitng.util.type.BackofficeTypeUtils getBackofficeTypeUtils() -
setBackofficeTypeUtils
public void setBackofficeTypeUtils(com.hybris.cockpitng.util.type.BackofficeTypeUtils backofficeTypeUtils) -
getPermissionFacade
public com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade getPermissionFacade() -
setPermissionFacade
public void setPermissionFacade(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade) -
getUiBlacklistedAttachmentTypeCodes
-
setUiBlacklistedAttachmentTypeCodes
-