@RelationshipResource(name="sites", entityResource=PeopleEntityResource.class, title="Person Sites") public class PersonSitesRelation extends java.lang.Object implements RelationshipResourceAction.Read, RelationshipResourceAction.ReadById, RelationshipResourceAction.Delete, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
PersonSitesRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
delete(java.lang.String personId,
java.lang.String siteId,
Parameters parameters) |
CollectionWithPagingInfo |
readAll(java.lang.String personId,
Parameters parameters)
List all the sites that the specified user has a explicit membership of.
|
MemberOfSite |
readById(java.lang.String personId,
java.lang.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 readAll(java.lang.String personId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read
personId
- the id (email) of the person
(non-Javadoc)parameters
- - will never be null and will have the PAGING default valuesorg.alfresco.rest.framework.resource.actions.interfaces.RelationshipCollectionResourceAction.Read#readAll(java.lang.String, org.alfresco.rest.framework.resource.parameters.Paging)
public MemberOfSite readById(java.lang.String personId, java.lang.String siteId, Parameters parameters)
readById
in interface RelationshipResourceAction.ReadById
org.alfresco.rest.framework.resource.actions.interfaces.RelationshipCollectionResourceAction.ReadById#readById(java.lang.String, java.lang.String)
public void delete(java.lang.String personId, java.lang.String siteId, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.