Skip to content

Commit e1a67d3

Browse files
committed
initial committ
0 parents  commit e1a67d3

30 files changed

+3270
-0
lines changed

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2022, Automatic Controls Equipment Systems, Inc.
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# PostgreSQL_Connect
2+
3+
WebCTRL is a trademark of Automated Logic Corporation. Any other trademarks mentioned herein are the property of their respective owners.
4+

config/BUILD_DETAILS

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
JDK Version:
2+
openjdk 19.0.1 2022-10-18
3+
OpenJDK Runtime Environment (build 19.0.1+10-21)
4+
OpenJDK 64-Bit Server VM (build 19.0.1+10-21, mixed mode, sharing)
5+
6+
Compilation Flags:
7+
--release 8
8+
9+
Runtime Dependencies:
10+
addonsupport-api-addon-1.9.0
11+
alarmmanager-api-addon-1.9.0
12+
bacnet-api-core-1.10.002-20230209.1438r
13+
directaccess-api-addon-1.9.0
14+
tomcat-embed-core-9.0.68
15+
webaccess-api-addon-1.9.0
16+
xdatabase-api-addon-1.9.0
17+
common-8.5.002
18+
commonbaseutils-2.0.3
19+
commonexceptions-8.5.002
20+
core-8.5.002
21+
datatable-8.5.002
22+
extensionsupport-api-8.5.002
23+
jsch-0.2.11-sources
24+
postgresql-42.6.0-sources
25+
spring-context-5.2.22.RELEASE
26+
webserver-api-8.5.002
27+
28+
Packaged Dependencies:
29+
jsch-0.2.11
30+
postgresql-42.6.0

config/COMPILE_FLAGS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--release 8

config/EXTERNAL_DEPS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
url:postgresql:https://repo1.maven.org/maven2/org/postgresql/postgresql/42.6.0/postgresql-42.6.0.jar
2+
url:jsch:https://repo1.maven.org/maven2/com/github/mwiede/jsch/0.2.11/jsch-0.2.11.jar

config/RUNTIME_DEPS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
file:spring-context:bin\lib
2+
file:datatable:modules\datatable
3+
file:webserver-api:modules\webserver
4+
file:extensionsupport-api:modules\extensionsupport
5+
file:core:modules\core
6+
file:common:modules\common
7+
file:commonexceptions:modules\commonexceptions
8+
file:commonbaseutils:bin\lib
9+
url:postgresql:https://repo1.maven.org/maven2/org/postgresql/postgresql/42.6.0/postgresql-42.6.0-sources.jar
10+
url:jsch:https://repo1.maven.org/maven2/com/github/mwiede/jsch/0.2.11/jsch-0.2.11-sources.jar

root/info.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<extension version="1">
2+
<name>PostgreSQL_Connect</name>
3+
<description>Periodically synchronizes data to an external PostgreSQL database.</description>
4+
<version>0.3.2</version>
5+
<vendor>Automatic Controls Equipment Systems, Inc.</vendor>
6+
<system-menu-provider>aces.webctrl.postgresql.web.SystemMenuEditor</system-menu-provider>
7+
</extension>

root/webapp/WEB-INF/web.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<web-app>
4+
5+
<listener>
6+
<listener-class>aces.webctrl.postgresql.core.Initializer</listener-class>
7+
</listener>
8+
9+
<welcome-file-list>
10+
<welcome-file>index</welcome-file>
11+
</welcome-file-list>
12+
13+
<servlet>
14+
<servlet-name>MainPage</servlet-name>
15+
<servlet-class>aces.webctrl.postgresql.web.MainPage</servlet-class>
16+
</servlet>
17+
<servlet-mapping>
18+
<servlet-name>MainPage</servlet-name>
19+
<url-pattern>/index</url-pattern>
20+
</servlet-mapping>
21+
22+
<servlet>
23+
<servlet-name>SaveOperator</servlet-name>
24+
<servlet-class>aces.webctrl.postgresql.web.SaveOperator</servlet-class>
25+
</servlet>
26+
<servlet-mapping>
27+
<servlet-name>SaveOperator</servlet-name>
28+
<url-pattern>/SaveOperator</url-pattern>
29+
</servlet-mapping>
30+
31+
<security-constraint>
32+
<web-resource-collection>
33+
<web-resource-name>WEB</web-resource-name>
34+
<url-pattern>/*</url-pattern>
35+
</web-resource-collection>
36+
</security-constraint>
37+
38+
<filter>
39+
<filter-name>RoleFilterAJAX</filter-name>
40+
<filter-class>com.controlj.green.addonsupport.web.RoleFilter</filter-class>
41+
<init-param>
42+
<param-name>roles</param-name>
43+
<param-value>view_administrator_only</param-value>
44+
</init-param>
45+
</filter>
46+
<filter-mapping>
47+
<filter-name>RoleFilterAJAX</filter-name>
48+
<url-pattern>/*</url-pattern>
49+
</filter-mapping>
50+
51+
</web-app>

root/webapp/main.css

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
body, input, textarea, select {
2+
background-color:black;
3+
color:white;
4+
}
5+
.e {
6+
margin-left:0.5em;
7+
margin-right:0.5em;
8+
margin-top:0.25em;
9+
margin-bottom:0.25em;
10+
}
11+
.c {
12+
text-align:center;
13+
}
14+
.checker {
15+
margin-right:0.5em;
16+
}
17+
.column {
18+
float:left;
19+
width:50%;
20+
}
21+
.row {
22+
content: "";
23+
display:table;
24+
clear:both;
25+
width:100%;
26+
}
27+
button {
28+
border:1px solid white;
29+
border-radius: 8px;
30+
padding-left:7px;
31+
padding-right:7px;
32+
padding-top:2px;
33+
padding-bottom:2px;
34+
text-decoration: none;
35+
color:lightgreen;
36+
background-color: transparent;
37+
cursor:pointer;
38+
user-select: none;
39+
}
40+
button:hover {
41+
color:darkgoldenrod;
42+
}
43+
button:active {
44+
color:teal;
45+
}
46+
button:disabled {
47+
background-color:darkslategray;
48+
color:forestgreen;
49+
cursor:default;
50+
}
51+
.buttonCopy {
52+
border:1px solid white;
53+
border-radius: 8px;
54+
padding-left:6px;
55+
padding-right:6px;
56+
padding-top:1px;
57+
padding-bottom:1px;
58+
color:lightgreen;
59+
cursor:pointer;
60+
user-select: none;
61+
}
62+
.buttonCopy:hover {
63+
color:darkgoldenrod;
64+
}
65+
a {
66+
border:1px solid white;
67+
border-radius: 8px;
68+
padding-left:6px;
69+
padding-right:6px;
70+
padding-top:1px;
71+
padding-bottom:1px;
72+
text-decoration: none;
73+
background-color: transparent;
74+
user-select: none;
75+
}
76+
a:link,a:visited {
77+
color: lightgreen;
78+
}
79+
a:hover {
80+
color:darkgoldenrod;
81+
}
82+
a:active {
83+
color:teal;
84+
}
85+
td, th {
86+
padding:4px;
87+
border:solid 1px white;
88+
}
89+
tr:nth-child(odd) {
90+
background-color:#222222;
91+
}
92+
tr:nth-child(even) {
93+
background-color:#090909;
94+
}
95+
th {
96+
background-color:darkslategray;
97+
}
98+
table {
99+
border-collapse:collapse;
100+
margin:0 auto;
101+
}
102+
thead {
103+
border:solid 3px white;
104+
}
105+
tbody {
106+
border:solid 3px darkgoldenrod;
107+
}
108+
tfoot {
109+
border:solid 3px darkmagenta;
110+
}
111+
.tagYes {
112+
border-style:hidden;
113+
border-radius: 8px;
114+
display:inline-block;
115+
padding-left:6px;
116+
padding-right:6px;
117+
font-style:italic;
118+
margin:2px;
119+
background-color:green;
120+
}
121+
.tagNo {
122+
border-style:hidden;
123+
border-radius: 8px;
124+
display:inline-block;
125+
padding-left:6px;
126+
padding-right:6px;
127+
font-style:italic;
128+
margin:2px;
129+
background-color:darkred;
130+
}
131+
.tag {
132+
border-style:hidden;
133+
border-radius: 8px;
134+
display:inline-block;
135+
padding-left:6px;
136+
padding-right:6px;
137+
font-style:italic;
138+
margin:2px;
139+
user-select: none;
140+
}
141+
.popupSection {
142+
border:2px solid hotpink;
143+
border-radius: 2em;
144+
}
145+
.tagBox {
146+
border:2px solid dodgerblue;
147+
display:inline-block;
148+
padding-left:6px;
149+
padding-right:6px;
150+
margin:2px;
151+
margin-left:0.5em;
152+
background-color:midnightblue;
153+
font-style:normal;
154+
}
155+
.divGrouping {
156+
display:inline-block;
157+
margin-left:1vw;
158+
margin-right:1vw;
159+
margin-top:5px;
160+
margin-bottom:5px;
161+
}
162+
.triangle {
163+
width:0;
164+
height:0;
165+
margin-right:-0.5em;
166+
border-width:0.5em;
167+
border-style:solid;
168+
border-color:transparent transparent transparent gold;
169+
}
170+
.bar {
171+
position:absolute;
172+
top:0;
173+
left:0;
174+
width:100%;
175+
height:1em;
176+
border:1px solid white;
177+
background-color:darkgray;
178+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package aces.webctrl.postgresql.core;
2+
public class Addon {
3+
public volatile String name;
4+
public volatile String displayName;
5+
public volatile String description;
6+
public volatile String vendor;
7+
public volatile String version;
8+
public volatile String state;
9+
}

0 commit comments

Comments
 (0)