Package ndg :: Package xacml :: Package core :: Module resource
[hide private]

Source Code for Module ndg.xacml.core.resource

 1  """NDG Security Resource type definition 
 2   
 3  NERC DataGrid 
 4  """ 
 5  __author__ = "P J Kershaw" 
 6  __date__ = "24/02/10" 
 7  __copyright__ = "(C) 2010 Science and Technology Facilities Council" 
 8  __contact__ = "Philip.Kershaw@stfc.ac.uk" 
 9  __license__ = "BSD - see LICENSE file in top-level directory" 
10  __contact__ = "Philip.Kershaw@stfc.ac.uk" 
11  __revision__ = "$Id: resource.py 7955 2011-12-21 18:29:45Z rwilkinson $" 
12  from ndg.xacml.core import TargetChildBase 
13  from ndg.xacml.core.match import ResourceMatch 
14 15 16 -class Resource(TargetChildBase):
17 """XACML Resource Target Policy element 18 19 @cvar MATCH_TYPE: Sets the type for match attributes in this 20 TargetChildBase derived class 21 @type MATCH_TYPE: ndg.xacml.core.match.ResourceMatch 22 @cvar ELEMENT_LOCAL_NAME: XML element local name 23 @type ELEMENT_LOCAL_NAME: string 24 """ 25 MATCH_TYPE = ResourceMatch 26 ELEMENT_LOCAL_NAME = 'Resource' 27 ID = "urn:oasis:names:tc:xacml:1.0:resource:resource-id" 28 __slots__ = () 29 30 @property
31 - def resourceMatches(self):
32 """Convenience wrapper to base class method 33 @return: list of matches 34 @rtype: ndg.xacml.utils.TypedList 35 """ 36 return self.matches
37