|
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 TimeSpanCheck
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.
The methods on TimeSpanCheck can be invoked using TimeSpanCheckInstance.
| Method Summary | |
|---|---|
Date |
getReferenceDate(TimeSpan span, Date current, Classification classification, License license)Obtain the date that the time span should be compare against. |
boolean |
isAfter(TimeSpan span, Date current, Classification classification, License license)Check to see if a time is after the time span ends. |
boolean |
isBefore(TimeSpan span, Date current, Classification classification, License license)Check to see if a time is before the time span starts. |
boolean |
isWithin(TimeSpan span, Date current, Classification classification, License license)Check to see if a time is within the time span. |
| Method Detail |
|---|
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.
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.
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.
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 | |||||||||