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 java.lang.StringPARAM_CASCADEstatic java.lang.StringPARAM_DISPLAY_NAMEstatic java.lang.StringPARAM_IDstatic java.lang.StringPARAM_INCLUDE_PARENT_IDSstatic java.lang.StringPARAM_INCLUDE_ZONESstatic java.lang.StringPARAM_IS_ROOTstatic java.lang.StringPARAM_MEMBER_TYPEstatic java.lang.StringPARAM_MEMBER_TYPE_GROUPstatic java.lang.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(java.lang.String groupId, GroupMember groupMember)Create a group member.voiddelete(java.lang.String groupId, Parameters parameters)Delete the given group.voiddeleteGroupMembership(java.lang.String groupId, java.lang.String groupMemberId)Delete group membershipGroupgetGroup(java.lang.String groupId, Parameters parameters)Get a group by it's id.CollectionWithPagingInfo<GroupMember>getGroupMembers(java.lang.String groupId, Parameters parameters)Gets a list of groups.CollectionWithPagingInfo<Group>getGroups(Parameters parameters)Gets a list of groups.CollectionWithPagingInfo<Group>getGroupsByPersonId(java.lang.String personId, Parameters parameters)Gets the list of groups for which the specified person is a member.Groupupdate(java.lang.String groupId, Group group, Parameters parameters)Update the given group.
-
-
-
Field Detail
-
PARAM_ID
static final java.lang.String PARAM_ID
- See Also:
- Constant Field Values
-
PARAM_DISPLAY_NAME
static final java.lang.String PARAM_DISPLAY_NAME
- See Also:
- Constant Field Values
-
PARAM_INCLUDE_PARENT_IDS
static final java.lang.String PARAM_INCLUDE_PARENT_IDS
- See Also:
- Constant Field Values
-
PARAM_INCLUDE_ZONES
static final java.lang.String PARAM_INCLUDE_ZONES
- See Also:
- Constant Field Values
-
PARAM_IS_ROOT
static final java.lang.String PARAM_IS_ROOT
- See Also:
- Constant Field Values
-
PARAM_CASCADE
static final java.lang.String PARAM_CASCADE
- See Also:
- Constant Field Values
-
PARAM_MEMBER_TYPE
static final java.lang.String PARAM_MEMBER_TYPE
- See Also:
- Constant Field Values
-
PARAM_MEMBER_TYPE_GROUP
static final java.lang.String PARAM_MEMBER_TYPE_GROUP
- See Also:
- Constant Field Values
-
PARAM_MEMBER_TYPE_PERSON
static final java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.String groupId, GroupMember groupMember)
Create a group member.- Parameters:
groupId- the identifier of a group.- Returns:
- a
org.alfresco.rest.api.model.GroupMemberobject
-
deleteGroupMembership
void deleteGroupMembership(java.lang.String groupId, java.lang.String groupMemberId)Delete group membership- Parameters:
groupId-groupMemberId-
-
-