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

java.lang.Objectorg.directdemocracyportal.democracy.model.core.BaseEntity
org.directdemocracyportal.democracy.model.application.UserSession
@Entity public class UserSession extends BaseEntity
The Class UserSession.
| Constructor and Description |
|---|
UserSession()
Instantiates a new user session. |
UserSession(User user,
java.lang.String sessionId,
java.util.Date createdAt)
Instantiates a new user session. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getCreatedAt()
Gets the created at. |
java.util.Date |
getEndedAt()
Gets the ended at. |
java.lang.Long |
getId()
Gets the id. |
java.lang.String |
getSessionId()
Gets the session id. |
User |
getUser()
Gets the user. |
boolean |
isActive()
Checks if is active. |
void |
setActive(boolean active)
Sets the active. |
void |
setCreatedAt(java.util.Date createdAt)
Sets the created at. |
void |
setEndedAt(java.util.Date endedAt)
Sets the ended at. |
void |
setId(java.lang.Long id)
Sets the id. |
void |
setSessionId(java.lang.String sessionId)
Sets the session id. |
void |
setUser(User user)
Sets the user. |
| Methods inherited from class org.directdemocracyportal.democracy.model.core.BaseEntity |
|---|
isNew |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserSession()
public UserSession(User user,
java.lang.String sessionId,
java.util.Date createdAt)
user - the usersessionId - the session idcreatedAt - the created at| Method Detail |
|---|
public java.lang.Long getId()
BaseEntity
getId in class BaseEntitypublic void setId(java.lang.Long id)
id - the new idpublic boolean isActive()
public void setActive(boolean active)
active - the new activepublic java.util.Date getCreatedAt()
public void setCreatedAt(java.util.Date createdAt)
createdAt - the new created atpublic java.util.Date getEndedAt()
public void setEndedAt(java.util.Date endedAt)
endedAt - the new ended atpublic java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
sessionId - the new session idpublic User getUser()
public void setUser(User user)
user - the new user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||