Class WopiUser

  • Direct Known Subclasses:
    DefaultWopiUser

    public abstract class WopiUser
    extends Object
    Representation of a WopiUser. It associates finally a Silverpeas's user with a WOPI access token.

    An access token is created on instance creation.

    Author:
    silveryocha
    • Constructor Detail

      • WopiUser

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

      • getId

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

        public String getSilverpeasSessionId()
        Gets identifier of the Silverpeas's session the WOPI 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 WOPI access token linked to the Silverpeas's user.
        Returns:
        a string representing a WOPI access token.
      • setLastEditionDateAtNow

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

        public User getUser()