Package ndg :: Package xacml :: Package test :: Class GroupRoleAttributeValue
[hide private]

Class GroupRoleAttributeValue

source code

                object --+            
                         |            
        core.XacmlCoreBase --+        
                             |        
    core.expression.Expression --+    
                                 |    
core.attributevalue.AttributeValue --+
                                     |
                                    GroupRoleAttributeValue

Example Custom Attribute Value

Nested Classes [hide private]
NoneType / string in derived type TYPE
type name for derived type - set to None in this parent class

Inherited from core.expression.Expression: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Derived classes must override setting TYPE class variable
source code

Inherited from core.attributevalue.AttributeValue: __eq__, __getstate__, __repr__, evaluate

Inherited from core.XacmlCoreBase (private): _getXmlns, _setXmlns

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

Class Variables [hide private]
NoneType - derived classes should set to appropriate string IDENTIFIER = 'urn:grouprole'
URN for attribute value in derived class
  GROUPROLE_ELEMENT_LOCAL_NAME = 'groupRole'
  GROUP_ELEMENT_LOCAL_NAME = 'group'
  ROLE_ELEMENT_LOCAL_NAME = 'role'
  ROLE_DEFAULT_VALUE = 'default'
  _abc_cache = <_weakrefset.WeakSet object at 0x101f29890>

Inherited from core.attributevalue.AttributeValue: ANY_TYPE_URI, BASE64BINARY_TYPE_URI, BOOLEAN_TYPE_URI, CLASS_NAME_SUFFIX, DATETIME_TYPE_URI, DATE_TYPE_URI, DAYTIMEDURATION_TYPE_URI, DNSNAME_TYPE_URI, DOUBLE_TYPE_URI, ELEMENT_LOCAL_NAME, HEXBINARY_TYPE_URI, IDENTIFIER_PREFIX, INTEGER_TYPE_URI, IPADDRESS_TYPE_URI, NATIVE_TYPES, RFC822NAME_TYPE_URI, STRING_TYPE_URI, TIME_TYPE_URI, TYPE_MAP, TYPE_NAMES, TYPE_URIS, TYPE_URI_MAP, X500NAME_TYPE_URI, YEARMONTHDURATION_TYPE_URI, __abstractmethods__

Inherited from core.expression.Expression: DATA_TYPE_ATTRIB_NAME

Inherited from core.XacmlCoreBase: XACML_1_0_NS_PREFIX, XACML_2_0_NS_PREFIX, XMLNS

Properties [hide private]
  value
Override default value property to give custom result.
  group
  role

Inherited from core.expression.Expression: dataType

Inherited from core.XacmlCoreBase: elem, isValidXmlns, xmlns

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Derived classes must override setting TYPE class variable

Parameters:
  • value - initialise the attribute value by setting this keyword
Raises:
  • NotImplementedError - derived classes must set ELEMENT_LOCAL_NAME to a string
Overrides: object.__init__
(inherited documentation)

Property Details [hide private]

value

Override default value property to give custom result. Also, 'value' becomes a read-only property. Making this change is critical to the function of the GroupRoleAtLeastOneMemberOf class below - it relies on being able to make comparison of the value attribute of different GroupRoleAttributeValue instances. Defined this way, comparison is by group,role to group,role tuple

Get Method:
unreachable.value(self) - Override default value property to give custom result.