Class WbeUser

  • Direct Known Subclasses:
    DefaultWbeUser

    public abstract class WbeUser
    extends Object
    Representation of a WbeUser. It associates finally a Silverpeas's user with a Web Browser Edition access token.

    An access token is created on instance creation.

    Author:
    silveryocha
    • Constructor Detail

      • WbeUser

        protected WbeUser​(String spSessionId,
                          User user)
    • Method Detail

      • getId

        public abstract String getId()
        Gets the WBE user identifier.
        Returns:
        an identifier as string.
      • getSilverpeasSessionId

        public String getSilverpeasSessionId()
        Gets identifier of the Silverpeas's session the WBE user is linked to.
        Returns:
        a Silverpeas's session identifier.
      • asSilverpeas

        public User asSilverpeas()
        Gets the Silverpeas's user.
        Returns:
        a User instance.
      • getAccessToken

        public String getAccessToken()
        Gets the WBE access token linked to the Silverpeas's user.
        Returns:
        a string representing a WBE access token.
      • setLastEditionDateAtNow

        public void setLastEditionDateAtNow()
        Updates the last edition date with the current date and time.
      • getUser

        public User getUser()