org.directdemocracyportal.democracy.model.application
Class UserSession

Package class diagram package UserSession
java.lang.Object
  extended by org.directdemocracyportal.democracy.model.core.BaseEntity
      extended by org.directdemocracyportal.democracy.model.application.UserSession
All Implemented Interfaces:
java.io.Serializable

@Entity
public class UserSession
extends BaseEntity

The Class UserSession.

See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
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

UserSession

public UserSession()
Instantiates a new user session.


UserSession

public UserSession(User user,
                   java.lang.String sessionId,
                   java.util.Date createdAt)
Instantiates a new user session.

Parameters:
user - the user
sessionId - the session id
createdAt - the created at
Method Detail

getId

public java.lang.Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in class BaseEntity
Returns:
the id

setId

public void setId(java.lang.Long id)
Sets the id.

Parameters:
id - the new id

isActive

public boolean isActive()
Checks if is active.

Returns:
true, if is active

setActive

public void setActive(boolean active)
Sets the active.

Parameters:
active - the new active

getCreatedAt

public java.util.Date getCreatedAt()
Gets the created at.

Returns:
the created at

setCreatedAt

public void setCreatedAt(java.util.Date createdAt)
Sets the created at.

Parameters:
createdAt - the new created at

getEndedAt

public java.util.Date getEndedAt()
Gets the ended at.

Returns:
the ended at

setEndedAt

public void setEndedAt(java.util.Date endedAt)
Sets the ended at.

Parameters:
endedAt - the new ended at

getSessionId

public java.lang.String getSessionId()
Gets the session id.

Returns:
the session id

setSessionId

public void setSessionId(java.lang.String sessionId)
Sets the session id.

Parameters:
sessionId - the new session id

getUser

public User getUser()
Gets the user.

Returns:
the user

setUser

public void setUser(User user)
Sets the user.

Parameters:
user - the new user


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.