Uses of Class
org.opencastproject.util.data.Either
Packages that use Either
Package
Description
This package and all of its sub-packages contain the default implementation of the asset manager API
as defined in
org.opencastproject.assetmanager.api.Utility classes for dealing with media packages, collections, URLs, files, and streams.
-
Uses of Either in org.opencastproject.assetmanager.impl
Methods in org.opencastproject.assetmanager.impl that return EitherMethods in org.opencastproject.assetmanager.impl that return types with arguments of type EitherModifier and TypeMethodDescriptionstatic <A> com.entwinemedia.fn.Fn<Protected<A>, Either<UnauthorizedException, A>> Protected.getFn()Constructors in org.opencastproject.assetmanager.impl with parameters of type Either -
Uses of Either in org.opencastproject.security.api
Methods in org.opencastproject.security.api that return EitherModifier and TypeMethodDescriptionstatic Either<AccessControlEntry, List<AccessControlEntry>> Create a list of access control entries for a given role.static Either<AccessControlEntry, List<AccessControlEntry>> Create a single access control entry.Methods in org.opencastproject.security.api with parameters of type EitherModifier and TypeMethodDescriptionstatic AccessControlListAccessControlUtil.acl(Either<AccessControlEntry, List<AccessControlEntry>>... entries) Constructor function for ACLs. -
Uses of Either in org.opencastproject.util
Methods in org.opencastproject.util that return EitherModifier and TypeMethodDescriptionNamespace aware parsing ofxml.XmlUtil.parseNs(InputSource src) Namespace aware parsing ofsrc.HttpUtil.waitForResource(TrustedHttpClient http, URI resourceUri, int expectedStatus, long timeout, long pollingInterval) Wait for a certain status of a resource.IoSupport.withResource(Function0<B> r, Function<Exception, Err> toErr, Function<B, A> f) Handle a closeable resource insidefand ensure thatrgets closed properly.static <A,Err> Either <Err, A> IoSupport.withStream(Function0<InputStream> s, Function<Exception, Err> toErr, Function<InputStream, A> f) Deprecated. -
Uses of Either in org.opencastproject.util.data
Methods in org.opencastproject.util.data that return EitherModifier and TypeMethodDescriptionEither.RightProjection.either()static <A,B> Either <A, B> Either.left(A left) Create a left.static <A,B> Either <A, B> Either.right(B right) Create a right.Methods in org.opencastproject.util.data that return types with arguments of type EitherModifier and TypeMethodDescriptionMethod parameters in org.opencastproject.util.data with type arguments of type Either -
Uses of Either in org.opencastproject.util.data.functions
Methods in org.opencastproject.util.data.functions that return EitherMethods in org.opencastproject.util.data.functions that return types with arguments of type EitherModifier and TypeMethodDescriptionFunctions.either(Function<? super A, ? extends B> f, Function<? super Exception, ? extends C> handler) Create a new function fromfdecorated with an exception handler.Methods in org.opencastproject.util.data.functions with parameters of type EitherMethod parameters in org.opencastproject.util.data.functions with type arguments of type Either
IoSupport.withResource(org.opencastproject.util.data.Function0, org.opencastproject.util.data.Function, org.opencastproject.util.data.Function)instead