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

sk.seges.acris.security.server.spring.context.acris-security-permissions-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"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> 

    <bean id="permissionFactory" class="org.springframework.security.acls.domain.DefaultPermissionFactory">
    </bean>

    <bean id="readPermissions" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
         <property name="targetObject" ref="voterPermissions"/>
         <property name="targetField" value="READ"/>
    </bean>

    <bean id="writePermissions" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
        <property name="targetObject" ref="voterPermissions"/>
        <property name="targetField" value="WRITE"/>
    </bean>

    <bean id="deletePermissions" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
        <property name="targetObject" ref="voterPermissions"/>
        <property name="targetField" value="DELETE"/>
    </bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy