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 TypeMethodDescriptionvoidcreate(List<Person> persons, Parameters parameters) voiddeauthorizeUser(String personId, Void body, Parameters parameters, WithResponse withResponse) De-authorize user Not currently supported in community edition.voiddeleteProperty(String personId, Parameters parameters) Delete avatar image contentgetReauthorizationCode(String personId, Void body, Parameters parameters, WithResponse withResponse) Get the authorization code.readAll(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 contentvoidreauthorizeUser(String personId, AuthKey authKey, Parameters parameters, WithResponse withResponse) Reauthorize user.voidrequestPasswordReset(String personId, Client client, Parameters parameters, WithResponse withResponse) Deprecated.voidresetPassword(String personId, PasswordReset passwordReset, Parameters parameters, WithResponse withResponse) Deprecated.voidupdate(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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
readById
Get a person by userName.- Specified by:
readByIdin interfaceEntityResourceAction.ReadById<Person>- See Also:
-
create
- Specified by:
createin interfaceEntityResourceAction.Create<Person>
-
update
- Specified by:
updatein interfaceEntityResourceAction.Update<Person>
-
readAll
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
@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:
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
Delete avatar image content- Specified by:
deletePropertyin interfaceBinaryResourceAction.Delete- Parameters:
personId-parameters-
-
deauthorizeUser
public void deauthorizeUser(String personId, Void body, Parameters parameters, WithResponse withResponse) De-authorize user Not currently supported in community edition.- Parameters:
personId-body-parameters-withResponse-
-
getReauthorizationCode
public AuthCode getReauthorizationCode(String personId, Void body, Parameters parameters, WithResponse withResponse) Get the authorization code. Not supported in community edition. -
reauthorizeUser
public void reauthorizeUser(String personId, AuthKey authKey, Parameters parameters, WithResponse withResponse) Reauthorize user. Not supported in community edition.
-