Package org.alfresco.rest.api.impl
Class GroupsImpl
- java.lang.Object
-
- org.alfresco.rest.api.impl.GroupsImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected org.alfresco.service.cmr.security.AuthorityServiceauthorityServiceprotected Peoplepeople-
Fields inherited from interface org.alfresco.rest.api.Groups
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 Summary
Constructors Constructor Description GroupsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Groupcreate(Group group, Parameters parameters)Create a group.GroupMembercreateGroupMember(String groupId, GroupMember groupMember)Create a group member.voiddelete(String groupId, Parameters parameters)Delete the given group.voiddeleteGroupMembership(String groupId, String groupMemberId)Delete group membershiporg.alfresco.service.cmr.security.AuthorityServicegetAuthorityService()GroupgetGroup(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.voidsetAuthorityDAO(org.alfresco.repo.security.authority.AuthorityDAO authorityDAO)voidsetAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)voidsetPeople(People people)Groupupdate(String groupId, Group group, Parameters parameters)Update the given group.
-
-
-
Field Detail
-
authorityService
protected org.alfresco.service.cmr.security.AuthorityService authorityService
-
people
protected People people
-
-
Method Detail
-
getAuthorityService
public org.alfresco.service.cmr.security.AuthorityService getAuthorityService()
-
setAuthorityService
public void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
-
setAuthorityDAO
public void setAuthorityDAO(org.alfresco.repo.security.authority.AuthorityDAO authorityDAO)
-
setPeople
public void setPeople(People people)
-
create
public Group create(Group group, Parameters parameters)
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
public Group update(String groupId, Group group, Parameters parameters)
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
public Group getGroup(String groupId, Parameters parameters) throws EntityNotFoundException
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
public CollectionWithPagingInfo<Group> getGroups(Parameters parameters)
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 & 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 & paging params (orderBy, skipCount, maxItems)- Returns:
- a paged list of
org.alfresco.rest.api.model.Groupobjects
-
delete
public void delete(String groupId, Parameters parameters)
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
public CollectionWithPagingInfo<GroupMember> getGroupMembers(String groupId, Parameters parameters)
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 & paging params (where, orderBy, skipCount, maxItems) - include param (parentIds, zones)- Returns:
- a paged list of
org.alfresco.rest.api.model.GroupMemberobjects
-
createGroupMember
public GroupMember createGroupMember(String groupId, GroupMember groupMember)
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
public void deleteGroupMembership(String groupId, String groupMemberId)
Description copied from interface:GroupsDelete group membership- Specified by:
deleteGroupMembershipin interfaceGroups
-
-