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)
Groups
create
in interface Groups
group
- 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)
Groups
update
in interface Groups
groupId
- 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
Groups
getGroup
in interface Groups
groupId
- 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
objectEntityNotFoundException
public CollectionWithPagingInfo<Group> getGroups(Parameters parameters)
Groups
getGroups
in interface Groups
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.Group
objectspublic CollectionWithPagingInfo<Group> getGroupsByPersonId(String requestedPersonId, Parameters parameters)
Groups
getGroupsByPersonId
in interface Groups
requestedPersonId
- 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)
Groups
delete
in interface Groups
groupId
- 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)
Groups
getGroupMembers
in interface Groups
groupId
- 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)
Groups
createGroupMember
in interface Groups
groupId
- the identifier of a group.org.alfresco.rest.api.model.GroupMember
objectpublic void deleteGroupMembership(String groupId, String groupMemberId)
Groups
deleteGroupMembership
in interface Groups
Copyright © 2005–2017 Alfresco Software. All rights reserved.