@Path(value="/v2")
public final class ACLHandler
extends co.cask.http.AbstractHttpHandler
ACLTable via REST endpoints.| Constructor and Description |
|---|
ACLHandler(co.cask.cdap.api.dataset.lib.ACLTable aclTable) |
| Modifier and Type | Method and Description |
|---|---|
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) |
@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)
@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)
@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)
@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.