Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.core.time
Interface TimeWindow


public interface TimeWindow

A window of time on a specified day of the week.

Creation

Instances of Time Window objects can be created using the following factory style method(s).

TimeWindow object = createTimeWindow(
    start,
    end,
    day);

Collections

Collections for TimeWindow objects can be created using the following factory method. This method creates the most appropriate collection implementation class for storing TimeWindow elements.

 Collection<TimeWindow> object = createTimeWindows();

XML Serialization

Time Window instances can be serialized as an XML document. This XML document can also be used to recreate a Time Window object. The following XML document shows an example Time Window in XML form.

<?xml version="1.0" encoding="UTF-8"?>
<core:TimeWindow xmlns:core="http://xmlns.oracle.com/irm/core">
    <day>MONDAY</day>
    <start>
        <hour>9</hour>
        <minute>30</minute>
    </start>
    <end>
        <hour>18</hour>
        <minute>0</minute>
    </end>
</core:TimeWindow>


Nested Class Summary
static class TimeWindow.DayOfWeek
          Days of the week.

 

Method Summary
 TimeWindow.DayOfWeek getDay()
          Day of the week this time window applies.
 TimePoint getEnd()
          The end time for this time window.
 TimePoint getStart()
          The starting time for this time window.

 

Method Detail

getStart

TimePoint getStart()
The starting time for this time window. If the start time is not set, the time window starts at 00:00.
Returns:
the value of the property. This method will never return null.

getEnd

TimePoint getEnd()
The end time for this time window. If the end time is not set, the time window ends at 23:59.
Returns:
the value of the property. This method will never return null.

getDay

TimeWindow.DayOfWeek getDay()
Day of the week this time window applies.
Returns:
the value of the property. This method will never return null.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.