Package org.alfresco.rest.api
Interface Groups
-
- All Known Implementing Classes:
GroupsImpl
public interface GroupsGroups API- Author:
- cturlica
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_CASCADEstatic StringPARAM_DISPLAY_NAMEstatic StringPARAM_IDstatic StringPARAM_INCLUDE_PARENT_IDSstatic StringPARAM_INCLUDE_ZONESstatic StringPARAM_IS_ROOTstatic StringPARAM_MEMBER_TYPEstatic StringPARAM_MEMBER_TYPE_GROUPstatic StringPARAM_MEMBER_TYPE_PERSON
-
Method Summary
All Methods Instance Methods Abstract 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 membershipGroupgetGroup(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 personId, Parameters parameters)Gets the list of groups for which the specified person is a member.Groupupdate(String groupId, Group group, Parameters parameters)Update the given group.
-
-
-
Field Detail
-
PARAM_ID
static final String PARAM_ID
- See Also:
- Constant Field Values
-
PARAM_DISPLAY_NAME
static final String PARAM_DISPLAY_NAME
- See Also:
- Constant Field Values
-
PARAM_INCLUDE_PARENT_IDS
static final String PARAM_INCLUDE_PARENT_IDS
- See Also:
- Constant Field Values
-
PARAM_INCLUDE_ZONES
static final String PARAM_INCLUDE_ZONES
- See Also:
- Constant Field Values
-
PARAM_IS_ROOT
static final String PARAM_IS_ROOT
- See Also:
- Constant Field Values
-
PARAM_CASCADE
static final String PARAM_CASCADE
- See Also:
- Constant Field Values
-
PARAM_MEMBER_TYPE
static final String PARAM_MEMBER_TYPE
- See Also:
- Constant Field Values
-
PARAM_MEMBER_TYPE_GROUP
static final String PARAM_MEMBER_TYPE_GROUP
- See Also:
- Constant Field Values
-
PARAM_MEMBER_TYPE_PERSON
static final String PARAM_MEMBER_TYPE_PERSON
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
Group create(Group group, Parameters parameters)
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
Group update(String groupId, Group group, Parameters parameters)
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
Group getGroup(String groupId, Parameters parameters) throws EntityNotFoundException
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
CollectionWithPagingInfo<Group> getGroups(Parameters parameters)
Gets a list of groups.- 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
CollectionWithPagingInfo<Group> getGroupsByPersonId(String personId, Parameters parameters)
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 & paging params (orderBy, skipCount, maxItems)- Returns:
- a paged list of
org.alfresco.rest.api.model.Groupobjects
-
delete
void delete(String groupId, Parameters parameters)
Delete the given group.- Parameters:
groupId- the group IDparameters- theParametersobject to get the parameters passed into the request including: - include param (parentIds, zones)
-
getGroupMembers
CollectionWithPagingInfo<GroupMember> getGroupMembers(String groupId, Parameters parameters)
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 & paging params (where, orderBy, skipCount, maxItems) - include param (parentIds, zones)- Returns:
- a paged list of
org.alfresco.rest.api.model.GroupMemberobjects
-
createGroupMember
GroupMember createGroupMember(String groupId, GroupMember groupMember)
Create a group member.- Parameters:
groupId- the identifier of a group.- Returns:
- a
org.alfresco.rest.api.model.GroupMemberobject
-
-