Class AbstractAclServiceRestEndpoint

java.lang.Object
org.opencastproject.authorization.xacml.manager.endpoint.AbstractAclServiceRestEndpoint
Direct Known Subclasses:
OsgiAclServiceRestEndpoint

public abstract class AbstractAclServiceRestEndpoint extends Object
  • Constructor Details

    • AbstractAclServiceRestEndpoint

      public AbstractAclServiceRestEndpoint()
  • Method Details

    • getAclServiceFactory

      protected abstract AclServiceFactory getAclServiceFactory()
    • getSecurityService

      protected abstract SecurityService getSecurityService()
    • getAssetManager

      protected abstract AssetManager getAssetManager()
    • getAuthorizationService

      protected abstract AuthorizationService getAuthorizationService()
    • getAcl

      @GET @Path("/acl/{aclId}") @Produces("application/json") public String getAcl(@PathParam("aclId") long aclId) throws NotFoundException
      Throws:
      NotFoundException
    • extendAcl

      @POST @Path("/acl/extend") @Produces("application/json") public String extendAcl(@FormParam("acl") String accessControlList, @FormParam("action") String action, @FormParam("role") String role, @FormParam("allow") boolean allow)
    • reduceAcl

      @POST @Path("/acl/reduce") @Produces("application/json") public String reduceAcl(@FormParam("acl") String accessControlList, @FormParam("action") String action, @FormParam("role") String role)
    • getAcls

      @GET @Path("/acl/acls.json") @Produces("application/json") public String getAcls()
    • createAcl

      @POST @Path("/acl") @Produces("application/json") public String createAcl(@FormParam("name") String name, @FormParam("acl") String accessControlList)
    • updateAcl

      @PUT @Path("/acl/{aclId}") @Produces("application/json") public String updateAcl(@PathParam("aclId") long aclId, @FormParam("name") String name, @FormParam("acl") String accessControlList) throws NotFoundException
      Throws:
      NotFoundException
    • deleteAcl

      @DELETE @Path("/acl/{aclId}") public javax.ws.rs.core.Response deleteAcl(@PathParam("aclId") long aclId) throws NotFoundException
      Throws:
      NotFoundException
    • applyAclToEpisode

      @POST @Path("/apply/episode/{episodeId}") public javax.ws.rs.core.Response applyAclToEpisode(@PathParam("episodeId") String episodeId, @FormParam("aclId") Long aclId)