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. |
User |
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.
|
void |
deleteUser(String userId)
Allows deleting a persistent
User object. |
Group |
saveGroup(Group group)
Allows saving a
Group object which is not yet persistent. |
User |
saveUser(User user)
Allows saving or updates 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 occursGroup 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 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
Copyright © 2015. All rights reserved.