rfc822NameUnion Function Description
Description
This function takes two or more arguments that are both a bag of rfc822Name values. It returns a bag of rfc822Name such that it contains all elements of all the argument bags. The function gets rid of duplicates, as determined by the equality functions.
rfc822NameUnion 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:rfc822Name-union, takes 2 or more arguments and returns a value of type A bag of values of type rfc822Name with no duplicates..
| Property | Value |
|---|---|
| Category | Set functions |
| # Arguments | 2 or more |
| Arguments |
|
| Return Value | A bag of values of type rfc822Name with no duplicates. |
| Expressed As | pre-fix |
| Representation | ALFA short name |
| Allowed In Target | false |
| ALFA Shorthand | None |
| Commutative | true |
Example
/**
* Check that the value [email protected] is in the list of emails.
*/
rule rfc822NameUnionExample{
condition rfc822NameIsIn(rfc822NameOneAndOnly(recipient), rfc822NameUnion(friends, family))
permit
}
In this example, we use the rfc822NameUnion function in conjunction with rfc822NameIsIn to determine whether a single atomic value is in the union of 2 bags of values. This also shows how functions can be combined together in ALFA.
Related Functions
Other functions in the Set functions category: