Examples of revokeRole()


Examples of org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthorizer.revokeRole()

    if(grantOrRevokeRoleDDL.getGrant()){
      authorizer.grantRole(hivePrincipals, roles,
          grantOrRevokeRoleDDL.isGrantOption(), grantorPrinc);
    }
    else{
      authorizer.revokeRole(hivePrincipals, roles,
          grantOrRevokeRoleDDL.isGrantOption(), grantorPrinc);
    }
    return 0;
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthorizer.revokeRole()

    if(grantOrRevokeRoleDDL.getGrant()){
      authorizer.grantRole(hivePrincipals, roles,
          grantOrRevokeRoleDDL.isGrantOption(), grantorPrinc);
    }
    else{
      authorizer.revokeRole(hivePrincipals, roles,
          grantOrRevokeRoleDDL.isGrantOption(), grantorPrinc);
    }
    return 0;
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthorizer.revokeRole()

    boolean grantOption = grantOrRevokeRoleDDL.isGrantOption();
    if (grantOrRevokeRoleDDL.getGrant()) {
      authorizer.grantRole(principals, roles, grantOption, grantorPrinc);
    } else {
      authorizer.revokeRole(principals, roles, grantOption, grantorPrinc);
    }
    return 0;
  }

  private int showGrants(ShowGrantDesc showGrantDesc) throws HiveException {
View Full Code Here

Examples of org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthorizer.revokeRole()

    if(grantOrRevokeRoleDDL.getGrant()){
      authorizer.grantRole(hivePrincipals, roles,
          grantOrRevokeRoleDDL.isGrantOption(), grantorPrinc);
    }
    else{
      authorizer.revokeRole(hivePrincipals, roles,
          grantOrRevokeRoleDDL.isGrantOption(), grantorPrinc);
    }
    return 0;
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthorizer.revokeRole()

    if(grantOrRevokeRoleDDL.getGrant()){
      authorizer.grantRole(hivePrincipals, roles,
          grantOrRevokeRoleDDL.isGrantOption(), grantorPrinc);
    }
    else{
      authorizer.revokeRole(hivePrincipals, roles,
          grantOrRevokeRoleDDL.isGrantOption(), grantorPrinc);
    }
    return 0;
  }
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.revokeRole()

                // grant/revoke admin role if needed
                if (getUser().hasRole("admin") && !getBean().isAdministrator()) {
                   
                    if (!isUserEditingSelf()) {
                        // revoke role
                        mgr.revokeRole("admin", getUser());
                    } else {
                        addError("userAdmin.cantChangeOwnRole");
                    }
                   
                } else if(!getUser().hasRole("admin") && getBean().isAdministrator()) {
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.revokeRole()

        assertEquals(2, user.getRoles().size());
        assertTrue(user.hasRole("editor"));
        assertTrue(user.hasRole("admin"));
       
        // remove role
        mgr.revokeRole("admin",user);
        mgr.saveUser(user);
        TestUtils.endSession(true);
       
        // check that role was removed
        user = null;
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.revokeRole()

                // grant/revoke admin role if needed
                if (hasAdmin && !getBean().isAdministrator()) {
                   
                    if (!isUserEditingSelf()) {
                        // revoke role
                        mgr.revokeRole("admin", getUser());
                    } else {
                        addError("userAdmin.cantChangeOwnRole");
                    }
                   
                } else if(!hasAdmin && getBean().isAdministrator()) {
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.