Class ContentStorageSupport

java.lang.Object
io.jmix.bpmflowui.util.ContentStorageSupport

@Component("bpm_ContentStorageSupport") public class ContentStorageSupport extends Object
Utility class for ContentStorage.
  • Field Details

  • Constructor Details

  • Method Details

    • getProcessDraftsByName

      public List<ContentStorage> getProcessDraftsByName(@Nullable String name)
      Returns a list of drafts with the specified name.
      Parameters:
      name - draft name
      Returns:
      list of drafts with the specified name
    • getProcessDraftsByNameLike

      public List<ContentStorage> getProcessDraftsByNameLike(@Nullable String name)
      Returns a list of drafts with names that contain the specified substring.
      Parameters:
      name - draft name substring
      Returns:
      list of drafts
    • isProcessDraftNameDuplicate

      public boolean isProcessDraftNameDuplicate(ContentStorage contentStorage)
      Checks whether there are other process drafts with the same name.
      Parameters:
      contentStorage - draft to check
      Returns:
      true if the content storage has name duplicates
    • generateCopyNameForProcessDraft

      public String generateCopyNameForProcessDraft(String name)
      Generates a copy name for a process draft based on the provided name. It also checks for potential duplicates from a database.
      Parameters:
      name - the name for which to generate a copy name
      Returns:
      generated copy name