Class UserProfileEntity

    • Constructor Detail

      • UserProfileEntity

        protected UserProfileEntity()
      • UserProfileEntity

        protected UserProfileEntity​(UserDetail user)
    • Method Detail

      • fromUser

        public static UserProfileEntity fromUser​(User user)
        Decorates the specified user details with the required WEB exposition features.
        Parameters:
        user - the user details to decorate.
        Returns:
        a web entity representing the profile of a user.
      • fromUsers

        public static UserProfileEntity[] fromUsers​(List<? extends UserDetail> users,
                                                    URI usersUri)
        Decorates the specified user details with the required WEB exposition features.
        Parameters:
        users - a list of details on some users.
        usersUri - the URI at which the specified users are defined.
        Returns:
        a list of web entities representing the profile of the specified users.
      • getId

        public String getId()
        Description copied from interface: User
        The unique identifier of the user into Silverpeas.
        Specified by:
        getId in interface User
        Overrides:
        getId in class UserDetail
        Returns:
        identifier as string.
      • getDomainId

        public String getDomainId()
        Description copied from interface: User
        Gets the user domain id.
        Specified by:
        getDomainId in interface User
        Overrides:
        getDomainId in class UserDetail
        Returns:
        user domain id as string.
      • getFirstName

        public String getFirstName()
        Description copied from interface: User
        Gets the first name of the user.
        Specified by:
        getFirstName in interface User
        Overrides:
        getFirstName in class UserDetail
        Returns:
        first name as string.
      • getLastName

        public String getLastName()
        Description copied from interface: User
        Gets the last name of the user.
        Specified by:
        getLastName in interface User
        Overrides:
        getLastName in class UserDetail
        Returns:
        last name as string.
      • isBlockedState

        public boolean isBlockedState()
        Description copied from interface: User
        This method is the only one able to indicate the user blocked state. Please do not use User.getState() to retrieve user blocked information.
        Specified by:
        isBlockedState in interface User
        Overrides:
        isBlockedState in class UserDetail
        Returns:
        true if blocked state, false otherwise.
      • isExpiredState

        public boolean isExpiredState()
        Description copied from interface: User
        This method is the only one able to indicate the user expiration state. Please do not use User.getState() to retrieve user expiration information.
        Specified by:
        isExpiredState in interface User
        Overrides:
        isExpiredState in class UserDetail
        Returns:
        true if user is expired.
      • isDeletedState

        public boolean isDeletedState()
        Description copied from interface: User
        This method is the only one able to indicate the user deletion state. Please do not use User.getState() to retrieve user deletion information.
        Specified by:
        isDeletedState in interface User
        Overrides:
        isDeletedState in class UserDetail
        Returns:
        true if deleted state, false otherwise.
      • isRemovedState

        public boolean isRemovedState()
        Description copied from interface: User
        This method is the only one able to indicate the user removed state. Please do not use User.getState() to retrieve user removed information.
        Specified by:
        isRemovedState in interface User
        Overrides:
        isRemovedState in class UserDetail
        Returns:
        true if deleted state, false otherwise.
      • isDeactivatedState

        public boolean isDeactivatedState()
        Description copied from interface: User
        This method is the only one able to indicate the user deactivated state. Please do not use User.getState() to retrieve user deactivated information.
        Specified by:
        isDeactivatedState in interface User
        Overrides:
        isDeactivatedState in class UserDetail
        Returns:
        true if deactivated state, false otherwise.
      • getLanguage

        public String getLanguage()
        Gets the language used by the user.
        Returns:
        the code of the language used by the user.
      • setAccessLevel

        public void setAccessLevel​(UserAccessLevel accessLevel)
        Description copied from class: UserDetail
        Set user access level
        Overrides:
        setAccessLevel in class UserDetail
        Parameters:
        accessLevel - the access level of the user
      • setDomainId

        public void setDomainId​(String sDomainId)
        Description copied from class: UserDetail
        Set user domain id
        Overrides:
        setDomainId in class UserDetail
        Parameters:
        sDomainId - the unique identifier of the user domain he belongs to.
      • setFirstName

        public void setFirstName​(String sFirstName)
        Description copied from class: UserDetail
        Set user first name
        Overrides:
        setFirstName in class UserDetail
        Parameters:
        sFirstName - user first name
      • setLastName

        public void setLastName​(String sLastName)
        Description copied from class: UserDetail
        Set user last name
        Overrides:
        setLastName in class UserDetail
        Parameters:
        sLastName - user last name
      • setEmailAddress

        public void setEmailAddress​(String emailAddress)
        Description copied from class: UserDetail
        Set user's email
        Overrides:
        setEmailAddress in class UserDetail
        Parameters:
        emailAddress - the email address of the user.
      • setDeletedState

        public void setDeletedState​(boolean deletedState)
      • setDeactivatedState

        public void setDeactivatedState​(boolean deactivatedState)
      • getAvatar

        public String getAvatar()
        Description copied from interface: User
        Gets the avatar URL of the user.
        Specified by:
        getAvatar in interface User
        Overrides:
        getAvatar in class UserDetail
        Returns:
        the avatar URL as string.
      • getWebPage

        public String getWebPage()
        Gets the URL of the WEB page in which is presented the profile of this user.
        Returns:
        the URL of the user profile WEB page.
      • getFullName

        public String getFullName()
        Gets the full name of the user. The full name is made up of its firstname and of its lastname.
        Returns:
        the user fullname.
      • isConnected

        public boolean isConnected()
        Is this user connected to Silverpeas?
        Specified by:
        isConnected in interface User
        Overrides:
        isConnected in class UserDetail
        Returns:
        true if the user is connected, false otherwise.
      • getSpecificId

        public String getSpecificId()
        Description copied from class: UserDetail
        Get specific user id
        Overrides:
        getSpecificId in class UserDetail
        Returns:
        the user identifier specific to the identity service into which his account is registered.
      • setSpecificId

        public void setSpecificId​(String sSpecificId)
        Description copied from class: UserDetail
        Set specific user id
        Overrides:
        setSpecificId in class UserDetail
        Parameters:
        sSpecificId - set the identifier of the user specific to the identity server into which his account is registered.
      • getLogin

        public String getLogin()
        Description copied from interface: User
        Gets the user login.
        Specified by:
        getLogin in interface User
        Overrides:
        getLogin in class UserDetail
        Returns:
        user login as string.
      • setLogin

        public void setLogin​(String sLogin)
        Description copied from class: UserDetail
        Set user login
        Overrides:
        setLogin in class UserDetail
        Parameters:
        sLogin - the login to set
      • getStatus

        public String getStatus()
        Description copied from interface: User
        Gets the current status filled by the user itself.
        Specified by:
        getStatus in interface User
        Overrides:
        getStatus in class UserDetail
        Returns:
        current status as string.
      • setStatus

        public void setStatus​(String newStatus)
      • getDomainName

        public String getDomainName()
      • isAnonymous

        public boolean isAnonymous()
        Description copied from interface: User
        Indicates if the user is an anonymous one.
        Specified by:
        isAnonymous in interface User
        Overrides:
        isAnonymous in class UserDetail
        Returns:
        true if anonymous, false otherwise.
      • isSystem

        public boolean isSystem()
        Description copied from interface: User
        Is this user the system one? A system user is a virtual one played by the Silverpeas platform to perform tasks that aren't invoked explicitly by a user in Silverpeas but triggered either by a scheduler or a batch process like a workflow.
        Specified by:
        isSystem in interface User
        Overrides:
        isSystem in class UserDetail
        Returns:
        true if this user is the virtual system one. False otherwise.
      • setId

        public void setId​(String id)
        Description copied from class: UserDetail
        Set user identifier
        Overrides:
        setId in class UserDetail
        Parameters:
        id - the user identifier to set
      • getURI

        public URI getURI()
        Description copied from interface: WebEntity
        Gets the URI at which this web entity is published and can be accessed.
        Specified by:
        getURI in interface WebEntity
        Returns:
        the web entity URI.
      • getContactsURI

        public URI getContactsURI()