Home | Trees | Index | Help |
|
---|
Package AccessGrid :: Package Security :: Module AuthorizationManager :: Class AuthorizationManager |
|
Method Summary | |
---|---|
The constructor, initializes itself. | |
This method converts the object to a string. | |
This method converts the object to XML. | |
Adds an action to this authorization manager. | |
Add a list of actions, uses AddAction internally. | |
Add a role to this authorization manager. | |
Add multiple roles to the authorization manager. | |
Encapsulation method, outside callers should not have to interact with anything but an authorization manager. | |
Encapsulation method, outside callers should not have to interact with anything but an authorization manager. | |
This method creates a string representation of the Authorization Policy this object implements. | |
Find an action by name. | |
Find a role in this authorization manager. | |
Get a list of actions, perhaps for a subject or a role. | |
Return the list of default roles for this authorization manager. | |
Get the parent object. | |
Get the list of Roles, optionally the roles associated with an action. | |
Get all the roles the specified subject is part of. | |
Get the subjects known by this authorization manager, possibly for the specified role. | |
This method takes a string that is an XML representation of an authorization policy. | |
This is the real workhorse of authorization, checking to see if a given subject is authorized for a given action. | |
Remove an action from this authorization manager. | |
Remove a Role from this authorization manager. | |
Set the default roles for this authorization manager. | |
Set the parent authorization manager of this authorization manager. | |
Sets the roles for the specified action. | |
Set the subjects for the specified role. | |
We're going to try a new serialization process, using XML. |
Method Details |
---|
__init__(self)
The constructor, initializes itself.
|
__str__(self)
This method converts the object to a string.
|
_repr_(self)This method converts the object to XML. |
AddAction(self, action)Adds an action to this authorization manager.
|
AddActions(self, actionList)Add a list of actions, uses AddAction internally.
|
AddRole(self, role, default=0)Add a role to this authorization manager.
|
AddRoles(self, roleList)Add multiple roles to the authorization manager. This calls AddRole for each role in the list.
|
AddRoleToAction(self, actionName, roleName)Encapsulation method, outside callers should not have to interact with anything but an authorization manager. This method hides the details of adding roles to actions. |
AddSubjectToRole(self, subjectName, roleName)Encapsulation method, outside callers should not have to interact with anything but an authorization manager. This method hides the details of adding subjects to roles. |
ExportPolicy(self)This method creates a string representation of the Authorization Policy this object implements.
|
FindAction(self, name)Find an action by name.
|
FindRole(self, name)Find a role in this authorization manager.
|
GetActions(self, subject=None, role=None)Get a list of actions, perhaps for a subject or a role.
|
GetDefaultRoles(self)Return the list of default roles for this authorization manager.
|
GetParent(self)Get the parent object. The parent authorization manager is used to provide a hierarchy of authorization. Currently, there is only one level allowed, ie, every authorization manager can have a parent, but when traversed (looking for authorization information) the tree is only ascended one level. |
GetRoles(self, action=None)Get the list of Roles, optionally the roles associated with an action.
|
GetRolesForSubject(self, subject)Get all the roles the specified subject is part of.
|
GetSubjects(self, role=None)Get the subjects known by this authorization manager, possibly for the specified role.
|
ImportPolicy(self, policy)This method takes a string that is an XML representation of an authorization policy. This policy is parsed and this object is configured to enforce the specified policy.
|
IsAuthorized(self, subject, action)This is the real workhorse of authorization, checking to see if a given subject is authorized for a given action.
|
RemoveAction(self, action)Remove an action from this authorization manager.
|
RemoveRole(self, role)Remove a Role from this authorization manager.
|
SetDefaultRoles(self, roles=[])Set the default roles for this authorization manager.
|
SetParent(self, authMgr)Set the parent authorization manager of this authorization manager.
|
SetRoles(self, action, roles)Sets the roles for the specified action.
|
SetSubjects(self, role, subjects)Set the subjects for the specified role.
|
ToXML(self)We're going to try a new serialization process, using XML. We create this by creating a document then serializing it.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Apr 14 16:39:30 2005 | http://epydoc.sf.net |