@RelationshipResource(name="favorite-sites", entityResource=PeopleEntityResource.class, title="Person Favorite Sites") public class PersonFavouriteSitesRelation extends Object implements RelationshipResourceAction.Read<FavouriteSite>, RelationshipResourceAction.ReadById<FavouriteSite>, RelationshipResourceAction.Create<FavouriteSite>, RelationshipResourceAction.Delete, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
PersonFavouriteSitesRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<FavouriteSite> |
create(String personId,
List<FavouriteSite> entity,
Parameters parameters)
Adds the given site as a favourite site for the user.
|
void |
delete(String personId,
String siteId,
Parameters parameters) |
CollectionWithPagingInfo<FavouriteSite> |
readAll(String personId,
Parameters parameters)
List the user's favourite sites.
|
FavouriteSite |
readById(String personId,
String siteShortName,
Parameters parameters)
List the favourite site information for a specific site.
|
void |
setSites(Sites sites) |
public void setSites(Sites sites)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public CollectionWithPagingInfo<FavouriteSite> readAll(String personId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read<FavouriteSite>
personId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default valuesRelationshipResourceAction.Read.readAll(java.lang.String, org.alfresco.rest.framework.resource.parameters.Parameters)
public FavouriteSite readById(String personId, String siteShortName, Parameters parameters)
public List<FavouriteSite> create(String personId, List<FavouriteSite> entity, Parameters parameters)
public void delete(String personId, String siteId, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
Copyright © 2005–2017 Alfresco Software. All rights reserved.