|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IdentityServiceOp
This is the main interface for UserOp, GroupOp and Membership management.
Method Summary | |
---|---|
void |
commit()
Commit all modifications to the backing store. |
java.lang.String |
createGroup()
Create a GroupOp in the identity service backing store and returns the generated id. |
java.lang.String |
createGroup(GroupOp parent)
Create a GroupOp in the identity service backing store and returns the generated id. |
java.lang.String |
createUser()
Create a UserOp in the identity service backing store and returns the generated id. |
void |
deleteGroup(java.lang.String id)
Delete the group mapped to the given id from this service. |
void |
deleteUser(java.lang.String id)
Delete the user mapped to the given id from this service. |
java.util.Collection<GroupOp> |
getAllGroups()
Returns a copy of all groupOps present in the backing store Modifications made on the returned collection or on any of its contained GroupOp instances are not propagated to the backing store |
java.util.Collection<UserOp> |
getAllUsers()
Returns a copy of all users present in the backing store Modifications made on the returned collection or on any of its contained UserOp instances are not propagated to the backing store |
GroupOp |
getGroup(java.lang.String id)
Returns a copy of the group mapped to the given id Modifications made on the return GroupOp instance are not propagated to the backing store |
UserOp |
getUser(java.lang.String id)
Returns a copy of the user mapped to the given id Modifications made on the return UserOp instance are not propagated to the backing store |
boolean |
modifyGroup(GroupOp groupOp)
Modify the given group. |
boolean |
modifyUser(UserOp userOp)
Modify the given user. |
Membership |
setMembership(UserOp user,
GroupOp group)
Make the given user a member of the given group. |
Method Detail |
---|
java.lang.String createUser()
void deleteUser(java.lang.String id) throws UserNotFoundException
id
- the user id
UserNotFoundException
- if no user is currently mapped to the given id in this
IdentityServiceOp
boolean modifyUser(UserOp userOp) throws UserNotFoundException
userOp
- the modified user
UserNotFoundException
- if the given user is not currently mapped in this
IdentityServiceOp
java.lang.String createGroup()
g
, will be a child of its root
group. Formally, this means that the following expression: g.getRoot().getChildren().contains(g)
will return
true
.
java.lang.String createGroup(GroupOp parent)
g
, will be a child of the given
group. Formally, this means that the following expression: g.getParent().getChildren().contains(g)
will return
true
.
void deleteGroup(java.lang.String id) throws GroupNotFoundException
id
- the group id
GroupNotFoundException
- if no group is currently mapped to the given id in this
IdentityServiceOp
boolean modifyGroup(GroupOp groupOp) throws GroupNotFoundException
groupOp
- the modified group
GroupNotFoundException
- if the given group is not currently mapped in this
IdentityServiceOp
UserOp getUser(java.lang.String id) throws UserNotFoundException
id
-
UserNotFoundException
- if no user is currently mapped to the given id in this
IdentityServiceOp
GroupOp getGroup(java.lang.String id) throws GroupNotFoundException
id
-
UserNotFoundException
- if no group is currently mapped to the given id in this
IdentityServiceOp
GroupNotFoundException
- if no group is currently mapped to the given id in this
IdentityServiceOp
Membership setMembership(UserOp user, GroupOp group) throws UserNotFoundException, GroupNotFoundException
userOp
- the usergroupOp
- the group
UserNotFoundException
- if the given user is not currently mapped in this
IdentityServiceOp
GroupNotFoundException
- if the given group is not currently mapped in this
IdentityServiceOp
Membership
java.util.Collection<UserOp> getAllUsers()
java.util.Collection<GroupOp> getAllGroups()
void commit() throws CommitException
CommitException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |