Class BaseCombiningAlg<T extends Decidable>
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.combining.BaseCombiningAlg<T>
-
- Type Parameters:
T
- type of combined element (Policy, Rule...)
- All Implemented Interfaces:
CombiningAlg<T>
,PdpExtension
public abstract class BaseCombiningAlg<T extends Decidable> extends Object implements CombiningAlg<T>
This class provides a skeletal implementation of theCombiningAlg
interface to minimize the effort required to implement this interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseCombiningAlg.Evaluator<T extends Decidable>
This class provides a skeletal implementation of theCombiningAlg.Evaluator
interface to minimize the effort required to implement this interface.
-
Field Summary
-
Fields inherited from interface org.ow2.authzforce.core.pdp.api.PdpExtension
AUTHZFORCE_EXTENSION_PREFIX
-
-
Constructor Summary
Constructors Constructor Description BaseCombiningAlg(String id, Class<T> combinedType)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>
getCombinedElementType()
Get to know whether this is a policy/policySet or rule-combining algorithmString
getId()
Get globally unique ID (e.g.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ow2.authzforce.core.pdp.api.combining.CombiningAlg
getInstance
-
-
-
-
Constructor Detail
-
BaseCombiningAlg
public BaseCombiningAlg(String id, Class<T> combinedType)
Constructor- Parameters:
id
- the algorithm's idWARNING: java.net.URI cannot be used here for XACML category and ID, because not equivalent to XML schema anyURI type. Spaces are allowed in XSD anyURI [1], not in java.net.URI for example. That's why we use String instead.
[1] http://www.w3.org/TR/xmlschema-2/#anyURI
combinedType
- combined element type
-
-
Method Detail
-
getId
public final String getId()
Description copied from interface:PdpExtension
Get globally unique ID (e.g. URI) of the extension- Specified by:
getId
in interfacePdpExtension
- Returns:
- extension ID
-
getCombinedElementType
public final Class<T> getCombinedElementType()
Get to know whether this is a policy/policySet or rule-combining algorithm- Specified by:
getCombinedElementType
in interfaceCombiningAlg<T extends Decidable>
- Returns:
- the combinedElementType
-
-