Skip to content

Commit

Permalink
1.0 Official Release
Browse files Browse the repository at this point in the history
  • Loading branch information
nobry committed Sep 30, 2014
1 parent 73f4419 commit 61ec599
Show file tree
Hide file tree
Showing 103 changed files with 43,711 additions and 0 deletions.
3 changes: 3 additions & 0 deletions WebContent/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

26 changes: 26 additions & 0 deletions WebContent/META-INF/context.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context>

<Resource name="jdbc/portfolio-backend" auth="Container"
type="javax.sql.DataSource" maxActive="1000" maxIdle="30" maxWait="10000"
driverClassName="com.mysql.jdbc.Driver" removeAbandoned="true"
removeAbandonedTimeout="1000" logAbandoned="true" validationQuery="SELECT 1"
username="karuta" password="karuta_password"
url="jdbc:mysql://localhost/karuta-backend?autoReconnect=true&amp;useEncoding=true&amp;characterEncoding=UTF-8" />
<!--
<Resource name="jdbc/portfolio-backend" auth="Container"
type="javax.sql.DataSource" maxActive="1000" maxIdle="30" maxWait="10000"
driverClassName="oracle.jdbc.driver.OracleDriver" removeAbandoned="true"
removeAbandonedTimeout="1000" logAbandoned="true" validationQuery="SELECT 1 FROM DUAL"
username="karuta" password="k$pp42ita"
url="jdbc:oracle:thin:@//verglas.hec.ca:5112/KARUTA" />
-->
<ResourceLink global="jdbc/portfolio-backend" name="jdbc/portfolio-backend" type="javax.sql.DataSource" />

<Parameter name="casUrlValidation" value="https://cas-upmf.grenet.fr/serviceValidate" override="false"/>

<Parameter name="elggDefaultApiUrl" value="http://tanami.upmf-grenoble.fr/elgg/services/api/rest/json/" override="false"/>
<Parameter name="elggDefaultSiteUrl" value="http://tanami.upmf-grenoble.fr/elgg/" override="false"/>
<Parameter name="elggApiKey" value="apikey" override="false"/>
<Parameter name="elggDefaultUserPassword" value="defaultpassword" override="false"/>
</Context>
Binary file added WebContent/WEB-INF/lib/asm-3.1.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/batik-all-1.7.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/casclient.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-codec-1.6.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-io-2.4.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-lang3-3.3.2.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-logging-1.0.4.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/cos.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/fop.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/gson-2.2.4.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/httpclient-4.3.4.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/httpcore-4.3.2.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/httpmime-4.3.4.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/imgscalr-lib-4.2.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jackson-jaxrs-1.9.2.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jackson-xc-1.9.2.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jersey-client-1.12.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jersey-core-1.12.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jersey-json-1.12.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jersey-server-1.12.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jersey-servlet-1.12.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jettison-1.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/joda-time-2.3.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/json-org.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/json-simple-1.1.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jsr311-api-1.1.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jtidy-r938.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/logback-classic-1.1.2.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/logback-core-1.1.2.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/mimepull-1.3.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/ning.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/ojdbc6.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/opencsv-2.3.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/scribe-1.3.0.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/slf4j-api-1.7.7.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/tomcat-dbcp.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/xml-apis-1.3.04.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/xml-apis-ext-1.3.04.jar
Binary file not shown.
Binary file not shown.
43 changes: 43 additions & 0 deletions WebContent/WEB-INF/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<configuration debug="false">

<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
</encoder>
</appender>

<appender name="LOGFILE" class="ch.qos.logback.core.FileAppender">
<file>${catalina.base}/logs/backend.log</file>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>

<root level="TRACE">
<appender-ref ref="STDOUT" />
<appender-ref ref="LOGFILE" />
</root>

<root level="DEBUG">
<appender-ref ref="STDOUT" />
<appender-ref ref="LOGFILE" />
</root>

<root level="INFO">
<appender-ref ref="STDOUT" />
<appender-ref ref="LOGFILE" />
</root>

<root level="WARN">
<appender-ref ref="STDOUT" />
<appender-ref ref="LOGFILE" />
</root>

<root level="ERROR">
<appender-ref ref="STDOUT" />
<appender-ref ref="LOGFILE" />
</root>

</configuration>
184 changes: 184 additions & 0 deletions WebContent/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xmlns:web="http://java.sun.com/xml/ns/javaee/webapp_2_5.xsd"
id="WebApp_ID">
<display-name>Karuta Backend</display-name>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/portfolio-backend</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<context-param>
<param-name>backendserver</param-name>
<param-value>localhost:8080/karuta-backend</param-value>
</context-param>
<context-param>
<param-name>fileserver</param-name>
<param-value>localhost:8080/RestFileServer</param-value>
</context-param>

<servlet>
<servlet-name>Jersey REST Service</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>com.portfolio.rest;</param-value>
</init-param>
<init-param>
<param-name>dataProviderClass</param-name>
<param-value>com.portfolio.data.provider.MysqlDataProvider</param-value>
</init-param>
<init-param>
<param-name>logRestRequests</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Jersey REST Service</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Admin Jersey REST Service</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>com.portfolio.admin;</param-value>
</init-param>
<init-param>
<param-name>adminProviderClass</param-name>
<param-value>com.portfolio.data.provider.MysqlAdminProvider</param-value>
</init-param>
<init-param>
<param-name>logRestRequests</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Admin Jersey REST Service</servlet-name>
<url-pattern>/admin/*</url-pattern>
</servlet-mapping>

<servlet>
<description></description>
<display-name>FileServlet</display-name>
<servlet-name>FileServlet</servlet-name>
<servlet-class>com.portfolio.data.attachment.FileServlet</servlet-class>
<init-param>
<param-name>dataProviderClass</param-name>
<param-value>com.portfolio.data.provider.MysqlDataProvider</param-value>
</init-param>
<init-param>
<param-name>redirectedServer</param-name>
<param-value>localhost:8080/RestFileServer</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>FileServlet</servlet-name>
<url-pattern>/resources/resource/file/*</url-pattern>
</servlet-mapping>

<servlet>
<description></description>
<display-name>XSLT Servlet</display-name>
<servlet-name>XSLTServlet</servlet-name>
<servlet-class>com.portfolio.data.attachment.XSLService</servlet-class>
<init-param>
<param-name>dataProviderClass</param-name>
<param-value>com.portfolio.data.provider.MysqlDataProvider</param-value>
</init-param>
<init-param>
<param-name>redirectedServer</param-name>
<param-value>localhost:8080/karuta-backend</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>XSLTServlet</servlet-name>
<url-pattern>/xsl</url-pattern>
</servlet-mapping>

<servlet>
<description></description>
<display-name>CSVServlet</display-name>
<servlet-name>CSVServlet</servlet-name>
<servlet-class>com.portfolio.data.attachment.ConvertCSV</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CSVServlet</servlet-name>
<url-pattern>/csv</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>LTI</servlet-name>
<servlet-class>com.portfolio.security.LTIServlet</servlet-class>
<init-param>
<param-name>dataProviderClass</param-name>
<param-value>com.portfolio.data.provider.MysqlDataProvider</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>LTI</servlet-name>
<url-pattern>/lti/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>LTIv2</servlet-name>
<servlet-class>com.portfolio.security.LTIv2Servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LTIv2</servlet-name>
<url-pattern>/lti2/*</url-pattern>
</servlet-mapping>

<filter>
<filter-name>CAS Authentication Filter</filter-name>
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerLoginUrl</param-name>
<param-value>https://himeko:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>service</param-name>
<param-value>http://localhost:8080/WAD6/jsp/login.jsp</param-value>
</init-param>
</filter>
<filter>
<filter-name>CAS Ticket Validation Filter</filter-name>
<filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>https://himeko:8443/cas</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://localhost:8080/</param-value>
</init-param>
</filter>
<filter>
<filter-name>CAS Wrapper Filter</filter-name>
<filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
</filter>
<filter>
<filter-name>CAS Thread Filter</filter-name>
<filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
</filter>

<!--
<filter-mapping>
<filter-name>CAS Authentication Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Ticket Validation Filter
</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Wrapper Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
</web-app>
11 changes: 11 additions & 0 deletions WebContent/version
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<versions>
<version id='backend'>
<number>1.0.0.0</number>
<date>2014-09-30</date>
</version>
<version id='fileserver'>
<number>1.0.0.0</number>
<date>2014-09-30</date>
</version>
</versions>
Loading

0 comments on commit 61ec599

Please sign in to comment.