code: public void addPermissions(String identity, String[] perm) throws RepositoryException
     {
        for (String p : perm)
        {
           accessList.add(new AccessControlEntry(identity, p));
        }
     }
docs: Adds a set of permission types to a given identity
  @param identity the member identity
  @param perm an array of permission types to add