Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-ui
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WEBGDE-Components
web-ui
Commits
2b1c02a8
Commit
2b1c02a8
authored
May 12, 2023
by
Daniel Bawag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed merging issues
parent
6fe4f28e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
22 deletions
+17
-22
.classpath
WebGde/.classpath
+5
-5
org.eclipse.wst.common.project.facet.core.xml
...e/.settings/org.eclipse.wst.common.project.facet.core.xml
+1
-1
config.js
WebGde/WebContent/config.js
+5
-5
accessFile.js
WebGde/WebContent/src/accessFile/accessFile.js
+4
-4
GDEWebServices.java
...a/com/svi/webgde/restservice/services/GDEWebServices.java
+2
-7
No files found.
WebGde/.classpath
View file @
2b1c02a8
...
...
@@ -11,11 +11,6 @@
<attribute
name=
"maven.pomderived"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.payara.tools.lib.system"
>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"jst.web"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"src"
output=
"target/test-classes"
path=
"src/test/java"
>
<attributes>
<attribute
name=
"optional"
value=
"true"
/>
...
...
@@ -29,5 +24,10 @@
<attribute
name=
"org.eclipse.jst.component.dependency"
value=
"/WEB-INF/lib"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.payara.tools.lib.system"
>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"jst.web"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"output"
path=
"target/classes"
/>
</classpath>
WebGde/.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
2b1c02a8
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime
name=
"Payara Server 5 (5.202
2
.1)"
/>
<runtime
name=
"Payara Server 5 (5.202
1
.1)"
/>
<fixed
facet=
"jst.web"
/>
<fixed
facet=
"java"
/>
<fixed
facet=
"wst.jsdt.web"
/>
...
...
WebGde/WebContent/config.js
View file @
2b1c02a8
...
...
@@ -39,7 +39,7 @@ var HIGH_LIGHT_SCHEMA = "./src/highlight/dbSchema_anno.xlsx"
//this determines if the images will be retrieved from the gfs
var
DOMAIN
=
"http://35.169.23.0:8080"
var
CONTEXTROOT
=
"gfs-explorer-ws"
var
GFS_URL
=
"http://
35.169.23.0
:8080"
+
"/WebGde/svc/gfs-rest"
var
GFS_URL
=
"http://
54.175.99.64
:8080"
+
"/WebGde/svc/gfs-rest"
var
FOLDER_URL
=
DOMAIN
+
"/"
+
CONTEXTROOT
+
"/svc/gfs-rest/get-folder?parentPath=/Users/"
var
DOWNLOAD_URL
=
DOMAIN
+
"/"
+
CONTEXTROOT
+
"/svc/gfs-rest/get-download-link"
var
IS_RETRIEVE_FROM_GFS
=
"N"
...
...
@@ -48,11 +48,11 @@ var INVALID_KEYS = "F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,PrintScreen,ScrollLoc
//BPO CONFIG
var
IS_RETRIEVE_FROM_BPO
=
"Y"
var
BPO_URL
=
"http://
35.169.23.0
:8080/bpo/"
var
CURRENT_NODE
=
"Web
_GDE_DEV_2
"
var
BPO_URL
=
"http://
54.175.99.64
:8080/bpo/"
var
CURRENT_NODE
=
"Web
GDE
"
var
ENCODING_PASS
=
"PASS1"
var
NEXT_NODE
=
"Complete
_DEV
"
var
EXCEPTION_NODE
=
"Exception
_DEV
"
var
NEXT_NODE
=
"Complete"
var
EXCEPTION_NODE
=
"Exception"
var
PDF_EXTENSION
=
".pdf"
var
JPG_EXTENSION
=
".jpg"
...
...
WebGde/WebContent/src/accessFile/accessFile.js
View file @
2b1c02a8
...
...
@@ -80,7 +80,7 @@ async function accessFile() {
if
(
ctrlImg
)
{
ctrlImg
.
outerHTML
=
""
;
}
displayPdf
(
idQuery
.
result
.
path
);
displayPdf
(
url
);
}
else
if
(
idQuery
.
result
.
name
.
endsWith
(
JPG_EXTENSION
)
||
idQuery
.
result
.
name
.
endsWith
(
PNG_EXTENSION
)){
sessionStorage
.
setItem
(
"file_Name"
,
idQuery
.
result
.
name
);
...
...
@@ -137,7 +137,7 @@ async function accessFile() {
if
(
ctrlImg
)
{
ctrlImg
.
outerHTML
=
""
;
}
displayPdf
(
idQuery
.
result
.
path
);
displayPdf
(
url
);
}
else
if
(
idQuery
.
result
.
name
.
endsWith
(
JPG_EXTENSION
)
||
idQuery
.
result
.
name
.
endsWith
(
PNG_EXTENSION
)){
sessionStorage
.
setItem
(
"file_Name"
,
idQuery
.
result
.
name
);
...
...
@@ -291,7 +291,7 @@ async function accessFile() {
if
(
ctrlImg
)
{
ctrlImg
.
outerHTML
=
""
;
}
displayPdf
(
img
);
displayPdf
(
url
);
}
else
if
(
filename
.
endsWith
(
JPG_EXTENSION
)
||
filename
.
endsWith
(
PNG_EXTENSION
)){
sessionStorage
.
setItem
(
"file_Name"
,
filename
);
...
...
@@ -733,7 +733,7 @@ function refreshImage() {
ctrlTiff.outerHTML="";
ctrlImg.outerHTML="";
}
displayPdf(
idQuery.result.path
);
displayPdf(
url
);
}
else if(idQuery.result.name.endsWith(JPG_EXTENSION) || idQuery.result.name.endsWith(PNG_EXTENSION)){
sessionStorage.setItem("file_Name", idQuery.result.name);
...
...
WebGde/src/main/java/com/svi/webgde/restservice/services/GDEWebServices.java
View file @
2b1c02a8
package
com
.
svi
.
webgde
.
restservice
.
services
;
import
java.io.BufferedReader
;
import
java.io.ByteArrayInputStream
;
import
java.io.File
;
import
java.io.FileReader
;
...
...
@@ -9,10 +8,8 @@ import java.io.IOException;
import
java.io.InputStream
;
import
java.math.BigDecimal
;
import
java.nio.file.Files
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Iterator
;
import
java.util.TimeZone
;
import
javax.json.JsonObject
;
...
...
@@ -27,12 +24,10 @@ import javax.ws.rs.core.Response.ResponseBuilder;
import
javax.ws.rs.core.StreamingOutput
;
import
org.json.JSONObject
;
import
org.json.simple.JSONArray
;
import
com.opencsv.CSVReader
;
import
com.opencsv.CSVWriter
;
import
com.svi.template.restservice.globals.AppConfig
;
import
com.svi.training.services.Request
;
import
com.svi.webgde.restservice.object.Request
;
import
com.svi.webgde.restservice.object.XMLContents
;
import
com.svi.webgde.restservice.utils.XMLUtil
;
...
...
@@ -277,7 +272,7 @@ public class GDEWebServices {
// return file contents in blob format with filename in content-disposition header
ResponseBuilder
response
=
Response
.
ok
(
file
);
response
.
header
(
"content-disposition"
,
"attachment; filename = "
+
file
.
getName
(
));
response
.
header
(
"content-disposition"
,
String
.
format
(
"attachment; filename=\"%s\""
,
file
.
getName
()
));
return
response
.
build
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment