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

Class Decision

source code

object --+
         |
        Decision
Known Subclasses:

Define decision types for Response Result

Instance Methods [hide private]
 
__init__(self, decision='Indeterminate')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
dict
__getstate__(self)
Enable pickling
source code
 
__setstate__(self, attrDict)
Enable pickling
source code
 
_setValue(self, value)
Set decision value
source code
string
_getValue(self)
Get decision value
source code
string
__str__(self)
represent decision as a string
source code
string
__repr__(self)
Overridden to show the decision value
source code
bool
__eq__(self, decision)
Returns: True if the decision values match, False otherwise
source code

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

Class Variables [hide private]
string ELEMENT_LOCAL_NAME = 'Decision'
XML Local Name of StatusCode element
string PERMIT_STR = 'Permit'
permit decision string
string DENY_STR = 'Deny'
deny decision string
string INDETERMINATE_STR = 'Indeterminate'
indeterminate decision string
string NOT_APPLICABLE_STR = 'NotApplicable'
not applicable decision string
tuple TYPES = ('Permit', 'Deny', 'Indeterminate', 'NotApplicable')
list of valid decision strings
PermitDecision PERMIT = <ndg.xacml.core.context.result.PermitDecision object ...
"Permit" decision type instance
DenyDecision DENY = <ndg.xacml.core.context.result.DenyDecision object at 0...
"Deny" decision type instance
IndeterminateDecision INDETERMINATE = <ndg.xacml.core.context.result.IndeterminateDe...
"Indeterminate" decision type instance
NotApplicableDecision NOT_APPLICABLE = <ndg.xacml.core.context.result.NotApplicableD...
"NotApplicable" decision type instance
Instance Variables [hide private]
string __value
decision value
Properties [hide private]
  value
Decision value

Inherited from object: __class__

Method Details [hide private]

__init__(self, decision='Indeterminate')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__getstate__(self)

source code 

Enable pickling

Returns: dict
class instance attributes dictionary

__setstate__(self, attrDict)

source code 

Enable pickling

Parameters:
  • attrDict (dict) - class instance attributes dictionary

_setValue(self, value)

source code 

Set decision value

Parameters:
  • value (string or ndg.xacml.core.context.result.Decision) - decision value - constrained vocabulary to Decision.TYPES
Raises:
  • AttributeError - invalid decision string value input
  • TypeError - invalid type for input decision value

_getValue(self)

source code 

Get decision value

Returns: string
decision value

__str__(self)
(Informal representation operator)

source code 

represent decision as a string

Returns: string
decision value
Overrides: object.__str__

__repr__(self)
(Representation operator)

source code 

Overridden to show the decision value

Returns: string
decision representation
Overrides: object.__repr__

__eq__(self, decision)
(Equality operator)

source code 
Parameters:
  • decision (string or ndg.xacml.core.context.result.Decision) - decision value to compare with self's
Returns: bool
True if the decision values match, False otherwise
Raises:
  • AttributeError - invalid decision string value input
  • TypeError - invalid type for input decision value

Class Variable Details [hide private]

PERMIT

"Permit" decision type instance
Type:
PermitDecision
Value:
<ndg.xacml.core.context.result.PermitDecision object at 0x1011d33d0> =\
 'Permit'

DENY

"Deny" decision type instance
Type:
DenyDecision
Value:
<ndg.xacml.core.context.result.DenyDecision object at 0x1011d3408> = '\
Deny'

INDETERMINATE

"Indeterminate" decision type instance
Type:
IndeterminateDecision
Value:
<ndg.xacml.core.context.result.IndeterminateDecision object at 0x1011d\
3440> = 'Indeterminate'

NOT_APPLICABLE

"NotApplicable" decision type instance
Type:
NotApplicableDecision
Value:
<ndg.xacml.core.context.result.NotApplicableDecision object at 0x1011d\
3478> = 'NotApplicable'

Property Details [hide private]

value

Decision value

Get Method:
_getValue(self) - Get decision value
Set Method:
_setValue(self, value) - Set decision value