Class AclEndpoint
java.lang.Object
org.opencastproject.adminui.endpoint.AclEndpoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.security.api.UserDirectoryServiceThe global user directory service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.service.component.ComponentContext cc) OSGi callback.javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsedeleteAcl(long aclId) com.google.gson.JsonObjectfull(org.opencastproject.authorization.xacml.manager.api.ManagedAcl acl) com.google.gson.JsonObjectfull(org.opencastproject.security.api.AccessControlEntry ace) com.google.gson.JsonObjectfull(org.opencastproject.security.api.AccessControlList acl) generateJsonUser(org.opencastproject.security.api.User user) javax.ws.rs.core.ResponsegetAcl(long aclId) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetAclsAsJson(String filter, String sort, int offset, int limit) javax.ws.rs.core.ResponsevoidsetAclServiceFactory(org.opencastproject.authorization.xacml.manager.api.AclServiceFactory aclServiceFactory) voidsetRoleDirectoryService(org.opencastproject.security.api.RoleDirectoryService roleDirectoryService) OSGi callback for role directory service.voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) voidsetUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) javax.ws.rs.core.Response
-
Field Details
-
userDirectoryService
protected org.opencastproject.security.api.UserDirectoryService userDirectoryServiceThe global user directory service
-
-
Constructor Details
-
AclEndpoint
public AclEndpoint()
-
-
Method Details
-
setAclServiceFactory
public void setAclServiceFactory(org.opencastproject.authorization.xacml.manager.api.AclServiceFactory aclServiceFactory) - Parameters:
aclServiceFactory- the aclServiceFactory to set
-
setRoleDirectoryService
public void setRoleDirectoryService(org.opencastproject.security.api.RoleDirectoryService roleDirectoryService) OSGi callback for role directory service. -
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) - Parameters:
securityService- the securityService to set
-
activate
protected void activate(org.osgi.service.component.ComponentContext cc) OSGi callback. -
setUserDirectoryService
public void setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) -
getAclsAsJson
@GET @Path("acls.json") @Produces("application/json") public javax.ws.rs.core.Response getAclsAsJson(@QueryParam("filter") String filter, @QueryParam("sort") String sort, @QueryParam("offset") int offset, @QueryParam("limit") int limit) throws IOException - Throws:
IOException
-
getRoles
-
deleteAcl
@DELETE @Path("{id}") public javax.ws.rs.core.Response deleteAcl(@PathParam("id") long aclId) throws org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-
createAcl
-
updateAcl
@PUT @Path("{id}") @Produces("application/json") public javax.ws.rs.core.Response updateAcl(@PathParam("id") long aclId, @FormParam("name") String name, @FormParam("acl") String accessControlList) throws org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-
getAcl
@GET @Path("{id}") @Produces("application/json") public javax.ws.rs.core.Response getAcl(@PathParam("id") long aclId) throws org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-
getAcl
@GET @Path("acl/{name}") @Produces("application/json") public javax.ws.rs.core.Response getAcl(@PathParam("name") String aclName) throws org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-
full
public com.google.gson.JsonObject full(org.opencastproject.security.api.AccessControlEntry ace) -
full
public com.google.gson.JsonObject full(org.opencastproject.security.api.AccessControlList acl) -
full
public com.google.gson.JsonObject full(org.opencastproject.authorization.xacml.manager.api.ManagedAcl acl) -
generateJsonUser
-