net.sourceforge.jaulp.auth
Class UserSession

java.lang.Object
  extended by net.sourceforge.jaulp.auth.UserSession
All Implemented Interfaces:
java.io.Serializable, Session

public class UserSession
extends java.lang.Object
implements Session

The Class UserSession.

Version:
1.0
Author:
Asterios Raptis
See Also:
Serialized Form

Constructor Summary
UserSession(User user)
          Default constructor.
 
Method Summary
 java.util.Map getAttributtes()
          Returns the field attributtes.
 java.lang.String getId()
          Returns the field id.
 java.util.Date getLastAccess()
          Returns the field lastAccess.
 java.util.Locale getLocale()
          Returns the field locale.
 int getMaxInactiveTime()
          Returns the field maxInactiveTime.
 java.util.Date getStartTime()
          Returns the field startTime.
 User getUser()
          Returns the field user.
 void setAttributtes(java.util.Map attributtes)
          Sets the field attributtes.
 void setId(java.lang.String id)
          Sets the field id.
 void setLastAccess(java.util.Date lastAccess)
          Sets the field lastAccess.
 void setLocale(java.util.Locale locale)
          Sets the field locale.
 void setMaxInactiveTime(int maxInactiveTime)
          Sets the field maxInactiveTime.
 void setStartTime(java.util.Date startTime)
          Sets the field startTime.
 void setUser(User user)
          Sets the field user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserSession

public UserSession(User user)
Default constructor.

Parameters:
user - The user
Method Detail

getAttributtes

public java.util.Map getAttributtes()
Returns the field attributtes.

Specified by:
getAttributtes in interface Session
Returns:
The field attributtes.
See Also:
Session.getAttributtes()

getId

public java.lang.String getId()
Returns the field id.

Specified by:
getId in interface Session
Returns:
The field id.
See Also:
Session.getId()

getLastAccess

public java.util.Date getLastAccess()
Returns the field lastAccess.

Specified by:
getLastAccess in interface Session
Returns:
The field lastAccess.
See Also:
Session.getLastAccess()

getLocale

public java.util.Locale getLocale()
Returns the field locale.

Specified by:
getLocale in interface Session
Returns:
The field locale.
See Also:
Session.getLocale()

getMaxInactiveTime

public int getMaxInactiveTime()
Returns the field maxInactiveTime.

Specified by:
getMaxInactiveTime in interface Session
Returns:
The field maxInactiveTime.
See Also:
Session.getMaxInactiveTime()

getStartTime

public java.util.Date getStartTime()
Returns the field startTime.

Specified by:
getStartTime in interface Session
Returns:
The field startTime.
See Also:
Session.getStartTime()

getUser

public User getUser()
Returns the field user.

Specified by:
getUser in interface Session
Returns:
The field user.
See Also:
Session.getUser()

setAttributtes

public void setAttributtes(java.util.Map attributtes)
Sets the field attributtes.

Specified by:
setAttributtes in interface Session
Parameters:
attributtes - The attributtes to set
See Also:
Session.setAttributtes(java.util.Map)

setId

public void setId(java.lang.String id)
Sets the field id.

Specified by:
setId in interface Session
Parameters:
id - The id to set
See Also:
Session.setId(java.lang.String)

setLastAccess

public void setLastAccess(java.util.Date lastAccess)
Sets the field lastAccess.

Specified by:
setLastAccess in interface Session
Parameters:
lastAccess - The lastAccess to set
See Also:
Session.setLastAccess(java.util.Date)

setLocale

public void setLocale(java.util.Locale locale)
Sets the field locale.

Specified by:
setLocale in interface Session
Parameters:
locale - The locale to set
See Also:
Session.setLocale(java.util.Locale)

setMaxInactiveTime

public void setMaxInactiveTime(int maxInactiveTime)
Sets the field maxInactiveTime.

Specified by:
setMaxInactiveTime in interface Session
Parameters:
maxInactiveTime - The maxInactiveTime to set
See Also:
Session.setMaxInactiveTime(int)

setStartTime

public void setStartTime(java.util.Date startTime)
Sets the field startTime.

Specified by:
setStartTime in interface Session
Parameters:
startTime - The startTime to set
See Also:
Session.setStartTime(java.util.Date)

setUser

public void setUser(User user)
Sets the field user.

Specified by:
setUser in interface Session
Parameters:
user - The user to set.
See Also:
Session.setUser(net.sourceforge.jaulp.auth.interfaces.User)


Copyright © 2010. All Rights Reserved.