|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WritableIdentityProvider
SPI Interface for identity service implementations which offer read / write access to the user database.
| Method Summary | |
|---|---|
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 |
| Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Session |
|---|
close, flush |
| Method Detail |
|---|
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 object
user - 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 occurs
void createMembership(String userId,
String groupId)
userId - the id of the usergroupId - id of the group
IdentityProviderException
void deleteMembership(String userId,
String groupId)
userId - the id of the usergroupId - id of the group
IdentityProviderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||