|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.basic.TimePeriodConstraint
public final class TimePeriodConstraint
A time period constraint containing one absolute and three relative time constraints.
Absolute Period:
The absolute valid period.
The actual validity period is the intersection of the policy absolute validity period and the
attribute certificate validity period.
Minimum Valid From:
The minimum duration that an attribute certificate must have been valid relative to the
evaluation time.
Minimum Valid Up To:
The minimum duration that an attribute certificate must be valid from relative to the
evaluation time.
Maximum Valid Up To:
The maximum duration that an attribute certificate should be valid from the evaluation time.
Field Summary | |
---|---|
private TimePeriod |
absolutePeriod
|
private org.joda.time.Period |
maximumValidUpTo
|
private org.joda.time.Period |
minimumValidFrom
|
private org.joda.time.Period |
minimumValidUpTo
|
static TimePeriodConstraint |
UNCONSTRAINED
A constraint that do not constrain (empty constraint). |
Constructor Summary | |
---|---|
TimePeriodConstraint(TimePeriod absolutePeriod,
org.joda.time.Period minimumValidFrom,
org.joda.time.Period minimumValidUpTo,
org.joda.time.Period maximumValidUpTo)
Creates a time period constraint. |
Method Summary | |
---|---|
private static boolean |
containsNegativePositiveParts(org.joda.time.Period duration)
|
boolean |
equals(Object object)
|
TimePeriod |
getAbsolutePeriod()
Returns the absolute valid time period. |
org.joda.time.Period |
getMaximumValidUpTo()
Returns the maximum valid up to period. |
org.joda.time.Period |
getMinimumValidFrom()
Returns the minimum valid from period. |
org.joda.time.Period |
getMinimumValidUpTo()
Returns the minimum valid up to period. |
int |
hashCode()
|
private static boolean |
isGreater(org.joda.time.Period left,
org.joda.time.Period right)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TimePeriodConstraint UNCONSTRAINED
private TimePeriod absolutePeriod
private org.joda.time.Period minimumValidFrom
private org.joda.time.Period minimumValidUpTo
private org.joda.time.Period maximumValidUpTo
Constructor Detail |
---|
public TimePeriodConstraint(TimePeriod absolutePeriod, org.joda.time.Period minimumValidFrom, org.joda.time.Period minimumValidUpTo, org.joda.time.Period maximumValidUpTo)
absolutePeriod
- a TimePeriod
.minimumValidFrom
- a Period
.minimumValidUpTo
- a Period
.maximumValidUpTo
- a Period
.Method Detail |
---|
private static boolean containsNegativePositiveParts(org.joda.time.Period duration)
private static boolean isGreater(org.joda.time.Period left, org.joda.time.Period right)
public TimePeriod getAbsolutePeriod()
public org.joda.time.Period getMinimumValidFrom()
public org.joda.time.Period getMinimumValidUpTo()
public org.joda.time.Period getMaximumValidUpTo()
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG