Package org.alfresco.rest.api.people
Class PersonGroupsRelation
- java.lang.Object
-
- org.alfresco.rest.api.people.PersonGroupsRelation
-
- All Implemented Interfaces:
RelationshipResourceAction.Read<Group>
,ResourceAction
,org.springframework.beans.factory.InitializingBean
@RelationshipResource(name="groups", entityResource=PeopleEntityResource.class, title="Person Groups") public class PersonGroupsRelation extends Object implements RelationshipResourceAction.Read<Group>, org.springframework.beans.factory.InitializingBean
Provide access to the groups of which a person is a member.For example, list groups for person jbloggs.
- Author:
- Matt Ward
-
-
Constructor Summary
Constructors Constructor Description PersonGroupsRelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
CollectionWithPagingInfo<Group>
readAll(String personId, Parameters params)
Reads set the relationship entities from the collection using the related entityResourceId.void
setGroups(Groups groups)
-
-
-
Method Detail
-
setGroups
public void setGroups(Groups groups)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
readAll
public CollectionWithPagingInfo<Group> readAll(String personId, Parameters params)
Description copied from interface:RelationshipResourceAction.Read
Reads set the relationship entities from the collection using the related entityResourceId. Paging information is provided.- Specified by:
readAll
in interfaceRelationshipResourceAction.Read<Group>
- Parameters:
personId
- Entity resource context for this relationshipparams
- - will never be null and will have the PAGING default values
-
-