Class AclEndpoint

java.lang.Object
org.opencastproject.adminui.endpoint.AclEndpoint

@Path("/admin-ng/acl") public class AclEndpoint extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.opencastproject.security.api.UserDirectoryService
    The global user directory service
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    activate(org.osgi.service.component.ComponentContext cc)
    OSGi callback.
    javax.ws.rs.core.Response
    createAcl(String name, String accessControlList)
     
    javax.ws.rs.core.Response
    deleteAcl(long aclId)
     
    com.google.gson.JsonObject
    full(org.opencastproject.authorization.xacml.manager.api.ManagedAcl acl)
     
    com.google.gson.JsonObject
    full(org.opencastproject.security.api.AccessControlEntry ace)
     
    com.google.gson.JsonObject
    full(org.opencastproject.security.api.AccessControlList acl)
     
    generateJsonUser(org.opencastproject.security.api.User user)
     
    javax.ws.rs.core.Response
    getAcl(long aclId)
     
    javax.ws.rs.core.Response
    getAcl(String aclName)
     
    javax.ws.rs.core.Response
    getAclsAsJson(String filter, String sort, int offset, int limit)
     
    javax.ws.rs.core.Response
    getRoles(String query, String target, int offset, int limit)
     
    void
    setAclServiceFactory(org.opencastproject.authorization.xacml.manager.api.AclServiceFactory aclServiceFactory)
     
    void
    setRoleDirectoryService(org.opencastproject.security.api.RoleDirectoryService roleDirectoryService)
    OSGi callback for role directory service.
    void
    setSecurityService(org.opencastproject.security.api.SecurityService securityService)
     
    void
    setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService)
     
    javax.ws.rs.core.Response
    updateAcl(long aclId, String name, String accessControlList)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • userDirectoryService

      protected org.opencastproject.security.api.UserDirectoryService userDirectoryService
      The 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

      @GET @Path("roles.json") @Produces("application/json") public javax.ws.rs.core.Response getRoles(@QueryParam("query") String query, @QueryParam("target") String target, @QueryParam("offset") int offset, @QueryParam("limit") int limit)
    • 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

      @POST @Path("") @Produces("application/json") public javax.ws.rs.core.Response createAcl(@FormParam("name") String name, @FormParam("acl") String accessControlList)
    • 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

      public Map<String,Object> generateJsonUser(org.opencastproject.security.api.User user)