@RelationshipResource(name="members", entityResource=SiteEntityResource.class, title="Site Members") public class SiteMembersRelation extends Object implements RelationshipResourceAction.Read<SiteMember>, RelationshipResourceAction.Delete, RelationshipResourceAction.Create<SiteMember>, RelationshipResourceAction.Update<SiteMember>, RelationshipResourceAction.ReadById<SiteMember>, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
SiteMembersRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<SiteMember> |
create(String siteId,
List<SiteMember> siteMembers,
Parameters parameters)
POST sites/
|
void |
delete(String siteId,
String personId,
Parameters parameters)
DELETE sites/
|
CollectionWithPagingInfo<SiteMember> |
readAll(String siteId,
Parameters parameters)
Returns a paged list of all the members of the site 'siteId'.
|
SiteMember |
readById(String siteId,
String personId,
Parameters parameters)
Returns site membership information for personId in siteId.
|
void |
setSites(Sites sites) |
SiteMember |
update(String siteId,
SiteMember siteMember,
Parameters parameters)
PUT sites/
|
public void setSites(Sites sites)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public CollectionWithPagingInfo<SiteMember> readAll(String siteId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read<SiteMember>
siteId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default valuesEntityResourceAction.Read.readAll(org.alfresco.rest.framework.resource.parameters.Parameters)
public List<SiteMember> create(String siteId, List<SiteMember> siteMembers, Parameters parameters)
public void delete(String siteId, String personId, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
public SiteMember update(String siteId, SiteMember siteMember, Parameters parameters)
update
in interface RelationshipResourceAction.Update<SiteMember>
public SiteMember readById(String siteId, String personId, Parameters parameters)
readById
in interface RelationshipResourceAction.ReadById<SiteMember>
Copyright © 2005–2017 Alfresco Software. All rights reserved.