Package ndg :: Package xacml :: Package core :: Package context :: Module result :: Class Result
[hide private]

Class Result

source code

   object --+        
            |        
XacmlCoreBase --+    
                |    
 XacmlContextBase --+
                    |
                   Result
Known Subclasses:

XACML Result type - element in a Response

Instance Methods [hide private]
 
__init__(self)
ELEMENT_LOCAL_NAME check makes this class virtual - derived classes must override this method and set ELEMENT_LOCAL_NAME to the appropriate string
source code
dict
__getstate__(self)
Enable pickling
source code

Inherited from XacmlContextBase: __setstate__

Inherited from XacmlCoreBase (private): _getXmlns, _setXmlns

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

Class Methods [hide private]
ndg.xacml.core.context.result.Result
createInitialised(cls, decision=<ndg.xacml.core.context.result.NotApplicableDecision object at..., resourceId='', obligations=None, **kw)
Create a result object populated with all it's child elements rather than set to None as is the default from __init__
source code
Class Variables [hide private]
NoneType but implement as string in derived classes ELEMENT_LOCAL_NAME = 'Result'
XML element local name for the given type
string OBLIGATIONS_ELEMENT_LOCAL_NAME = 'Obligations'
obligations XML element local name
string RESOURCE_ID_ATTRIB_NAME = 'ResourceId'
resource ID XML attribute name

Inherited from XacmlContextBase: XACML_2_0_CONTEXT_NS, XACML_2_0_CONTEXT_NS_PREFIX

Inherited from XacmlCoreBase: XACML_1_0_NS_PREFIX, XACML_2_0_NS_PREFIX, XMLNS

Instance Variables [hide private]
ndg.xacml.core.context.result.Decision __decision
decision for this result
ndg.xacml.core.obligation.Obligation __obligations
obligations associated with this result
None/basestring __resourceId
resource id
ndg.xacml.core.context.result.Status __status
result status
Properties [hide private]
basestring resourceId
Get Result resource Id
ndg.xacml.core.context.result.Decision decision
Get Result decision
ndg.xacml.core.context.result.Status status
Get Result status
ndg.xacml.core.obligations.Obligations obligations
Get Result obligations

Inherited from XacmlCoreBase: elem, isValidXmlns, xmlns

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

ELEMENT_LOCAL_NAME check makes this class virtual - derived classes must override this method and set ELEMENT_LOCAL_NAME to the appropriate string

Raises:
  • NotImplementedError - derived classes must set ELEMENT_LOCAL_NAME to a string
Overrides: object.__init__
(inherited documentation)

createInitialised(cls, decision=<ndg.xacml.core.context.result.NotApplicableDecision object at..., resourceId='', obligations=None, **kw)
Class Method

source code 

Create a result object populated with all it's child elements rather than set to None as is the default from __init__

Parameters:
  • decision (ndg.xacml.core.context.result.Decision) - decision for this result
  • resourceId (basestring) - resource id for associated resource
  • obligations (None/ndg.xacml.core.obligation.Obligation) - obligations associated with this result
  • kw (dict) - keywords for status attribute initialisation
Returns: ndg.xacml.core.context.result.Result
new result object with all its child attributes created

__getstate__(self)

source code 

Enable pickling

Returns: dict
object's attribute dictionary
Overrides: XacmlCoreBase.__getstate__

Property Details [hide private]

resourceId

Get Result resource Id

Get Method:
unreachable.resourceId(self) - Get Result resource Id
Set Method:
unreachable.resourceId(self, value) - Set Result resource Id
Type:
basestring

decision

Get Result decision

Get Method:
unreachable.decision(self) - Get Result decision
Set Method:
unreachable.decision(self, value) - Set Request decision
Type:
ndg.xacml.core.context.result.Decision

status

Get Result status

Get Method:
unreachable.status(self) - Get Result status
Set Method:
unreachable.status(self, value) - Set Result status
Type:
ndg.xacml.core.context.result.Status

obligations

Get Result obligations

Get Method:
unreachable.obligations(self) - Get Result obligations
Set Method:
unreachable.obligations(self, value) - Set Result obligations
Type:
ndg.xacml.core.obligations.Obligations