Examples of grantRoles()


Examples of com.aerospike.client.command.AdminCommand.grantRoles()

   * @param roles          role names.  Valid roles are listed in Role.cs
   * @throws AerospikeException  if command fails
   */
  public void GrantRoles(AdminPolicy policy, String user, List<String> roles) throws AerospikeException {
    AdminCommand command = new AdminCommand();
    command.grantRoles(cluster, policy, user, roles);
  }

  /**
   * Remove roles from user's list of roles.
   *
 
View Full Code Here

Examples of com.aerospike.client.command.AdminCommand.grantRoles()

   * @param roles          role names.  Valid roles are listed in Role.cs
   * @throws AerospikeException  if command fails
   */
  public void GrantRoles(AdminPolicy policy, String user, List<String> roles) throws AerospikeException {
    AdminCommand command = new AdminCommand();
    command.grantRoles(cluster, policy, user, roles);
  }

  /**
   * Remove roles from user's list of roles.
   *
 
View Full Code Here

Examples of org.jahia.services.content.JCRNodeWrapper.grantRoles()

                        String principal = ace.substring(0, colonIndex);
                        if (principal.equals("g:guest")) {
                            principal = "u:guest";
                        }
                        if (!grantedRoles.isEmpty()) {
                            node.grantRoles(principal, grantedRoles);
                        }
                        if (!removedRoles.isEmpty()) {
                            node.denyRoles(principal, removedRoles);
                        }
                    }
View Full Code Here

Examples of org.jahia.services.content.JCRNodeWrapper.grantRoles()

                        } else {
                            removedRoles.addAll(LegacyImportHandler.WRITE_ROLES);
                        }

                        if (!grantedRoles.isEmpty()) {
                            f.grantRoles(principal, grantedRoles);
                        }
                        if (!removedRoles.isEmpty()) {
                            f.denyRoles(principal, removedRoles);
                        }
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.