Package org.alfresco.rest.api.impl
Class GroupsImpl
java.lang.Object
org.alfresco.rest.api.impl.GroupsImpl
- All Implemented Interfaces:
Groups
Centralises access to groups services and maps between representations.
- Author:
- cturlica
-
Field Summary
FieldsFields inherited from interface org.alfresco.rest.api.Groups
PARAM_CASCADE, PARAM_DISPLAY_NAME, PARAM_ID, PARAM_INCLUDE_DESCRIPTION, PARAM_INCLUDE_HAS_SUBGROUPS, PARAM_INCLUDE_PARENT_IDS, PARAM_INCLUDE_ZONES, PARAM_IS_ROOT, PARAM_MEMBER_TYPE, PARAM_MEMBER_TYPE_GROUP, PARAM_MEMBER_TYPE_PERSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(Group group, Parameters parameters) Create a group.createGroupMember(String groupId, GroupMember groupMember) Create a group member.voiddelete(String groupId, Parameters parameters) Delete the given group.voiddeleteGroupMembership(String groupId, String groupMemberId) Delete group membershipgetGroup(String groupId, Parameters parameters) Get a group by it's id.getGroupMembers(String groupId, Parameters parameters) Gets a list of groups.getGroups(Parameters parameters) Gets a list of groups.getGroupsByPersonId(String requestedPersonId, Parameters parameters) Gets the list of groups for which the specified person is a member.voidsetAuthorityDAO(AuthorityDAO authorityDAO) voidsetAuthorityService(AuthorityService authorityService) voidupdate(String groupId, Group group, Parameters parameters) Update the given group.
-
Field Details
-
authorityService
-
people
-
-
Constructor Details
-
GroupsImpl
public GroupsImpl()
-
-
Method Details
-
getAuthorityService
-
setAuthorityService
-
setAuthorityDAO
-
setPeople
-
create
Description copied from interface:GroupsCreate a group.- Specified by:
createin interfaceGroups- Parameters:
group- the group to create.parameters- theParametersobject to get the parameters passed into the request including: - include param (parentIds, zones)- Returns:
- a
org.alfresco.rest.api.model.Groupobject
-
update
Description copied from interface:GroupsUpdate the given group. Not all fields are used, only those as defined in the Open API spec.- Specified by:
updatein interfaceGroups- Parameters:
groupId- the group IDgroup- details to use for the updateparameters- theParametersobject to get the parameters passed into the request including: - include param (parentIds, zones)- Returns:
- Updated group
-
getGroup
Description copied from interface:GroupsGet a group by it's id.- Specified by:
getGroupin interfaceGroups- Parameters:
groupId- the identifier of a group.parameters- theParametersobject to get the parameters passed into the request including: - include param (parentIds, zones)- Returns:
- a
org.alfresco.rest.api.model.Groupobject - Throws:
EntityNotFoundException
-
getGroups
Description copied from interface:GroupsGets a list of groups.- Specified by:
getGroupsin interfaceGroups- Parameters:
parameters- theParametersobject to get the parameters passed into the request including: - filter, sort invalid input: '&' paging params (where, orderBy, skipCount, maxItems) - include param (parentIds, zones)- Returns:
- a paged list of
org.alfresco.rest.api.model.Groupobjects
-
getGroupsByPersonId
public CollectionWithPagingInfo<Group> getGroupsByPersonId(String requestedPersonId, Parameters parameters) Description copied from interface:GroupsGets the list of groups for which the specified person is a member.- Specified by:
getGroupsByPersonIdin interfaceGroups- Parameters:
requestedPersonId- the person's ID ("-me-" may be used as an alias for the current user.)parameters- theParametersobject to get the parameters passed into the request including: - sort invalid input: '&' paging params (orderBy, skipCount, maxItems)- Returns:
- a paged list of
org.alfresco.rest.api.model.Groupobjects
-
delete
Description copied from interface:GroupsDelete the given group.- Specified by:
deletein interfaceGroups- Parameters:
groupId- the group IDparameters- theParametersobject to get the parameters passed into the request including: - include param (parentIds, zones)
-
getGroupMembers
Description copied from interface:GroupsGets a list of groups.- Specified by:
getGroupMembersin interfaceGroups- Parameters:
groupId- the identifier of a group.parameters- theParametersobject to get the parameters passed into the request including: - filter, sort invalid input: '&' paging params (where, orderBy, skipCount, maxItems) - include param (parentIds, zones)- Returns:
- a paged list of
org.alfresco.rest.api.model.GroupMemberobjects
-
createGroupMember
Description copied from interface:GroupsCreate a group member.- Specified by:
createGroupMemberin interfaceGroups- Parameters:
groupId- the identifier of a group.- Returns:
- a
org.alfresco.rest.api.model.GroupMemberobject
-
deleteGroupMembership
Description copied from interface:GroupsDelete group membership- Specified by:
deleteGroupMembershipin interfaceGroups- Parameters:
groupId-groupMemberId-
-