Class FirstOrderBagFunctions.PrimitiveToBag<AV extends AttributeValue>
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.func.BaseFunction<RETURN>
-
- org.ow2.authzforce.core.pdp.api.func.FirstOrderFunction<RETURN_T>
-
- org.ow2.authzforce.core.pdp.api.func.SingleParameterTypedFirstOrderFunction<Bag<AV>,AV>
-
- org.ow2.authzforce.core.pdp.api.func.FirstOrderBagFunctions.PrimitiveToBag<AV>
-
- Type Parameters:
AV
- primitive datatype
- All Implemented Interfaces:
Function<Bag<AV>>
,PdpExtension
,PrimitiveValue
,Value
- Enclosing class:
- FirstOrderBagFunctions
public static class FirstOrderBagFunctions.PrimitiveToBag<AV extends AttributeValue> extends SingleParameterTypedFirstOrderFunction<Bag<AV>,AV>
Generic 'type-bag' function
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME_SUFFIX_BAG
Function ID suffix for 'primitiveType-bag' functions-
Fields inherited from class org.ow2.authzforce.core.pdp.api.func.SingleParameterTypedFirstOrderFunction
functionSignature
-
Fields inherited from interface org.ow2.authzforce.core.pdp.api.func.Function
AUTHZFORCE_EXTENSION_PREFIX, XACML_NS_1_0, XACML_NS_2_0, XACML_NS_3_0
-
-
Constructor Summary
Constructors Constructor Description PrimitiveToBag(Datatype<AV> paramType, BagDatatype<AV> paramBagType)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FirstOrderFunctionCall<Bag<AV>>
newCall(List<Expression<?>> argExpressions, Datatype<?>... remainingArgTypes)
Returns a function call for calling this function.-
Methods inherited from class org.ow2.authzforce.core.pdp.api.func.SingleParameterTypedFirstOrderFunction
getParameterTypes, getReturnType
-
Methods inherited from class org.ow2.authzforce.core.pdp.api.func.FirstOrderFunction
newCall
-
Methods inherited from class org.ow2.authzforce.core.pdp.api.func.BaseFunction
equals, getId, getIndeterminateArgException, getIndeterminateArgMessage, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ow2.authzforce.core.pdp.api.func.Function
getXdmItem
-
Methods inherited from interface org.ow2.authzforce.core.pdp.api.value.PrimitiveValue
getXdmValue
-
-
-
-
Field Detail
-
NAME_SUFFIX_BAG
public static final String NAME_SUFFIX_BAG
Function ID suffix for 'primitiveType-bag' functions- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrimitiveToBag
public PrimitiveToBag(Datatype<AV> paramType, BagDatatype<AV> paramBagType)
Constructor- Parameters:
paramType
- bag's primitive datatypeparamBagType
- bag datatype
-
-
Method Detail
-
newCall
public FirstOrderFunctionCall<Bag<AV>> newCall(List<Expression<?>> argExpressions, Datatype<?>... remainingArgTypes) throws IllegalArgumentException
Description copied from class:FirstOrderFunction
Returns a function call for calling this function.- Specified by:
newCall
in classFirstOrderFunction<Bag<AV extends AttributeValue>>
- Parameters:
argExpressions
- function arguments (expressions)remainingArgTypes
- types of remaining inputs to be passed only at request evaluation time, if not all arguments are specified inargExpressions
. Therefore, only their type is checked at this point. The actual argument values will be passed as last parameters when callingBaseFirstOrderFunctionCall.evaluate(org.ow2.authzforce.core.pdp.api.EvaluationContext, Optional, boolean, org.ow2.authzforce.core.pdp.api.value.AttributeValue...)
at request evaluation time, via the returnedFunctionCall
.- Returns:
- Function call handle for calling this function which such inputs (with possible changes from original inputs due to optimizations for instance)
- Throws:
IllegalArgumentException
- if inputs are invalid for this function
-
-