base.session
Class Session

java.lang.Object
  extended by base.session.Session
All Implemented Interfaces:
IXMLSaveable

public class Session
extends java.lang.Object
implements IXMLSaveable


Constructor Summary
protected Session(int id, User user, Workstation workstation, java.lang.String description, java.util.Date startTime, java.util.Date endTime, Service service)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.util.Date getEndTime()
           
 int getId()
           
 Service getService()
           
 java.util.Date getStartTime()
           
 User getUser()
           
 Workstation getWorkstation()
           
 boolean isFinished()
          This method will be used in future releases and will be used to estabilish if the user associated to the session has logged out from the client workstation.
 void setDescription(java.lang.String description)
           
 void setEndTime(java.util.Date endTime)
           
 void setStartTime(java.util.Date startTime)
           
 java.lang.String toString()
           
 org.w3c.dom.Node toXml(org.w3c.dom.Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Session

protected Session(int id,
                  User user,
                  Workstation workstation,
                  java.lang.String description,
                  java.util.Date startTime,
                  java.util.Date endTime,
                  Service service)
Parameters:
id - The session's id.
user - The session's user.
workstation - The session's envolved workstation.
description - The session's description.
startTime - The session's start time.
endTime - The session's end time.
Method Detail

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

getEndTime

public java.util.Date getEndTime()
Returns:
Returns the endTime.

setEndTime

public void setEndTime(java.util.Date endTime)
Parameters:
endTime - The endTime to set.

getStartTime

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

setStartTime

public void setStartTime(java.util.Date startTime)
Parameters:
startTime - The startTime to set.

getUser

public User getUser()
Returns:
Returns the user.

getWorkstation

public Workstation getWorkstation()
Returns:
Returns the workstation.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getId

public int getId()
Returns:
Returns the id.

getService

public Service getService()
Returns:
Returns the service.

isFinished

public boolean isFinished()
This method will be used in future releases and will be used to estabilish if the user associated to the session has logged out from the client workstation.

Returns:
Returns true if the endTime is not null, false otherwise.

toXml

public org.w3c.dom.Node toXml(org.w3c.dom.Document document)
Specified by:
toXml in interface IXMLSaveable


Copyright © 2006 SF.net. All Rights Reserved.