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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
readAll
(String personId, Parameters parameters) Returns a paged list of preferences for the user personId.readById
(String personId, String preferenceName, Parameters parameters) Returns information regarding the preference 'preferenceName' for user personId.void
setPreferences
(Preferences preferences)
-
Constructor Details
-
PersonPreferencesRelation
public PersonPreferencesRelation()
-
-
Method Details
-
setPreferences
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
readAll
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:
-
readById
Returns information regarding the preference 'preferenceName' for user personId. If personId does not exist, NotFoundException (status 404).
-