@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
| Constructor and Description |
|---|
PeopleEntityResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
List<Person> |
create(List<Person> persons,
Parameters parameters) |
void |
deleteProperty(String personId,
Parameters parameters)
Delete avatar image content
|
CollectionWithPagingInfo<Person> |
readAll(Parameters params)
Reads all the entries from the collection.
|
Person |
readById(String personId,
Parameters parameters)
Get a person by userName.
|
BinaryResource |
readProperty(String personId,
Parameters parameters)
Download avatar image content
|
void |
requestPasswordReset(String personId,
Client client,
Parameters parameters,
WithResponse withResponse) |
void |
resetPassword(String personId,
PasswordReset passwordReset,
Parameters parameters,
WithResponse withResponse) |
void |
setPeople(People people) |
Person |
update(String personId,
Person person,
Parameters parameters) |
Person |
updateProperty(String personId,
BasicContentInfo contentInfo,
InputStream stream,
Parameters parameters)
Upload avatar image content
|
public void setPeople(People people)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic Person readById(String personId, Parameters parameters)
readById in interface EntityResourceAction.ReadById<Person>EntityResourceAction.ReadById.readById(String, org.alfresco.rest.framework.resource.parameters.Parameters)public List<Person> create(List<Person> persons, Parameters parameters)
create in interface EntityResourceAction.Create<Person>public Person update(String personId, Person person, Parameters parameters)
update in interface EntityResourceAction.Update<Person>public CollectionWithPagingInfo<Person> readAll(Parameters params)
EntityResourceAction.ReadreadAll in interface EntityResourceAction.Read<Person>params - - will never be null and will have the PAGING default values@WebApiNoAuth public void requestPasswordReset(String personId, Client client, Parameters parameters, WithResponse withResponse)
@WebApiNoAuth public void resetPassword(String personId, PasswordReset passwordReset, Parameters parameters, WithResponse withResponse)
public BinaryResource readProperty(String personId, Parameters parameters) throws EntityNotFoundException
readProperty in interface BinaryResourceAction.ReadpersonId - parameters - ParametersEntityNotFoundExceptionpublic Person updateProperty(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters)
updateProperty in interface BinaryResourceAction.Update<Person>personId - contentInfo - Basic information about the content streamstream - An inputstreamparameters - public void deleteProperty(String personId, Parameters parameters)
deleteProperty in interface BinaryResourceAction.DeletepersonId - parameters - Copyright © 2005–2018 Alfresco Software. All rights reserved.