Tidying up XML formatting (removed mix of tabs/spaces)
This commit is contained in:
parent
3287439421
commit
8e1549e399
|
@ -34,10 +34,10 @@
|
||||||
<property name="processDomainObjectClass"><value>sample.contact.Contact</value></property>
|
<property name="processDomainObjectClass"><value>sample.contact.Contact</value></property>
|
||||||
<property name="aclManager"><ref local="aclManager"/></property>
|
<property name="aclManager"><ref local="aclManager"/></property>
|
||||||
<property name="requirePermission">
|
<property name="requirePermission">
|
||||||
<list>
|
<list>
|
||||||
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/>
|
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/>
|
||||||
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.READ"/>
|
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.READ"/>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@ -47,10 +47,10 @@
|
||||||
<property name="processDomainObjectClass"><value>sample.contact.Contact</value></property>
|
<property name="processDomainObjectClass"><value>sample.contact.Contact</value></property>
|
||||||
<property name="aclManager"><ref local="aclManager"/></property>
|
<property name="aclManager"><ref local="aclManager"/></property>
|
||||||
<property name="requirePermission">
|
<property name="requirePermission">
|
||||||
<list>
|
<list>
|
||||||
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/>
|
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/>
|
||||||
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.DELETE"/>
|
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.DELETE"/>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@ -60,9 +60,9 @@
|
||||||
<property name="processDomainObjectClass"><value>sample.contact.Contact</value></property>
|
<property name="processDomainObjectClass"><value>sample.contact.Contact</value></property>
|
||||||
<property name="aclManager"><ref local="aclManager"/></property>
|
<property name="aclManager"><ref local="aclManager"/></property>
|
||||||
<property name="requirePermission">
|
<property name="requirePermission">
|
||||||
<list>
|
<list>
|
||||||
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/>
|
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@ -112,10 +112,10 @@
|
||||||
<bean id="afterAclCollectionRead" class="net.sf.acegisecurity.afterinvocation.BasicAclEntryAfterInvocationCollectionFilteringProvider">
|
<bean id="afterAclCollectionRead" class="net.sf.acegisecurity.afterinvocation.BasicAclEntryAfterInvocationCollectionFilteringProvider">
|
||||||
<property name="aclManager"><ref local="aclManager"/></property>
|
<property name="aclManager"><ref local="aclManager"/></property>
|
||||||
<property name="requirePermission">
|
<property name="requirePermission">
|
||||||
<list>
|
<list>
|
||||||
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/>
|
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/>
|
||||||
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.READ"/>
|
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.READ"/>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@ -123,10 +123,10 @@
|
||||||
<bean id="afterAclRead" class="net.sf.acegisecurity.afterinvocation.BasicAclEntryAfterInvocationProvider">
|
<bean id="afterAclRead" class="net.sf.acegisecurity.afterinvocation.BasicAclEntryAfterInvocationProvider">
|
||||||
<property name="aclManager"><ref local="aclManager"/></property>
|
<property name="aclManager"><ref local="aclManager"/></property>
|
||||||
<property name="requirePermission">
|
<property name="requirePermission">
|
||||||
<list>
|
<list>
|
||||||
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/>
|
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.ADMINISTRATION"/>
|
||||||
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.READ"/>
|
<ref local="net.sf.acegisecurity.acl.basic.SimpleAclEntry.READ"/>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@ -135,27 +135,27 @@
|
||||||
|
|
||||||
<!-- getRandomContact() is public.
|
<!-- getRandomContact() is public.
|
||||||
|
|
||||||
The create, getAll, getById etc have ROLE_USER to ensure user is
|
The create, getAll, getById etc have ROLE_USER to ensure user is
|
||||||
authenticated (all users hold ROLE_USER in this application).
|
authenticated (all users hold ROLE_USER in this application).
|
||||||
|
|
||||||
The delete and update methods don't need a ROLE_USER as they will
|
The delete and update methods don't need a ROLE_USER as they will
|
||||||
ensure the user is authenticated via their ACL_CONTACT_DELETE or
|
ensure the user is authenticated via their ACL_CONTACT_DELETE or
|
||||||
ACL_CONTACT_READ attribute, which also ensures the user has permission
|
ACL_CONTACT_READ attribute, which also ensures the user has permission
|
||||||
to the Contact presented as a method argument.
|
to the Contact presented as a method argument.
|
||||||
-->
|
-->
|
||||||
<bean id="contactManagerSecurity" class="net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
|
<bean id="contactManagerSecurity" class="net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
|
||||||
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
||||||
<property name="accessDecisionManager"><ref local="businessAccessDecisionManager"/></property>
|
<property name="accessDecisionManager"><ref local="businessAccessDecisionManager"/></property>
|
||||||
<property name="afterInvocationManager"><ref local="afterInvocationManager"/></property>
|
<property name="afterInvocationManager"><ref local="afterInvocationManager"/></property>
|
||||||
<property name="objectDefinitionSource">
|
<property name="objectDefinitionSource">
|
||||||
<value>
|
<value>
|
||||||
sample.contact.ContactManager.create=ROLE_USER
|
sample.contact.ContactManager.create=ROLE_USER
|
||||||
sample.contact.ContactManager.getAllRecipients=ROLE_USER
|
sample.contact.ContactManager.getAllRecipients=ROLE_USER
|
||||||
sample.contact.ContactManager.getAll=ROLE_USER,AFTER_ACL_COLLECTION_READ
|
sample.contact.ContactManager.getAll=ROLE_USER,AFTER_ACL_COLLECTION_READ
|
||||||
sample.contact.ContactManager.getById=ROLE_USER,AFTER_ACL_READ
|
sample.contact.ContactManager.getById=ROLE_USER,AFTER_ACL_READ
|
||||||
sample.contact.ContactManager.delete=ACL_CONTACT_DELETE
|
sample.contact.ContactManager.delete=ACL_CONTACT_DELETE
|
||||||
sample.contact.ContactManager.deletePermission=ACL_CONTACT_ADMIN
|
sample.contact.ContactManager.deletePermission=ACL_CONTACT_ADMIN
|
||||||
sample.contact.ContactManager.addPermission=ACL_CONTACT_ADMIN
|
sample.contact.ContactManager.addPermission=ACL_CONTACT_ADMIN
|
||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
Loading…
Reference in New Issue