com.cc.framework.ui.model.imp
Class SchedulerDataModelImp

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.SchedulerDataModelImp
All Implemented Interfaces:
DataModel, SchedulerDataModel

public class SchedulerDataModelImp
extends java.lang.Object
implements SchedulerDataModel

Version:
$Revision: 1.10 $
Author:
Harald Schulz

Field Summary
private  java.util.Vector appointments
          List with simple none recurring appointments
private  java.util.TimeZone timezone
          The Timezone of the Scheduler
 
Constructor Summary
SchedulerDataModelImp()
          Constructor
SchedulerDataModelImp(java.util.TimeZone timezone)
          Constructor
 
Method Summary
 void addAppointment(Appointment appointment)
          Adds a new appointment to the list
 void addAppointments(java.util.Collection appointments)
          Adds a collection of new appointments to the list
 Appointment getAppointmentFromId(java.lang.String uniqueId)
          Retrieves the appointment with the given key
 Appointment[] getAppointments(java.util.Calendar date)
          Returns a list with all appointments for the given day
 java.util.TimeZone getTimeZone()
          Liefert die Zeitzone zu welcher alle Datumsangaben berechnet werden sollen
protected  boolean match(Appointment appointment, java.util.Calendar date)
          Checks if this appointment matches a certain Day
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appointments

private java.util.Vector appointments
List with simple none recurring appointments


timezone

private java.util.TimeZone timezone
The Timezone of the Scheduler

Constructor Detail

SchedulerDataModelImp

public SchedulerDataModelImp()
Constructor


SchedulerDataModelImp

public SchedulerDataModelImp(java.util.TimeZone timezone)
Constructor

Parameters:
timezone - The Timezone of the Scheduler
Method Detail

getTimeZone

public java.util.TimeZone getTimeZone()
Description copied from interface: SchedulerDataModel
Liefert die Zeitzone zu welcher alle Datumsangaben berechnet werden sollen

Specified by:
getTimeZone in interface SchedulerDataModel
Returns:
Zeitzone
See Also:
SchedulerDataModel.getTimeZone()

addAppointment

public void addAppointment(Appointment appointment)
Adds a new appointment to the list

Parameters:
appointment - The new Appointment

addAppointments

public void addAppointments(java.util.Collection appointments)
Adds a collection of new appointments to the list

Parameters:
appointments - The new Appointments

getAppointments

public Appointment[] getAppointments(java.util.Calendar date)
Returns a list with all appointments for the given day

Specified by:
getAppointments in interface SchedulerDataModel
Parameters:
date - the day
Returns:
appointment list

getAppointmentFromId

public Appointment getAppointmentFromId(java.lang.String uniqueId)
Description copied from interface: SchedulerDataModel
Retrieves the appointment with the given key

Specified by:
getAppointmentFromId in interface SchedulerDataModel
Parameters:
uniqueId - the unique Identifier of the appointment
Returns:
Appointment or null
See Also:
SchedulerDataModel.getAppointmentFromId(java.lang.String)

match

protected boolean match(Appointment appointment,
                        java.util.Calendar date)
Checks if this appointment matches a certain Day

Parameters:
appointment - The appointment
date - The Day the appointment must match
Returns:
Returns true when the appointment matches the date


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.