Skip to content

Commit

Permalink
major update, add thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinnii committed Apr 24, 2024
1 parent c3d0590 commit 8be6f65
Show file tree
Hide file tree
Showing 26 changed files with 188 additions and 155 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker Build and Push

on:
push:

branches: [main , develop]


jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Build the Docker image
run: |
docker build -t registry.tech4comp.dbis.rwth-aachen.de/rwthacis/las2peer-lms-chatbot-service:${{ steps.extract_branch.outputs.branch }} .
- name: Push to registry
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PW: ${{ secrets.DOCKER_PW }}
run: |
docker login -u $DOCKER_USERNAME -p $DOCKER_PW registry.tech4comp.dbis.rwth-aachen.de
docker push registry.tech4comp.dbis.rwth-aachen.de/rwthacis/las2peer-lms-chatbot-service:${{ steps.extract_branch.outputs.branch }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ archiva_credentials.xml
.project
.settings
kube

# Ignore Gradle project-specific cache directory
.gradle

Expand Down
8 changes: 2 additions & 6 deletions lms-chatbot-service/export/doc/allclasses-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script>
</head>
<body class="all-classes-index-page">
Expand Down Expand Up @@ -54,11 +54,7 @@ <h1 title="All Classes and Interfaces" class="title">All Classes and Interfaces<
<div class="table-header col-first">Class</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="i5/las2peer/services/LMSChatbotService/LMSChatbotService.html" title="class in i5.las2peer.services.LMSChatbotService">LMSChatbotService</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">las2peer-lms-chatbot-service

This is a template for a very basic las2peer service that uses the las2peer WebConnector for RESTful access to it.</div>
</div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">&nbsp;</div>
</div>
</div>
</main>
Expand Down
2 changes: 1 addition & 1 deletion lms-chatbot-service/export/doc/allpackages-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script>
</head>
<body class="all-packages-index-page">
Expand Down
2 changes: 1 addition & 1 deletion lms-chatbot-service/export/doc/help-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script>
</head>
<body class="help-page">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="stylesheet" type="text/css" href="../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
Expand Down Expand Up @@ -82,13 +82,6 @@ <h1 title="Class LMSChatbotService" class="title">Class LMSChatbotService</h1>
<hr>
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">LMSChatbotService</span>
<span class="extends-implements">extends i5.las2peer.restMapper.RESTService</span></div>
<div class="block">las2peer-lms-chatbot-service

This is a template for a very basic las2peer service that uses the las2peer WebConnector for RESTful access to it.

Note: If you plan on using Swagger you should adapt the information below in the SwaggerDefinition annotation to suit
your project. If you do not intend to provide a Swagger documentation of your service API, the entire Api and
SwaggerDefinition annotation should be removed.</div>
</section>
<section class="summary">
<ul class="summary-list">
Expand All @@ -110,7 +103,7 @@ <h2>Constructor Summary</h2>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
Expand All @@ -119,6 +112,9 @@ <h2>Method Summary</h2>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>javax.ws.rs.core.Response</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#chat(java.lang.String)" class="member-name-link">chat</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;body)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#removeBrackets(java.lang.String)" class="member-name-link">removeBrackets</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;input)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -160,12 +156,26 @@ <h3>LMSChatbotService</h3>
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="removeBrackets(java.lang.String)">
<h3>removeBrackets</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name">removeBrackets</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;input)</span></div>
</section>
</li>
<li>
<section class="detail" id="chat(java.lang.String)">
<h3>chat</h3>
<div class="member-signature"><span class="annotations">@POST
@Path("/chat")
@Produces("text/plain")
</span><span class="modifiers">public</span>&nbsp;<span class="return-type">javax.ws.rs.core.Response</span>&nbsp;<span class="element-name">chat</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;body)</span></div>
@Produces("application/json")
@Consumes("application/json")
</span><span class="modifiers">public</span>&nbsp;<span class="return-type">javax.ws.rs.core.Response</span>&nbsp;<span class="element-name">chat</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;body)</span>
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a>,
net.minidev.json.parser.ParseException</span></div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code></dd>
<dd><code>net.minidev.json.parser.ParseException</code></dd>
</dl>
</section>
</li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="stylesheet" type="text/css" href="../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="package-declaration-page">
Expand Down Expand Up @@ -67,11 +67,7 @@ <h1 title="Package i5.las2peer.services.LMSChatbotService" class="title">Package
<div class="table-header col-first">Class</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="LMSChatbotService.html" title="class in i5.las2peer.services.LMSChatbotService">LMSChatbotService</a></div>
<div class="col-last even-row-color class-summary class-summary-tab2">
<div class="block">las2peer-lms-chatbot-service

This is a template for a very basic las2peer service that uses the las2peer WebConnector for RESTful access to it.</div>
</div>
<div class="col-last even-row-color class-summary class-summary-tab2">&nbsp;</div>
</div>
</div>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="stylesheet" type="text/css" href="../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="package-tree-page">
Expand Down
17 changes: 9 additions & 8 deletions lms-chatbot-service/export/doc/index-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script>
</head>
<body class="index-page">
Expand Down Expand Up @@ -48,7 +48,7 @@
<div class="header">
<h1>Index</h1>
</div>
<a href="#I:C">C</a>&nbsp;<a href="#I:I">I</a>&nbsp;<a href="#I:L">L</a>&nbsp;<br><a href="allclasses-index.html">All&nbsp;Classes&nbsp;and&nbsp;Interfaces</a><span class="vertical-separator">|</span><a href="allpackages-index.html">All&nbsp;Packages</a>
<a href="#I:C">C</a>&nbsp;<a href="#I:I">I</a>&nbsp;<a href="#I:L">L</a>&nbsp;<a href="#I:R">R</a>&nbsp;<br><a href="allclasses-index.html">All&nbsp;Classes&nbsp;and&nbsp;Interfaces</a><span class="vertical-separator">|</span><a href="allpackages-index.html">All&nbsp;Packages</a>
<h2 class="title" id="I:C">C</h2>
<dl class="index">
<dt><a href="i5/las2peer/services/LMSChatbotService/LMSChatbotService.html#chat(java.lang.String)" class="member-name-link">chat(String)</a> - Method in class i5.las2peer.services.LMSChatbotService.<a href="i5/las2peer/services/LMSChatbotService/LMSChatbotService.html" title="class in i5.las2peer.services.LMSChatbotService">LMSChatbotService</a></dt>
Expand All @@ -62,15 +62,16 @@ <h2 class="title" id="I:I">I</h2>
<h2 class="title" id="I:L">L</h2>
<dl class="index">
<dt><a href="i5/las2peer/services/LMSChatbotService/LMSChatbotService.html" class="type-name-link" title="class in i5.las2peer.services.LMSChatbotService">LMSChatbotService</a> - Class in <a href="i5/las2peer/services/LMSChatbotService/package-summary.html">i5.las2peer.services.LMSChatbotService</a></dt>
<dd>
<div class="block">las2peer-lms-chatbot-service

This is a template for a very basic las2peer service that uses the las2peer WebConnector for RESTful access to it.</div>
</dd>
<dd>&nbsp;</dd>
<dt><a href="i5/las2peer/services/LMSChatbotService/LMSChatbotService.html#%3Cinit%3E()" class="member-name-link">LMSChatbotService()</a> - Constructor for class i5.las2peer.services.LMSChatbotService.<a href="i5/las2peer/services/LMSChatbotService/LMSChatbotService.html" title="class in i5.las2peer.services.LMSChatbotService">LMSChatbotService</a></dt>
<dd>&nbsp;</dd>
</dl>
<a href="#I:C">C</a>&nbsp;<a href="#I:I">I</a>&nbsp;<a href="#I:L">L</a>&nbsp;<br><a href="allclasses-index.html">All&nbsp;Classes&nbsp;and&nbsp;Interfaces</a><span class="vertical-separator">|</span><a href="allpackages-index.html">All&nbsp;Packages</a></main>
<h2 class="title" id="I:R">R</h2>
<dl class="index">
<dt><a href="i5/las2peer/services/LMSChatbotService/LMSChatbotService.html#removeBrackets(java.lang.String)" class="member-name-link">removeBrackets(String)</a> - Static method in class i5.las2peer.services.LMSChatbotService.<a href="i5/las2peer/services/LMSChatbotService/LMSChatbotService.html" title="class in i5.las2peer.services.LMSChatbotService">LMSChatbotService</a></dt>
<dd>&nbsp;</dd>
</dl>
<a href="#I:C">C</a>&nbsp;<a href="#I:I">I</a>&nbsp;<a href="#I:L">L</a>&nbsp;<a href="#I:R">R</a>&nbsp;<br><a href="allclasses-index.html">All&nbsp;Classes&nbsp;and&nbsp;Interfaces</a><span class="vertical-separator">|</span><a href="allpackages-index.html">All&nbsp;Packages</a></main>
</div>
</div>
</body>
Expand Down
42 changes: 21 additions & 21 deletions lms-chatbot-service/export/doc/jquery-ui.overrides.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
/*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/

.ui-state-active,
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion lms-chatbot-service/export/doc/legal/ASSEMBLY_EXCEPTION

This file was deleted.

1 change: 1 addition & 0 deletions lms-chatbot-service/export/doc/legal/COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Please see ..\java.base\COPYRIGHT
6 changes: 3 additions & 3 deletions lms-chatbot-service/export/doc/legal/jquery.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## jQuery v3.6.0
## jQuery v3.6.1

### jQuery License
```
jQuery v 3.6.0
jQuery v 3.6.1
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
Permission is hereby granted, free of charge, to any person obtaining
Expand All @@ -26,7 +26,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************
The jQuery JavaScript Library v3.6.0 also includes Sizzle.js
The jQuery JavaScript Library v3.6.1 also includes Sizzle.js
Sizzle.js includes the following license:
Expand Down
2 changes: 1 addition & 1 deletion lms-chatbot-service/export/doc/legal/jqueryUI.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## jQuery UI v1.12.1
## jQuery UI v1.13.2

### jQuery UI License
```
Expand Down
2 changes: 1 addition & 1 deletion lms-chatbot-service/export/doc/member-search-index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lms-chatbot-service/export/doc/overview-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script>
</head>
<body class="tree-page">
Expand Down
Loading

0 comments on commit 8be6f65

Please sign in to comment.