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 AuthenticationServiceauthenticationServiceprotected AuthorityServiceauthorityServiceprotected ContentServicecontentServiceprotected ContentUsageServicecontentUsageServiceprotected Nodesnodesprotected NodeServicenodeServiceprotected PersonServicepersonServiceprotected Renditionsrenditionsprotected ResetPasswordServiceresetPasswordServiceprotected Sitessitesprotected SiteServicesiteServiceprotected ThumbnailServicethumbnailServiceprotected UserRegistrySynchronizeruserRegistrySynchronizer-
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 Deprecated Methods Modifier and Type Method Description Personcreate(Person person)Create a person.voiddeleteAvatarContent(String personId)BinaryResourcedownloadAvatarContent(String personId, Parameters parameters)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(NodeRef personNodeRef)protected voidprocessPersonProperties(String userName, Map<org.alfresco.service.namespace.QName,Serializable> nodeProps)voidrequestPasswordReset(String userId, String client)Deprecated.voidresetPassword(String personId, PasswordReset passwordReset)Deprecated.voidsetAuthenticationService(AuthenticationService authenticationService)voidsetAuthorityService(AuthorityService authorityService)voidsetContentService(ContentService contentService)voidsetContentUsageService(ContentUsageService contentUsageService)voidsetNodes(Nodes nodes)voidsetNodeService(NodeService nodeService)voidsetPersonService(PersonService personService)voidsetRenditions(Renditions renditions)voidsetResetPasswordService(ResetPasswordService resetPasswordService)voidsetSites(Sites sites)voidsetSiteService(SiteService siteService)voidsetThumbnailService(ThumbnailService thumbnailService)voidsetUserRegistrySynchronizer(UserRegistrySynchronizer userRegistrySynchronizer)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 SiteService siteService
-
nodeService
protected NodeService nodeService
-
personService
protected PersonService personService
-
authenticationService
protected AuthenticationService authenticationService
-
authorityService
protected AuthorityService authorityService
-
contentUsageService
protected ContentUsageService contentUsageService
-
contentService
protected ContentService contentService
-
thumbnailService
protected ThumbnailService thumbnailService
-
resetPasswordService
protected ResetPasswordService resetPasswordService
-
userRegistrySynchronizer
protected UserRegistrySynchronizer userRegistrySynchronizer
-
renditions
protected Renditions renditions
-
-
Method Detail
-
setSites
public void setSites(Sites sites)
-
setSiteService
public void setSiteService(SiteService siteService)
-
setNodes
public void setNodes(Nodes nodes)
-
setNodeService
public void setNodeService(NodeService nodeService)
-
setPersonService
public void setPersonService(PersonService personService)
-
setAuthenticationService
public void setAuthenticationService(AuthenticationService authenticationService)
-
setAuthorityService
public void setAuthorityService(AuthorityService authorityService)
-
setContentUsageService
public void setContentUsageService(ContentUsageService contentUsageService)
-
setContentService
public void setContentService(ContentService contentService)
-
setThumbnailService
public void setThumbnailService(ThumbnailService thumbnailService)
-
setResetPasswordService
public void setResetPasswordService(ResetPasswordService resetPasswordService)
-
setRenditions
public void setRenditions(Renditions renditions)
-
setUserRegistrySynchronizer
public void setUserRegistrySynchronizer(UserRegistrySynchronizer userRegistrySynchronizer)
-
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(NodeRef personNodeRef)
-
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)
Get a full representation of a person.- Specified by:
getPersonin interfacePeople- Throws:
NoSuchPersonException- if personId does not exist
-
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
@Deprecated public void requestPasswordReset(String userId, String client)
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 public void resetPassword(String personId, PasswordReset passwordReset)
Deprecated.- Specified by:
resetPasswordin interfacePeoplepasswordReset- the password reset details
-
-