Package org.silverpeas.core.wopi
Class WopiUser
- java.lang.Object
-
- org.silverpeas.core.wopi.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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description User
asSilverpeas()
Gets the Silverpeas's user.String
getAccessToken()
Gets the WOPI access token linked to the Silverpeas's user.abstract String
getId()
Gets the WOPI user identifier.OffsetDateTime
getLastEditionDate()
Gets the date of last edition.String
getSilverpeasSessionId()
Gets identifier of the Silverpeas's session the WOPI user is linked to.User
getUser()
void
setLastEditionDateAtNow()
Updates the last edition date with the current date and time.String
toString()
-
-
-
Method Detail
-
getId
public abstract String getId()
Gets the WOPI user identifier.- Returns:
- an identifier as string.
-
getLastEditionDate
public OffsetDateTime getLastEditionDate()
Gets the date of last edition.- Returns:
- an
OffsetDateTime
instance.
-
getSilverpeasSessionId
public String getSilverpeasSessionId()
Gets identifier of the Silverpeas's session the WOPI user is linked to.- Returns:
- a Silverpeas's session identifier.
-
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()
-
-