SAP NetWeaver '04

com.sapportals.wcm.service.scheduler
Interface ISchedulerTimeTable

[contained in: com.sap.netweaver.bc.sf.service.par - bc.sf.service.scheduler_api.jar]
public interface ISchedulerTimeTable

Timetables for the scheduler.

An ISchedulerTimeTable represents a timetable which specifies the times, when an ISchedulerTask has to be executed by the IScheduler. Such a timetable can have a start- and/or an end- time and at least one ISchedulerTime which defines the times.
Simply think of it like a school timetable, where the several entries (the times) denote repeating lessings.

Copyright 2004 SAP AG

See Also:
ISchedulerService, ISchedulerTime

Method Summary
 void addToTable(ISchedulerTime time)
          Add an time to the times of the timetable.
 ISchedulerTimeTable copy()
          Performs a deep copy of the time table.
 java.util.Date getStartTime()
          Get the starting date for the timetable.
 java.util.Date getStopTime()
          Get the ending date for the timetable.
 ISchedulerTimeList getTable()
          Deprecated. since KM5.0SP6
 ISchedulerTime getTime(java.util.Date date)
          Returns a time object that matches the specific date.
 boolean isInTable(java.util.Date date)
          Test, if a given date is in the timetable.
 ISchedulerTime removeFromTable(ISchedulerTime time)
           
 void setStartTime(java.util.Date start)
          Set the starting date for the timetable.
 void setStopTime(java.util.Date stop)
          Set the ending date for the timetable.
 void setTable(ISchedulerTime time)
          Deprecated. since KM5.0SP6
 void setTable(ISchedulerTimeList timelist)
          Deprecated. since KM5.0SP6
 int size()
          Returns the size of this table.
 ISchedulerTime[] toArray()
          Converts the content of this time table to an array.
 

Method Detail

isInTable

public boolean isInTable(java.util.Date date)
Test, if a given date is in the timetable.
Parameters:
date - the Date to check.
Returns:
a boolean true if the date is in the timetable, false if it's not.

getTime

public ISchedulerTime getTime(java.util.Date date)
Returns a time object that matches the specific date.
Parameters:
date -  
Returns:
 

getStartTime

public java.util.Date getStartTime()
Get the starting date for the timetable.
Returns:
a Date with the starting point of the timetable or null if not defined.

setStartTime

public void setStartTime(java.util.Date start)
                  throws WcmException
Set the starting date for the timetable.
Parameters:
start - a Date with the starting point for the timetable or null if not start time defined.

getStopTime

public java.util.Date getStopTime()
Get the ending date for the timetable.
Returns:
a Date with the ending point of the timetable. or null if not defined.

setStopTime

public void setStopTime(java.util.Date stop)
                 throws WcmException
Set the ending date for the timetable.
Parameters:
stop - a Date with the ending point for the timetable or null if not stop time defined.

getTable

public ISchedulerTimeList getTable()
Deprecated. since KM5.0SP6

Get the times of the timetable.
Returns:
a ISchedulerTimeList with the valid times of this table for the scheduler.

setTable

public void setTable(ISchedulerTimeList timelist)
              throws WcmException
Deprecated. since KM5.0SP6

Set the times of the timetable.
Parameters:
timelist - a ISchedulerTimeList with the valid times for the scheduler.

setTable

public void setTable(ISchedulerTime time)
              throws WcmException
Deprecated. since KM5.0SP6

Set the times of the timetable to the given time.
Parameters:
time - a ISchedulerTime with the one time for the scheduler.

addToTable

public void addToTable(ISchedulerTime time)
                throws WcmException
Add an time to the times of the timetable.
Parameters:
time - a ISchedulerTime with the one time for the scheduler to add.

removeFromTable

public ISchedulerTime removeFromTable(ISchedulerTime time)
                               throws WcmException
Parameters:
time -  
Returns:
 

toArray

public ISchedulerTime[] toArray()
Converts the content of this time table to an array.
Returns:
an array of scheudler times

size

public int size()
Returns the size of this table.
Returns:
The number of scheudler times added to this table

copy

public ISchedulerTimeTable copy()
Performs a deep copy of the time table.
Returns:
a new time table instance.

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.