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 AuthenticationService
authenticationService
protected AuthorityService
authorityService
protected ContentService
contentService
protected ContentUsageService
contentUsageService
protected Nodes
nodes
protected NodeService
nodeService
protected PersonService
personService
protected Renditions
renditions
protected ResetPasswordService
resetPasswordService
protected Sites
sites
protected SiteService
siteService
protected ThumbnailService
thumbnailService
protected UserRegistrySynchronizer
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 Constructor Description PeopleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Person
create(Person person)
Create a person.void
deleteAvatarContent(String personId)
BinaryResource
downloadAvatarContent(String personId, Parameters parameters)
NodeRef
getAvatar(String personId)
CollectionWithPagingInfo<Person>
getPeople(Parameters parameters)
Get people listPerson
getPerson(String personId)
Get a full representation of a person.Person
getPerson(String personId, List<String> include)
Get a person, specifying optional includes as required.boolean
hasAvatar(NodeRef personNodeRef)
protected void
processPersonProperties(String userName, Map<org.alfresco.service.namespace.QName,Serializable> nodeProps)
void
requestPasswordReset(String userId, String client)
Request password reset (an email will be sent to the registered email of the givenuserId
).void
resetPassword(String personId, PasswordReset passwordReset)
Performs password resetvoid
setAuthenticationService(AuthenticationService authenticationService)
void
setAuthorityService(AuthorityService authorityService)
void
setContentService(ContentService contentService)
void
setContentUsageService(ContentUsageService contentUsageService)
void
setNodes(Nodes nodes)
void
setNodeService(NodeService nodeService)
void
setPersonService(PersonService personService)
void
setRenditions(Renditions renditions)
void
setResetPasswordService(ResetPasswordService resetPasswordService)
void
setSites(Sites sites)
void
setSiteService(SiteService siteService)
void
setThumbnailService(ThumbnailService thumbnailService)
void
setUserRegistrySynchronizer(UserRegistrySynchronizer userRegistrySynchronizer)
Person
update(String personId, Person person)
Update the given person's details.Person
uploadAvatarContent(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters)
String
validatePerson(String personId)
Validate, perform -me- substitution and canonicalize the person ID.String
validatePerson(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:
validatePerson
in interfacePeople
- Parameters:
personId
-- Returns:
- The validated and processed ID.
-
validatePerson
public String validatePerson(String requestedPersonId, boolean validateIsCurrentUser)
- Specified by:
validatePerson
in 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:
downloadAvatarContent
in interfacePeople
- Returns:
-
uploadAvatarContent
public Person uploadAvatarContent(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters)
- Specified by:
uploadAvatarContent
in interfacePeople
- Returns:
-
deleteAvatarContent
public void deleteAvatarContent(String personId)
- Specified by:
deleteAvatarContent
in interfacePeople
-
getPerson
public Person getPerson(String personId)
Get a full representation of a person.- Specified by:
getPerson
in interfacePeople
- Throws:
NoSuchPersonException
- if personId does not exist
-
getPerson
public Person getPerson(String personId, List<String> include)
Description copied from interface:People
Get a person, specifying optional includes as required.
-
getPeople
public CollectionWithPagingInfo<Person> getPeople(Parameters parameters)
Description copied from interface:People
Get people list
-
create
public Person create(Person person)
Description copied from interface:People
Create a person.
-
update
public Person update(String personId, Person person)
Description copied from interface:People
Update the given person's details.
-
requestPasswordReset
public void requestPasswordReset(String userId, String client)
Description copied from interface:People
Request 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:
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
public void resetPassword(String personId, PasswordReset passwordReset)
Description copied from interface:People
Performs password reset- Specified by:
resetPassword
in interfacePeople
passwordReset
- the password reset details
-
-