Examples of removeRole()


Examples of org.apache.catalina.UserDatabase.removeRole()

        if (role == null) {
            return;
        }
        try {
            MBeanUtils.destroyMBean(role);
            database.removeRole(role);
        } catch (Exception e) {
            throw new IllegalArgumentException("Exception destroying role " +
                                               role + " MBean: " + e);
        }
View Full Code Here

Examples of org.apache.catalina.UserDatabase.removeRole()

        if (role == null) {
            return;
        }
        try {
            MBeanUtils.destroyMBean(role);
            database.removeRole(role);
        } catch (Exception e) {
            throw new IllegalArgumentException("Exception destroying role " +
                                               role + " MBean: " + e);
        }
View Full Code Here

Examples of org.apache.felix.useradmin.RoleRepositoryStore.removeRole()

    public Role removeRole(String roleName) throws Exception {
        // and possibly also from our tracked store...
        RoleRepositoryStore store = getStore();
        if (store != null) {
            return store.removeRole(roleName);
        }

        return null;
    }
View Full Code Here

Examples of org.apache.lenya.ac.ModifiablePolicy.removeRole()

            ModifiablePolicy policy = getPolicy();

            if (operation.equals(ADD)) {
                policy.addRole(accreditable, role, method);
            } else if (operation.equals(DELETE)) {
                policy.removeRole(accreditable, role);
            } else if (operation.equals(UP)) {
                policy.moveRoleUp(accreditable, role);
            } else if (operation.equals(DOWN)) {
                policy.moveRoleDown(accreditable, role);
            }
View Full Code Here

Examples of org.apache.lenya.ac.impl.DefaultPolicy.removeRole()

            Accreditable accreditable = (Accreditable) item;

            if (operation.equals(ADD)) {
                policy.addRole(accreditable, role);
            } else if (operation.equals(DELETE)) {
                policy.removeRole(accreditable, role);
            }

            policyManager.saveSubtreePolicy(url, policy);

        } catch (Exception e) {
View Full Code Here

Examples of org.apache.lenya.ac.impl.DefaultPolicy.removeRole()

            if (role != null) {
                String url = USER_ADMIN_URL + ((User) accreditable).getId() + ".html";
                DefaultPolicy policy = buildSubtreePolicy(manager, url);
                Credential credential = policy.getCredential(accreditable);
                if (credential != null && credential.contains(role)) {
                    policy.removeRole(accreditable, role);
                }
                saveSubtreePolicy(url, policy);
            }
        }
    }
View Full Code Here

Examples of org.apache.sentry.provider.db.service.model.MSentryGroup.removeRole()

        List<MSentryGroup> groups = Lists.newArrayList();
        for (TSentryGroup tGroup : groupNames) {
          String groupName = tGroup.getGroupName().trim();
          MSentryGroup group = (MSentryGroup) query.execute(groupName);
          if (group != null) {
            group.removeRole(role);
            groups.add(group);
          }
        }
        pm.makePersistentAll(groups);
        CommitContext commit = commitUpdateTransaction(pm);
View Full Code Here

Examples of org.apache.sentry.provider.db.service.model.MSentryPrivilege.removeRole()

          if ((mSelect != null) && (mRole.getPrivileges().contains(mSelect))) {
            mSelect.removeRole(mRole);
            pm.makePersistent(mSelect);
          }
          if ((mInsert != null) && (mRole.getPrivileges().contains(mInsert))) {
            mInsert.removeRole(mRole);
            pm.makePersistent(mInsert);
          }
        } else {
          // If Grant is for Either INSERT/SELECT and ALL already exists..
          // do nothing..
View Full Code Here

Examples of org.apache.sentry.provider.db.service.model.MSentryPrivilege.removeRole()

    if (persistedPriv == null) {
      persistedPriv = convertToMSentryPrivilege(convertToTSentryPrivilege(currentPrivilege));
    }

    if (requestedPrivToRevoke.getAction().equalsIgnoreCase("ALL") || requestedPrivToRevoke.getAction().equalsIgnoreCase("*")) {
      persistedPriv.removeRole(mRole);
      pm.makePersistent(persistedPriv);
    } else if (requestedPrivToRevoke.getAction().equalsIgnoreCase(AccessConstants.SELECT)
        && (!currentPrivilege.getAction().equalsIgnoreCase(AccessConstants.INSERT))) {
      revokeRolePartial(pm, mRole, currentPrivilege, persistedPriv, AccessConstants.INSERT);
    } else if (requestedPrivToRevoke.getAction().equalsIgnoreCase(AccessConstants.INSERT)
View Full Code Here

Examples of org.atomojo.auth.service.db.Group.removeRole()

               } else if (facet.equals("roles")) {
                  if (facetId!=null) {
                     try {
                        UUID id = UUID.fromString(facetId);
                        Role role = db.getRole(id);
                        if (role!=null && group.removeRole(role)) {
                           getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
                        } else {
                           getResponse().setStatus(Status.CLIENT_ERROR_NOT_FOUND);
                        }
                        return null;
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.