public abstract class AbstractSession extends Object implements Session
| Constructor and Description |
|---|
AbstractSession(com.google.web.bindery.event.shared.EventBus peventBus)
constructor with injected parameters.
|
| Modifier and Type | Method and Description |
|---|---|
User |
getUser()
get current user data.
|
boolean |
isLoggedIn()
check if user is logged in.
|
abstract void |
readSessionData()
read session data from server.
|
void |
setUser(User puser)
set user and fire change user event when user changes.
|
public AbstractSession(com.google.web.bindery.event.shared.EventBus peventBus)
peventBus - event buspublic abstract void readSessionData()
SessionreadSessionData in interface Sessionpublic void setUser(User puser)
Sessionpublic boolean isLoggedIn()
SessionisLoggedIn in interface SessionCopyright © 2015–2018. All rights reserved.