| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <beans xmlns="http://www.springframework.org/schema/beans" |
|---|
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 4 | xsi:schemaLocation=" |
|---|
| 5 | http://www.springframework.org/schema/beans |
|---|
| 6 | http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | <bean id="muaRegistry" class="uk.ac.cardiff.raptorweb.engine.MUARegistry"> |
|---|
| 10 | <property name ="MUAEntries"> |
|---|
| 11 | <list> |
|---|
| 12 | <bean id="cardiffShibMUA" class="uk.ac.cardiff.raptorweb.model.MUAEntry"> |
|---|
| 13 | <property name="serviceEndpoint"><value>https://localhost:8443/MUA/MultiUnitAggregator</value></property> |
|---|
| 14 | <property name="isAttached" value="true"></property> |
|---|
| 15 | <property name="publicKey"><value>/Users/philsmart/Documents/Java/RaptorWorkspace/keys/raptor.jks</value></property> |
|---|
| 16 | <property name="publicKeyPassword"><value>phil11</value></property> |
|---|
| 17 | </bean> |
|---|
| 18 | </list> |
|---|
| 19 | </property> |
|---|
| 20 | </bean> |
|---|
| 21 | |
|---|
| 22 | <bean id="webEngine" class="uk.ac.cardiff.raptorweb.engine.RaptorWebEngine"> |
|---|
| 23 | <property name="registry"><ref bean="muaRegistry"></ref></property> |
|---|
| 24 | <property name="reportHandler"><ref bean="reportHandler"></ref></property> |
|---|
| 25 | <property name="webMetadata"><ref bean="webMetadata"></ref></property> |
|---|
| 26 | </bean> |
|---|
| 27 | |
|---|
| 28 | <!-- MUA Metadata --> |
|---|
| 29 | <bean id="webMetadata" class="uk.ac.cardiff.model.ServerMetadata"> |
|---|
| 30 | <property name="serverName"><value>Cardiff University's RaptorWeb Instance</value></property> |
|---|
| 31 | <property name="organisationName"><value>Cardiff University</value></property> |
|---|
| 32 | <property name="contactEmail"><value>smartp@cf.ac.uk</value></property> |
|---|
| 33 | </bean> |
|---|
| 34 | |
|---|
| 35 | <bean id="setupService" class="uk.ac.cardiff.raptorweb.service.impl.SetupServiceImpl"> |
|---|
| 36 | <property name="webEngine"><ref bean="webEngine"/></property> |
|---|
| 37 | </bean> |
|---|
| 38 | |
|---|
| 39 | <bean id="preferenceService" class="uk.ac.cardiff.raptorweb.service.impl.PreferenceServiceImpl"> |
|---|
| 40 | |
|---|
| 41 | </bean> |
|---|
| 42 | |
|---|
| 43 | <bean id="startService" class="uk.ac.cardiff.raptorweb.service.impl.StartServiceImpl"> |
|---|
| 44 | <property name="webEngine"><ref bean="webEngine"/></property> |
|---|
| 45 | <property name="chartProcessor"><ref bean="chartProcessor"/></property> |
|---|
| 46 | </bean> |
|---|
| 47 | |
|---|
| 48 | <bean id="graphService" class="uk.ac.cardiff.raptorweb.service.impl.GraphServiceImpl"> |
|---|
| 49 | <property name="webEngine"><ref bean="webEngine"/></property> |
|---|
| 50 | <property name="chartProcessor"><ref bean="chartProcessor"/></property> |
|---|
| 51 | </bean> |
|---|
| 52 | |
|---|
| 53 | <!-- SET UP the report generators --> |
|---|
| 54 | <bean name="reportHandler" class="uk.ac.cardiff.raptorweb.engine.reports.ReportHandler"> |
|---|
| 55 | <property name ="reportConstructors"> |
|---|
| 56 | <list> |
|---|
| 57 | <bean name="excelreportConstructorImpl" class="uk.ac.cardiff.raptorweb.engine.reports.ExcelReportGenerator"> |
|---|
| 58 | <property name="saveDirectory"><value>/downloads/</value></property> |
|---|
| 59 | <property name="baseDirectory"><value>/</value></property> <!-- the above is the absolute path, this is the same but as a relative path--> |
|---|
| 60 | </bean> |
|---|
| 61 | <bean name="csvreportConstructorImpl" class="uk.ac.cardiff.raptorweb.engine.reports.CSVReportGenerator"> |
|---|
| 62 | <property name="saveDirectory"><value>/downloads/</value></property> |
|---|
| 63 | <property name="baseDirectory"><value>/</value></property> <!-- the above is the absolute path, this is the same but as a relative path--> |
|---|
| 64 | </bean> |
|---|
| 65 | <bean name="pdfreportConstructorImpl" class="uk.ac.cardiff.raptorweb.engine.reports.GraphAndChartPDFReportGenerator"> |
|---|
| 66 | <property name="saveDirectory"><value>/downloads/</value></property> |
|---|
| 67 | <property name="baseDirectory"><value>/</value></property> <!-- the above is the absolute path, this is the same but as a relative path--> |
|---|
| 68 | <property name="reportBean"><ref bean="genericReportBean"/></property> |
|---|
| 69 | <property name="reportXMLFile"><value>generic-report.xml</value></property> |
|---|
| 70 | </bean> |
|---|
| 71 | </list> |
|---|
| 72 | </property> |
|---|
| 73 | </bean> |
|---|
| 74 | |
|---|
| 75 | <bean name="genericReportBean" class="uk.ac.cardiff.raptorweb.engine.reports.beans.GenericReportBean"/> |
|---|
| 76 | |
|---|
| 77 | <!-- Set up the chart processor --> |
|---|
| 78 | <bean name="chartProcessor" class="uk.ac.cardiff.raptorweb.engine.ChartProcessor"> |
|---|
| 79 | <property name="saveDirectory"><value>/graphs/</value></property> |
|---|
| 80 | <property name="baseDirectory"><value>/</value></property> <!-- the above is the absolute path, this is the same but as a relative path--> |
|---|
| 81 | </bean> |
|---|
| 82 | |
|---|
| 83 | <!-- Set up the start page background stats generator --> |
|---|
| 84 | <bean id="statsSchedular" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> |
|---|
| 85 | <property name="triggers"> |
|---|
| 86 | <list> |
|---|
| 87 | <!-- <ref local="SystemStatsQuickTrigger"/>--> |
|---|
| 88 | </list> |
|---|
| 89 | </property> |
|---|
| 90 | </bean> |
|---|
| 91 | |
|---|
| 92 | <bean id="SystemStatsQuickTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean"> |
|---|
| 93 | <property name="jobDetail"> |
|---|
| 94 | <ref local="SystemStatsJobDetail" /> |
|---|
| 95 | </property> |
|---|
| 96 | <property name="startDelay" value="5000"/> |
|---|
| 97 | <property name="repeatInterval" value="1800000"/> |
|---|
| 98 | </bean> |
|---|
| 99 | |
|---|
| 100 | <bean id="SystemStatsJobDetail" |
|---|
| 101 | class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> |
|---|
| 102 | <property name="targetObject"> |
|---|
| 103 | <ref bean="startService" /> |
|---|
| 104 | </property> |
|---|
| 105 | <property name="targetMethod"> |
|---|
| 106 | <value>generateStatisticsBackground</value> |
|---|
| 107 | </property> |
|---|
| 108 | <property name="concurrent"> |
|---|
| 109 | <value>false</value> |
|---|
| 110 | </property> |
|---|
| 111 | </bean> |
|---|
| 112 | |
|---|
| 113 | |
|---|
| 114 | |
|---|
| 115 | |
|---|
| 116 | </beans> |
|---|