@RelationshipResource(name="favorites", entityResource=PeopleEntityResource.class, title="Person Favorites") public class PersonFavouritesRelation extends Object implements RelationshipResourceAction.Read<Favourite>, RelationshipResourceAction.ReadById<Favourite>, RelationshipResourceAction.Create<Favourite>, RelationshipResourceAction.Delete, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
PersonFavouritesRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<Favourite> |
create(String personId,
List<Favourite> entity,
Parameters parameters)
Adds the given site as a favourite site for the user.
|
void |
delete(String personId,
String id,
Parameters parameters) |
CollectionWithPagingInfo<Favourite> |
readAll(String personId,
Parameters parameters)
List the user's favourites.
|
Favourite |
readById(String personId,
String favouriteId,
Parameters parameters) |
void |
setFavourites(Favourites favourites) |
public void setFavourites(Favourites favourites)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public CollectionWithPagingInfo<Favourite> readAll(String personId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read<Favourite>
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 List<Favourite> create(String personId, List<Favourite> entity, Parameters parameters)
public void delete(String personId, String id, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
public Favourite readById(String personId, String favouriteId, Parameters parameters) throws RelationshipResourceNotFoundException
readById
in interface RelationshipResourceAction.ReadById<Favourite>
RelationshipResourceNotFoundException
Copyright © 2005–2017 Alfresco Software. All rights reserved.