public interface AuthorizationService
| Modifier and Type | Method and Description |
|---|---|
Tuple<AccessControlList,AclScope> |
getAcl(MediaPackage mp,
AclScope scope)
Gets the access control list for a given scope associated with the given media package, as specified by its XACML
attachments.
|
AccessControlList |
getAclFromInputStream(InputStream in)
Gets the active permissions as specified by the given XACML.
|
Tuple<AccessControlList,AclScope> |
getActiveAcl(MediaPackage mp)
Gets the active access control list associated with the given media package, as specified by its XACML
attachments.
|
boolean |
hasPermission(MediaPackage mp,
String action)
Determines whether the current user can take the specified action on the media package.
|
MediaPackage |
removeAcl(MediaPackage mp,
AclScope scope)
Remove the XACML of the given scope.
|
Tuple<MediaPackage,Attachment> |
setAcl(MediaPackage mp,
AclScope scope,
AccessControlList acl)
Attaches the provided policies to a media package as a XACML attachment, replacing any previous policy element of
the same scope.
|
boolean hasPermission(MediaPackage mp, String action)
mp - the media packageaction - the action (e.g. read, modify, delete)Tuple<AccessControlList,AclScope> getActiveAcl(MediaPackage mp)
getAcl(MediaPackage, AclScope) with scope set to
AclScope.Series.mp - the media packageAccessControlList getAclFromInputStream(InputStream in) throws IOException
in - the XACML attachment used to determine a set of permissions and explicit denialsIOExceptionTuple<AccessControlList,AclScope> getAcl(MediaPackage mp, AclScope scope)
AclScope.EpisodeAclScope.Episode or
AclScope.Seriesmp - the media packagescope - the acl scopeTuple<MediaPackage,Attachment> setAcl(MediaPackage mp, AclScope scope, AccessControlList acl) throws MediaPackageException
mp - the media packagescope - scope of the ACLacl - the tuples of roles to actionsMediaPackageExceptionMediaPackage removeAcl(MediaPackage mp, AclScope scope)
mp - the media packagescope - scope of the ACLCopyright © 2009–2021 Opencast Project. All rights reserved.