rsso deployment

main
Julius Sula 2023-05-15 16:20:49 +02:00
parent 2227ae5ce7
commit bcbb467b63
12 changed files with 679 additions and 767 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}

2
backend/.gitignore vendored
View File

@ -4,6 +4,8 @@ target/
!**/src/main/**/target/
!**/src/test/**/target/
src/main/resources/static
### STS ###
.apt_generated
.classpath

Binary file not shown.

Binary file not shown.

View File

@ -62,6 +62,11 @@
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
</dependency>
<dependency>
<groupId>com.bmc.rsso</groupId>
<artifactId>rsso-sdk-atsso</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.bmc.rsso</groupId>
<artifactId>rsso-agent-all</artifactId>

View File

@ -9,6 +9,7 @@ import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@ -40,6 +41,8 @@ import com.nttdata.calender.states.StateChangeRequest;
import com.nttdata.calender.states.StateResponse;
import com.nttdata.calender.supportgroup.SupportGroup;
import net.bytebuddy.asm.Advice.Origin;
/**
* REST Controller for Remedy Data
*/
@ -69,6 +72,7 @@ public class KalenderRestController {
* stateNameDE
* @throws JsonProcessingException if an exception occurs during JSON processing
*/
@CrossOrigin("*")
@GetMapping("/api/getStates")
@ResponseBody
public ArrayList<StateResponse> printState() throws JsonProcessingException {
@ -76,6 +80,7 @@ public class KalenderRestController {
return state.returnJson();
}
@CrossOrigin("*")
@GetMapping("/api/getMany")
@ResponseBody
public void getMany() {
@ -96,6 +101,7 @@ public class KalenderRestController {
* response body
* @throws ARException if an AR exception occurs
*/
@CrossOrigin("*")
@GetMapping("/api/getSupportGroups")
@ResponseBody
public ResponseEntity<?> getSupportGroups() throws ARException {
@ -114,6 +120,7 @@ public class KalenderRestController {
* @throws ARException if an error occurs during the retrieval of the user's
* support group.
*/
@CrossOrigin("*")
@GetMapping("/api/getUserSupportGroup")
@ResponseBody
public ResponseEntity<?> getUserSupportGroup() throws ARException {
@ -128,6 +135,7 @@ public class KalenderRestController {
* @return {@link ArrayList} of {@link ContractGetResponse} objects
* @throws ARException if an AR exception occurs
*/
@CrossOrigin("*")
@GetMapping("/api/getContracts")
@ResponseBody
public ArrayList<ContractGetResponse> getContracts() throws ARException {
@ -141,6 +149,7 @@ public class KalenderRestController {
* @return {@link ArrayList} of {@link PackageItems} objects
* @throws ARException if an AR exception occurs
*/
@CrossOrigin("*")
@GetMapping("/api/getPackageTypes")
@ResponseBody
public ArrayList<PackageItems> getPackageTypes() throws ARException {
@ -155,6 +164,7 @@ public class KalenderRestController {
* @return "OK" as the status message
* @throws ARException if an AR exception occurs
*/
@CrossOrigin("*")
@GetMapping("/api/resetDates")
public String first_Api() throws ARException {
// TODO: is this still needed?
@ -168,6 +178,7 @@ public class KalenderRestController {
* @return {@link ChangeResponse} containing the JSON array of all changes
* @throws ARException if an AR exception occurs
*/
@CrossOrigin("*")
@PostMapping("/api/getChanges")
@ResponseBody
public ChangeResponse getChanges(@RequestBody ChangeRequest request)
@ -183,6 +194,7 @@ public class KalenderRestController {
* @return the updated {@link ChangeUpdateRequest} object
* @throws ARException if an AR exception occurs
*/
@CrossOrigin("*")
@PostMapping("/api/updateChange")
@ResponseBody
public ChangeUpdateRequest updateChange(@RequestBody ChangeUpdateRequest request) throws ARException {
@ -201,6 +213,7 @@ public class KalenderRestController {
* @return a response entity with the updated state value as a string
* @throws ARException if an AR exception occurs
*/
@CrossOrigin("*")
@PostMapping("/api/updateState")
public ResponseEntity<String> updateState(@RequestBody StateChangeRequest request,
@Autowired StateChange stateChange) throws ARException {
@ -217,12 +230,14 @@ public class KalenderRestController {
* @return {@link ResponseEntity} with the updated state value "OK"
* @throws ARException if an AR exception occurs
*/
@CrossOrigin("*")
@PostMapping("api/updateImplementer")
public ResponseEntity<String> updateImplementer(@RequestBody ImplementerUpdateRequest request) throws ARException {
var response = implementer.update(request);
return ResponseEntity.ok(response);
}
@CrossOrigin("*")
@PostMapping("api/updateApproval")
@ResponseBody
public ResponseEntity<String> updateApproval(@RequestBody ApprovalUpdateRequest request) throws ARException {
@ -238,6 +253,7 @@ public class KalenderRestController {
* @return the {@link ImplementerGetResponse} containing the response
* @throws ARException if an AR exception occurs
*/
@CrossOrigin("*")
@PostMapping("api/getImplementer")
public ImplementerGetResponse getImplementer(@RequestBody ImplementerGetRequest request) throws ARException {
return implementer.get(request);
@ -249,6 +265,7 @@ public class KalenderRestController {
* @param e the ARException raised
* @return an {@link ErrorResponse} with the error message
*/
@CrossOrigin("*")
@ExceptionHandler(ARException.class)
public ResponseEntity<ErrorResponse> handleARException(ARException e) {
var errorResponse = new ErrorResponse("Error occured", e.getMessage());

View File

@ -10,10 +10,10 @@ excluded-url-pattern=.*\\.xml|.*\\.gif|.*\\.css|.*\\.ico|/shared/config/.*|/WSDL
#context-included=false
# RSSO webapp external url for redirection
# To support multiple RSSO servers, set the value to a comma separated string: each represents a 'domain to server url' mapping, with the format of <domain>:<url>, e.g. domain1:https://server1:8443/rsso,domain2:https://server2:8443/rsso
sso-external-url=http://vie-vm-266.at.softlab.net/rsso
sso-external-url=https://itsm-rsso-dev.asfinag.at/rsso
# RSSO webapp internal url for service calls.
# To support multiple RSSO servers, set the value to a comma separated string, each represents a 'domain to server url' mapping, with the format of <domain>:<url>, e.g. domain1:http://server1:8080/rsso,domain2:http://server2:8080/rsso
sso-service-url=http://vie-vm-266.at.softlab.net/rsso
sso-service-url=https://itsm-rsso-dev.asfinag.at/rsso
# Time during that cached token status will be used without verified at SSO server side. Default value is 3 min.
token-status-cache-timeout=20

20
deploy.bat Normal file
View File

@ -0,0 +1,20 @@
@echo off
REM Build Angular frontend
cd .\frontend
call npm install
call ng build --optimization
cd ..
REM Copy Angular frontend files to Spring Boot backend webapp directory
xcopy /E /I /Y frontend\dist\syncfusion-gantt\ backend\src\main\resources\static
REM Build Spring Boot backend
cd .\backend
call mvn clean install
cd ..
REM Deploy applications on Tomcat
copy /Y backend\target\backend.war ..\Tomcat\webapps
echo Deployment complete!

File diff suppressed because it is too large Load Diff

69
log/application.log Normal file
View File

@ -0,0 +1,69 @@
2023-05-15-14:14:50 INFO Starting ApiApplication using Java 17.0.7 on vdw10154 with PID 5148 (C:\Users\ext_sulaju\Documents\Asfinag\Tech-Supporting.ITSM.ChangeKalender\backend\target\classes started by ext_sulaju in C:\Users\ext_sulaju\Documents\Asfinag\Tech-Supporting.ITSM.ChangeKalender)
2023-05-15-14:14:50 INFO No active profile set, falling back to 1 default profile: "default"
2023-05-15-14:14:52 INFO Tomcat initialized with port(s): 8080 (http)
2023-05-15-14:14:52 INFO Root WebApplicationContext: initialization completed in 2233 ms
2023-05-15-14:14:53 INFO <TrID: > jrpcMode: true
2023-05-15-14:14:53 INFO <TrID: > jniLoadMode: 1
2023-05-15-14:14:53 INFO <TrID: > apiRecordingMode: 0
2023-05-15-14:14:53 INFO <TrID: > apiRecordingLogDir:
2023-05-15-14:14:53 INFO <TrID: > useConnectionPooling: true
2023-05-15-14:14:53 INFO <TrID: > maxProxiesPerServer: 80
2023-05-15-14:14:53 INFO <TrID: > idleConnectionsPerServer: 5
2023-05-15-14:14:53 INFO <TrID: > connectionTimeout: 0
2023-05-15-14:14:53 INFO <TrID: > connectionLifespan: 0
2023-05-15-14:14:53 INFO <TrID: > timeUnit: MINUTES
2023-05-15-14:14:53 INFO <TrID: > minimumSupportedServerRpcVersion: 12
2023-05-15-14:14:53 INFO <TrID: > connectionMaxRetries: 1
2023-05-15-14:14:53 INFO <TrID: > timeLagBetweenRetriesMillSec: 100
2023-05-15-14:14:53 INFO <TrID: > stringizeFieldAssignments: false
2023-05-15-14:14:53 INFO <TrID: > stringizeSetIfQualification: false
2023-05-15-14:14:53 INFO <TrID: > useLegacyQualParser: false
2023-05-15-14:14:53 INFO <TrID: > useLegacyAssignParser: false
2023-05-15-14:14:53 INFO <TrID: > useLegacyQualFormatter: false
2023-05-15-14:14:53 INFO <TrID: > useLegacyAssignFormatter: false
2023-05-15-14:14:53 INFO <TrID: > APITIMEOUT from system property : null
2023-05-15-14:14:53 INFO <TrID: > APITIMEOUT from Environment : null
2023-05-15-14:14:53 INFO <TrID: > AROVERLAYGROUPS from system property : null
2023-05-15-14:14:53 INFO <TrID: > AROVERLAYGROUPS from Environment : null
2023-05-15-14:14:55 INFO <TrID: > fipsProviderJsafeJCE installed = false
2023-05-15-14:14:56 INFO <TrID: > set timer period 60000 milliSec (00:01:00)
2023-05-15-14:14:56 INFO <TrID: > Connects to itsm-app-dev.asfinag.at:50000 through com.bmc.arsys.api.ProxyJRpc@1f10fec6
2023-05-15-14:14:58 INFO Tomcat started on port(s): 8080 (http) with context path ''
2023-05-15-14:14:58 INFO Started ApiApplication in 8.591 seconds (JVM running for 9.873)
2023-05-15-14:15:07 INFO Initializing Servlet 'dispatcherServlet'
2023-05-15-14:15:07 INFO Completed initialization in 1 ms
2023-05-15-14:37:32 INFO Starting ApiApplication using Java 17.0.7 on vdw10154 with PID 15216 (C:\Users\ext_sulaju\Documents\Asfinag\Tech-Supporting.ITSM.ChangeKalender\backend\target\classes started by ext_sulaju in C:\Users\ext_sulaju\Documents\Asfinag\Tech-Supporting.ITSM.ChangeKalender)
2023-05-15-14:37:32 INFO No active profile set, falling back to 1 default profile: "default"
2023-05-15-14:37:34 INFO Tomcat initialized with port(s): 8080 (http)
2023-05-15-14:37:34 INFO Root WebApplicationContext: initialization completed in 2045 ms
2023-05-15-14:37:35 INFO <TrID: > jrpcMode: true
2023-05-15-14:37:35 INFO <TrID: > jniLoadMode: 1
2023-05-15-14:37:35 INFO <TrID: > apiRecordingMode: 0
2023-05-15-14:37:35 INFO <TrID: > apiRecordingLogDir:
2023-05-15-14:37:35 INFO <TrID: > useConnectionPooling: true
2023-05-15-14:37:35 INFO <TrID: > maxProxiesPerServer: 80
2023-05-15-14:37:35 INFO <TrID: > idleConnectionsPerServer: 5
2023-05-15-14:37:35 INFO <TrID: > connectionTimeout: 0
2023-05-15-14:37:35 INFO <TrID: > connectionLifespan: 0
2023-05-15-14:37:35 INFO <TrID: > timeUnit: MINUTES
2023-05-15-14:37:35 INFO <TrID: > minimumSupportedServerRpcVersion: 12
2023-05-15-14:37:35 INFO <TrID: > connectionMaxRetries: 1
2023-05-15-14:37:35 INFO <TrID: > timeLagBetweenRetriesMillSec: 100
2023-05-15-14:37:35 INFO <TrID: > stringizeFieldAssignments: false
2023-05-15-14:37:35 INFO <TrID: > stringizeSetIfQualification: false
2023-05-15-14:37:35 INFO <TrID: > useLegacyQualParser: false
2023-05-15-14:37:35 INFO <TrID: > useLegacyAssignParser: false
2023-05-15-14:37:35 INFO <TrID: > useLegacyQualFormatter: false
2023-05-15-14:37:35 INFO <TrID: > useLegacyAssignFormatter: false
2023-05-15-14:37:35 INFO <TrID: > APITIMEOUT from system property : null
2023-05-15-14:37:35 INFO <TrID: > APITIMEOUT from Environment : null
2023-05-15-14:37:35 INFO <TrID: > AROVERLAYGROUPS from system property : null
2023-05-15-14:37:35 INFO <TrID: > AROVERLAYGROUPS from Environment : null
2023-05-15-14:37:37 INFO <TrID: > fipsProviderJsafeJCE installed = false
2023-05-15-14:37:38 INFO <TrID: > set timer period 60000 milliSec (00:01:00)
2023-05-15-14:37:38 INFO <TrID: > Connects to itsm-app-dev.asfinag.at:50000 through com.bmc.arsys.api.ProxyJRpc@6ee5f485
2023-05-15-14:37:41 INFO Tomcat started on port(s): 8080 (http) with context path ''
2023-05-15-14:37:41 INFO Started ApiApplication in 9.476 seconds (JVM running for 10.884)
2023-05-15-14:37:45 INFO Initializing Servlet 'dispatcherServlet'
2023-05-15-14:37:45 INFO Completed initialization in 2 ms
2023-05-15-14:37:45 INFO <TrID: > Connects to itsm-app-dev.asfinag.at:50000 through com.bmc.arsys.api.ProxyJRpc@70507715

0
log/error.log Normal file
View File

0
log/warn.log Normal file
View File