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, matchPassword
close, 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, saveDefaultAuthorizations
public UserEntity createNewUser(String userId)
WritableIdentityProvider
Returns 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 WritableIdentityProvider
public User saveUser(User user)
WritableIdentityProvider
User
objectsaveUser
in interface WritableIdentityProvider
user
- a User object.public void deleteUser(String userId)
WritableIdentityProvider
User
object.deleteUser
in interface WritableIdentityProvider
public GroupEntity createNewGroup(String groupId)
WritableIdentityProvider
Returns 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 WritableIdentityProvider
public GroupEntity saveGroup(Group group)
WritableIdentityProvider
Group
object which is not yet persistent.saveGroup
in interface WritableIdentityProvider
group
- a group object.public void deleteGroup(String groupId)
WritableIdentityProvider
Group
object.deleteGroup
in interface WritableIdentityProvider
groupId
- the id of the group object to delete. *public void createMembership(String userId, String groupId)
WritableIdentityProvider
createMembership
in interface WritableIdentityProvider
userId
- the id of the usergroupId
- id of the grouppublic void deleteMembership(String userId, String groupId)
WritableIdentityProvider
deleteMembership
in interface WritableIdentityProvider
userId
- 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.