Package

Examples of AccessControl$AsClient2


  private static Object toArrayStruct(List<AccessControl> accessControlList) throws S3Exception {
    Array arr=new ArrayImpl();
    String type;
    Struct sct;
    AccessControl ac;
    Iterator<AccessControl> it = accessControlList.iterator();
    while(it.hasNext()){
      ac=it.next();
      arr.appendEL(sct=new StructImpl());
      sct.setEL(KeyConstants._id, ac.getId());
      sct.setEL(PERMISSION, ac.getPermission());
     
      type = AccessControl.toType(ac.getType());
      if("Group".equalsIgnoreCase(type))        
        setGroup(sct,ac);
      else if("CanonicalUser".equalsIgnoreCase(type))
        sct.setEL(DISPLAY_NAME, ac.getDisplayName());
      else
        sct.setEL(KeyConstants._email, ac.getId());
    }
    return arr;
  }
View Full Code Here

TOP

Related Classes of AccessControl$AsClient2

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.