@RelationshipResource(name="groups", entityResource=PeopleEntityResource.class, title="Person Groups") public class PersonGroupsRelation extends Object implements RelationshipResourceAction.Read<Group>, org.springframework.beans.factory.InitializingBean
For example, list groups for person jbloggs.
Constructor and Description |
---|
PersonGroupsRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
CollectionWithPagingInfo<Group> |
readAll(String personId,
Parameters params)
Reads all the relationship entities from the collection using the related entityResourceId.
|
void |
setGroups(Groups groups) |
public void setGroups(Groups groups)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public CollectionWithPagingInfo<Group> readAll(String personId, Parameters params)
RelationshipResourceAction.Read
readAll
in interface RelationshipResourceAction.Read<Group>
personId
- Entity resource context for this relationshipparams
- - will never be null and will have the PAGING default valuesCopyright © 2005–2017 Alfresco Software. All rights reserved.