public synchronized void revoke()

in memory/src/java/org/apache/fulcrum/security/memory/dynamic/MemoryModelManagerImpl.java [148:169]


	public synchronized void revoke(Group group, Role role) throws DataBackendException, UnknownEntityException {
		boolean groupExists = false;
		boolean roleExists = false;
		try {
			groupExists = getGroupManager().checkExists(group);
			roleExists = getRoleManager().checkExists(role);
			if (groupExists && roleExists) {
				((DynamicGroup) group).removeRole(role);
				((DynamicRole) role).removeGroup(group);
				return;
			}
		} catch (Exception e) {
			throw new DataBackendException("revoke(Group,Role) failed", e);
		}

		if (!groupExists) {
			throw new UnknownEntityException("Unknown group '" + group.getName() + "'");
		}
		if (!roleExists) {
			throw new UnknownEntityException("Unknown role '" + role.getName() + "'");
		}
	}