SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

118 lines
7.8 KiB

<?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:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd">
<context:property-placeholder location="/WEB-INF/saiku/saiku-beans.properties" ignore-resource-not-found="true" ignore-unresolvable="true" order="0" />
<context:property-placeholder location="file:///${ext.prop.dir}saiku-beans.properties" ignore-resource-not-found="true" ignore-unresolvable="true" order="-1" />
<bean id="repositoryDsManager" class="de.superx.saiku.SuperxRepositoryDataSourceManager" init-method="load" destroy-method="unload">
<property name="userService" ref="userServiceBean" />
<property name="configurationpath" value="${repoconfig}" />
<property name="datadir" value="${repodata}" />
<property name="defaultRole" value="${default.role}" />
<property name="externalPropertiesFile" value="${external.properties.file}" />
<property name="repoPasswordProvider" ref="repoPasswordProviderBean" />
<property name="datasource" ref="dataSource" />
</bean>
<bean id="repoPasswordProviderBean" class="org.saiku.service.util.security.authentication.SimplePasswordProvider">
<constructor-arg index="0" value="${webdav.password}" />
</bean>
<tx:annotation-driven transaction-manager="txManager" />
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="org.postgresql.Driver" />
<property name="url" value="jdbc:postgresql://localhost:5432/eduetl_head?ApplicationName=saiku" />
<property name="username" value="postgres" />
<property name="password" value="postgres" />
</bean>
<!-- a PlatformTransactionManager is still required -->
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<!-- (this dependency is defined somewhere else) -->
<property name="dataSource" ref="dataSource" />
</bean>
<bean id="authorisationPredicate" class="org.saiku.service.util.security.authorisation.MustBeAuthenticatedAuthorisation" />
<bean id="sessionService" class="de.superx.saiku.SuperxSaikuSessionService">
<property name="authenticationManager" ref="authenticationManager" />
<property name="authorisationPredicate" ref="authorisationPredicate" />
</bean>
<bean id="securityContextPersistenceFilter" class="org.springframework.security.web.context.SecurityContextPersistenceFilter" />
<bean id="connectionManager" class="de.superx.saiku.SuperxSaikuConnectionManager" init-method="init">
<property name="dataSourceManager" ref="repositoryDsManager" />
<property name="dataSource" ref="dataSource" />
<property name="sessionService" ref="sessionService" />
<property name="userService" ref="userServiceBean" />
</bean>
<bean id="datasourceServiceBean" class="org.saiku.service.datasource.DatasourceService">
<property name="connectionManager" ref="connectionManager" />
</bean>
<bean id="userDAO" class="de.superx.saiku.SuperxUserDAO">
<property name="dataSource" ref="dataSource" />
</bean>
<bean id="userServiceBean" class="org.saiku.service.user.UserService">
<property name="jdbcUserDAO" ref="userDAO" />
<property name="datasourceService" ref="datasourceServiceBean" />
<property name="iDatasourceManager" ref="repositoryDsManager" />
<property name="adminRoles">
<list>
<value>ROLE_BI_ADMIN</value>
</list>
</property>
<property name="sessionService" ref="sessionService" />
</bean>
<bean id="adminBean" class="org.saiku.web.rest.resources.AdminResource">
<property name="userService" ref="userServiceBean" />
<property name="datasourceService" ref="datasourceServiceBean" />
<property name="olapDiscoverService" ref="olapDiscoverServiceBean" />
<property name="repositoryDatasourceManager" ref="repositoryDsManager" />
</bean>
<bean class="org.saiku.datasources.connection.MondrianVFS" init-method="init">
<property name="datasourceManager" ref="repositoryDsManager" />
</bean>
<bean id="olapDiscoverServiceBean" class="org.saiku.service.olap.OlapDiscoverService">
<property name="datasourceService" ref="datasourceServiceBean" />
</bean>
<bean id="olapQueryBean" scope="session" class="org.saiku.service.olap.OlapQueryService" destroy-method="destroy">
<property name="olapDiscoverService" ref="olapDiscoverServiceBean" />
</bean>
<bean id="datasourceResourceBean" class="org.saiku.web.rest.resources.DataSourceResource">
<property name="datasourceService" ref="datasourceServiceBean" />
</bean>
<bean id="olapDiscoverBean" scope="session" class="org.saiku.web.rest.resources.OlapDiscoverResource">
<property name="olapDiscoverService" ref="olapDiscoverServiceBean" />
</bean>
<bean id="queryResource" scope="request" class="org.saiku.web.rest.resources.QueryResource">
<property name="olapQueryService" ref="olapQueryBean" />
<property name="olapDiscoverService" ref="olapDiscoverServiceBean" />
</bean>
<bean id="thinQueryBean" scope="session" class="org.saiku.service.olap.ThinQueryService">
<property name="olapDiscoverService" ref="olapDiscoverServiceBean" />
</bean>
<bean id="platformBean" class="de.superx.saiku.SuperxPlatformUtilsService">
<property name="path" value="/saiku/js/saiku/plugins/" />
</bean>
<bean id="infoResource" class="org.saiku.web.rest.resources.InfoResource">
<property name="platformUtilsService" ref="platformBean" />
</bean>
<bean id="queryResource2" scope="request" class="org.saiku.web.rest.resources.Query2Resource">
<property name="thinQueryService" ref="thinQueryBean" />
<property name="repository" ref="repository2bean" />
</bean>
<bean id="sessionResource" class="org.saiku.web.rest.resources.SessionResource">
<property name="sessionService" ref="sessionService" />
<property name="userService" ref="userServiceBean" />
</bean>
<bean id="repository2bean" scope="request" class="org.saiku.web.rest.resources.BasicRepositoryResource2">
<property name="path" value="res:saiku-repository" />
<property name="sessionService" ref="sessionService" />
<property name="datasourceService" ref="datasourceServiceBean" />
</bean>
<bean id="filterRepositoryBean" scope="session" class="org.saiku.web.rest.resources.FilterRepositoryResource">
<property name="olapQueryService" ref="olapQueryBean" />
<property name="path" value="res:saiku-repository" />
</bean>
<bean id="exporterBean" scope="request" class="org.saiku.web.rest.resources.ExporterResource">
<property name="repository" ref="repository2bean" />
<property name="query2Resource" ref="queryResource2" />
</bean>
<bean id="statsBean" scope="singleton" class="org.saiku.web.rest.resources.StatisticsResource" />
<bean id="startupBean" scope="singleton" class="org.saiku.web.rest.util.StartupResource" init-method="init" />
<bean id="sxManager" class="de.superx.servlet.SuperXManager" />
<bean id="biaRepositoryService" class="de.superx.spring.service.BiaRepositoryService" />
</beans>