Package net.bluemind.group.api
Interface IGroup
- All Superinterfaces:
IDirEntryExtIdSupport
,IGroupMember
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allUids()
Get group from its emailGet group from its namevoid
Create groupvoid
createWithExtId
(String uid, String extId, Group group) Create group with external IDDelete groupGet group from UIDgetByExtId
(String extId) Get group from external IDgetComplete
(String uid) Get group from UIDgetExpandedMembers
(String uid) Get all expanded group membersGet User type expanded group membersgetGroupsWithRoles
(List<String> roles) getMembers
(String uid) Get all group membersgetParents
(String uid) Get all group parents UIDvoid
search
(GroupSearchQuery query) Search a groupvoid
void
Touch group (update direntry, vcard etc..)void
Update groupMethods inherited from interface net.bluemind.directory.api.IDirEntryExtIdSupport
setExtId
Methods inherited from interface net.bluemind.group.api.IGroupMember
memberOf, memberOfGroups
-
Method Details
-
create
Create group- Parameters:
uid
-group
-- Throws:
ServerFault
-
createWithExtId
@PUT @Path("{uid}/{extid}/createwithextid") void createWithExtId(@PathParam("uid") String uid, @PathParam("extid") String extId, Group group) throws ServerFault Create group with external ID- Parameters:
uid
-extId
-group
-- Throws:
ServerFault
-
update
Update group- Parameters:
uid
-group
-- Throws:
ServerFault
-
touch
@POST @Path("{uid}/_touch") void touch(@PathParam("uid") String uid, @QueryParam("update_vcards") boolean updateVcards) throws ServerFault Touch group (update direntry, vcard etc..)- Parameters:
uid
-updateVcards
- : should we update the group vcards (default: true)group
-- Throws:
ServerFault
-
get
Get group from UID- Parameters:
uid
-- Returns:
- Throws:
ServerFault
-
getComplete
@GET @Path("{uid}/complete") ItemValue<Group> getComplete(@PathParam("uid") String uid) throws ServerFault Get group from UID- Parameters:
uid
-- Returns:
- Throws:
ServerFault
-
byEmail
@GET @Path("byEmail/{email}") ItemValue<Group> byEmail(@PathParam("email") String email) throws ServerFault Get group from its email- Parameters:
uid
-- Returns:
- Throws:
ServerFault
-
byName
@GET @Path("byName/{name}") ItemValue<Group> byName(@PathParam("name") String name) throws ServerFault Get group from its name- Parameters:
uid
-- Returns:
- Throws:
ServerFault
-
delete
Delete group- Parameters:
uid
-- Throws:
ServerFault
-
getByExtId
@GET @Path("_extid/{extid}") ItemValue<Group> getByExtId(@PathParam("extid") String extId) throws ServerFault Get group from external ID- Parameters:
extId
-- Returns:
- Throws:
ServerFault
-
add
@PUT @Path("{uid}/members") void add(@PathParam("uid") String uid, List<Member> members) throws ServerFault - Throws:
ServerFault
-
remove
@DELETE @Path("{uid}/members") void remove(@PathParam("uid") String uid, List<Member> members) throws ServerFault - Throws:
ServerFault
-
getMembers
@GET @Path("{uid}/members") List<Member> getMembers(@PathParam("uid") String uid) throws ServerFault Get all group members- Parameters:
group
- uid- Returns:
- members belonging to this group
- Throws:
ServerFault
-
getExpandedMembers
@GET @Path("{uid}/expandedmembers") List<Member> getExpandedMembers(@PathParam("uid") String uid) throws ServerFault Get all expanded group members- Parameters:
group
- uid- Returns:
- members belonging to this group or its sub-groups
- Throws:
ServerFault
-
getExpandedUserMembers
@GET @Path("{uid}/expandedusersmembers") List<Member> getExpandedUserMembers(@PathParam("uid") String uid) throws ServerFault Get User type expanded group members- Parameters:
group
- uid- Returns:
- members of type User belonging to this group or its sub-groups
- Throws:
ServerFault
-
getParents
@GET @Path("{uid}/parents") List<ItemValue<Group>> getParents(@PathParam("uid") String uid) throws ServerFault Get all group parents UID- Parameters:
uid
-- Returns:
- parents
- Throws:
ServerFault
-
allUids
- Throws:
ServerFault
-
getGroupsWithRoles
- Throws:
ServerFault
-
search
Search a group- Parameters:
query
- group query- Returns:
- list of matching groups
- Throws:
ServerFault
-
getRoles
- Parameters:
uid
-Group
uid- Returns:
- Throws:
ServerFault
-
setRoles
@POST @Path("{uid}/roles") void setRoles(@PathParam("uid") String uid, Set<String> roles) throws ServerFault - Parameters:
uid
-Group
uidroles
-- Throws:
ServerFault
-