Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg-security/TI12-security/trunk/ndg_xacml/ndg/xacml/core/action.py@7682
Revision 7365,
1.1 KB
checked in by pjkersha, 10 years ago
(diff) |
Incomplete - task 2: XACML-Security Integration
- added identifier URN constants
|
-
Property svn:keywords set to
Id
|
Line | |
---|
1 | """NDG XACML Action type definition |
---|
2 | |
---|
3 | NERC DataGrid |
---|
4 | """ |
---|
5 | __author__ = "P J Kershaw" |
---|
6 | __date__ = "16/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$" |
---|
12 | from ndg.xacml.core import TargetChildBase |
---|
13 | from ndg.xacml.core.match import ActionMatch |
---|
14 | |
---|
15 | |
---|
16 | class Action(TargetChildBase): |
---|
17 | """XACML Action Target Policy element |
---|
18 | |
---|
19 | @cvar MATCH_TYPE: Sets the type for match attributes in this |
---|
20 | TargetChildBase derived class |
---|
21 | implementation e.g. ResourceMatch, SubjectMatch etc. |
---|
22 | @type MATCH_TYPE: ndg.xacml.core.match.ActionMatch |
---|
23 | @cvar ELEMENT_LOCAL_NAME: XML element local name |
---|
24 | @type ELEMENT_LOCAL_NAME: string |
---|
25 | """ |
---|
26 | MATCH_TYPE = ActionMatch |
---|
27 | ELEMENT_LOCAL_NAME = 'Action' |
---|
28 | ID = "urn:oasis:names:tc:xacml:1.0:action:action-id" |
---|
29 | __slots__ = () |
---|
30 | |
---|
31 | @property |
---|
32 | def actionMatches(self): |
---|
33 | """Convenience wrapper to base class method |
---|
34 | @return: list of matches |
---|
35 | @rtype: ndg.xacml.utils.TypedList |
---|
36 | """ |
---|
37 | return self.matches |
---|
Note: See
TracBrowser
for help on using the repository browser.