Class 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
    • Constructor Detail

      • PeopleImpl

        public PeopleImpl()
    • 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 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)
      • 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:
      • 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