parent
20f00b0abd
commit
03ce5a99e1
@ -0,0 +1,32 @@
|
||||
package de.examples;
|
||||
|
||||
import de.tvo.database.tables.NLCONNECT.Nlconnect;
|
||||
import de.tvo.database.tables.NLCONNECT.NlconnectWorker;
|
||||
import de.tvo.nanoleaf.enums.NanoTypeEnum;
|
||||
|
||||
public class NanoDBTest {
|
||||
|
||||
public NanoDBTest() {
|
||||
Nlconnect nlconnect = new Nlconnect();
|
||||
|
||||
nlconnect.setNchostname("Canvas-72FA.fritz.box");
|
||||
nlconnect.setNcipadress("192.168.178.141");
|
||||
nlconnect.setNcport(16021);
|
||||
nlconnect.setNccountpanel(15);
|
||||
nlconnect.setNctoken("LAG28BQWrXK2p79NbHMQsvcYYCN1TcD4");
|
||||
nlconnect.setNctype(NanoTypeEnum.CANVAS);
|
||||
|
||||
try {
|
||||
NlconnectWorker worker = new NlconnectWorker();
|
||||
worker.insertNlconnect(nlconnect);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new NanoDBTest();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,33 +0,0 @@
|
||||
package de.nanoleaf.tools.panelconfig;
|
||||
|
||||
public class MatrixInfo {
|
||||
|
||||
int m_matrixX = 0;
|
||||
int m_matrixY = 0;
|
||||
//int m_Panels = 1;
|
||||
|
||||
public MatrixInfo(int matrixX, int matrixY) {
|
||||
//this.m_Panels = Panels;
|
||||
this.m_matrixX = matrixX;
|
||||
this.m_matrixY = matrixY;
|
||||
}
|
||||
|
||||
public int getMatrixX() {
|
||||
return m_matrixX;
|
||||
}
|
||||
|
||||
public void setMatrixX(int matrixX) {
|
||||
m_matrixX = matrixX;
|
||||
}
|
||||
|
||||
public int getMatrixY() {
|
||||
return m_matrixY;
|
||||
}
|
||||
|
||||
public void setMatrixY(int matrixY) {
|
||||
m_matrixY = matrixY;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1,84 +0,0 @@
|
||||
package de.nanoleaf.tools.panelconfig;
|
||||
|
||||
import org.eclnt.jsfserver.elements.componentnodes.COLDISTANCENode;
|
||||
import org.eclnt.jsfserver.elements.componentnodes.LABELNode;
|
||||
import org.eclnt.jsfserver.elements.componentnodes.PANENode;
|
||||
import org.eclnt.jsfserver.elements.componentnodes.ROWDISTANCENode;
|
||||
import org.eclnt.jsfserver.elements.componentnodes.ROWNode;
|
||||
|
||||
public class NanoPANENode extends PANENode {
|
||||
|
||||
private PanelInfo m_panelInfo = null;
|
||||
|
||||
public PanelInfo getPanelInfo() {
|
||||
return m_panelInfo;
|
||||
}
|
||||
|
||||
public String getBorderColor() {
|
||||
String color = "#e7e6e6";
|
||||
|
||||
if (getPanelInfo() != null && getPanelInfo().getPanelColor() != null) {
|
||||
color = getPanelInfo().getPanelColor();
|
||||
}
|
||||
return color;
|
||||
}
|
||||
|
||||
public void setPanelInfo(PanelInfo panelInfo) {
|
||||
m_panelInfo = panelInfo;
|
||||
}
|
||||
|
||||
public NanoPANENode(PanelInfo panelInfo) {
|
||||
this.m_panelInfo = panelInfo;
|
||||
|
||||
createInnerPane();
|
||||
}
|
||||
|
||||
private void createInnerPane() {
|
||||
|
||||
this.setDragsend("NANOLEAF:" + getPanelInfo().getPanelID());
|
||||
this.setHeight(60);
|
||||
this.setWidth(60);
|
||||
this.setBorder("left:2;right:2;top:2;bottom:2;color:#ff0000");
|
||||
ROWDISTANCENode rowdistanceNode = new ROWDISTANCENode();
|
||||
this.addSubNode(rowdistanceNode);
|
||||
|
||||
ROWNode row = new ROWNode();
|
||||
|
||||
COLDISTANCENode coldistanceNode = new COLDISTANCENode();
|
||||
coldistanceNode.setWidth("50%");
|
||||
row.addSubNode(coldistanceNode);
|
||||
|
||||
LABELNode labelPaneID = new LABELNode();
|
||||
labelPaneID.setText("ID: " + getPanelInfo().getPanelID());
|
||||
|
||||
row.addSubNode(labelPaneID);
|
||||
|
||||
this.addSubNode(row);
|
||||
|
||||
row = new ROWNode();
|
||||
// coldistanceNode = new COLDISTANCENode();
|
||||
// row.addSubNode(coldistanceNode);
|
||||
// labelPaneID = new LABELNode();
|
||||
// labelPaneID.setText("Nr: " + getPanelInfo().getPanelID());
|
||||
//
|
||||
// row.addSubNode(labelPaneID);
|
||||
|
||||
this.addSubNode(row);
|
||||
|
||||
row = new ROWNode();
|
||||
coldistanceNode = new COLDISTANCENode();
|
||||
coldistanceNode.setWidth("50%");
|
||||
row.addSubNode(coldistanceNode);
|
||||
labelPaneID = new LABELNode();
|
||||
if (getPanelInfo().getPanelNanoleafID() == 0) {
|
||||
labelPaneID.setText("unbek.");
|
||||
} else {
|
||||
labelPaneID.setText(getPanelInfo().getPanelNanoleafID() +"");
|
||||
}
|
||||
|
||||
row.addSubNode(labelPaneID);
|
||||
|
||||
this.addSubNode(row);
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
|
||||
<!--
|
||||
Must be set to "false" for runtime purposes - especially when using the RISC
|
||||
Client: CapatainCasa uses URL rewriting for session management.
|
||||
|
||||
If session id cookies are passed to the browser, then multiple browser instances
|
||||
will share the same session id cookie - which may have server side problems as
|
||||
consequence.
|
||||
|
||||
hbm2ddl.auto="create-drop"
|
||||
|
||||
cookies='false'
|
||||
-->
|
||||
<Context>
|
||||
|
||||
|
||||
<!-- MariaDB CRM Verbindung -->
|
||||
<Resource name="jdbc/mariadbnl"
|
||||
global="jdbc/mariadb"
|
||||
auth="Container"
|
||||
factory="com.zaxxer.hikari.HikariJNDIFactory"
|
||||
type="javax.sql.DataSource"
|
||||
maximumPoolSize="15"
|
||||
minimumIdle="1"
|
||||
dataSource.user="root"
|
||||
dataSource.password="jhi1nPw."
|
||||
show_sql="true"
|
||||
hbm2ddl.auto="create-drop"
|
||||
driverClassName="org.mariadb.jdbc.Driver"
|
||||
testOnBorrow="true"
|
||||
jdbcUrl="jdbc:mariadb://ZITNB014.de.geis-group.net:3306/nanoleafdb"
|
||||
connectionTestQuery = "select 1"
|
||||
allowPoolSuspension="true"
|
||||
/>
|
||||
|
||||
</Context>
|
||||
@ -0,0 +1,39 @@
|
||||
## Properties f\u00fcr Geisportal
|
||||
|
||||
## Workplace Umgebung
|
||||
[WORKPLACE]
|
||||
TEST=true
|
||||
## Anzahl der Login Versuche.
|
||||
MAX_LOGIN_ATTEMPTS=8
|
||||
## Send Email fail Login
|
||||
SEND_EMAIL_FAIL_LOGIN=4
|
||||
##
|
||||
SESSION_DIFF_TIME=2
|
||||
## Mail from Portal
|
||||
SEND_EMAIL_FROM_PORTAL=webportal-test-admin@geis-group.de
|
||||
SEND_EMAIL_TO_LOGIN=java-fehlermeldungen@geis-group.de
|
||||
SEND_EMAIL_ERROR_MSG=java-fehlermeldungen@geis-group.de
|
||||
##thomas.vogel@geis-group.de;markus.kirchner@geis-group.de
|
||||
## Auto Logout
|
||||
SESSION_AUTO_LOGOUT_TIME=60
|
||||
##
|
||||
RIGHTS_UPDATE_NEXT_INTERVAL=10
|
||||
## Portal Messages Delete Status nach ... Tagen
|
||||
MSG_DELETE_STATUS_SET=14
|
||||
## Portal Messages Typen Delete Status
|
||||
MSG_DELETE_TYPEN_SET=TEXT_MSG;TEXT_MSG_PUSH;EMAIL_MSG
|
||||
## Portal Messages Delete from DB ... Tagen
|
||||
MSG_DELETE_FROM_DB=360
|
||||
## Portal Message delete from Database Activ
|
||||
MSG_DELETE_FROM_DB_ACTIV=false
|
||||
## LoginTyp fuer Portal
|
||||
PORTAL_LOGINTYP=WEB_USER;INTRANET_USER;CLIENT_USER
|
||||
## TEST PORTAL URL
|
||||
PORTAL_URL_TEST=https://webportal-test.geis-group.de
|
||||
## PORTAL URL
|
||||
PORTAL_URL=https://webportal.geis-group.de
|
||||
## SESSION_TYP fuer Hostname
|
||||
SESSION_TYP=PORTAL_SESSION
|
||||
|
||||
[DEFAULT]
|
||||
|
||||
@ -0,0 +1,19 @@
|
||||
<logging level="INFO"
|
||||
console="false"
|
||||
plaintext="false"
|
||||
outputclassmethod="false">
|
||||
|
||||
<!--
|
||||
************************************************************************
|
||||
loglevel that is used if errors occur when resolving an
|
||||
property-access via expression resolution. And: decision of
|
||||
a stack trace is output.
|
||||
|
||||
Possible values for level: SEVERE, WARNING(default), INFO, FINE
|
||||
Possible values for stacktrace: true/false(default)
|
||||
************************************************************************
|
||||
-->
|
||||
<!--
|
||||
<loglevelmissingpropertyget level="WARNING" stacktrace="false"/>
|
||||
-->
|
||||
</logging>
|
||||
Loading…
Reference in new issue