source: TI12-security/trunk/ndg_xacml/ndg/xacml/core/environment.py @ 7100

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/ndg_xacml/ndg/xacml/core/environment.py@7100
Revision 7100, 1.1 KB checked in by pjkersha, 9 years ago (diff)

Incomplete - task 2: XACML-Security Integration

  • updating epydoc ready for release.
  • Property svn:keywords set to Id
Line 
1"""NDG Security Environment type definition
2
3NERC 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$"
12from ndg.xacml.core import TargetChildBase
13from ndg.xacml.core.match import EnvironmentMatch
14
15
16class Environment(TargetChildBase):
17    """XACML Environment 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.EnvironmentMatch
22    @cvar ELEMENT_LOCAL_NAME: XML element local name
23    @type ELEMENT_LOCAL_NAME: string
24    """
25    MATCH_TYPE = EnvironmentMatch
26    ELEMENT_LOCAL_NAME = 'Environment'
27   
28    __slots__ = ()
29   
30    @property
31    def environmentMatches(self):
32        """Convenience wrapper to base class method
33        @return: list of matches
34        @rtype: ndg.xacml.utils.TypedList
35        """
36        return self.matches
Note: See TracBrowser for help on using the repository browser.