Interface WorkflowsTypeFacade

All Known Implementing Classes:
DefaultWorkflowsTypeFacade

public interface WorkflowsTypeFacade
Defines available attachments types and allows operation on attachments.
  • Method Details

    • getSupportedAttachmentClassNames

      List<String> getSupportedAttachmentClassNames()
      Based on configuration returns supported attachment classes names for current user.
      Returns:
      list of attachments class names.
    • getAllAttachmentClassNames

      List<String> getAllAttachmentClassNames()
      Based on configuration returns all supported attachment class names as opposed to getSupportedAttachmentClassNames()
      Returns:
      list of attachments class names.
    • getSupportedAttachmentTypeCodes

      List<String> 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

      Optional<ComposedTypeModel> findCommonAttachmentType(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 types getSupportedAttachmentTypeCodes().
      Parameters:
      attachments - list of items to be added as attachments.
      Returns:
      supported attachment type - one of getSupportedAttachmentTypeCodes().