portlet-filter-mapping.xml 1.46 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

4
<!-- Spring xml for meta-data display in the result portlet. Here is
5 6
defined interesting RDF annotations namespace for the result portlet.
The portlet search in resources for this annotation and display them
7
when possible (as meta-data).
8
 -->
9

10 11 12 13 14 15 16 17 18 19 20
 <beans>
	<bean id="weblab-metaview" class="org.ow2.weblab.portlet.filter.config.PortletMappingBean">
		<property name="reactions">
			<map>
				<entry key="{http://weblab.ow2.org/portlet/metaview/reaction}loadDocumentAndDisplayMeta">
					<list>
						<value>{http://weblab.ow2.org/events/result}selectNotLoadedDocument</value>
					</list>
				</entry>
			</map>
		</property>
21

22 23
		<property name="actions">
			<map>
24 25 26
				 <entry key="{http://weblab.ow2.org/portlet/metaview/action}sendUnloadedDocument" value="{http://weblab.ow2.org/events/meta}selectNotLoadedDocument" />
                 <entry key="{http://weblab.ow2.org/portlet/metaview/action}selectTranslatedVersion" value="{http://weblab.ow2.org/events/meta}selectTranslation" />
                 <entry key="{http://weblab.ow2.org/portlet/metaview/action}selectOriginalVersion" value="{http://weblab.ow2.org/events/meta}selectOriginal" />
27 28
			</map>
		</property>
29

30 31 32 33 34 35 36
		<property name="redirections">
			<map>
				<entry key="{http://weblab.ow2.org/portlet/metaview/action}sendUnloadedDocument" value="/web/guest"/>
			</map>
		</property>
	</bean>
</beans>