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 AuthenticationServiceprotected AuthorityServiceprotected ContentServiceprotected ContentUsageServiceprotected Nodesprotected NodeServiceprotected PersonServiceprotected Renditionsprotected ResetPasswordServiceprotected Sitesprotected SiteServiceprotected ThumbnailServiceprotected UserRegistrySynchronizerFields 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.voiddeleteAvatarContent(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.booleanprotected voidprocessPersonProperties(String userName, Map<org.alfresco.service.namespace.QName, Serializable> nodeProps) voidrequestPasswordReset(String userId, String client) Deprecated.voidresetPassword(String personId, PasswordReset passwordReset) Deprecated.voidsetAllowImmutableEnabledUpdate(Boolean allowImmutableEnabledUpdate) voidsetAuthenticationService(AuthenticationService authenticationService) voidsetAuthorityService(AuthorityService authorityService) voidsetContentService(ContentService contentService) voidsetContentUsageService(ContentUsageService contentUsageService) voidvoidsetNodeService(NodeService nodeService) voidsetPersonService(PersonService personService) voidsetRenditions(Renditions renditions) voidsetResetPasswordService(ResetPasswordService resetPasswordService) voidvoidsetSiteService(SiteService siteService) voidsetThumbnailService(ThumbnailService thumbnailService) voidsetUserRegistrySynchronizer(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
-
setAllowImmutableEnabledUpdate
-
validatePerson
Validate, perform -me- substitution and canonicalize the person ID.- Specified by:
validatePersonin interfacePeople- Parameters:
personId-- Returns:
- The validated and processed ID.
-
validatePerson
- Specified by:
validatePersonin interfacePeople
-
processPersonProperties
protected void processPersonProperties(String userName, Map<org.alfresco.service.namespace.QName, Serializable> nodeProps) -
hasAvatar
-
getAvatar
-
downloadAvatarContent
- Specified by:
downloadAvatarContentin interfacePeople- Parameters:
personId-parameters-- Returns:
-
uploadAvatarContent
public Person uploadAvatarContent(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters) - Specified by:
uploadAvatarContentin interfacePeople- Parameters:
personId-contentInfo-stream-parameters-- Returns:
-
deleteAvatarContent
- Specified by:
deleteAvatarContentin interfacePeople- Parameters:
personId-
-
getPerson
Get a full representation of a person.- Specified by:
getPersonin interfacePeople- Throws:
NoSuchPersonException- if personId does not exist
-
getPerson
Description copied from interface:PeopleGet a person, specifying optional includes as required. -
getPeople
Description copied from interface:PeopleGet people list -
create
Description copied from interface:PeopleCreate a person. -
update
Description copied from interface:PeopleUpdate the given person's details. -
requestPasswordReset
Deprecated.- Specified by:
requestPasswordResetin 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:
resetPasswordin interfacePeople- Parameters:
passwordReset- the password reset details
-