Package org.alfresco.rest.api.impl
Class PeopleImpl
- java.lang.Object
-
- org.alfresco.rest.api.impl.PeopleImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected org.alfresco.service.cmr.security.AuthenticationServiceauthenticationServiceprotected org.alfresco.service.cmr.security.AuthorityServiceauthorityServiceprotected org.alfresco.service.cmr.repository.ContentServicecontentServiceprotected org.alfresco.service.cmr.usage.ContentUsageServicecontentUsageServiceprotected Nodesnodesprotected org.alfresco.service.cmr.repository.NodeServicenodeServiceprotected org.alfresco.service.cmr.security.PersonServicepersonServiceprotected Renditionsrenditionsprotected org.alfresco.repo.security.authentication.ResetPasswordServiceresetPasswordServiceprotected Sitessitesprotected org.alfresco.service.cmr.site.SiteServicesiteServiceprotected org.alfresco.service.cmr.thumbnail.ThumbnailServicethumbnailService-
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 Constructor Description PeopleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Personcreate(Person person)Create a person.voiddeleteAvatarContent(String personId)BinaryResourcedownloadAvatarContent(String personId, Parameters parameters)org.alfresco.service.cmr.repository.NodeRefgetAvatar(String personId)CollectionWithPagingInfo<Person>getPeople(Parameters parameters)Get people listPersongetPerson(String personId)Get a full representation of a person.PersongetPerson(String personId, List<String> include)Get a person, specifying optional includes as required.booleanhasAvatar(org.alfresco.service.cmr.repository.NodeRef personNodeRef)protected voidprocessPersonProperties(String userName, Map<org.alfresco.service.namespace.QName,Serializable> nodeProps)voidrequestPasswordReset(String userId, String client)Request password reset (an email will be sent to the registered email of the givenuserId).voidresetPassword(String personId, PasswordReset passwordReset)Performs password resetvoidsetAuthenticationService(org.alfresco.service.cmr.security.AuthenticationService authenticationService)voidsetAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)voidsetContentService(org.alfresco.service.cmr.repository.ContentService contentService)voidsetContentUsageService(org.alfresco.service.cmr.usage.ContentUsageService contentUsageService)voidsetNodes(Nodes nodes)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetPersonService(org.alfresco.service.cmr.security.PersonService personService)voidsetRenditions(Renditions renditions)voidsetResetPasswordService(org.alfresco.repo.security.authentication.ResetPasswordService resetPasswordService)voidsetSites(Sites sites)voidsetSiteService(org.alfresco.service.cmr.site.SiteService siteService)voidsetThumbnailService(org.alfresco.service.cmr.thumbnail.ThumbnailService thumbnailService)Personupdate(String personId, Person person)Update the given person's details.PersonuploadAvatarContent(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters)StringvalidatePerson(String personId)Validate, perform -me- substitution and canonicalize the person ID.StringvalidatePerson(String requestedPersonId, boolean validateIsCurrentUser)
-
-
-
Field Detail
-
nodes
protected Nodes nodes
-
sites
protected Sites sites
-
siteService
protected org.alfresco.service.cmr.site.SiteService siteService
-
nodeService
protected org.alfresco.service.cmr.repository.NodeService nodeService
-
personService
protected org.alfresco.service.cmr.security.PersonService personService
-
authenticationService
protected org.alfresco.service.cmr.security.AuthenticationService authenticationService
-
authorityService
protected org.alfresco.service.cmr.security.AuthorityService authorityService
-
contentUsageService
protected org.alfresco.service.cmr.usage.ContentUsageService contentUsageService
-
contentService
protected org.alfresco.service.cmr.repository.ContentService contentService
-
thumbnailService
protected org.alfresco.service.cmr.thumbnail.ThumbnailService thumbnailService
-
resetPasswordService
protected org.alfresco.repo.security.authentication.ResetPasswordService resetPasswordService
-
renditions
protected Renditions renditions
-
-
Method Detail
-
setSites
public void setSites(Sites sites)
-
setSiteService
public void setSiteService(org.alfresco.service.cmr.site.SiteService siteService)
-
setNodes
public void setNodes(Nodes nodes)
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setPersonService
public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
-
setAuthenticationService
public void setAuthenticationService(org.alfresco.service.cmr.security.AuthenticationService authenticationService)
-
setAuthorityService
public void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
-
setContentUsageService
public void setContentUsageService(org.alfresco.service.cmr.usage.ContentUsageService contentUsageService)
-
setContentService
public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
-
setThumbnailService
public void setThumbnailService(org.alfresco.service.cmr.thumbnail.ThumbnailService thumbnailService)
-
setResetPasswordService
public void setResetPasswordService(org.alfresco.repo.security.authentication.ResetPasswordService resetPasswordService)
-
setRenditions
public void setRenditions(Renditions renditions)
-
validatePerson
public String validatePerson(String personId)
Validate, perform -me- substitution and canonicalize the person ID.- Specified by:
validatePersonin interfacePeople- Parameters:
personId-- Returns:
- The validated and processed ID.
-
validatePerson
public String validatePerson(String requestedPersonId, boolean validateIsCurrentUser)
- Specified by:
validatePersonin interfacePeople
-
processPersonProperties
protected void processPersonProperties(String userName, Map<org.alfresco.service.namespace.QName,Serializable> nodeProps)
-
hasAvatar
public boolean hasAvatar(org.alfresco.service.cmr.repository.NodeRef personNodeRef)
-
getAvatar
public org.alfresco.service.cmr.repository.NodeRef getAvatar(String personId)
-
downloadAvatarContent
public BinaryResource downloadAvatarContent(String personId, Parameters parameters)
- Specified by:
downloadAvatarContentin interfacePeople- Returns:
-
uploadAvatarContent
public Person uploadAvatarContent(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters)
- Specified by:
uploadAvatarContentin interfacePeople- Returns:
-
deleteAvatarContent
public void deleteAvatarContent(String personId)
- Specified by:
deleteAvatarContentin interfacePeople
-
getPerson
public Person getPerson(String personId, List<String> include)
Description copied from interface:PeopleGet a person, specifying optional includes as required.
-
getPeople
public CollectionWithPagingInfo<Person> getPeople(Parameters parameters)
Description copied from interface:PeopleGet people list
-
create
public Person create(Person person)
Description copied from interface:PeopleCreate a person.
-
update
public Person update(String personId, Person person)
Description copied from interface:PeopleUpdate the given person's details.
-
requestPasswordReset
public void requestPasswordReset(String userId, String client)
Description copied from interface:PeopleRequest password reset (an email will be sent to the registered email of the givenuserId). The API returns a 202 response for a valid, as well as the invalid (does not exist or disabled) userId- 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
public void resetPassword(String personId, PasswordReset passwordReset)
Description copied from interface:PeoplePerforms password reset- Specified by:
resetPasswordin interfacePeoplepasswordReset- the password reset details
-
-