| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.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 agent| Method Detail | 
|---|
public void addActionEvent(ActionEvent actionEvent)
UserSessionData
addActionEvent in interface UserSessionDataactionEvent - the action eventpublic boolean getActive()
UserSessionData
getActive in interface UserSessionDataprotected TypeContext getApplicationTypeContext()
BaseEntity
getApplicationTypeContext in class BaseEntitypublic String getClientHost()
UserSessionData
getClientHost in interface UserSessionDatapublic Date getCreatedAt()
UserSessionData
getCreatedAt in interface UserSessionDatapublic Date getEndedAt()
public List<AbstractActionEvent> getEvents()
public List<EventData> getEventsData()
UserSessionData
getEventsData in interface UserSessionDatapublic Long getId()
getId in interface PersistedModelObjectgetId in class BaseEntityorg.directdemocracyportal.democracy.model.core.BaseEntity#getId()public Language getLanguage()
public Set<LanguageContentData> getLanguageContentByLanguage(LanguageData languageData)
UserSessionData
getLanguageContentByLanguage in interface UserSessionDatalanguageData - the language datapublic LanguageData getLanguageData()
UserSessionData
getLanguageData in interface UserSessionDatapublic Portal getPortal()
public PortalData getPortalData()
UserSessionData
getPortalData in interface UserSessionDatapublic ResourceType getResourceType()
Resource
getResourceType in interface Resourcepublic String getServerHost()
UserSessionData
getServerHost in interface UserSessionDatapublic String getSessionId()
UserSessionData
getSessionId in interface UserSessionDatapublic User getUser()
public String getUserAgent()
public UserData getUserData()
UserSessionData
getUserData in interface UserSessionDatapublic Long getVersion()
BaseEntity
getVersion in interface PersistedModelObjectgetVersion in class BaseEntitypublic 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 PersistedModelObjectid - 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 UserSessionDatauser - the new user datapublic void setVersion(Long version)
PersistedModelObject
setVersion in interface PersistedModelObjectversion - the new version
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||