public interface IIdmStorage
IStorage interface so that roles can be stored using a different
strategy. An obvious example is that the users and roles may be stored in an
LDAP directory while the core apiman data is stored in a database.
Depending on implementation, various methods in this interface may not
be supported. For example, if the IDM system being used is read only
(perhaps because it is backed by some centrally managed LDAP system).| Modifier and Type | Method and Description |
|---|---|
void |
createMembership(io.apiman.manager.api.beans.idm.RoleMembershipBean membership)
Grants membership into a role for a user.
|
void |
createRole(io.apiman.manager.api.beans.idm.RoleBean role)
Creates a new role in the role storage system.
|
void |
createUser(io.apiman.manager.api.beans.idm.UserBean user)
Creates a user in the IDM system.
|
void |
deleteMembership(String userId,
String roleId,
String organizationId)
Deletes a single membership.
|
void |
deleteMemberships(String userId,
String organizationId)
Deletes all role memberships for a user in a given organization.
|
void |
deleteRole(io.apiman.manager.api.beans.idm.RoleBean role)
Deletes a role from the system.
|
io.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.idm.RoleBean> |
findRoles(io.apiman.manager.api.beans.search.SearchCriteriaBean criteria)
Returns a list of users that match the given search criteria.
|
io.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.idm.UserBean> |
findUsers(io.apiman.manager.api.beans.search.SearchCriteriaBean criteria)
Returns a list of users that match the given search criteria.
|
io.apiman.manager.api.beans.idm.RoleMembershipBean |
getMembership(String userId,
String roleId,
String organizationId)
Returns a single membership or null if one does not exist.
|
Set<io.apiman.manager.api.beans.idm.RoleMembershipBean> |
getOrgMemberships(String organizationId)
Gets all the memberships configured for a particular organization.
|
Set<io.apiman.manager.api.beans.idm.PermissionBean> |
getPermissions(String userId)
Returns a set of permissions granted to the user due to their role
memberships.
|
io.apiman.manager.api.beans.idm.RoleBean |
getRole(String roleId)
Gets a role by id.
|
io.apiman.manager.api.beans.idm.UserBean |
getUser(String userId)
Gets a user by id.
|
Set<io.apiman.manager.api.beans.idm.RoleMembershipBean> |
getUserMemberships(String userId)
Gets all the user's memberships.
|
Set<io.apiman.manager.api.beans.idm.RoleMembershipBean> |
getUserMemberships(String userId,
String organizationId)
Gets all the user's memberships for the given organization.
|
void |
updateRole(io.apiman.manager.api.beans.idm.RoleBean role)
Updates a single role (typically with new permissions).
|
void |
updateUser(io.apiman.manager.api.beans.idm.UserBean user)
Updates the personal information about a user.
|
void createUser(io.apiman.manager.api.beans.idm.UserBean user)
throws StorageException
user - the userStorageException - if an exception occurs during storage attemptio.apiman.manager.api.beans.idm.UserBean getUser(String userId) throws StorageException
userId - user's idStorageException - if an exception occurs during storage attemptvoid updateUser(io.apiman.manager.api.beans.idm.UserBean user)
throws StorageException
user - the userStorageException - if an exception occurs during storage attemptio.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.idm.UserBean> findUsers(io.apiman.manager.api.beans.search.SearchCriteriaBean criteria)
throws StorageException
criteria - search criteriaStorageException - if an exception occurs during storage attemptvoid createRole(io.apiman.manager.api.beans.idm.RoleBean role)
throws StorageException
role - the roleStorageException - if an exception occurs during storage attemptio.apiman.manager.api.beans.idm.RoleBean getRole(String roleId) throws StorageException
roleId - the role idStorageException - if an exception occurs during storage attemptvoid updateRole(io.apiman.manager.api.beans.idm.RoleBean role)
throws StorageException
role - the roleStorageException - if an exception occurs during storage attemptvoid deleteRole(io.apiman.manager.api.beans.idm.RoleBean role)
throws StorageException
role - the roleStorageException - if an exception occurs during storage attemptio.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.idm.RoleBean> findRoles(io.apiman.manager.api.beans.search.SearchCriteriaBean criteria)
throws StorageException
criteria - search criteriaStorageException - if an exception occurs during storage attemptvoid createMembership(io.apiman.manager.api.beans.idm.RoleMembershipBean membership)
throws StorageException
membership - the membershipStorageException - if an exception occurs during storage attemptio.apiman.manager.api.beans.idm.RoleMembershipBean getMembership(String userId, String roleId, String organizationId) throws StorageException
userId - the user idroleId - the role idorganizationId - the organization idStorageException - if an exception occurs during storage attemptvoid deleteMembership(String userId, String roleId, String organizationId) throws StorageException
userId - the user's idroleId - the role's idorganizationId - the organization's idStorageException - if an exception occurs during storage attemptvoid deleteMemberships(String userId, String organizationId) throws StorageException
userId - the user's idorganizationId - the organization's idStorageException - if an exception occurs during storage attemptSet<io.apiman.manager.api.beans.idm.RoleMembershipBean> getUserMemberships(String userId) throws StorageException
userId - the user's idStorageException - if an exception occurs during storage attemptSet<io.apiman.manager.api.beans.idm.RoleMembershipBean> getUserMemberships(String userId, String organizationId) throws StorageException
userId - the user's idorganizationId - the organization's idStorageException - if an exception occurs during storage attemptSet<io.apiman.manager.api.beans.idm.RoleMembershipBean> getOrgMemberships(String organizationId) throws StorageException
organizationId - the organization's idStorageException - if an exception occurs during storage attemptSet<io.apiman.manager.api.beans.idm.PermissionBean> getPermissions(String userId) throws StorageException
userId - the user's idStorageException - if an exception occurs during storage attemptCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.