Modifier and Type | Method and Description |
---|---|
static String |
getCurrentStoreAreaPath(long companyId,
long repositoryId,
String... path) |
String |
getPath(long companyId) |
String |
getPath(long companyId,
long repositoryId,
String... path) |
static <E extends Exception> |
mergeWithStoreAreas(com.liferay.petra.function.UnsafeSupplier<String[],E> unsafeSupplier,
StoreArea... storeAreas) |
String |
relocate(String name,
StoreArea storeArea) |
static <T extends Exception> |
runWithStoreAreas(com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable,
StoreArea... storeAreas) |
static <T,E extends Exception> |
tryGetWithStoreAreas(com.liferay.petra.function.UnsafeSupplier<T,E> unsafeSupplier,
Predicate<T> predicate,
T defaultValue,
StoreArea... storeAreas) |
static StoreArea |
tryRunWithStoreAreas(Predicate<StoreArea> predicate,
StoreArea... storeAreas) |
static StoreArea |
valueOf(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 Throwable> |
withStoreArea(StoreArea storeArea,
com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable) |
static <T,E extends 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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String getCurrentStoreAreaPath(long companyId, long repositoryId, String... path)
public static <E extends Exception> String[] mergeWithStoreAreas(com.liferay.petra.function.UnsafeSupplier<String[],E> unsafeSupplier, StoreArea... storeAreas) throws E extends Exception
E extends Exception
public static <T extends Exception> void runWithStoreAreas(com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable, StoreArea... storeAreas) throws T extends Exception
T extends Exception
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 extends Exception
E extends Exception
public static StoreArea tryRunWithStoreAreas(Predicate<StoreArea> predicate, StoreArea... storeAreas)
public static <T extends Throwable> void withStoreArea(StoreArea storeArea, com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable) throws T extends Throwable
T extends Throwable
public static <T,E extends Throwable> T withStoreArea(StoreArea storeArea, com.liferay.petra.function.UnsafeSupplier<T,E> unsafeSupplier) throws E extends Throwable
E extends Throwable
public String getPath(long companyId)
public String getPath(long companyId, long repositoryId, String... path)
public String relocate(String name, StoreArea storeArea)