Skip to content

Add aggregate functions. #22

@steven-legg

Description

@steven-legg

The proposal is to add XACML functions to compute the minimum, maximum, sum or average of a bag of values. These functions could be added to both XACML 3.0 and XACML 4.0.

The sum and average functions only make sense for data types that can be added, i.e., integer and double. The sum of integers would return an integer. The average of integers and the sum and average of doubles would return a double.

urn:oasis:names:tc:xacml:3.0:function:integer-sum
urn:oasis:names:tc:xacml:3.0:function:integer-average
urn:oasis:names:tc:xacml:3.0:function:double-sum
urn:oasis:names:tc:xacml:3.0:function:double-average

The minimum and maximum functions could be used with any data type that has an ordering relationship, i.e., integer, double, string, time, date and dateTime.

urn:oasis:names:tc:xacml:3.0:function:integer-minimum
urn:oasis:names:tc:xacml:3.0:function:integer-maximum
urn:oasis:names:tc:xacml:3.0:function:double-minimum
urn:oasis:names:tc:xacml:3.0:function:double-maximum
urn:oasis:names:tc:xacml:3.0:function:string-minimum
urn:oasis:names:tc:xacml:3.0:function:string-maximum
urn:oasis:names:tc:xacml:3.0:function:time-minimum
urn:oasis:names:tc:xacml:3.0:function:time-maximum
urn:oasis:names:tc:xacml:3.0:function:date-minimum
urn:oasis:names:tc:xacml:3.0:function:date-maximum
urn:oasis:names:tc:xacml:3.0:function:dateTime-minimum
urn:oasis:names:tc:xacml:3.0:function:dateTime-maximum

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions