Enum Class StoreArea

Object
Enum<StoreArea>
com.liferay.document.library.kernel.store.StoreArea
All Implemented Interfaces:
Serializable, Comparable<StoreArea>, Constable

public enum StoreArea extends Enum<StoreArea>
Author:
Adolfo Pérez
  • Enum Constant Details

  • Method Details

    • values

      public static StoreArea[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StoreArea valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCurrentStoreAreaPath

      public static String getCurrentStoreAreaPath(long companyId, long repositoryId, String... path)
    • mergeWithStoreAreas

      public static <E extends Exception> String[] mergeWithStoreAreas(com.liferay.petra.function.UnsafeSupplier<String[],E> unsafeSupplier, StoreArea... storeAreas) throws E
      Throws:
      E extends Exception
    • runWithStoreAreas

      public static <T extends Exception> void runWithStoreAreas(com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable, StoreArea... storeAreas) throws T
      Throws:
      T extends Exception
    • tryGetWithStoreAreas

      public static <T, E extends Exception> T tryGetWithStoreAreas(com.liferay.petra.function.UnsafeSupplier<T,E> unsafeSupplier, Predicate<T> predicate, T defaultValue, StoreArea... storeAreas) throws E
      Throws:
      E extends Exception
    • tryRunWithStoreAreas

      public static StoreArea tryRunWithStoreAreas(Predicate<StoreArea> predicate, StoreArea... storeAreas)
    • withStoreArea

      public static <T extends Throwable> void withStoreArea(StoreArea storeArea, com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable) throws T
      Throws:
      T extends Throwable
    • withStoreArea

      public static <T, E extends Throwable> T withStoreArea(StoreArea storeArea, com.liferay.petra.function.UnsafeSupplier<T,E> unsafeSupplier) throws E
      Throws:
      E extends Throwable
    • getPath

      public String getPath(long companyId)
    • getPath

      public String getPath(long companyId, long repositoryId, String... path)
    • relocate

      public String relocate(String name, StoreArea storeArea)