Class PeopleImpl

java.lang.Object
org.alfresco.rest.api.impl.PeopleImpl
All Implemented Interfaces:
People

public class PeopleImpl extends Object implements People
Centralises access to people services and maps between representations.
Since:
publicapi1.0
Author:
steveglover
  • Field Details

  • Constructor Details

    • PeopleImpl

      public PeopleImpl()
  • Method Details

    • 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 interface People
      Parameters:
      personId -
      Returns:
      The validated and processed ID.
    • validatePerson

      public String validatePerson(String requestedPersonId, boolean validateIsCurrentUser)
      Specified by:
      validatePerson in interface People
    • processPersonProperties

      protected void processPersonProperties(String userName, Map<org.alfresco.service.namespace.QName,Serializable> nodeProps)
    • hasAvatar

      public boolean hasAvatar(NodeRef personNodeRef)
    • getAvatar

      public NodeRef getAvatar(String personId)
      Specified by:
      getAvatar in interface People
    • downloadAvatarContent

      public BinaryResource downloadAvatarContent(String personId, Parameters parameters)
      Specified by:
      downloadAvatarContent in interface People
      Returns:
    • uploadAvatarContent

      public Person uploadAvatarContent(String personId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters)
      Specified by:
      uploadAvatarContent in interface People
      Returns:
    • deleteAvatarContent

      public void deleteAvatarContent(String personId)
      Specified by:
      deleteAvatarContent in interface People
    • getPerson

      public Person getPerson(String personId)
      Get a full representation of a person.
      Specified by:
      getPerson in interface People
      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.
      Specified by:
      getPerson in interface People
      Returns:
    • getPeople

      public CollectionWithPagingInfo<Person> getPeople(Parameters parameters)
      Description copied from interface: People
      Get people list
      Specified by:
      getPeople in interface People
      Returns:
      CollectionWithPagingInfo
    • create

      public Person create(Person person)
      Description copied from interface: People
      Create a person.
      Specified by:
      create in interface People
      Returns:
    • update

      public Person update(String personId, Person person)
      Description copied from interface: People
      Update the given person's details.
      Specified by:
      update in interface People
      Parameters:
      personId - The identifier of a person.
      person - The person details.
      Returns:
      The updated person 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 given userId). The API returns a 202 response for a valid, as well as the invalid (does not exist or disabled) userId
      Specified by:
      requestPasswordReset in interface People
      Parameters:
      userId - the user id of the person requesting the password reset
      client - 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 interface People
      passwordReset - the password reset details