@RelationshipResource(name="favorites", entityResource=PeopleEntityResource.class, title="Person Favorites") public class PersonFavouritesRelation extends java.lang.Object implements RelationshipResourceAction.Read, RelationshipResourceAction.ReadById, RelationshipResourceAction.Create, RelationshipResourceAction.Delete, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
PersonFavouritesRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
java.util.List |
create(java.lang.String personId,
java.util.List entity,
Parameters parameters)
Adds the given site as a favourite site for the user.
|
void |
delete(java.lang.String personId,
java.lang.String id,
Parameters parameters) |
CollectionWithPagingInfo |
readAll(java.lang.String personId,
Parameters parameters)
List the user's favourites.
|
Favourite |
readById(java.lang.String personId,
java.lang.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 readAll(java.lang.String personId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read
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 java.util.List create(java.lang.String personId, java.util.List entity, Parameters parameters)
create
in interface RelationshipResourceAction.Create
org.alfresco.rest.framework.resource.actions.interfaces.RelationshipResourceAction.Create#create(java.lang.String, org.alfresco.rest.api.model.FavouriteSite)
public void delete(java.lang.String personId, java.lang.String id, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
public Favourite readById(java.lang.String personId, java.lang.String favouriteId, Parameters parameters) throws RelationshipResourceNotFoundException
readById
in interface RelationshipResourceAction.ReadById
RelationshipResourceNotFoundException
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.