Package co.cask.cdap.api.security

Examples of co.cask.cdap.api.security.ACL


   * @param principal the principal to set the ACL for
   * @param entityId the entityId to set the ACL on
   * @param permissions the list of permissions to allow the user access to entityId
   */
  public ACL setAcl(Principal principal, EntityId entityId, Iterable<PermissionType> permissions) {
    ACL acl = new ACL(principal, permissions);
    setAcl(new Key(entityId.getQualifiedId(), principal.getQualifiedId()), acl);
    return acl;
  }
View Full Code Here


   * @return the list of ACLs of ACLs relevant to an entityId, for a user and its groups
   */
  public List<ACL> getAcls(EntityId entity, Iterable<Principal> principals) {
    List<ACL> result = Lists.newArrayList();
    for (Principal principal : principals) {
      ACL acl = readUnderlying(entity, principal);
      if (acl != null) {
        result.add(acl);
      }
    }
    return result;
View Full Code Here

TOP

Related Classes of co.cask.cdap.api.security.ACL

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.