dateTimeAtLeastOneMemberOf Function Description
Description
This function takes in two parameters of type bag of dateTime and returns true if there is at least one value in the first bag equal to at least one value in the second bag.
dateTimeAtLeastOneMemberOf belongs to the ALFA function reference's
Set functions category. It maps to the XACML function identifier
urn:oasis:names:tc:xacml:1.0:function:dateTime-at-least-one-member-of, takes 2 arguments and returns a value of type boolean.
| Property | Value |
|---|---|
| Category | Set functions |
| # Arguments | 2 |
| Arguments |
|
| Return Value | boolean |
| Expressed As | pre-fix |
| Representation | ALFA short name |
| Allowed In Target | false |
| ALFA Shorthand | None |
| Commutative | true |
Example
/**
* Permit if one value the requested datetimes is equal to at least one of the available
* datetimes.
*/
rule dateTimeAtLeastOneMemberOfExample{
permit
condition dateTimeAtLeastOneMemberOf(requestedDateTimes, availableDateTimes) ||
dateTimeAtLeastOneMemberOf(requestedDateTimes, dateTimeBag("2002-10-10T12:00:00-05:00":dateTime)
)
}
In this example, the rule will return Permit if there is at least one value in the first bag (a) equal to at least one value in the second bag (b). The example also illustrates an example of a dateTime value and how conversion is handled.
See Also
- anyOfAny
- anyURIAtLeastOneMemberOf
- base64BinaryAtLeastOneMemberOf
- booleanAtLeastOneMemberOf
- dateAtLeastOneMemberOf
- dayTimeDurationAtLeastOneMemberOf
- doubleAtLeastOneMemberOf
- hexBinaryAtLeastOneMemberOf
- integerAtLeastOneMemberOf
- rfc822NameAtLeastOneMemberOf
- stringAtLeastOneMemberOf
- timeAtLeastOneMemberOf
- x500NameAtLeastOneMemberOf
- yearMonthDurationAtLeastOneMemberOf
Related Functions
Other functions in the Set functions category: