Package AccessControl :: Module Role :: Class RoleManager
[show private | hide private]
[frames | no frames]

Type RoleManager

 object --+    
          |    
       Base --+
              |
RoleManager --+
              |
             RoleManager

Known Subclasses:
Folder, PrimaryPathManager, PrimaryPathManager, SimpleItem

An object that has configurable permissions
Method Summary
  ac_inherited_permissions(self, all)
  access_debug_info(self)
Return debug info.
  acquiredRolesAreUsedBy(self, permission)
Used by management screen.
  get_local_roles(self)
  get_local_roles_for_userid(self, userid)
  get_valid_userids(self)
  has_local_roles(self)
  manage_access(self, REQUEST, **kw)
Return an interface for making permissions settings.
  manage_defined_roles(self, submit, REQUEST)
Called by management screen.
  manage_editRoles(self, REQUEST, acl_type, acl_roles)
  manage_role(self, role_to_manage, permissions, REQUEST)
Change the permissions given to the given role.
  permission_settings(self, permission)
Return user-role permission settings.
  permissionsOfRole(self, role)
Used by management screen.
  possible_permissions(self)
  rolesOfPermission(self, permission)
Used by management screen.
  userdefined_roles(self)
Return list of user-defined roles.
  users_with_local_role(self, role)
  valid_roles(self)
Return list of valid roles.
  validate_roles(self, roles)
Return true if all given roles are valid.
  validRoles(self)
Return list of valid roles.
  _addRole(self, role, REQUEST)
None
  _delRoles(self, roles, REQUEST)
None
  _has_user_defined_role(self, role)
  _setRoles(self, acl_type, acl_roles)
  manage_acquiredPermissions(self, permissions, REQUEST)
Change the permissions that acquire.
  manage_addLocalRoles(self, userid, roles, REQUEST)
Set local roles for a user.
  manage_changePermissions(self, REQUEST)
Change all permissions settings, called by management screen.
  manage_delLocalRoles(self, userids, REQUEST)
Remove all local roles for a user.
  manage_permission(self, permission_to_manage, roles, acquire, REQUEST)
Change the settings for the given permission.
  manage_setLocalRoles(self, userid, roles, REQUEST)
Set local roles for a user.
Inherited from RoleManager: manage_getPermissionMapping, _isBeingAccessedAsZClassDefinedInstanceMethod, _isBeingUsedAsAMethod, manage_setPermissionMapping
Inherited from Base: __getattribute__, __getnewargs__, __getstate__, __new__, __reduce__, __setstate__
Inherited from object: __init__, __delattr__, __hash__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variable Summary
NoneType __ac_local_roles__ = None                                                                  
tuple __ac_permissions__ = (('Change permissions', ('manage_ac...
tuple __ac_roles__ = ('Manager', 'Owner', 'Anonymous', 'Authen...
Implements __implemented__ = <implementedBy AccessControl.Role.Role...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
PermissionRole ac_inherited_permissions__roles__ = <PermissionRole obje...
tuple access_debug_info__roles__ = ()
str aclAChecked = ''
str aclEChecked = ''
str aclPChecked = ''
PermissionRole acquiredRolesAreUsedBy__roles__ = <PermissionRole object...
PermissionRole manage_access__roles__ = <PermissionRole object at 0xfbf...
DTMLFile manage_acquiredForm = <App.special_dtml.DTMLFile object ...
PermissionRole manage_acquiredForm__roles__ = <PermissionRole object at...
PermissionRole manage_acquiredPermissions__roles__ = <PermissionRole ob...
PermissionRole manage_addLocalRoles__roles__ = <PermissionRole object a...
PermissionRole manage_changePermissions__roles__ = <PermissionRole obje...
PermissionRole manage_defined_roles__roles__ = <PermissionRole object a...
PermissionRole manage_delLocalRoles__roles__ = <PermissionRole object a...
DTMLFile manage_editLocalRoles = <App.special_dtml.DTMLFile objec...
PermissionRole manage_editLocalRoles__roles__ = <PermissionRole object ...
tuple manage_editRoles__roles__ = ('Manager',)
DTMLFile manage_listLocalRoles = <App.special_dtml.DTMLFile objec...
PermissionRole manage_listLocalRoles__roles__ = <PermissionRole object ...
tuple manage_options = ({'action': 'manage_access', 'filter': ...
PermissionRole manage_permission__roles__ = <PermissionRole object at 0...
DTMLFile manage_permissionForm = <App.special_dtml.DTMLFile objec...
PermissionRole manage_permissionForm__roles__ = <PermissionRole object ...
PermissionRole manage_role__roles__ = <PermissionRole object at 0xfbf0>
DTMLFile manage_roleForm = <App.special_dtml.DTMLFile object at 0...
PermissionRole manage_roleForm__roles__ = <PermissionRole object at 0xf...
PermissionRole manage_setLocalRoles__roles__ = <PermissionRole object a...
PermissionRole permission_settings__roles__ = <PermissionRole object at...
str permissionMappingPossibleValues = '<Special Object Used ...
PermissionRole permissionsOfRole__roles__ = <PermissionRole object at 0...
PermissionRole rolesOfPermission__roles__ = <PermissionRole object at 0...
str selectedRoles = ''
str smallRolesWidget = ''
PermissionRole userdefined_roles__roles__ = <PermissionRole object at 0...
DTMLFile _method_manage_access = <App.special_dtml.DTMLFile objec...
DTMLFile _normal_manage_access = <App.special_dtml.DTMLFile objec...
Inherited from RoleManager: __providedBy__, manage_getPermissionMapping__roles__, manage_setPermissionMapping__roles__

Method Details

access_debug_info(self)

Return debug info.

acquiredRolesAreUsedBy(self, permission)

Used by management screen.

manage_access(self, REQUEST, **kw)

Return an interface for making permissions settings.

manage_defined_roles(self, submit=None, REQUEST=None)

Called by management screen.

manage_role(self, role_to_manage, permissions=[], REQUEST=None)

Change the permissions given to the given role.

permission_settings(self, permission=None)

Return user-role permission settings.

If 'permission' is passed to the method then only the settings for 'permission' is returned.

permissionsOfRole(self, role)

Used by management screen.

rolesOfPermission(self, permission)

Used by management screen.

userdefined_roles(self)

Return list of user-defined roles.

valid_roles(self)

Return list of valid roles.

validate_roles(self, roles)

Return true if all given roles are valid.

validRoles(self)

Return list of valid roles.

_addRole(self, role, REQUEST=None)

None

_delRoles(self, roles, REQUEST=None)

None

manage_acquiredPermissions(self, permissions=None, REQUEST=None)

Change the permissions that acquire.

manage_addLocalRoles(self, userid, roles, REQUEST=None)

Set local roles for a user.

manage_changePermissions(self, REQUEST)

Change all permissions settings, called by management screen.

manage_delLocalRoles(self, userids, REQUEST=None)

Remove all local roles for a user.

manage_permission(self, permission_to_manage, roles=None, acquire=None, REQUEST=None)

Change the settings for the given permission.

If optional arg acquire is true, then the roles for the permission are acquired, in addition to the ones specified, otherwise the permissions are restricted to only the designated roles.

manage_setLocalRoles(self, userid, roles, REQUEST=None)

Set local roles for a user.

Class Variable Details

__ac_local_roles__

Type:
NoneType
Value:
None                                                                  

__ac_permissions__

Type:
tuple
Value:
(('Change permissions',
  ('manage_access',
   'permission_settings',
   'ac_inherited_permissions',
   'manage_roleForm',
   'manage_role',
   'manage_acquiredForm',
   'manage_acquiredPermissions',
...                                                                    

__ac_roles__

Type:
tuple
Value:
('Manager', 'Owner', 'Anonymous', 'Authenticated')                     

__implemented__

Type:
Implements
Value:
<implementedBy AccessControl.Role.RoleManager>                         

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x1569f30>        

ac_inherited_permissions__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

access_debug_info__roles__

Type:
tuple
Value:
()                                                                     

aclAChecked

Type:
str
Value:
''                                                                     

aclEChecked

Type:
str
Value:
''                                                                     

aclPChecked

Type:
str
Value:
''                                                                     

acquiredRolesAreUsedBy__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_access__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_acquiredForm

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x148cc90>                        

manage_acquiredForm__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_acquiredPermissions__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_addLocalRoles__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_changePermissions__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_defined_roles__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_delLocalRoles__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_editLocalRoles

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x148cdd0>                        

manage_editLocalRoles__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_editRoles__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_listLocalRoles

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x148cdb0>                        

manage_listLocalRoles__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_options

Type:
tuple
Value:
({'action': 'manage_access',
  'filter': <function _isNotBeingUsedAsAMethod at 0x1492270>,
  'help': ('OFSP', 'Security.stx'),
  'label': 'Security'},
 {'action': 'manage_access',
  'filter': <function _isBeingUsedAsAMethod at 0x1492230>,
  'help': ('OFSP', 'Security_Define-Permissions.stx'),
  'label': 'Define Permissions'})                                      

manage_permission__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_permissionForm

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x148cd30>                        

manage_permissionForm__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_role__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_roleForm

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x148cc50>                        

manage_roleForm__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

manage_setLocalRoles__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

permission_settings__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

permissionMappingPossibleValues

Type:
str
Value:
'<Special Object Used to Force Acquisition>'                           

permissionsOfRole__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

rolesOfPermission__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

selectedRoles

Type:
str
Value:
''                                                                     

smallRolesWidget

Type:
str
Value:
''                                                                     

userdefined_roles__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xfbf0>                                      

_method_manage_access

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x148ccd0>                        

_normal_manage_access

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x148cd50>                        

Generated by Epydoc 2.1 on Thu Aug 16 09:55:15 2007 http://epydoc.sf.net