booleanAtLeastOneMemberOf Function Description

Description

This function takes in two parameters of type bag of boolean and returns true if there is at least one value in the first bag equal to at least one value in the second bag.

booleanAtLeastOneMemberOf 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:boolean-at-least-one-member-of, takes 2 arguments and returns a value of type boolean.

Property Value
Category Set functions
# Arguments 2
Arguments
  • 2 bags of values of type boolean
Return Value boolean
Expressed As pre-fix
Representation ALFA short name
Allowed In Target false
ALFA Shorthand None
Commutative true

Example

/**
 * Permit if at least one value of the first bag is equal to one value of the second
 * bag.
 */
rule booleanAtLeastOneMemberOfExample{
    permit
    condition booleanAtLeastOneMemberOf(boolean.a, boolean.b)
}

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).