use of org.osgi.service.useradmin.Role in project aries by apache.
the class UserAdmin method removeProperty.
/**
* @see org.osgi.jmx.service.useradmin.UserAdminMBean#removeProperty(java.lang.String, java.lang.String)
*/
public void removeProperty(String key, String rolename) throws IOException {
if (rolename == null) {
throw new IOException("Role name cannot be null");
}
Role role = userAdmin.getRole(rolename);
if (role == null) {
throw new IOException("Operation fails role with provided rolename = [" + rolename + "] doesn't exist");
}
role.getProperties().remove(key);
}
Aggregations