All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sk.seges.acris.security.server.spring.context.acris-security-object-manager-context.xml Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:p="http://www.springframework.org/schema/p"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                           http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd">

    <bean id="objectManagerSecurity"
        class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor"
        autowire="byType">
        <property name="accessDecisionManager" ref="businessAccessDecisionManager" />
        <property name="objectDefinitionSource" ref="objectDefinitionSource" />
        <property name="authenticationManager" ref="authenticationManager" />
        <property name="runAsManager" ref="runAsManager" />
    </bean>
    
    <bean id="businessAccessDecisionManager" class="org.springframework.security.vote.UnanimousBased">
        <property name="allowIfAllAbstainDecisions" value="true" />
        <property name="decisionVoters">
            <list>
                <ref bean="roleVoter" />
            </list>
        </property>
    </bean>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy