diff options
Diffstat (limited to 'com.gluster.storage.management.server/src/spring')
| -rw-r--r-- | com.gluster.storage.management.server/src/spring/gluster-server-base.xml | 50 | ||||
| -rw-r--r-- | com.gluster.storage.management.server/src/spring/gluster-server-security.xml | 46 |
2 files changed, 0 insertions, 96 deletions
diff --git a/com.gluster.storage.management.server/src/spring/gluster-server-base.xml b/com.gluster.storage.management.server/src/spring/gluster-server-base.xml deleted file mode 100644 index 86a8708f..00000000 --- a/com.gluster.storage.management.server/src/spring/gluster-server-base.xml +++ /dev/null @@ -1,50 +0,0 @@ - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" - xmlns:task="http://www.springframework.org/schema/task" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd - http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd - http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd"> - <context:component-scan base-package="com.gluster.storage.management.server" /> - <task:scheduler id="taskScheduler" /> - <task:executor id="taskExecutor" pool-size="1" /> - <task:annotation-driven executor="taskExecutor" - scheduler="taskScheduler" /> - - <task:scheduled-tasks> - <task:scheduled ref="serverDiscoveryTask" method="discoverServers" - fixed-delay="60000" /> - </task:scheduled-tasks> - - <bean id="environment" class="java.lang.String"> - <constructor-arg value="vmware" /> - </bean> - - <!-- Derby embedded data source --> - <!-- bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" - lazy-init="false"> <property name="driverClassName" value="org.apache.derby.jdbc.EmbeddedDriver" - /> <property name="url" value="jdbc:derby:work/data;create=true" /> <property - name="username" value="gluster" /> <property name="password" value="gluster" - /> </bean --> - - <bean id="dataSourceFactory" - class="com.gluster.storage.management.server.data.GlusterDataSource" /> - <bean id="dataSource" - class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> - <property name="targetObject"> - <ref local="dataSourceFactory" /> - </property> - <property name="targetMethod"> - <value>getDataSource</value> - </property> - </bean> - - <!-- bean id="dataSource" class="com.gluster.storage.management.server.data.GlusterDataSource" - lazy-init="false" autowire="byType" / --> - - <bean class="com.gluster.storage.management.server.tasks.InitServerTask" - init-method="initServer" depends-on="dataSource"> - <property name="dataSource" ref="dataSource" /> - </bean> -</beans>
\ No newline at end of file diff --git a/com.gluster.storage.management.server/src/spring/gluster-server-security.xml b/com.gluster.storage.management.server/src/spring/gluster-server-security.xml deleted file mode 100644 index 0de97761..00000000 --- a/com.gluster.storage.management.server/src/spring/gluster-server-security.xml +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<beans:beans xmlns="http://www.springframework.org/schema/security" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans" - xmlns:jdbc="http://www.springframework.org/schema/jdbc" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans - http://www.springframework.org/schema/beans/spring-beans.xsd - http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd - http://www.springframework.org/schema/security - http://www.springframework.org/schema/security/spring-security-3.0.xsd - "> - - <http auto-config="true" use-expressions="true"> - <intercept-url pattern="/resources/*" - access="hasRole('ROLE_ADMIN') and fullyAuthenticated" /> - <intercept-url pattern="/*" access="permitAll" /> - <!-- SSL Protection --> - <!-- <intercept-url pattern="/resources/*" access="hasRole('ROLE_ADMIN') - and fullyAuthenticated" requires-channel="https"/> <intercept-url pattern="/*" - access="permitAll" requires-channel="any"/> --> - <port-mappings> - <port-mapping http="8080" https="8443" /> - </port-mappings> - - <!-- HTTP basic authentication --> - <http-basic /> - </http> - - <beans:bean - class="org.springframework.security.authentication.encoding.ShaPasswordEncoder" - id="passwordEncoder" /> - - <authentication-manager alias="authenticationManager"> - <authentication-provider user-service-ref="jdbcUserService"> - <!-- Passwords are SHA encrypted --> - <password-encoder hash="sha" /> - </authentication-provider> - </authentication-manager> - - <beans:bean id="jdbcUserService" - class="org.springframework.security.provisioning.JdbcUserDetailsManager" - lazy-init="false"> - <beans:property name="dataSource" ref="dataSource" /> - <beans:property name="authenticationManager" ref="authenticationManager" /> - </beans:bean> -</beans:beans>
\ No newline at end of file |
