public class DbIdentityServiceProvider extends DbReadOnlyIdentityServiceProvider implements WritableIdentityProvider
WritableIdentityProvider implementation backed by a
database. This implementation is used for the built-in user management.
| Constructor and Description |
|---|
DbIdentityServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDefaultAuthorizations(Group group) |
protected void |
createDefaultAuthorizations(UserEntity userEntity) |
protected void |
createDefaultMembershipAuthorizations(String userId,
String groupId) |
void |
createMembership(String userId,
String groupId)
Creates a membership relation between a user and a group.
|
GroupEntity |
createNewGroup(String groupId)
Returns a new (transient)
Group object. |
UserEntity |
createNewUser(String userId)
Returns a new (transient)
User object. |
void |
deleteGroup(String groupId)
Allows deleting a persistent
Group object. |
void |
deleteMembership(String userId,
String groupId)
Creates a membership relation between a user and a group.
|
protected void |
deleteMembershipsByGroupId(String groupId) |
protected void |
deleteMembershipsByUserId(String userId) |
void |
deleteUser(String userId)
Allows deleting a persistent
User object. |
GroupEntity |
saveGroup(Group group)
Allows saving a
Group object which is not yet persistent. |
User |
saveUser(User user)
Allows saving or updates a
User object |
checkAuthorization, checkPassword, configureQuery, createGroupQuery, createGroupQuery, createUserQuery, createUserQuery, findGroupById, findGroupByQueryCriteria, findGroupCountByQueryCriteria, findUserById, findUserByQueryCriteria, findUserCountByQueryCriteria, matchPasswordclose, delete, deleteAuthorizations, deleteDefaultAuthorizations, flush, getAttachmentManager, getAuthorizationManager, getByteArrayManager, getCaseDefinitionManager, getCaseExecutionManager, getCaseInstanceManager, getCommandContext, getCurrentAuthentication, getDbEntityManager, getDbSqlSession, getDecisionDefinitionManager, getDeploymentManager, getEventSubscriptionManager, getHistoricActivityInstanceManager, getHistoricCaseActivityInstanceManager, getHistoricCaseInstanceManager, getHistoricDecisionInstanceManager, getHistoricDetailManager, getHistoricIncidentManager, getHistoricJobLogManager, getHistoricProcessInstanceManager, getHistoricTaskInstanceManager, getHistoricVariableInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getJobDefinitionManager, getJobManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceAuthorizationProvider, getResourceManager, getSession, getTaskManager, getUserOperationLogManager, getVariableInstanceManager, insert, isAuthorizationEnabled, saveDefaultAuthorizationspublic UserEntity createNewUser(String userId)
WritableIdentityProviderReturns a new (transient) User object. The Object is not
yet persistent and must be saved using the WritableIdentityProvider.saveUser(User)
method.
NOTE: the implementation does not validate the uniqueness of the userId parameter at this time.
createNewUser in interface WritableIdentityProviderpublic User saveUser(User user)
WritableIdentityProviderUser objectsaveUser in interface WritableIdentityProvideruser - a User object.public void deleteUser(String userId)
WritableIdentityProviderUser object.deleteUser in interface WritableIdentityProviderpublic GroupEntity createNewGroup(String groupId)
WritableIdentityProviderReturns a new (transient) Group object. The Object is not
yet persistent and must be saved using the WritableIdentityProvider.saveGroup(Group)
method.
NOTE: the implementation does not validate the uniqueness of the groupId parameter at this time.
createNewGroup in interface WritableIdentityProviderpublic GroupEntity saveGroup(Group group)
WritableIdentityProviderGroup object which is not yet persistent.saveGroup in interface WritableIdentityProvidergroup - a group object.public void deleteGroup(String groupId)
WritableIdentityProviderGroup object.deleteGroup in interface WritableIdentityProvidergroupId - the id of the group object to delete. *public void createMembership(String userId, String groupId)
WritableIdentityProvidercreateMembership in interface WritableIdentityProvideruserId - the id of the usergroupId - id of the grouppublic void deleteMembership(String userId, String groupId)
WritableIdentityProviderdeleteMembership in interface WritableIdentityProvideruserId - the id of the usergroupId - id of the groupprotected void deleteMembershipsByUserId(String userId)
protected void deleteMembershipsByGroupId(String groupId)
protected void createDefaultAuthorizations(UserEntity userEntity)
protected void createDefaultAuthorizations(Group group)
Copyright © 2018. All rights reserved.