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 Constructor Description PeopleEntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()List<Person>create(List<Person> persons, Parameters parameters)voiddeleteProperty(String personId, Parameters parameters)Delete avatar image contentCollectionWithPagingInfo<Person>readAll(Parameters params)Reads all the entries from the collection.PersonreadById(String personId, Parameters parameters)Get a person by userName.BinaryResourcereadProperty(String personId, Parameters parameters)Download avatar image contentvoidrequestPasswordReset(String personId, Client client, Parameters parameters, WithResponse withResponse)voidresetPassword(String personId, PasswordReset passwordReset, Parameters parameters, WithResponse withResponse)voidsetPeople(People people)Personupdate(String personId, Person person, Parameters parameters)PersonupdateProperty(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters)Upload avatar image content
-
-
-
Method Detail
-
setPeople
public void setPeople(People people)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
readById
public Person readById(String personId, Parameters parameters)
Get a person by userName.- Specified by:
readByIdin interfaceEntityResourceAction.ReadById<Person>- See Also:
EntityResourceAction.ReadById.readById(String, org.alfresco.rest.framework.resource.parameters.Parameters)
-
create
public List<Person> create(List<Person> persons, Parameters parameters)
- Specified by:
createin interfaceEntityResourceAction.Create<Person>
-
update
public Person update(String personId, Person person, Parameters parameters)
- Specified by:
updatein interfaceEntityResourceAction.Update<Person>
-
readAll
public CollectionWithPagingInfo<Person> readAll(Parameters params)
Description copied from interface:EntityResourceAction.ReadReads all the entries from the collection. Paging information is provided.- Specified by:
readAllin interfaceEntityResourceAction.Read<Person>- Parameters:
params- - will never be null and will have the PAGING default values
-
requestPasswordReset
@WebApiNoAuth public void requestPasswordReset(String personId, Client client, Parameters parameters, WithResponse withResponse)
-
resetPassword
@WebApiNoAuth public void resetPassword(String personId, PasswordReset passwordReset, Parameters parameters, WithResponse withResponse)
-
readProperty
public BinaryResource readProperty(String personId, Parameters parameters) throws EntityNotFoundException
Download avatar image content- Specified by:
readPropertyin 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:
updatePropertyin interfaceBinaryResourceAction.Update<Person>- Parameters:
personId-contentInfo- Basic information about the content streamstream- An inputstreamparameters-- Returns:
-
deleteProperty
public void deleteProperty(String personId, Parameters parameters)
Delete avatar image content- Specified by:
deletePropertyin interfaceBinaryResourceAction.Delete- Parameters:
personId-parameters-
-
-