Uses of Interface
org.nuxeo.common.function.ThrowableSupplier
-
Uses of ThrowableSupplier in org.nuxeo.common.function
Modifier and TypeMethodDescriptionstatic <E extends Throwable>
ThrowableSupplier<Void,E> ThrowableRunnable.asThrowableSupplier
(ThrowableRunnable<E> throwableRunnable) default ThrowableSupplier<Void,
E> ThrowableRunnable.toThrowableSupplier()
Modifier and TypeMethodDescriptionThrowableSupplier.asSupplier
(ThrowableSupplier<T, E> throwableSupplier) -
Uses of ThrowableSupplier in org.nuxeo.runtime.api
Modifier and TypeMethodDescriptionstatic <T,
E extends Throwable>
TFramework.doPrivilegedThrowing
(ThrowableSupplier<T, E> supplier) Calls the givenThrowableSupplier
while logged in as a system user and returns its result.protected static <T,
E extends Throwable>
TFramework.loginAndDo
(ThrowableSupplier<NuxeoLoginContext, LoginException> authSupplier, ThrowableSupplier<T, E> supplier) Logs in the Nuxeo platform using the givenauthSupplier
, then gets the givensupplier
before logging out.