Package org.silverpeas.core.wbe
Class WbeUser
- java.lang.Object
-
- org.silverpeas.core.wbe.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
-
-
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 WBE access token linked to the Silverpeas's user.abstract String
getId()
Gets the WBE user identifier.OffsetDateTime
getLastEditionDate()
Gets the date of last edition.String
getSilverpeasSessionId()
Gets identifier of the Silverpeas's session the WBE 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 WBE 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 WBE user is linked to.- Returns:
- a Silverpeas's session identifier.
-
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()
-
-