Package org.alfresco.rest.api
Interface Groups
- All Known Implementing Classes:
GroupsImpl
public interface Groups
Groups API
- Author:
- cturlica
-
Field Summary
Fields -
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 personId, Parameters parameters) Gets the list of groups for which the specified person is a member.update(String groupId, Group group, Parameters parameters) Update the given group.
-
Field Details
-
PARAM_ID
- See Also:
-
PARAM_DISPLAY_NAME
- See Also:
-
PARAM_INCLUDE_DESCRIPTION
- See Also:
-
PARAM_INCLUDE_PARENT_IDS
- See Also:
-
PARAM_INCLUDE_ZONES
- See Also:
-
PARAM_INCLUDE_HAS_SUBGROUPS
- See Also:
-
PARAM_IS_ROOT
- See Also:
-
PARAM_CASCADE
- See Also:
-
PARAM_MEMBER_TYPE
- See Also:
-
PARAM_MEMBER_TYPE_GROUP
- See Also:
-
PARAM_MEMBER_TYPE_PERSON
- See Also:
-
-
Method Details
-
create
Create a group.- 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
Update the given group. Not all fields are used, only those as defined in the Open API spec.- 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
Get a group by it's id.- 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
Gets a list of groups.- 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
Gets the list of groups for which the specified person is a member.- Parameters:
personId- 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
Delete the given group.- Parameters:
groupId- the group IDparameters- theParametersobject to get the parameters passed into the request including: - include param (parentIds, zones)
-
getGroupMembers
Gets a list of groups.- 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
Create a group member.- Parameters:
groupId- the identifier of a group.- Returns:
- a
org.alfresco.rest.api.model.GroupMemberobject
-
deleteGroupMembership
Delete group membership- Parameters:
groupId-groupMemberId-
-