@Path(value="/groups/{domainUid}") public interface IGroup extends IDirEntryExtIdSupport
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String uid,
java.util.List<Member> members) |
java.util.List<java.lang.String> |
allUids() |
ItemValue<Group> |
byEmail(java.lang.String email)
Get group from its email
|
ItemValue<Group> |
byName(java.lang.String name)
Get group from its name
|
void |
create(java.lang.String uid,
Group group)
Create group
|
void |
createWithExtId(java.lang.String uid,
java.lang.String extId,
Group group)
Create group with external ID
|
TaskRef |
delete(java.lang.String uid)
Delete group
|
ItemValue<Group> |
getByExtId(java.lang.String extId)
Get group from external ID
|
ItemValue<Group> |
getComplete(java.lang.String uid)
Get group from UID
|
java.util.List<Member> |
getExpandedMembers(java.lang.String uid)
Get all expanded group members
|
java.util.List<Member> |
getExpandedUserMembers(java.lang.String uid)
Get User type expanded group members
|
java.util.Set<java.lang.String> |
getGroupsWithRoles(java.util.List<java.lang.String> roles) |
java.util.List<Member> |
getMembers(java.lang.String uid)
Get all group members
|
java.util.List<ItemValue<Group>> |
getParents(java.lang.String uid)
Get all group parents UID
|
java.util.Set<java.lang.String> |
getRoles(java.lang.String uid) |
void |
remove(java.lang.String uid,
java.util.List<Member> members) |
java.util.List<ItemValue<Group>> |
search(GroupSearchQuery query)
Search a group
|
void |
setRoles(java.lang.String uid,
java.util.Set<java.lang.String> roles) |
void |
touch(java.lang.String uid)
Touch group (update direntry, vcard etc..)
|
void |
update(java.lang.String uid,
Group group)
Update group
|
setExtId
@PUT @Path(value="{uid}") void create(@PathParam(value="uid") java.lang.String uid, Group group) throws ServerFault
uid
- group
- ServerFault
@PUT @Path(value="{uid}/{extid}/createwithextid") void createWithExtId(@PathParam(value="uid") java.lang.String uid, @PathParam(value="extid") java.lang.String extId, Group group) throws ServerFault
uid
- extId
- group
- ServerFault
@POST @Path(value="{uid}") void update(@PathParam(value="uid") java.lang.String uid, Group group) throws ServerFault
uid
- group
- ServerFault
@POST @Path(value="{uid}/_touch") void touch(@PathParam(value="uid") java.lang.String uid) throws ServerFault
uid
- group
- ServerFault
@GET @Path(value="{uid}/complete") ItemValue<Group> getComplete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
uid
- ServerFault
@GET @Path(value="byEmail/{email}") ItemValue<Group> byEmail(@PathParam(value="email") java.lang.String email) throws ServerFault
uid
- ServerFault
@GET @Path(value="byName/{name}") ItemValue<Group> byName(@PathParam(value="name") java.lang.String name) throws ServerFault
uid
- ServerFault
@DELETE @Path(value="{uid}") TaskRef delete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
uid
- ServerFault
@GET @Path(value="_extid/{extid}") ItemValue<Group> getByExtId(@PathParam(value="extid") java.lang.String extId) throws ServerFault
extId
- ServerFault
@PUT @Path(value="{uid}/members") void add(@PathParam(value="uid") java.lang.String uid, java.util.List<Member> members) throws ServerFault
ServerFault
@DELETE @Path(value="{uid}/members") void remove(@PathParam(value="uid") java.lang.String uid, java.util.List<Member> members) throws ServerFault
ServerFault
@GET @Path(value="{uid}/members") java.util.List<Member> getMembers(@PathParam(value="uid") java.lang.String uid) throws ServerFault
group
- uidServerFault
@GET @Path(value="{uid}/expandedmembers") java.util.List<Member> getExpandedMembers(@PathParam(value="uid") java.lang.String uid) throws ServerFault
group
- uidServerFault
@GET @Path(value="{uid}/expandedusersmembers") java.util.List<Member> getExpandedUserMembers(@PathParam(value="uid") java.lang.String uid) throws ServerFault
group
- uidServerFault
@GET @Path(value="{uid}/parents") java.util.List<ItemValue<Group>> getParents(@PathParam(value="uid") java.lang.String uid) throws ServerFault
uid
- ServerFault
@GET @Path(value="_alluids") java.util.List<java.lang.String> allUids() throws ServerFault
ServerFault
@POST @Path(value="_rolegroups") java.util.Set<java.lang.String> getGroupsWithRoles(java.util.List<java.lang.String> roles) throws ServerFault
ServerFault
@POST @Path(value="_search") java.util.List<ItemValue<Group>> search(GroupSearchQuery query) throws ServerFault
query
- group queryServerFault
@GET @Path(value="{uid}/roles") java.util.Set<java.lang.String> getRoles(@PathParam(value="uid") java.lang.String uid) throws ServerFault
uid
- Group
uidServerFault
@POST @Path(value="{uid}/roles") void setRoles(@PathParam(value="uid") java.lang.String uid, java.util.Set<java.lang.String> roles) throws ServerFault
uid
- Group
uidroles
- ServerFault
Copyright © 2021. All Rights Reserved.