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