source: TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/resource.py @ 6771

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/resource.py@6771
Revision 6771, 1018 bytes checked in by pjkersha, 10 years ago (diff)

Added request subject, resource, action and environment types

Line 
1"""NDG XACML Context Resource type
2
3NERC DataGrid Project
4"""
5__author__ = "P J Kershaw"
6__date__ = "24/03/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.context import RequestChildBase
13
14
15class Resource(RequestChildBase):
16    """XACML Context Resource type"""
17    ELEMENT_LOCAL_NAME = 'Resource'
18    RESOURCE_CONTENT_ELEMENT_LOCAL_NAME = 'ResourceContent'
19   
20    __slots__ = ('__resourceContent',)
21   
22    def __init__(self):
23        super(Resource, self).__init__()
24        self.__resourceContent = None
25
26    def _get_resourceContent(self):
27        return self.__resourceContent
28
29    def _set_resourceContent(self, value):
30        self.__resourceContent = value   
31
32    resourceContent = property(_get_resourceContent, _set_resourceContent, None, 
33                               "Resource content")
Note: See TracBrowser for help on using the repository browser.