| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getCurrentStoreAreaPath(long companyId,
long repositoryId,
java.lang.String... path) |
java.lang.String |
getPath(long companyId) |
java.lang.String |
getPath(long companyId,
long repositoryId,
java.lang.String... path) |
static <E extends java.lang.Exception> |
mergeWithStoreAreas(com.liferay.petra.function.UnsafeSupplier<java.lang.String[],E> unsafeSupplier,
StoreArea... storeAreas) |
java.lang.String |
relocate(java.lang.String name,
StoreArea storeArea) |
static <T extends java.lang.Exception> |
runWithStoreAreas(com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable,
StoreArea... storeAreas) |
static <T,E extends java.lang.Exception> |
tryGetWithStoreAreas(com.liferay.petra.function.UnsafeSupplier<T,E> unsafeSupplier,
java.util.function.Predicate<T> predicate,
T defaultValue,
StoreArea... storeAreas) |
static StoreArea |
tryRunWithStoreAreas(java.util.function.Predicate<StoreArea> predicate,
StoreArea... storeAreas) |
static StoreArea |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StoreArea[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static <T extends java.lang.Throwable> |
withStoreArea(StoreArea storeArea,
com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable) |
static <T,E extends java.lang.Throwable> |
withStoreArea(StoreArea storeArea,
com.liferay.petra.function.UnsafeSupplier<T,E> unsafeSupplier) |
public static final StoreArea DELETED
public static final StoreArea LIVE
public static final StoreArea NEW
public static StoreArea[] values()
for (StoreArea c : StoreArea.values()) System.out.println(c);
public static StoreArea valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static java.lang.String getCurrentStoreAreaPath(long companyId,
long repositoryId,
java.lang.String... path)
public static <E extends java.lang.Exception> java.lang.String[] mergeWithStoreAreas(com.liferay.petra.function.UnsafeSupplier<java.lang.String[],E> unsafeSupplier,
StoreArea... storeAreas)
throws E extends java.lang.Exception
E extends java.lang.Exceptionpublic static <T extends java.lang.Exception> void runWithStoreAreas(com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable,
StoreArea... storeAreas)
throws T extends java.lang.Exception
T extends java.lang.Exceptionpublic static <T,E extends java.lang.Exception> T tryGetWithStoreAreas(com.liferay.petra.function.UnsafeSupplier<T,E> unsafeSupplier,
java.util.function.Predicate<T> predicate,
T defaultValue,
StoreArea... storeAreas)
throws E extends java.lang.Exception
E extends java.lang.Exceptionpublic static StoreArea tryRunWithStoreAreas(java.util.function.Predicate<StoreArea> predicate, StoreArea... storeAreas)
public static <T extends java.lang.Throwable> void withStoreArea(StoreArea storeArea, com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable) throws T extends java.lang.Throwable
T extends java.lang.Throwablepublic static <T,E extends java.lang.Throwable> T withStoreArea(StoreArea storeArea, com.liferay.petra.function.UnsafeSupplier<T,E> unsafeSupplier) throws E extends java.lang.Throwable
E extends java.lang.Throwablepublic java.lang.String getPath(long companyId)
public java.lang.String getPath(long companyId,
long repositoryId,
java.lang.String... path)
public java.lang.String relocate(java.lang.String name,
StoreArea storeArea)