| Modifier and Type | Field and Description |
|---|---|
protected AuthorityService |
authorityService |
protected People |
people |
PARAM_CASCADE, PARAM_DISPLAY_NAME, PARAM_ID, PARAM_INCLUDE_PARENT_IDS, PARAM_INCLUDE_ZONES, PARAM_IS_ROOT, PARAM_MEMBER_TYPE, PARAM_MEMBER_TYPE_GROUP, PARAM_MEMBER_TYPE_PERSON| Constructor and Description |
|---|
GroupsImpl() |
| Modifier and Type | Method and Description |
|---|---|
Group |
create(Group group,
Parameters parameters)
Create a group.
|
GroupMember |
createGroupMember(String groupId,
GroupMember groupMember)
Create a group member.
|
void |
delete(String groupId,
Parameters parameters)
Delete the given group.
|
void |
deleteGroupMembership(String groupId,
String groupMemberId)
Delete group membership
|
AuthorityService |
getAuthorityService() |
Group |
getGroup(String groupId,
Parameters parameters)
Get a group by it's id.
|
CollectionWithPagingInfo<GroupMember> |
getGroupMembers(String groupId,
Parameters parameters)
Gets a list of groups.
|
CollectionWithPagingInfo<Group> |
getGroups(Parameters parameters)
Gets a list of groups.
|
CollectionWithPagingInfo<Group> |
getGroupsByPersonId(String requestedPersonId,
Parameters parameters)
Gets the list of groups for which the specified person is a member.
|
void |
setAuthorityDAO(AuthorityDAO authorityDAO) |
void |
setAuthorityService(AuthorityService authorityService) |
void |
setPeople(People people) |
Group |
update(String groupId,
Group group,
Parameters parameters)
Update the given group.
|
protected AuthorityService authorityService
protected People people
public AuthorityService getAuthorityService()
public void setAuthorityService(AuthorityService authorityService)
public void setAuthorityDAO(AuthorityDAO authorityDAO)
public void setPeople(People people)
public Group create(Group group, Parameters parameters)
Groupscreate in interface Groupsgroup - the group to create.parameters - the Parameters object to get the parameters passed into the request
including:
- include param (parentIds, zones)org.alfresco.rest.api.model.Group objectpublic Group update(String groupId, Group group, Parameters parameters)
Groupsupdate in interface GroupsgroupId - the group IDgroup - details to use for the updateparameters - the Parameters object to get the parameters passed
into the request including: - include param (parentIds, zones)public Group getGroup(String groupId, Parameters parameters) throws EntityNotFoundException
GroupsgetGroup in interface GroupsgroupId - the identifier of a group.parameters - the Parameters object to get the parameters passed into the request
including:
- include param (parentIds, zones)org.alfresco.rest.api.model.Group objectEntityNotFoundExceptionpublic CollectionWithPagingInfo<Group> getGroups(Parameters parameters)
GroupsgetGroups in interface Groupsparameters - the Parameters object to get the parameters passed into the request
including:
- filter, sort & paging params (where, orderBy, skipCount, maxItems)
- include param (parentIds, zones)org.alfresco.rest.api.model.Group objectspublic CollectionWithPagingInfo<Group> getGroupsByPersonId(String requestedPersonId, Parameters parameters)
GroupsgetGroupsByPersonId in interface GroupsrequestedPersonId - the person's ID ("-me-" may be used as an alias for the current user.)parameters - the Parameters object to get the parameters passed into the request
including:
- sort & paging params (orderBy, skipCount, maxItems)org.alfresco.rest.api.model.Group objectspublic void delete(String groupId, Parameters parameters)
Groupsdelete in interface GroupsgroupId - the group IDparameters - the Parameters object to get the parameters passed
into the request including: - include param (parentIds, zones)public CollectionWithPagingInfo<GroupMember> getGroupMembers(String groupId, Parameters parameters)
GroupsgetGroupMembers in interface GroupsgroupId - the identifier of a group.parameters - the Parameters object to get the parameters passed into the request
including:
- filter, sort & paging params (where, orderBy, skipCount, maxItems)
- include param (parentIds, zones)org.alfresco.rest.api.model.GroupMember objectspublic GroupMember createGroupMember(String groupId, GroupMember groupMember)
GroupscreateGroupMember in interface GroupsgroupId - the identifier of a group.org.alfresco.rest.api.model.GroupMember objectpublic void deleteGroupMembership(String groupId, String groupMemberId)
GroupsdeleteGroupMembership in interface GroupsCopyright © 2005–2020 Alfresco Software. All rights reserved.