jec.dto
Class UserAvailabilityData

java.lang.Object
  extended by jec.dto.UserAvailabilityData

public class UserAvailabilityData
extends java.lang.Object

Title: UserAvailabilityData

Description: Class to hold user availability information, the information is presented as a String that holds numbers, every number represent the State (FREE, BUSY), and the number place in the String represent the time location in the time section (form StartDate to EndDate) selected according to the interval selected. Here is an example for such String:
000000000000000000000000002200220000000000
The start time is: 2007-07-22 00:00:00
The end time is : 2007-07-22 21:00:00
The interval is : 30mins
So every number represent 30mins a time section of 21 hours starting at 2007-07-22 00:00:00 and ending at 2007-07-22 21:00:00 so accourding to the availability String, the user was busy from 13:00 till 14:00 and from 15:00 till 16:00 and at the rest of the time he was free.

Copyright: Copyright (c) 2006

Company: NetComps


Field Summary
static int BUSY
           
static int FREE
           
static int NO_INFO
           
static int TENTATIVE
           
static int VALUE_OUT_OF_OFFICE
           
 
Constructor Summary
UserAvailabilityData()
           
UserAvailabilityData(java.util.Date startDate, java.util.Date endDate, int intervalMins)
           
 
Method Summary
 java.util.Date getEndDate()
           
 int getIntervalMins()
           
 java.lang.String getSchedulingDataStr()
          Use this method to retrive the availability information String
the String will be in this example format:
000000000000000000000000002200220000000000
 java.util.Date getStartDate()
           
 void setEndDate(java.util.Date endDate)
           
 void setIntervalMins(int intervalMins)
           
 void setSchedulingDataStr(java.lang.String data)
           
 void setStartDate(java.util.Date startDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FREE

public static int FREE

TENTATIVE

public static int TENTATIVE

BUSY

public static int BUSY

VALUE_OUT_OF_OFFICE

public static int VALUE_OUT_OF_OFFICE

NO_INFO

public static int NO_INFO
Constructor Detail

UserAvailabilityData

public UserAvailabilityData()

UserAvailabilityData

public UserAvailabilityData(java.util.Date startDate,
                            java.util.Date endDate,
                            int intervalMins)
Method Detail

getSchedulingDataStr

public java.lang.String getSchedulingDataStr()
Use this method to retrive the availability information String
the String will be in this example format:
000000000000000000000000002200220000000000

Returns:
String

setSchedulingDataStr

public void setSchedulingDataStr(java.lang.String data)

getStartDate

public java.util.Date getStartDate()

getEndDate

public java.util.Date getEndDate()

getIntervalMins

public int getIntervalMins()

setStartDate

public void setStartDate(java.util.Date startDate)

setEndDate

public void setEndDate(java.util.Date endDate)

setIntervalMins

public void setIntervalMins(int intervalMins)