Package org.alfresco.rest.api.people
Class PersonSitesRelation
java.lang.Object
org.alfresco.rest.api.people.PersonSitesRelation
- All Implemented Interfaces:
RelationshipResourceAction.Delete
,RelationshipResourceAction.Read<MemberOfSite>
,RelationshipResourceAction.ReadById<MemberOfSite>
,ResourceAction
,org.springframework.beans.factory.InitializingBean
@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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
delete
(String personId, String siteId, Parameters parameters) readAll
(String personId, Parameters parameters) List all the sites that the specified user has a explicit membership of.readById
(String personId, String siteId, Parameters parameters) Returns site membership information for personId in siteId.void
-
Constructor Details
-
PersonSitesRelation
public PersonSitesRelation()
-
-
Method Details
-
setSites
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
readAll
List all the sites that the specified user has a explicit membership of. THOR-1151: “F312: For a user, get the list of sites they are a member of” If personId does not exist, NotFoundException (status 404).- Specified by:
readAll
in interfaceRelationshipResourceAction.Read<MemberOfSite>
- Parameters:
personId
- the id (email) of the person (non-Javadoc)parameters
- - will never be null and will have the PAGING default values- See Also:
-
readById
Returns site membership information for personId in siteId. -
delete
- Specified by:
delete
in interfaceRelationshipResourceAction.Delete
-