[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - security.zcml:1.1.2.1

Jim Fulton jim@zope.com
Tue, 12 Feb 2002 19:50:12 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv15356/Zope/App/Security

Added Files:
      Tag: Zope-3x-branch
	security.zcml 
Log Message:
decomposed zope configuration into separate package configs

=== Added File Zope3/lib/python/Zope/App/Security/security.zcml ===
<zopeConfigure
   xmlns='http://namespaces.zope.org/zope'
   xmlns:security='http://namespaces.zope.org/security'
   xmlns:zmi='http://namespaces.zope.org/zmi'
   xmlns:browser='http://namespaces.zope.org/browser'
>
  <serviceType name="RoleService" 
               interface="Zope.App.Security.IRoleService." />
  <service name="RoleService" 
           component="Zope.App.Security.RoleRegistry.roleRegistry" />


  <serviceType name="PermissionService" 
               interface="Zope.App.Security.IPermissionService." />
  <service name="PermissionService" 
         component="Zope.App.Security.PermissionRegistry.permissionRegistry" />

  <serviceType name="AuthenticationService" 
               interface="Zope.App.Security.IAuthenticationService." />
  <service name="AuthenticationService" 
           component="Zope.App.Security.PrincipalRegistry.principalRegistry" />

<security:defaultPolicy 
  name="Zope.App.Security.ZopeSecurityPolicy.zopeSecurityPolicy" />


<adapter factory="Zope.App.Security.BasicAuthAdapter."
         provides="Zope.App.Security.ILoginPassword."
         for="Zope.Publisher.HTTP.IHTTPCredentials." />


<!-- Role-Permission management view -->

<security:protectClass name="Zope.App.Security.RolePermissionView."
   permission_id="Zope.Security"
   methods="index, roles, permissions, permissionRoles, action,
   manage_permissionForm, update_permission,
   manage_roleForm, update_role" />

<security:protectClass
   name="Zope.App.Security.RolePermissionView.PermissionRoles."
   permission_id="Zope.Security"
   methods="roles" 
   interface="Zope.App.Security.IPermission." />

<browser:view name="RolePermissionsManagement"
              for="Zope.App.Security.IAttributeRolePermissionManageable."
              factory="Zope.App.Security.RolePermissionView." />

<adapter factory="Zope.App.Security.AttributeRolePermissionManager."
         for="Zope.App.Security.IAttributeRolePermissionManageable."
         provides="Zope.App.Security.IRolePermissionManager."
         />

<!-- Principal-Permission management view -->

<security:protectClass name="Zope.App.Security.PrincipalPermissionView."
   permission_id="Zope.Security"
   methods="index, get_principal, unsetPermissions, denyPermissions,
   grantPermissions, getUnsetPermissionsForPrincipal,
   getPermissionsForPrincipal" />

<browser:view name="PrincipalPermissionsManagement"
              for="Zope.App.Security.IAttributePrincipalPermissionManageable."
              factory="Zope.App.Security.PrincipalPermissionView." />

         
<adapter factory="Zope.App.Security.AttributePrincipalRoleManager."
         for="Zope.App.Security.IAttributePrincipalRoleManageable."
         provides="Zope.App.Security.IPrincipalRoleManager."
         />
         


</zopeConfigure>