public class GroupService extends java.lang.Object implements IGroup, IInCoreGroup
Constructor and Description |
---|
GroupService(BmContext context,
ItemValue<Domain> domain,
Container container,
java.util.List<IGroupHook> groupsHooks) |
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 |
setExtId(java.lang.String uid,
java.lang.String extId) |
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
|
ValidationResult |
validate(java.lang.String[] groupUids)
Check that every uid corresponds to an existing group member
|
public GroupService(BmContext context, ItemValue<Domain> domain, Container container, java.util.List<IGroupHook> groupsHooks) throws ServerFault
ServerFault
public void create(java.lang.String uid, Group group) throws ServerFault
IGroup
create
in interface IGroup
ServerFault
public void createWithExtId(java.lang.String uid, java.lang.String extId, Group group) throws ServerFault
IGroup
createWithExtId
in interface IGroup
ServerFault
public void update(java.lang.String uid, Group group) throws ServerFault
IGroup
update
in interface IGroup
ServerFault
public void touch(java.lang.String uid) throws ServerFault
IGroup
touch
in interface IGroup
ServerFault
public ItemValue<Group> getComplete(java.lang.String uid) throws ServerFault
IGroup
getComplete
in interface IGroup
ServerFault
public ItemValue<Group> byEmail(java.lang.String email) throws ServerFault
IGroup
byEmail
in interface IGroup
ServerFault
public ItemValue<Group> byName(java.lang.String name) throws ServerFault
IGroup
byName
in interface IGroup
ServerFault
public TaskRef delete(java.lang.String uid) throws ServerFault
IGroup
delete
in interface IGroup
ServerFault
public ItemValue<Group> getByExtId(java.lang.String extId) throws ServerFault
IGroup
getByExtId
in interface IGroup
ServerFault
public void add(java.lang.String uid, java.util.List<Member> members) throws ServerFault
add
in interface IGroup
ServerFault
public java.util.List<Member> getMembers(java.lang.String uid) throws ServerFault
IGroup
getMembers
in interface IGroup
ServerFault
public java.util.List<Member> getExpandedMembers(java.lang.String uid) throws ServerFault
IGroup
getExpandedMembers
in interface IGroup
ServerFault
public java.util.List<Member> getExpandedUserMembers(java.lang.String uid) throws ServerFault
IGroup
getExpandedUserMembers
in interface IGroup
ServerFault
public void remove(java.lang.String uid, java.util.List<Member> members) throws ServerFault
remove
in interface IGroup
ServerFault
public java.util.List<ItemValue<Group>> getParents(java.lang.String uid) throws ServerFault
IGroup
getParents
in interface IGroup
ServerFault
public java.util.List<java.lang.String> allUids() throws ServerFault
allUids
in interface IGroup
ServerFault
public java.util.Set<java.lang.String> getRoles(java.lang.String uid) throws ServerFault
getRoles
in interface IGroup
uid
- Group
uidServerFault
public void setRoles(java.lang.String uid, java.util.Set<java.lang.String> roles) throws ServerFault
setRoles
in interface IGroup
uid
- Group
uidServerFault
public java.util.Set<java.lang.String> getGroupsWithRoles(java.util.List<java.lang.String> roles) throws ServerFault
getGroupsWithRoles
in interface IGroup
ServerFault
public java.util.List<ItemValue<Group>> search(GroupSearchQuery query) throws ServerFault
IGroup
search
in interface IGroup
query
- group queryServerFault
public void setExtId(java.lang.String uid, java.lang.String extId) throws ServerFault
setExtId
in interface IDirEntryExtIdSupport
ServerFault
public ValidationResult validate(java.lang.String[] groupUids) throws ServerFault
IInCoreGroupMember
validate
in interface IInCoreGroupMember
ServerFault
Copyright © 2021. All Rights Reserved.