@RelationshipResource(name="sites", entityResource=PeopleEntityResource.class, title="Person Sites") public class PersonSitesRelation extends Object implements RelationshipResourceAction.Read<MemberOfSite>, RelationshipResourceAction.ReadById<MemberOfSite>, RelationshipResourceAction.Delete, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
PersonSitesRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
delete(String personId,
String siteId,
Parameters parameters) |
CollectionWithPagingInfo<MemberOfSite> |
readAll(String personId,
Parameters parameters)
List all the sites that the specified user has a explicit membership of.
|
MemberOfSite |
readById(String personId,
String siteId,
Parameters parameters)
Returns site membership information for personId in siteId.
|
void |
setSites(Sites sites) |
public void setSites(Sites sites)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public CollectionWithPagingInfo<MemberOfSite> readAll(String personId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read<MemberOfSite>
personId
- the id (email) of the person
(non-Javadoc)parameters
- - will never be null and will have the PAGING default valuesRelationshipResourceAction.Read.readAll(String, org.alfresco.rest.framework.resource.parameters.Parameters)
public MemberOfSite readById(String personId, String siteId, Parameters parameters)
public void delete(String personId, String siteId, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
Copyright © 2005–2017 Alfresco Software. All rights reserved.