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.
|
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,
AlreadyExistsException
user - StorageExceptionAlreadyExistsExceptionio.apiman.manager.api.beans.idm.UserBean getUser(String userId) throws StorageException, DoesNotExistException
userId - StorageExceptionDoesNotExistExceptionvoid updateUser(io.apiman.manager.api.beans.idm.UserBean user)
throws StorageException,
DoesNotExistException
user - StorageExceptionDoesNotExistExceptionio.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 - StorageExceptionvoid createRole(io.apiman.manager.api.beans.idm.RoleBean role)
throws StorageException,
AlreadyExistsException
role - StorageExceptionAlreadyExistsExceptionio.apiman.manager.api.beans.idm.RoleBean getRole(String roleId) throws StorageException, DoesNotExistException
roleId - StorageExceptionDoesNotExistExceptionvoid updateRole(io.apiman.manager.api.beans.idm.RoleBean role)
throws StorageException,
DoesNotExistException
role - StorageExceptionAlreadyExistsExceptionDoesNotExistExceptionvoid deleteRole(io.apiman.manager.api.beans.idm.RoleBean role)
throws StorageException,
DoesNotExistException
role - StorageExceptionDoesNotExistExceptionio.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 - StorageExceptionvoid createMembership(io.apiman.manager.api.beans.idm.RoleMembershipBean membership)
throws StorageException,
AlreadyExistsException
membership - StorageExceptionAlreadyExistsExceptionvoid deleteMembership(String userId, String roleId, String organizationId) throws StorageException, DoesNotExistException
userId - roleId - organizationId - StorageExceptionDoesNotExistExceptionvoid deleteMemberships(String userId, String organizationId) throws StorageException
userId - organizationId - StorageExceptionSet<io.apiman.manager.api.beans.idm.RoleMembershipBean> getUserMemberships(String userId) throws StorageException
userId - StorageExceptionSet<io.apiman.manager.api.beans.idm.RoleMembershipBean> getUserMemberships(String userId, String organizationId) throws StorageException
userId - organizationId - StorageExceptionSet<io.apiman.manager.api.beans.idm.RoleMembershipBean> getOrgMemberships(String organizationId) throws StorageException
organizationId - StorageExceptionSet<io.apiman.manager.api.beans.idm.PermissionBean> getPermissions(String userId) throws StorageException
userId - StorageExceptionCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.