Changeset 7108 for TI12-security/trunk/ndg_xacml/ndg/xacml/core/target.py
- Timestamp:
- 28/06/10 10:19:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/ndg_xacml/ndg/xacml/core/target.py
r7087 r7108 27 27 28 28 class Target(XacmlCoreBase): 29 """XACML Target element""" 29 """XACML Target element 30 31 @cvar ELEMENT_LOCAL_NAME: XML local name for this element 32 @type ELEMENT_LOCAL_NAME: string 33 @cvar SUBJECTS_ELEMENT_LOCAL_NAME: XML local name for the subjects element 34 @type SUBJECTS_ELEMENT_LOCAL_NAME: string 35 @cvar ACTIONS_ELEMENT_LOCAL_NAME: XML local name for the actions element 36 @type ACTIONS_ELEMENT_LOCAL_NAME: string 37 @cvar RESOURCES_ELEMENT_LOCAL_NAME: XML local name for the resources element 38 @type RESOURCES_ELEMENT_LOCAL_NAME: string 39 @cvar ENVIRONMENTS_ELEMENT_LOCAL_NAME: XML local name for the environments 40 element 41 @type ENVIRONMENTS_ELEMENT_LOCAL_NAME: string 42 @cvar CHILD_ATTRS: list of the XML child element names for <Target/> 43 @type CHILD_ATTRS: tuple 44 45 @ivar __subjects: list of subjects for this target 46 @type __subjects: ndg.xacml.utils.TypedList 47 @ivar __resources: list of resources for this target 48 @type __resources: ndg.xacml.utils.TypedList 49 @ivar __actions: list of actions for this target 50 @type __actions: ndg.xacml.utils.TypedList 51 @ivar __environments: list of environment settings for this target 52 @type __environments: ndg.xacml.utils.TypedList 53 """ 30 54 ELEMENT_LOCAL_NAME = "Target" 31 55 SUBJECTS_ELEMENT_LOCAL_NAME = "Subjects" … … 46 70 @property 47 71 def subjects(self): 72 """Get subjects 73 @return: list of subjects for this target 74 @rtype: ndg.xacml.utils.TypedList 75 """ 48 76 return self.__subjects 49 77 50 78 @property 51 79 def resources(self): 80 """Get resources 81 @return: list of resources for this target 82 @rtype: ndg.xacml.utils.TypedList 83 """ 52 84 return self.__resources 53 85 54 86 @property 55 87 def actions(self): 88 """Get actions 89 @return: list of actions for this target 90 @rtype: ndg.xacml.utils.TypedList 91 """ 56 92 return self.__actions 57 93 58 94 @property 59 95 def environments(self): 96 """Get environments 97 @return: list of environments for this target 98 @rtype: ndg.xacml.utils.TypedList 99 """ 60 100 return self.__environments 61 101 … … 63 103 """Generic method to match a <Target> element to the request context 64 104 65 @param target: XACML target element66 @type target: ndg.xacml.core.target.Target67 105 @param request: XACML request context 68 106 @type request: ndg.xacml.core.context.request.Request … … 136 174 object 137 175 @type targetChild: ndg.xacml.core.TargetChildBase 138 @param requestChild: Request Subject, Resource, Action or Environment 139 object 140 @type requestChild: ndg.xacml.core.context.RequestChildBase 176 @param request: Request context object 177 @type request: ndg.xacml.core.context.request.Request 141 178 @return: True if request context matches something in the target 142 179 @rtype: bool
Note: See TracChangeset
for help on using the changeset viewer.