save
Showing
118 changed files
with
173 additions
and
188 deletions
SZSTerminal/log4j.properties
deleted
100755 → 0
| 1 | log4j.rootLogger=DEBUG, CA, file | ||
| 2 | |||
| 3 | |||
| 4 | log4j.appender.CA=org.apache.log4j.ConsoleAppender | ||
| 5 | log4j.appender.CA.layout=org.apache.log4j.PatternLayout | ||
| 6 | log4j.appender.CA.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n | ||
| 7 | |||
| 8 | |||
| 9 | log4j.appender.file=org.apache.log4j.RollingFileAppender | ||
| 10 | log4j.appender.file.File=logging.log | ||
| 11 | log4j.appender.file.MaxFileSize=10MB | ||
| 12 | log4j.appender.file.MaxBackupIndex=10 | ||
| 13 | log4j.appender.file.layout=org.apache.log4j.PatternLayout | ||
| 14 | log4j.appender.file.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -5,9 +5,6 @@ | ... | @@ -5,9 +5,6 @@ |
| 5 | <version>0.0.1-SNAPSHOT</version> | 5 | <version>0.0.1-SNAPSHOT</version> |
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | |||
| 9 | |||
| 10 | |||
| 11 | <dependencies> | 8 | <dependencies> |
| 12 | 9 | ||
| 13 | 10 | ||
| ... | @@ -44,6 +41,12 @@ | ... | @@ -44,6 +41,12 @@ |
| 44 | <version>1.2.17</version> | 41 | <version>1.2.17</version> |
| 45 | </dependency> | 42 | </dependency> |
| 46 | 43 | ||
| 44 | <dependency> | ||
| 45 | <groupId>org.emercit</groupId> | ||
| 46 | <artifactId>utilstools</artifactId> | ||
| 47 | <version>1.50</version> | ||
| 48 | </dependency> | ||
| 49 | |||
| 47 | </dependencies> | 50 | </dependencies> |
| 48 | 51 | ||
| 49 | <pluginRepositories> | 52 | <pluginRepositories> |
| ... | @@ -54,6 +57,15 @@ | ... | @@ -54,6 +57,15 @@ |
| 54 | </pluginRepositories> | 57 | </pluginRepositories> |
| 55 | 58 | ||
| 56 | 59 | ||
| 60 | <repositories> | ||
| 61 | <repository> | ||
| 62 | <id>project.local</id> | ||
| 63 | <name>project</name> | ||
| 64 | <url>file:/root/git/hardwareconfig/DevTools/repo</url> | ||
| 65 | </repository> | ||
| 66 | </repositories> | ||
| 67 | |||
| 68 | |||
| 57 | </project> | 69 | </project> |
| 58 | 70 | ||
| 59 | 71 | ... | ... |
| 1 | package org.emercit.config; | ||
| 2 | |||
| 3 | |||
| 4 | import java.io.File; | ||
| 5 | |||
| 6 | |||
| 7 | import java.io.FileInputStream; | ||
| 8 | import java.io.IOException; | ||
| 9 | import java.io.InputStream; | ||
| 10 | import java.util.Properties; | ||
| 11 | import java.io.FileOutputStream; | ||
| 12 | import java.io.OutputStream; | ||
| 13 | |||
| 14 | |||
| 15 | import java.awt.Toolkit; | ||
| 16 | import java.net.URL; | ||
| 17 | |||
| 18 | import org.apache.log4j.Logger; | ||
| 19 | |||
| 20 | public class Config { | ||
| 21 | |||
| 22 | static final Logger logger = Logger.getLogger(Config.class); | ||
| 23 | |||
| 24 | private Properties prop = new Properties(); | ||
| 25 | |||
| 26 | private String regkey; | ||
| 27 | private String service; | ||
| 28 | private boolean proxyEnabled; | ||
| 29 | private String proxyServer; | ||
| 30 | private int proxyPort; | ||
| 31 | private String version; | ||
| 32 | |||
| 33 | public Config() { | ||
| 34 | |||
| 35 | InputStream input = null; | ||
| 36 | |||
| 37 | try { | ||
| 38 | |||
| 39 | input = new FileInputStream("szsterminal.properties"); | ||
| 40 | |||
| 41 | prop.load(input); | ||
| 42 | |||
| 43 | this.regkey=String.valueOf(prop.getProperty("regkey")); | ||
| 44 | this.service=String.valueOf(prop.getProperty("service")); | ||
| 45 | |||
| 46 | this.proxyEnabled=Boolean.valueOf(prop.getProperty("proxyEnabled")); | ||
| 47 | this.proxyServer=String.valueOf(prop.getProperty("proxyServer")); | ||
| 48 | this.proxyPort=Integer.valueOf(prop.getProperty("proxyPort")); | ||
| 49 | |||
| 50 | |||
| 51 | //029d10ca-22c3-4303-8fc0-2d2c586990a1 | ||
| 52 | |||
| 53 | |||
| 54 | this.version=String.valueOf(prop.getProperty("version")); | ||
| 55 | |||
| 56 | |||
| 57 | |||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | } catch (IOException ex) { | ||
| 62 | |||
| 63 | logger.error(ex.getMessage()); | ||
| 64 | |||
| 65 | } finally { | ||
| 66 | if (input != null) { | ||
| 67 | try { | ||
| 68 | input.close(); | ||
| 69 | } catch (IOException e) { | ||
| 70 | |||
| 71 | logger.error(e.getMessage()); | ||
| 72 | } | ||
| 73 | } | ||
| 74 | } | ||
| 75 | |||
| 76 | } | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | public void Save() { | ||
| 81 | |||
| 82 | OutputStream output = null; | ||
| 83 | |||
| 84 | try { | ||
| 85 | |||
| 86 | output = new FileOutputStream("szsterminal.properties"); | ||
| 87 | |||
| 88 | prop.setProperty("regkey", String.valueOf(this.regkey)); | ||
| 89 | // prop.setProperty("service", String.valueOf(this.service)); | ||
| 90 | prop.setProperty("proxyEnabled", String.valueOf(this.proxyEnabled)); | ||
| 91 | prop.setProperty("proxyServer", String.valueOf(this.proxyServer)); | ||
| 92 | prop.setProperty("proxyPort", String.valueOf(this.proxyPort)); | ||
| 93 | |||
| 94 | prop.setProperty("version", String.valueOf(this.version)); | ||
| 95 | |||
| 96 | prop.store(output, null); | ||
| 97 | |||
| 98 | } catch (IOException io) { | ||
| 99 | |||
| 100 | } finally { | ||
| 101 | if (output != null) { | ||
| 102 | try { | ||
| 103 | output.close(); | ||
| 104 | } catch (IOException e) { | ||
| 105 | |||
| 106 | } | ||
| 107 | } | ||
| 108 | |||
| 109 | } | ||
| 110 | } | ||
| 111 | |||
| 112 | |||
| 113 | /* | ||
| 114 | * Get | ||
| 115 | */ | ||
| 116 | |||
| 117 | public String getRegKey() { | ||
| 118 | return this.regkey; | ||
| 119 | } | ||
| 120 | public String getService() { | ||
| 121 | return this.service; | ||
| 122 | } | ||
| 123 | |||
| 124 | public boolean getProxyEnabled() { | ||
| 125 | return this.proxyEnabled; | ||
| 126 | } | ||
| 127 | public String getProxyServer() { | ||
| 128 | return this.proxyServer; | ||
| 129 | } | ||
| 130 | public int getProxyPort() { | ||
| 131 | return this.proxyPort; | ||
| 132 | } | ||
| 133 | public String getVersion() { | ||
| 134 | return this.version; | ||
| 135 | } | ||
| 136 | |||
| 137 | |||
| 138 | /* | ||
| 139 | * Set | ||
| 140 | */ | ||
| 141 | |||
| 142 | public void setRegkey(String value){ | ||
| 143 | this.regkey=value; | ||
| 144 | } | ||
| 145 | public void setService(String value){ | ||
| 146 | this.service=value; | ||
| 147 | } | ||
| 148 | |||
| 149 | public void setProxyEnabled(boolean value){ | ||
| 150 | this.proxyEnabled=value; | ||
| 151 | } | ||
| 152 | public void setProxyServer(String value){ | ||
| 153 | this.proxyServer=value; | ||
| 154 | } | ||
| 155 | public void setProxyPort(int value){ | ||
| 156 | this.proxyPort=value; | ||
| 157 | } | ||
| 158 | |||
| 159 | |||
| 160 | |||
| 161 | public void setVersion(String version) { | ||
| 162 | this.version=version; | ||
| 163 | } | ||
| 164 | |||
| 165 | |||
| 166 | } | ||
| 167 | |||
| 168 | |||
| 169 | |||
| 170 | |||
| 171 |
| 1 | package org.emercit.model; | ||
| 2 | |||
| 3 | package org.emercit.szs.model; | ||
| 4 | |||
| 5 | import org.emercit.utilstools.devinfo.service.DevInfo; | ||
| 6 | import org.emercit.utilstools.devinfo.model.DevInfoBean; | ||
| 7 | |||
| 8 | import org.emercit.utilstools.gsmmanager.model.GSMBean; | ||
| 9 | import org.emercit.utilstools.gsmmanager.service.Gsm; | ||
| 10 | |||
| 11 | import org.emercit.utilstools.servers.model.ServerBean; | ||
| 12 | import org.emercit.utilstools.servers.service.Servers; | ||
| 13 | |||
| 14 | |||
| 15 | public class Config { | ||
| 16 | |||
| 17 | |||
| 18 | private static Gsm gsm=new Gsm(); | ||
| 19 | |||
| 20 | private static DevInfo devinfo=new DevInfo(); | ||
| 21 | |||
| 22 | private static Servers servers=new Servers(); | ||
| 23 | |||
| 24 | public final static GSMBean gsmbean=gsm.get(); | ||
| 25 | |||
| 26 | public final static DevInfoBean devinfobean=devinfo.get(); | ||
| 27 | |||
| 28 | public final static ServerBean serverbean=servers.get().firstElement(); | ||
| 29 | |||
| 30 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
SzsBb/target/classes/Alarm.wav
0 → 100644
No preview for this file type
SzsBb/target/classes/META-INF/MANIFEST.MF
0 → 100644
| 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| 2 | <modelVersion>4.0.0</modelVersion> | ||
| 3 | <groupId>Szs</groupId> | ||
| 4 | <artifactId>Szs</artifactId> | ||
| 5 | <version>0.0.1-SNAPSHOT</version> | ||
| 6 | |||
| 7 | <build> | ||
| 8 | <plugins> | ||
| 9 | <plugin> | ||
| 10 | <groupId>org.apache.maven.plugins</groupId> | ||
| 11 | <artifactId>maven-compiler-plugin</artifactId> | ||
| 12 | <configuration> | ||
| 13 | <source>1.7</source> | ||
| 14 | <target>1.7</target> | ||
| 15 | <showDeprecation>true</showDeprecation> | ||
| 16 | <showWarnings>true</showWarnings> | ||
| 17 | <executable>${env.JAVA_HOME_7}/bin/javac</executable> | ||
| 18 | <fork>true</fork> | ||
| 19 | </configuration> | ||
| 20 | </plugin> | ||
| 21 | </plugins> | ||
| 22 | </build> | ||
| 23 | |||
| 24 | <dependencies> | ||
| 25 | |||
| 26 | <dependency> | ||
| 27 | <groupId>junit</groupId> | ||
| 28 | <artifactId>junit</artifactId> | ||
| 29 | <version>3.8.1</version> | ||
| 30 | <scope>test</scope> | ||
| 31 | </dependency> | ||
| 32 | |||
| 33 | <dependency> | ||
| 34 | <groupId>com.google.code.gson</groupId> | ||
| 35 | <artifactId>gson</artifactId> | ||
| 36 | <version>2.3</version> | ||
| 37 | </dependency> | ||
| 38 | |||
| 39 | <dependency> | ||
| 40 | <groupId>com.googlecode.json-simple</groupId> | ||
| 41 | <artifactId>json-simple</artifactId> | ||
| 42 | <version>1.1.1</version> | ||
| 43 | </dependency> | ||
| 44 | |||
| 45 | |||
| 46 | <dependency> | ||
| 47 | <groupId>javax.inject</groupId> | ||
| 48 | <artifactId>javax.inject</artifactId> | ||
| 49 | <version>1</version> | ||
| 50 | </dependency> | ||
| 51 | |||
| 52 | |||
| 53 | |||
| 54 | <dependency> | ||
| 55 | <groupId>com.jcraft</groupId> | ||
| 56 | <artifactId>jsch</artifactId> | ||
| 57 | <version>0.1.51</version> | ||
| 58 | </dependency> | ||
| 59 | |||
| 60 | |||
| 61 | <dependency> | ||
| 62 | <groupId>log4j</groupId> | ||
| 63 | <artifactId>log4j</artifactId> | ||
| 64 | <version>1.2.17</version> | ||
| 65 | </dependency> | ||
| 66 | |||
| 67 | <dependency> | ||
| 68 | <groupId>org.emercit</groupId> | ||
| 69 | <artifactId>utilstools</artifactId> | ||
| 70 | <version>1.50</version> | ||
| 71 | </dependency> | ||
| 72 | |||
| 73 | |||
| 74 | </dependencies> | ||
| 75 | |||
| 76 | <pluginRepositories> | ||
| 77 | <pluginRepository> | ||
| 78 | <id>onejar-maven-plugin.googlecode.com</id> | ||
| 79 | <url>http://onejar-maven-plugin.googlecode.com/svn/mavenrepo</url> | ||
| 80 | </pluginRepository> | ||
| 81 | </pluginRepositories> | ||
| 82 | |||
| 83 | |||
| 84 | <repositories> | ||
| 85 | <repository> | ||
| 86 | <id>project.local</id> | ||
| 87 | <name>project</name> | ||
| 88 | <url>file:/root/git/hardwareconfig/DevTools/repo</url> | ||
| 89 | </repository> | ||
| 90 | </repositories> | ||
| 91 | |||
| 92 | |||
| 93 | </project> | ||
| 94 | |||
| 95 | |||
| 96 |
SzsBb/target/classes/bottom.png
0 → 100644
3.02 KB
SzsBb/target/classes/circle.png
0 → 100644
1.32 KB
SzsBb/target/classes/clock.png
0 → 100644
2.32 KB
SzsBb/target/classes/closedoor.png
0 → 100644
18.3 KB
SzsBb/target/classes/connect_service.png
0 → 100644
2.16 KB
SzsBb/target/classes/contacts.png
0 → 100644
745 Bytes
SzsBb/target/classes/current.png
0 → 100644
1.59 KB
SzsBb/target/classes/desktop.ini
0 → 100644
| 1 | [LocalizedFileNames] | ||
| 2 | notify.wav=@%windir%\system32\mmres.dll,-706 | ||
| 3 | Windows Minimize.wav=@%windir%\system32\mmres.dll,-726 | ||
| 4 | Windows Startup.wav=@%windir%\system32\mmres.dll,-735 | ||
| 5 | Windows Notify.wav=@%windir%\system32\mmres.dll,-727 | ||
| 6 | Windows Pop-up Blocked.wav=@%windir%\system32\mmres.dll,-737 | ||
| 7 | tada.wav=@%windir%\system32\mmres.dll,-710 |
SzsBb/target/classes/disconnect_service.png
0 → 100644
1.9 KB
SzsBb/target/classes/down.png
0 → 100644
1.23 KB
SzsBb/target/classes/good.png
0 → 100644
813 Bytes
SzsBb/target/classes/green.png
0 → 100644
4.69 KB
SzsBb/target/classes/journal.png
0 → 100644
1.99 KB
SzsBb/target/classes/log4j.properties
0 → 100644
| 1 | log4j.rootLogger=debug,stdout,server | ||
| 2 | |||
| 3 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
| 4 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
| 5 | log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSSS} %p %t %c \u2013 %m%n | ||
| 6 | |||
| 7 | |||
| 8 | log4j.appender.server=org.apache.log4j.net.SocketAppender | ||
| 9 | log4j.appender.server.Port=4560 | ||
| 10 | log4j.appender.server.RemoteHost=localhost | ||
| 11 | log4j.appender.server.ReconnectionDelay=10000 | ||
| 12 | log4j.appender.server.Application=ctrlpnl | ||
| 13 | log4j.appender.server.LocationInfo=true | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
SzsBb/target/classes/notification.png
0 → 100644
4.67 KB
SzsBb/target/classes/offDevice.png
0 → 100644
6.08 KB
SzsBb/target/classes/opendoor.png
0 → 100644
2.96 KB
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
SzsBb/target/classes/org/emercit/szs/controldevtools/bean/CheckNotification$checkSiren$1.class
0 → 100644
No preview for this file type
SzsBb/target/classes/org/emercit/szs/controldevtools/bean/CheckNotification$checkSiren.class
0 → 100644
No preview for this file type
SzsBb/target/classes/org/emercit/szs/controldevtools/bean/CheckNotification$checkSound$1.class
0 → 100644
No preview for this file type
SzsBb/target/classes/org/emercit/szs/controldevtools/bean/CheckNotification$checkSound.class
0 → 100644
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
SzsBb/target/classes/org/emercit/szs/controldevtools/bean/ControlDeviceBean$Reboot$1.class
0 → 100644
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
SzsBb/target/classes/red.png
0 → 100644
2.93 KB
SzsBb/target/classes/reloadDevice.png
0 → 100644
3.19 KB
SzsBb/target/classes/repair.png
0 → 100644
1.03 KB
SzsBb/target/classes/replay.png
0 → 100644
1.81 KB
SzsBb/target/classes/river.png
0 → 100644
15.3 KB
SzsBb/target/classes/running.png
0 → 100644
3.78 KB
SzsBb/target/classes/siren.png
0 → 100644
2.39 KB
SzsBb/target/classes/sound.png
0 → 100644
1.95 KB
SzsBb/target/classes/start.png
0 → 100644
1.47 KB
SzsBb/target/classes/stop.png
0 → 100644
424 Bytes
SzsBb/target/classes/top.png
0 → 100644
3.31 KB
SzsBb/target/classes/up.png
0 → 100644
1.13 KB
SzsBb/target/classes/update.png
0 → 100644
1.3 KB
SzsBb/target/classes/veracityfalse.png
0 → 100644
3.82 KB
SzsBb/target/classes/veracitytrue.png
0 → 100644
4.59 KB
SzsBb/target/classes/yellow.png
0 → 100644
2.11 KB
-
Please register or sign in to post a comment