Package org.alfresco.rest.api.people
Class PeopleEntityResource
java.lang.Object
org.alfresco.rest.api.people.PeopleEntityResource
- All Implemented Interfaces:
BinaryResourceAction.Delete
,BinaryResourceAction.Read
,BinaryResourceAction.Update<Person>
,EntityResourceAction.Create<Person>
,EntityResourceAction.Read<Person>
,EntityResourceAction.ReadById<Person>
,EntityResourceAction.Update<Person>
,ResourceAction
,org.springframework.beans.factory.InitializingBean
@EntityResource(name="people",
title="People")
public class PeopleEntityResource
extends Object
implements EntityResourceAction.ReadById<Person>, EntityResourceAction.Create<Person>, EntityResourceAction.Update<Person>, EntityResourceAction.Read<Person>, BinaryResourceAction.Read, BinaryResourceAction.Update<Person>, BinaryResourceAction.Delete, org.springframework.beans.factory.InitializingBean
An implementation of an Entity Resource for a Person
- Author:
- sglover, Gethin James
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(List<Person> persons, Parameters parameters) void
deleteProperty
(String personId, Parameters parameters) Delete avatar image contentreadAll
(Parameters params) Reads all the entries from the collection.readById
(String personId, Parameters parameters) Get a person by userName.readProperty
(String personId, Parameters parameters) Download avatar image contentvoid
requestPasswordReset
(String personId, Client client, Parameters parameters, WithResponse withResponse) Deprecated.void
resetPassword
(String personId, PasswordReset passwordReset, Parameters parameters, WithResponse withResponse) Deprecated.void
update
(String personId, Person person, Parameters parameters) updateProperty
(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters) Upload avatar image content
-
Constructor Details
-
PeopleEntityResource
public PeopleEntityResource()
-
-
Method Details
-
setPeople
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
readById
Get a person by userName.- Specified by:
readById
in interfaceEntityResourceAction.ReadById<Person>
- See Also:
-
create
- Specified by:
create
in interfaceEntityResourceAction.Create<Person>
-
update
- Specified by:
update
in interfaceEntityResourceAction.Update<Person>
-
readAll
Description copied from interface:EntityResourceAction.Read
Reads all the entries from the collection. Paging information is provided.- Specified by:
readAll
in interfaceEntityResourceAction.Read<Person>
- Parameters:
params
- - will never be null and will have the PAGING default values
-
requestPasswordReset
@Deprecated @WebApiNoAuth public void requestPasswordReset(String personId, Client client, Parameters parameters, WithResponse withResponse) Deprecated. -
resetPassword
@Deprecated @WebApiNoAuth public void resetPassword(String personId, PasswordReset passwordReset, Parameters parameters, WithResponse withResponse) Deprecated. -
readProperty
public BinaryResource readProperty(String personId, Parameters parameters) throws EntityNotFoundException Download avatar image content- Specified by:
readProperty
in interfaceBinaryResourceAction.Read
- Parameters:
personId
-parameters
-Parameters
- Returns:
- Throws:
EntityNotFoundException
-
updateProperty
public Person updateProperty(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters) Upload avatar image content- Specified by:
updateProperty
in interfaceBinaryResourceAction.Update<Person>
- Parameters:
personId
-contentInfo
- Basic information about the content streamstream
- An inputstreamparameters
-- Returns:
-
deleteProperty
Delete avatar image content- Specified by:
deleteProperty
in interfaceBinaryResourceAction.Delete
- Parameters:
personId
-parameters
-
-