mirror of
https://github.com/wisemapping/wisemapping-open-source.git
synced 2025-04-15 16:15:31 +08:00
49 lines
1.7 KiB
XML
Executable File
49 lines
1.7 KiB
XML
Executable File
<?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-3.1.xsd">
|
|
|
|
<bean id="viewSecurityAdvisor"
|
|
class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
|
|
<property name="advice">
|
|
<ref local="viewSecurityAdvice"/>
|
|
</property>
|
|
<property name="mappedNames">
|
|
<list>
|
|
<value>getMindmapUserBy</value>
|
|
<value>getMindmapById</value>
|
|
<value>linkLabel</value>
|
|
<value>find*</value>
|
|
<value>filter*</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="updateSecurityAdvisor"
|
|
class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
|
|
<property name="advice">
|
|
<ref local="updateSecurityAdvice"/>
|
|
</property>
|
|
<property name="mappedNames">
|
|
<list>
|
|
<value>save*</value>
|
|
<value>update*</value>
|
|
<value>add*</value>
|
|
<value>remove*</value>
|
|
<value>purge*</value>
|
|
<value>revert*</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="updateSecurityAdvice" class="com.wisemapping.security.aop.UpdateSecurityAdvise">
|
|
<property name="mindmapService" ref="mindmapService"/>
|
|
</bean>
|
|
|
|
<bean id="viewSecurityAdvice" class="com.wisemapping.security.aop.ViewBaseSecurityAdvise">
|
|
<property name="mindmapService" ref="mindmapService"/>
|
|
</bean>
|
|
|
|
</beans>
|