Package org.alfresco.rest.api.people
Class PersonPreferencesRelation
- java.lang.Object
-
- org.alfresco.rest.api.people.PersonPreferencesRelation
-
- All Implemented Interfaces:
RelationshipResourceAction.Read<Preference>
,RelationshipResourceAction.ReadById<Preference>
,ResourceAction
,org.springframework.beans.factory.InitializingBean
@RelationshipResource(name="preferences", entityResource=PeopleEntityResource.class, title="Person Preferences") public class PersonPreferencesRelation extends Object implements RelationshipResourceAction.Read<Preference>, RelationshipResourceAction.ReadById<Preference>, org.springframework.beans.factory.InitializingBean
-
-
Constructor Summary
Constructors Constructor Description PersonPreferencesRelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
CollectionWithPagingInfo<Preference>
readAll(String personId, Parameters parameters)
Returns a paged list of preferences for the user personId.Preference
readById(String personId, String preferenceName, Parameters parameters)
Returns information regarding the preference 'preferenceName' for user personId.void
setPreferences(Preferences preferences)
-
-
-
Method Detail
-
setPreferences
public void setPreferences(Preferences preferences)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
readAll
public CollectionWithPagingInfo<Preference> readAll(String personId, Parameters parameters)
Returns a paged list of preferences for the user personId. If personId does not exist, NotFoundException (status 404).- Specified by:
readAll
in interfaceRelationshipResourceAction.Read<Preference>
- Parameters:
personId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default values- See Also:
RelationshipResourceAction.Read.readAll(java.lang.String, org.alfresco.rest.framework.resource.parameters.Parameters)
-
readById
public Preference readById(String personId, String preferenceName, Parameters parameters)
Returns information regarding the preference 'preferenceName' for user personId. If personId does not exist, NotFoundException (status 404).
-
-