|
JSR-927 (Maintenance Release) | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface represents a collection of program events for a given service ordered by time. It provides the current, next and future program events.
Note that all time values are in UTC time.
java.util.Date,
ProgramEvent,
ReadPermission| Method Summary | |
void |
addListener(ProgramScheduleListener listener)
Registers a ProgramScheduleListener to be notified of
changes to program events on this ProgramSchedule. |
Locator |
getServiceLocator()
Reports the transport-dependent locator referencing the service to which this ProgramSchedule belongs. |
void |
removeListener(ProgramScheduleListener listener)
Unregisters a ProgramScheduleListener. |
SIRequest |
retrieveCurrentProgramEvent(SIRequestor requestor)
Retrieves the current ProgramEvent. |
SIRequest |
retrieveFutureProgramEvent(java.util.Date time,
SIRequestor requestor)
Retrieves the program event for the specified time. |
SIRequest |
retrieveFutureProgramEvents(java.util.Date begin,
java.util.Date end,
SIRequestor requestor)
Retrieves all known program events on this service for the specified time interval. |
SIRequest |
retrieveNextProgramEvent(ProgramEvent event,
SIRequestor requestor)
Retrieves a event which follows the specified event. |
SIRequest |
retrieveProgramEvent(Locator locator,
SIRequestor requestor)
Retrieves a program event matching the locator. |
| Method Detail |
public SIRequest retrieveCurrentProgramEvent(SIRequestor requestor)
ProgramEvent. The resulting
ProgramEvent is available for immediate viewing.
This method delivers its results asynchronously. If the caller
does not have
javax.tv.service.ReadPermission(pe.getLocator())
(where pe is the current program event), this
method will result in an SIRequestFailureType of
DATA_UNAVAILABLE.
requestor - The SIRequestor to be notified
when this retrieval operation completes.
SIRequest object identifying this
asynchronous retrieval request.ProgramEvent,
ReadPermission
public SIRequest retrieveFutureProgramEvent(java.util.Date time,
SIRequestor requestor)
throws SIException
This method delivers its results asynchronously. If the caller
does not have
javax.tv.service.ReadPermission(pe.getLocator())
(where pe is the program event at the specified
time), this method will result in an
SIRequestFailureType of
DATA_UNAVAILABLE.
time - The time of the program event to be retrieved.requestor - The SIRequestor to be notified
when this retrieval operation completes.
SIRequest object identifying this
asynchronous retrieval request.
SIException - If time does not represent a
future time value.ProgramEvent,
ReadPermission
public SIRequest retrieveFutureProgramEvents(java.util.Date begin,
java.util.Date end,
SIRequestor requestor)
throws SIException
pe is
retrieved by this method if the time interval from
pe.getStartTime() (inclusive) to
pe.getEndTime() (exclusive) intersects the time
interval from begin (inclusive) to end
(exclusive) specified by the input parameters.
This method returns data asynchronously. Only program events
pe for which the caller has
javax.tv.service.ReadPermission(pe.getLocator())
will be retrieved. If no program events meet this criteria,
this method will result in an SIRequestFailureType of
DATA_UNAVAILABLE.
begin - Time identifying the beginning of the interval.end - Time identifying the end of the interval.requestor - The SIRequestor to be notified
when this retrieval operation completes.
SIRequest object identifying this
asynchronous retrieval request.
SIException - If end represents a time value
before begin, or if end does not
represent a future time value.ProgramEvent,
ReadPermission
public SIRequest retrieveNextProgramEvent(ProgramEvent event,
SIRequestor requestor)
throws SIException
This method delivers its results asynchronously. If the caller
does not have
javax.tv.service.ReadPermission(pe.getLocator())
(where pe is the next program event), this
method will result in an SIRequestFailureType of
DATA_UNAVAILABLE.
event - A reference event.requestor - The SIRequestor to be notified
when this retrieval operation completes.
SIRequest object identifying this
asynchronous retrieval request.
SIException - If event does not belong to this
ProgramSchedule.ProgramEvent,
ReadPermission
public SIRequest retrieveProgramEvent(Locator locator,
SIRequestor requestor)
throws InvalidLocatorException,
java.lang.SecurityException
This method returns data asynchronously.
locator - Locator referencing the ProgramEvent
of interest.requestor - The SIRequestor to be notified
when this retrieval operation completes.
SIRequest object identifying this
asynchronous retrieval request.
InvalidLocatorException - If locator does not
reference a valid ProgramEvent in this
ProgramSchedule.
java.lang.SecurityException - If the caller does not have
javax.tv.service.ReadPermission(locator).ProgramEvent,
ReadPermissionpublic void addListener(ProgramScheduleListener listener)
ProgramScheduleListener to be notified of
changes to program events on this ProgramSchedule.
Subsequent changes will be indicated through instances of
ProgramScheduleEvent, with this
ProgramSchedule as the event source and an
SIChangeType of ADD,
REMOVE, MODIFY, or
CURRENT_PROGRAM_EVENT. Only changes to
ProgramEvent instances p for which the
caller has
javax.tv.service.ReadPermission(p.getLocator()) will
be reported.
This method is only a request for notification. No guarantee is
provided that the SI database will detect all, or even any,
changes to the ProgramSchedule, or whether such changes
will be detected in a timely fashion.
If the specified ProgramScheduleListener is already
registered, no action is performed.
listener - A ProgramScheduleListener to be notified of
changes to program events on this ProgramSchedule.ProgramEvent,
ProgramScheduleEvent,
ProgramScheduleChangeType,
ReadPermissionpublic void removeListener(ProgramScheduleListener listener)
ProgramScheduleListener. If the
specified ProgramScheduleListener is not registered, no
action is performed.
listener - A previously registered listener.public Locator getServiceLocator()
ProgramSchedule belongs. Note that
applications may use this method to establish the identity of
a ProgramSchedule after it has changed.
ProgramSchedule belongs.ProgramScheduleEvent.getProgramSchedule()
|
JSR-927 (Maintenance Release) | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||