@EntityResource(name="people", title="People") public class PeopleEntityResource extends Object implements EntityResourceAction.ReadById<Person>, EntityResourceAction.Create<Person>, EntityResourceAction.Update<Person>, EntityResourceAction.Read<Person>, 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) |
CollectionWithPagingInfo<Person> |
readAll(Parameters params)
Reads all the entries from the collection.
|
Person |
readById(String personId,
Parameters parameters)
Get a person by userName.
|
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) |
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)
Copyright © 2005–2017 Alfresco Software. All rights reserved.