Package org.alfresco.rest.api.impl
Class PeopleImpl
java.lang.Object
org.alfresco.rest.api.impl.PeopleImpl
- All Implemented Interfaces:
People
Centralises access to people services and maps between representations.
- Since:
- publicapi1.0
- Author:
- steveglover
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthenticationService
protected AuthorityService
protected ContentService
protected ContentUsageService
protected Nodes
protected NodeService
protected PersonService
protected Renditions
protected ResetPasswordService
protected Sites
protected SiteService
protected ThumbnailService
protected UserRegistrySynchronizer
Fields inherited from interface org.alfresco.rest.api.People
DEFAULT_USER, PARAM_FIRST_NAME, PARAM_ID, PARAM_INCLUDE_ASPECTNAMES, PARAM_INCLUDE_CAPABILITIES, PARAM_INCLUDE_PROPERTIES, PARAM_LAST_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a person.void
deleteAvatarContent
(String personId) downloadAvatarContent
(String personId, Parameters parameters) getPeople
(Parameters parameters) Get people listGet a full representation of a person.Get a person, specifying optional includes as required.boolean
protected void
processPersonProperties
(String userName, Map<org.alfresco.service.namespace.QName, Serializable> nodeProps) void
requestPasswordReset
(String userId, String client) Deprecated.void
resetPassword
(String personId, PasswordReset passwordReset) Deprecated.void
setAuthenticationService
(AuthenticationService authenticationService) void
setAuthorityService
(AuthorityService authorityService) void
setContentService
(ContentService contentService) void
setContentUsageService
(ContentUsageService contentUsageService) void
void
setNodeService
(NodeService nodeService) void
setPersonService
(PersonService personService) void
setRenditions
(Renditions renditions) void
setResetPasswordService
(ResetPasswordService resetPasswordService) void
void
setSiteService
(SiteService siteService) void
setThumbnailService
(ThumbnailService thumbnailService) void
setUserRegistrySynchronizer
(UserRegistrySynchronizer userRegistrySynchronizer) Update the given person's details.uploadAvatarContent
(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters) validatePerson
(String personId) Validate, perform -me- substitution and canonicalize the person ID.validatePerson
(String requestedPersonId, boolean validateIsCurrentUser)
-
Field Details
-
nodes
-
sites
-
siteService
-
nodeService
-
personService
-
authenticationService
-
authorityService
-
contentUsageService
-
contentService
-
thumbnailService
-
resetPasswordService
-
userRegistrySynchronizer
-
renditions
-
-
Constructor Details
-
PeopleImpl
public PeopleImpl()
-
-
Method Details
-
setSites
-
setSiteService
-
setNodes
-
setNodeService
-
setPersonService
-
setAuthenticationService
-
setAuthorityService
-
setContentUsageService
-
setContentService
-
setThumbnailService
-
setResetPasswordService
-
setRenditions
-
setUserRegistrySynchronizer
-
validatePerson
Validate, perform -me- substitution and canonicalize the person ID.- Specified by:
validatePerson
in interfacePeople
- Parameters:
personId
-- Returns:
- The validated and processed ID.
-
validatePerson
- Specified by:
validatePerson
in interfacePeople
-
processPersonProperties
protected void processPersonProperties(String userName, Map<org.alfresco.service.namespace.QName, Serializable> nodeProps) -
hasAvatar
-
getAvatar
-
downloadAvatarContent
- Specified by:
downloadAvatarContent
in interfacePeople
- Returns:
-
uploadAvatarContent
public Person uploadAvatarContent(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters) - Specified by:
uploadAvatarContent
in interfacePeople
- Returns:
-
deleteAvatarContent
- Specified by:
deleteAvatarContent
in interfacePeople
-
getPerson
Get a full representation of a person.- Specified by:
getPerson
in interfacePeople
- Throws:
NoSuchPersonException
- if personId does not exist
-
getPerson
Description copied from interface:People
Get a person, specifying optional includes as required. -
getPeople
Description copied from interface:People
Get people list -
create
Description copied from interface:People
Create a person. -
update
Description copied from interface:People
Update the given person's details. -
requestPasswordReset
Deprecated.- Specified by:
requestPasswordReset
in interfacePeople
- Parameters:
userId
- the user id of the person requesting the password resetclient
- the client name which is registered to send emails
-
resetPassword
Deprecated.- Specified by:
resetPassword
in interfacePeople
passwordReset
- the password reset details
-