Package ndg :: Package xacml :: Package core :: Module rule_combining_alg :: Class RuleCombiningAlgClassFactory
[hide private]

Class RuleCombiningAlgClassFactory

source code

object --+
         |
        RuleCombiningAlgClassFactory

Class Factory mapping Rule Combining Algorithm identifiers to their class implementations

Instance Methods [hide private]
 
__init__(self, map={'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny...)
Initialise mapping of identifiers to class implementations
source code
RuleCombiningAlgInterface derived type or NoneType if no match is found or NotImplementedType if the identifier corresponds to a valid XACML rule combining algorithm but is not supported in this implementation
__call__(self, identifier)
Return the class for a given Rule Combining Algorithm identifier
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  DEFAULT_MAP = {'urn:oasis:names:tc:xacml:1.0:policy-combining-...
Properties [hide private]
  __map

Inherited from object: __class__

Method Details [hide private]

__init__(self, map={'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny...)
(Constructor)

source code 

Initialise mapping of identifiers to class implementations

Parameters:
  • map - mapping of rule combining algorithms IDs to classes. Set this to override the default taken from the DEFAULT_MAP class variable
Overrides: object.__init__

__call__(self, identifier)
(Call operator)

source code 

Return the class for a given Rule Combining Algorithm identifier

Parameters:
  • identifier (basestring) - XACML rule combining algorithm urn
Returns: RuleCombiningAlgInterface derived type or NoneType if no match is found or NotImplementedType if the identifier corresponds to a valid XACML rule combining algorithm but is not supported in this implementation
rule combining class corresponding to the given input identifier

Class Variable Details [hide private]

DEFAULT_MAP

Value:
{'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny-overrid\
es': NotImplemented,
 'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:first-applic\
able': NotImplemented,
 'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:only-one-app\
licable': NotImplemented,
 'urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:permit-overr\
ides': NotImplemented,
...