Class Protected<A>
java.lang.Object
org.opencastproject.assetmanager.impl.Protected<A>
A protected resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.util.data.Either<org.opencastproject.security.api.UnauthorizedException, A> get()static <A> com.entwinemedia.fn.Fn<Protected<A>, org.opencastproject.util.data.Either<org.opencastproject.security.api.UnauthorizedException, A>> getFn()Throws an exception if _not_ granted.org.opencastproject.security.api.UnauthorizedExceptionstatic <A> Protected<A> granted(A a) booleanbooleanstatic <A> Protected<A> rejected(org.opencastproject.security.api.UnauthorizedException e)
-
Constructor Details
-
Protected
public Protected(org.opencastproject.util.data.Either<org.opencastproject.security.api.UnauthorizedException, A> wrapped)
-
-
Method Details
-
granted
-
rejected
-
get
public org.opencastproject.util.data.Either<org.opencastproject.security.api.UnauthorizedException,A> get() -
isGranted
public boolean isGranted() -
getGranted
Throws an exception if _not_ granted. -
isRejected
public boolean isRejected() -
getRejected
public org.opencastproject.security.api.UnauthorizedException getRejected() -
getGrantedOpt
-
getGrantedOptFn
-
getFn
public static <A> com.entwinemedia.fn.Fn<Protected<A>,org.opencastproject.util.data.Either<org.opencastproject.security.api.UnauthorizedException, getFn()A>>
-