|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TimeOperations
Operations for manipulating and creating time based objects.
The methods on TimeOperations can be invoked using TimeOperationsInstance.
| Method Summary | |
|---|---|
Date |
getCurrentTime()The current time. |
TimeRange |
getTimeRangeByInterval(Date date, TimeRange.Direction direction, TimeRange.Interval interval, int size)Create a time range using a time interval. |
boolean |
isTimeWindowOverlapping(TimeWindow window, Collection<TimeWindow> windows)Check whether a time window overlaps other time windows. |
Collection<TimePeriod> |
sortTimePeriods(Collection<TimePeriod> periods)Sort a set of time periods in ascending order. |
| Method Detail |
|---|
Date getCurrentTime()
boolean isTimeWindowOverlapping(TimeWindow window,
Collection<TimeWindow> windows)
window - the time window to check.windows - the time windows to compare against. This parameter is optional, it is valid to pass null or an empty collection.
TimeRange getTimeRangeByInterval(Date date,
TimeRange.Direction direction,
TimeRange.Interval interval,
int size)
date - reference date.direction - time direction.interval - interval.size - interval size.Collection<TimePeriod> sortTimePeriods(Collection<TimePeriod> periods)
toSeconds method.periods - time periods to sort. This parameter is optional, it is valid to pass null or an empty collection.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||