Modifier and Type | Field and Description |
---|---|
protected AuthenticationService |
authenticationService |
protected AuthorityService |
authorityService |
protected ContentService |
contentService |
protected ContentUsageService |
contentUsageService |
protected Nodes |
nodes |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected PersonService |
personService |
protected ResetPasswordService |
resetPasswordService |
protected Sites |
sites |
protected SiteService |
siteService |
protected ThumbnailService |
thumbnailService |
DEFAULT_USER, PARAM_FIRST_NAME, PARAM_ID, PARAM_INCLUDE_ASPECTNAMES, PARAM_INCLUDE_PROPERTIES, PARAM_LAST_NAME
Constructor and Description |
---|
PeopleImpl() |
Modifier and Type | Method and Description |
---|---|
Person |
create(Person person)
Create a person.
|
org.alfresco.service.cmr.repository.NodeRef |
getAvatar(String personId) |
CollectionWithPagingInfo<Person> |
getPeople(Parameters parameters)
Get people list
|
Person |
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(org.alfresco.service.cmr.repository.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 given
userId ). |
void |
resetPassword(String personId,
PasswordReset passwordReset)
Performs password reset
|
void |
setAuthenticationService(AuthenticationService authenticationService) |
void |
setAuthorityService(AuthorityService authorityService) |
void |
setContentService(ContentService contentService) |
void |
setContentUsageService(ContentUsageService contentUsageService) |
void |
setNodes(Nodes nodes) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPersonService(PersonService personService) |
void |
setResetPasswordService(ResetPasswordService resetPasswordService) |
void |
setSites(Sites sites) |
void |
setSiteService(SiteService siteService) |
void |
setThumbnailService(ThumbnailService thumbnailService) |
Person |
update(String personId,
Person person)
Update the given person's details.
|
String |
validatePerson(String personId)
Validate, perform -me- substitution and canonicalize the person ID.
|
String |
validatePerson(String requestedPersonId,
boolean validateIsCurrentUser) |
protected Nodes nodes
protected Sites sites
protected SiteService siteService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected PersonService personService
protected AuthenticationService authenticationService
protected AuthorityService authorityService
protected ContentUsageService contentUsageService
protected ContentService contentService
protected ThumbnailService thumbnailService
protected ResetPasswordService resetPasswordService
public void setSites(Sites sites)
public void setSiteService(SiteService siteService)
public void setNodes(Nodes nodes)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setPersonService(PersonService personService)
public void setAuthenticationService(AuthenticationService authenticationService)
public void setAuthorityService(AuthorityService authorityService)
public void setContentUsageService(ContentUsageService contentUsageService)
public void setContentService(ContentService contentService)
public void setThumbnailService(ThumbnailService thumbnailService)
public void setResetPasswordService(ResetPasswordService resetPasswordService)
public String validatePerson(String personId)
validatePerson
in interface People
personId
- public String validatePerson(String requestedPersonId, boolean validateIsCurrentUser)
validatePerson
in interface People
protected void processPersonProperties(String userName, Map<org.alfresco.service.namespace.QName,Serializable> nodeProps)
public boolean hasAvatar(org.alfresco.service.cmr.repository.NodeRef personNodeRef)
public org.alfresco.service.cmr.repository.NodeRef getAvatar(String personId)
public Person getPerson(String personId)
getPerson
in interface People
NoSuchPersonException
- if personId does not existpublic Person getPerson(String personId, List<String> include)
People
public CollectionWithPagingInfo<Person> getPeople(Parameters parameters)
People
public Person create(Person person)
People
public Person update(String personId, Person person)
People
public void requestPasswordReset(String userId, String client)
People
userId
).
The API returns a 202 response for a valid, as well as the invalid (does not exist or disabled) userIdrequestPasswordReset
in interface People
userId
- the user id of the person requesting the password resetclient
- the client name which is registered to send emailspublic void resetPassword(String personId, PasswordReset passwordReset)
People
resetPassword
in interface People
passwordReset
- the password reset detailsCopyright © 2005–2017 Alfresco Software. All rights reserved.