|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.impl.common.BaseEntity com.hack23.cia.model.impl.application.administration.UserSession
@Entity public class UserSession extends BaseEntity implements UserSessionData
The Class UserSession.
Constructor and Description |
---|
UserSession()
Instantiates a new user session. |
UserSession(UserData user,
LanguageData language,
PortalData portal,
String sessionId,
String clientHost,
String serverHost,
Date createdAt,
String userAgent)
Instantiates a new user session. |
Modifier and Type | Method and Description |
---|---|
void |
addActionEvent(ActionEvent actionEvent)
Adds the action event. |
boolean |
getActive()
Gets the active. |
protected TypeContext |
getApplicationTypeContext()
Gets the application type context. |
String |
getClientHost()
Gets the client host. |
Date |
getCreatedAt()
Gets the created at. |
Date |
getEndedAt()
Gets the ended at. |
List<AbstractActionEvent> |
getEvents()
Gets the events. |
List<EventData> |
getEventsData()
Gets the events data. |
Long |
getId()
/* (non-Javadoc). |
Language |
getLanguage()
Gets the language. |
Set<LanguageContentData> |
getLanguageContentByLanguage(LanguageData languageData)
Gets the language content by language. |
LanguageData |
getLanguageData()
Gets the language data. |
Portal |
getPortal()
Gets the portal. |
PortalData |
getPortalData()
Gets the portal data. |
ResourceType |
getResourceType()
Gets the resource type. |
String |
getServerHost()
Gets the server host. |
String |
getSessionId()
Gets the session id. |
User |
getUser()
Gets the user. |
String |
getUserAgent()
Gets the user agent. |
UserData |
getUserData()
Gets the user data. |
Long |
getVersion()
Gets the version. |
void |
setActive(boolean active)
Sets the active. |
void |
setClientHost(String clientHost)
Sets the client host. |
void |
setCreatedAt(Date createdAt)
Sets the created at. |
void |
setEndedAt(Date endedAt)
Sets the ended at. |
void |
setEvents(List<AbstractActionEvent> events)
Sets the events. |
void |
setId(Long id)
Sets the id. |
void |
setLanguage(Language language)
Sets the language. |
void |
setPortal(Portal portal)
Sets the portal. |
void |
setResourceType(ResourceType resourceType)
Sets the resource type. |
void |
setServerHost(String serverHost)
Sets the server host. |
void |
setSessionId(String sessionId)
Sets the session id. |
void |
setUser(User user)
Sets the user. |
void |
setUserAgent(String userAgent)
Sets the user agent. |
void |
setUserData(UserData user)
Sets the user data. |
void |
setVersion(Long version)
Sets the version. |
Methods inherited from class com.hack23.cia.model.impl.common.BaseEntity |
---|
equals, getTypeContext, hashCode, isNew |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject |
---|
getTypeContext, isNew |
Constructor Detail |
---|
public UserSession()
public UserSession(UserData user, LanguageData language, PortalData portal, String sessionId, String clientHost, String serverHost, Date createdAt, String userAgent)
user
- the userlanguage
- the languageportal
- the portalsessionId
- the session idclientHost
- the client hostserverHost
- the server hostcreatedAt
- the created atuserAgent
- the user agentMethod Detail |
---|
public void addActionEvent(ActionEvent actionEvent)
UserSessionData
addActionEvent
in interface UserSessionData
actionEvent
- the action eventpublic boolean getActive()
UserSessionData
getActive
in interface UserSessionData
protected TypeContext getApplicationTypeContext()
BaseEntity
getApplicationTypeContext
in class BaseEntity
public String getClientHost()
UserSessionData
getClientHost
in interface UserSessionData
public Date getCreatedAt()
UserSessionData
getCreatedAt
in interface UserSessionData
public Date getEndedAt()
public List<AbstractActionEvent> getEvents()
public List<EventData> getEventsData()
UserSessionData
getEventsData
in interface UserSessionData
public Long getId()
getId
in interface PersistedModelObject
getId
in class BaseEntity
org.directdemocracyportal.democracy.model.core.BaseEntity#getId()
public Language getLanguage()
public Set<LanguageContentData> getLanguageContentByLanguage(LanguageData languageData)
UserSessionData
getLanguageContentByLanguage
in interface UserSessionData
languageData
- the language datapublic LanguageData getLanguageData()
UserSessionData
getLanguageData
in interface UserSessionData
public Portal getPortal()
public PortalData getPortalData()
UserSessionData
getPortalData
in interface UserSessionData
public ResourceType getResourceType()
Resource
getResourceType
in interface Resource
public String getServerHost()
UserSessionData
getServerHost
in interface UserSessionData
public String getSessionId()
UserSessionData
getSessionId
in interface UserSessionData
public User getUser()
public String getUserAgent()
public UserData getUserData()
UserSessionData
getUserData
in interface UserSessionData
public Long getVersion()
BaseEntity
getVersion
in interface PersistedModelObject
getVersion
in class BaseEntity
public void setActive(boolean active)
active
- the new activepublic void setClientHost(String clientHost)
clientHost
- the new client hostpublic void setCreatedAt(Date createdAt)
createdAt
- the new created atpublic void setEndedAt(Date endedAt)
endedAt
- the new ended atpublic void setEvents(List<AbstractActionEvent> events)
events
- the new eventspublic void setId(Long id)
PersistedModelObject
setId
in interface PersistedModelObject
id
- the new idpublic void setLanguage(Language language)
language
- the new languagepublic void setPortal(Portal portal)
portal
- the new portalpublic void setResourceType(ResourceType resourceType)
resourceType
- the new resource typepublic void setServerHost(String serverHost)
serverHost
- the new server hostpublic void setSessionId(String sessionId)
sessionId
- the new session idpublic void setUser(User user)
user
- the new userpublic void setUserAgent(String userAgent)
userAgent
- the new user agentpublic void setUserData(UserData user)
UserSessionData
setUserData
in interface UserSessionData
user
- the new user datapublic void setVersion(Long version)
PersistedModelObject
setVersion
in interface PersistedModelObject
version
- the new version
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |