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 |
---|---|
void |
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. |
void |
createTenantGroupMembership(String tenantId,
String groupId)
Creates a membership relation between a tenant and a group.
|
void |
createTenantUserMembership(String tenantId,
String userId)
Creates a membership relation between a tenant and a user.
|
void |
deleteGroup(String groupId)
Allows deleting a persistent
Group object. |
void |
deleteMembership(String userId,
String groupId)
Deletes a membership relation between a user and a group.
|
void |
deleteTenant(String tenantId)
Allows deleting a persistent
Tenant object. |
void |
deleteTenantGroupMembership(String tenantId,
String groupId)
Deletes a membership relation between a tenant and a group.
|
void |
deleteTenantUserMembership(String tenantId,
String userId)
Deletes a membership relation between a tenant and a user.
|
void |
deleteUser(String userId)
Allows deleting a persistent
User object. |
Group |
saveGroup(Group group)
Allows saving a
Group object which is not yet persistent. |
Tenant |
saveTenant(Tenant tenant)
Allows saving a
Tenant object which is not yet persistent. |
User |
saveUser(User user)
Allows saving or updates a
User object |
void |
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
- User saveUser(User user)
User
objectuser
- a User object.IdentityProviderException
- in case an internal error occursvoid deleteUser(String userId)
User
object.UserId
- the id of the User object to delete.IdentityProviderException
- in case an internal error occursvoid 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
- Group saveGroup(Group group)
Group
object which is not yet persistent.group
- a group object.IdentityProviderException
- in case an internal error occursvoid 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 tenantTenant saveTenant(Tenant tenant)
Tenant
object which is not yet persistent.tenant
- the tenant object to save.IdentityProviderException
- in case an internal error occursvoid deleteTenant(String tenantId)
Tenant
object.tenantId
- the id of the tenant object to delete. *IdentityProviderException
- in case an internal error occursvoid createMembership(String userId, String groupId)
userId
- the id of the usergroupId
- id of the groupIdentityProviderException
void deleteMembership(String userId, String groupId)
userId
- the id of the usergroupId
- id of the groupIdentityProviderException
void createTenantUserMembership(String tenantId, String userId)
tenantId
- the id of the tenantuserId
- the id of the uservoid createTenantGroupMembership(String tenantId, String groupId)
tenantId
- the id of the tenantgroupId
- the id of the groupvoid deleteTenantUserMembership(String tenantId, String userId)
tenantId
- the id of the tenantuserId
- the id of the userCopyright © 2019. All rights reserved.