Class StorageUtils

java.lang.Object
com.bonitasoft.processbuilder.extension.StorageUtils

public final class StorageUtils extends Object
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 Details

    • isBonitaStorage

      public static boolean isBonitaStorage(String storageKey)
      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:
      true if the storage is defined to use the Bonita DB, false otherwise.
    • isLocalStorage

      public static boolean isLocalStorage(String storageKey)
      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:
      true if the storage is defined to use the local server, false otherwise.