Class StorageUtils
java.lang.Object
com.bonitasoft.processbuilder.extension.StorageUtils
Utility methods for handling process storage logic based purely on storage name strings.
This implementation relies directly on the ProcessStorageType enum for comparison logic,
ensuring consistency with the master data keys.
- Since:
- 1.0
- Author:
- Bonitasoft
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBonitaStorage(String storageKey) Checks if the process documents are configured for storage in the Bonita BDM database.static booleanisLocalStorage(String storageKey) Checks if the process documents are configured for storage on the local application server.
-
Method Details
-
isBonitaStorage
Checks if the process documents are configured for storage in the Bonita BDM database. This is true if the storage type key is "Bonita" or "Bonita and delete".- Parameters:
storageKey- The storage key (e.g., "Bonita", "Local and delete").- Returns:
trueif the storage is defined to use the Bonita DB,falseotherwise.
-
isLocalStorage
Checks if the process documents are configured for storage on the local application server. This is true if the storage type key is "Local" or "Local and delete".- Parameters:
storageKey- The storage key (e.g., "Bonita", "Local and delete").- Returns:
trueif the storage is defined to use the local server,falseotherwise.
-