|
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 |
java.lang.Object
oracle.irm.engine.core.time.TimeSpanCheckInstance
public final class TimeSpanCheckInstance
Validity checks for absolute and relative time spans. The methods on the time span check interface allow a time span to be compared against the current time. This allows the caller to determine whether the current time falls within a time span, given the license being used and the content being viewed.
This class provides static methods for a set of procedural style methods. The methods can be made to appear as global methods by using import static. e.g.
import static oracle.irm.engine.core.time.TimeSpanCheckInstance.*;
Method Summary | |
---|---|
static Date |
getReferenceDate(TimeSpan span, Date current, Classification classification, License license) Obtain the date that the time span should be compare against. |
static boolean |
isAfter(TimeSpan span, Date current, Classification classification, License license) Check to see if a time is after the time span ends. |
static boolean |
isBefore(TimeSpan span, Date current, Classification classification, License license) Check to see if a time is before the time span starts. |
static boolean |
isWithin(TimeSpan span, Date current, Classification classification, License license) Check to see if a time is within the time span. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Date getReferenceDate(TimeSpan span, Date current, Classification classification, License license)
span
- the time span to query.current
- the current time.classification
- the classification. This parameter is optional, it is valid to pass null.license
- the license. This parameter is optional, it is valid to pass null.public static boolean isBefore(TimeSpan span, Date current, Classification classification, License license)
span
- the time span to check.current
- the current time.classification
- the classification. This parameter is optional, it is valid to pass null.license
- the license. This parameter is optional, it is valid to pass null.public static boolean isAfter(TimeSpan span, Date current, Classification classification, License license)
span
- the time span to check.current
- the current time.classification
- the classification. This parameter is optional, it is valid to pass null.license
- the license. This parameter is optional, it is valid to pass null.public static boolean isWithin(TimeSpan span, Date current, Classification classification, License license)
span
- the time span to check.current
- the current time.classification
- the classification. This parameter is optional, it is valid to pass null.license
- the license. This parameter is optional, it is valid to pass null.
|
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 |