Package io.jmix.bpmflowui.util
Class ContentStorageSupport
java.lang.Object
io.jmix.bpmflowui.util.ContentStorageSupport
Utility class for
ContentStorage.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContentStorageSupport(DataManager dataManager, CopyNameSupport copyNameSupport) -
Method Summary
Modifier and TypeMethodDescriptionGenerates a copy name for a process draft based on the provided name.getProcessDraftsByName(String name) Returns a list of drafts with the specified name.Returns a list of drafts with names that contain the specified substring.booleanisProcessDraftNameDuplicate(ContentStorage contentStorage) Checks whether there are other process drafts with the same name.
-
Field Details
-
dataManager
-
copyNameSupport
-
-
Constructor Details
-
ContentStorageSupport
-
-
Method Details
-
getProcessDraftsByName
Returns a list of drafts with the specified name.- Parameters:
name- draft name- Returns:
- list of drafts with the specified name
-
getProcessDraftsByNameLike
Returns a list of drafts with names that contain the specified substring.- Parameters:
name- draft name substring- Returns:
- list of drafts
-
isProcessDraftNameDuplicate
Checks whether there are other process drafts with the same name.- Parameters:
contentStorage- draft to check- Returns:
trueif the content storage has name duplicates
-
generateCopyNameForProcessDraft
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
-