Class AclEndpoint

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

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

    • AclEndpoint

      public AclEndpoint()
  • Method Details

    • setAclServiceFactory

      public void setAclServiceFactory(AclServiceFactory aclServiceFactory)
      Parameters:
      aclServiceFactory - the aclServiceFactory to set
    • setRoleDirectoryService

      public void setRoleDirectoryService(RoleDirectoryService roleDirectoryService)
      OSGi callback for role directory service.
    • setSecurityService

      public void setSecurityService(SecurityService securityService)
      Parameters:
      securityService - the securityService to set
    • activate

      protected void activate(org.osgi.service.component.ComponentContext cc)
      OSGi callback.
    • 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 NotFoundException
      Throws:
      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 NotFoundException
      Throws:
      NotFoundException
    • getAcl

      @GET @Path("{id}") @Produces("application/json") public javax.ws.rs.core.Response getAcl(@PathParam("id") long aclId) throws NotFoundException
      Throws:
      NotFoundException
    • full

      public com.entwinemedia.fn.data.json.JObject full(AccessControlEntry ace)
    • full

      public com.entwinemedia.fn.data.json.JObject full(AccessControlList acl)
    • full

      public com.entwinemedia.fn.data.json.JObject full(ManagedAcl acl)