public interface WritableIdentityProvider extends Session
SPI Interface for identity service implementations which offer read / write access to the user database.
Modifier and Type | Method and Description |
---|---|
IdentityOperationResult |
createMembership(String userId,
String groupId)
Creates a membership relation between a user and a group.
|
Group |
createNewGroup(String groupId)
Returns a new (transient)
Group object. |
Tenant |
createNewTenant(String tenantId)
Returns a new (transient)
Tenant object. |
User |
createNewUser(String userId)
Returns a new (transient)
User object. |
IdentityOperationResult |
createTenantGroupMembership(String tenantId,
String groupId)
Creates a membership relation between a tenant and a group.
|
IdentityOperationResult |
createTenantUserMembership(String tenantId,
String userId)
Creates a membership relation between a tenant and a user.
|
IdentityOperationResult |
deleteGroup(String groupId)
Allows deleting a persistent
Group object. |
IdentityOperationResult |
deleteMembership(String userId,
String groupId)
Deletes a membership relation between a user and a group.
|
IdentityOperationResult |
deleteTenant(String tenantId)
Allows deleting a persistent
Tenant object. |
IdentityOperationResult |
deleteTenantGroupMembership(String tenantId,
String groupId)
Deletes a membership relation between a tenant and a group.
|
IdentityOperationResult |
deleteTenantUserMembership(String tenantId,
String userId)
Deletes a membership relation between a tenant and a user.
|
IdentityOperationResult |
deleteUser(String userId)
Allows deleting a persistent
User object. |
IdentityOperationResult |
saveGroup(Group group)
Allows saving a
Group object which is not yet persistent. |
IdentityOperationResult |
saveTenant(Tenant tenant)
Allows saving a
Tenant object which is not yet persistent. |
IdentityOperationResult |
saveUser(User user)
Allows saving or updates a
User object |
IdentityOperationResult |
unlockUser(String userId)
Allows unlocking a
User object. |
User createNewUser(String userId)
Returns a new (transient) User
object. The Object is not
yet persistent and must be saved using the saveUser(User)
method.
NOTE: the implementation does not validate the uniqueness of the userId parameter at this time.
userId
- IdentityOperationResult saveUser(User user)
User
objectuser
- a User object.IdentityProviderException
- in case an internal error occursIdentityOperationResult deleteUser(String userId)
User
object.UserId
- the id of the User object to delete.IdentityProviderException
- in case an internal error occursIdentityOperationResult unlockUser(String userId)
User
object.userId
- the id of the User object to delete.AuthorizationException
- if the user is not CAMUNDA_ADMINGroup createNewGroup(String groupId)
Returns a new (transient) Group
object. The Object is not
yet persistent and must be saved using the saveGroup(Group)
method.
NOTE: the implementation does not validate the uniqueness of the groupId parameter at this time.
groupId
- IdentityOperationResult saveGroup(Group group)
Group
object which is not yet persistent.group
- a group object.IdentityProviderException
- in case an internal error occursIdentityOperationResult deleteGroup(String groupId)
Group
object.groupId
- the id of the group object to delete.IdentityProviderException
- in case an internal error occursTenant createNewTenant(String tenantId)
Returns a new (transient) Tenant
object. The Object is not yet
persistent and must be saved using the saveTenant(Tenant)
method.
NOTE: the implementation does not validate the uniqueness of the tenantId parameter at this time.
tenantId
- the id of the new tenantIdentityOperationResult saveTenant(Tenant tenant)
Tenant
object which is not yet persistent.tenant
- the tenant object to save.IdentityProviderException
- in case an internal error occursIdentityOperationResult deleteTenant(String tenantId)
Tenant
object.tenantId
- the id of the tenant object to delete.IdentityProviderException
- in case an internal error occursIdentityOperationResult createMembership(String userId, String groupId)
userId
- the id of the usergroupId
- id of the groupIdentityProviderException
IdentityOperationResult deleteMembership(String userId, String groupId)
userId
- the id of the usergroupId
- id of the groupIdentityProviderException
IdentityOperationResult createTenantUserMembership(String tenantId, String userId)
tenantId
- the id of the tenantuserId
- the id of the userIdentityOperationResult createTenantGroupMembership(String tenantId, String groupId)
tenantId
- the id of the tenantgroupId
- the id of the groupIdentityOperationResult deleteTenantUserMembership(String tenantId, String userId)
tenantId
- the id of the tenantuserId
- the id of the userIdentityOperationResult deleteTenantGroupMembership(String tenantId, String groupId)
tenantId
- the id of the tenantgroupId
- the id of the groupCopyright © 2021. All rights reserved.