co.cask.cdap.security.authorization
Class ACLHandler
java.lang.Object
co.cask.http.AbstractHttpHandler
co.cask.cdap.security.authorization.ACLHandler
- All Implemented Interfaces:
- co.cask.http.HttpHandler
@Path(value="/v2")
public final class ACLHandler
- extends co.cask.http.AbstractHttpHandler
Exposes the system ACLTable via REST endpoints.
|
Constructor Summary |
ACLHandler(co.cask.cdap.api.dataset.lib.ACLTable aclTable)
|
|
Method Summary |
void |
listByEntity(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String entityTypeString,
String entityIdString)
|
void |
listByEntityAndUser(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String entityTypeString,
String entityIdString,
String userId)
|
void |
setAclForGroup(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String entityTypeString,
String entityIdString,
String groupId)
|
void |
setAclForUser(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String entityTypeString,
String entityIdString,
String userId)
|
| Methods inherited from class co.cask.http.AbstractHttpHandler |
destroy, init, sendInternalRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACLHandler
public ACLHandler(co.cask.cdap.api.dataset.lib.ACLTable aclTable)
listByEntity
@GET
@Path(value="/admin/acls/{entity-type}/{entity-id}")
public void listByEntity(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
@PathParam(value="entity-type")
String entityTypeString,
@PathParam(value="entity-id")
String entityIdString)
listByEntityAndUser
@GET
@Path(value="/admin/acls/{entity-type}/{entity-id}/user/{user-id}")
public void listByEntityAndUser(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
@PathParam(value="entity-type")
String entityTypeString,
@PathParam(value="entity-id")
String entityIdString,
@PathParam(value="user-id")
String userId)
setAclForUser
@PUT
@Path(value="/admin/acls/{entity-type}/{entity-id}/user/{user-id}")
public void setAclForUser(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
@PathParam(value="entity-type")
String entityTypeString,
@PathParam(value="entity-id")
String entityIdString,
@PathParam(value="user-id")
String userId)
setAclForGroup
@PUT
@Path(value="/admin/acls/{entity-type}/{entity-id}/group/{group-id}")
public void setAclForGroup(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
@PathParam(value="entity-type")
String entityTypeString,
@PathParam(value="entity-id")
String entityIdString,
@PathParam(value="group-id")
String groupId)
Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.