Skip to content

Commit e41d2be

Browse files
committed
Major Bug Fixes, Refactoring and Major New Features
Created User Management Classes (UserManager, UserAccount) Created UserRole and UserRoleManager Classes Created MultiSessionManager Created Session object and implemented it into SessionManager Created and implemented database SQL statement builder objects Created Custom Event/Event Handler System Changed Settings class from static to instance Moved Database.Users class to UsersManager class Made Database class constructor connect to database Completely replaced SessionActivator class with new implementation Deprecated DatabaseConnectionInfo fields and replaced with getters/setters Added HyperSQL DB as new database option in addition to H2 and SQLite Permissions now implement parent/child hierarchy Added enabling/disabling of permissions and added custom permissions Permisssions and SessionManager now fire events Made all utility classes final and have have private constructors Fixed single character concatenation Corrected any lines longer than 120 chars Made all method parameters final Added period to first line of all javadoc comments Updated SecurityTools.getFileHash to use Apache Commons Codec Library (Java 9 Fix) Signed-off-by: Joshua Gager <jlgager@jgcomptech.com>
1 parent 8bb5d55 commit e41d2be

File tree

453 files changed

+67476
-24483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

453 files changed

+67476
-24483
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
# Compiled class file
44
*.class
55

6-
# Log file
7-
*.log
8-
96
# BlueJ files
107
*.ctxt
118

@@ -20,6 +17,9 @@
2017
*.tar.gz
2118
*.rar
2219

20+
# Database Files #
21+
*.db
22+
2323
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2424
hs_err_pid*
2525

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ JavaUltimateTools is a large repository of scripts for use in any Java program.
77
- CommandInfo - Allows you to run any console command and will return the result to a string to use within your program. You can also run the command elevated and it will open in a new cmd window and show the results. Note: If elevated, result cannot be returned as a string.
88
- MessageBox and Login dialogs - Dialogs to use in JavaFX applications
99
- FXML Dialog Wrapper - Class to wrap a FXML dialog object, reducing the amount of required code
10-
- DatabaseTools - Allows communication with SQLite and H2 databases
10+
- DatabaseTools - Allows communication with H2 and SQLite databases
1111
- And Much More!
1212

1313
If you would like a more details check out the [CLASSDESCRIPTION.md](https://github.com/JGCompTech/JavaUltimateTools/blob/master/CLASSDESCRIPTION.md) file. I will be updating this with more documentation soon.

docs/allclasses-frame.html

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,35 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Sun Apr 09 03:31:51 EDT 2017 -->
6-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7-
<title>All Classes (Java Ultimate Tools 1.3.1 API)</title>
8-
<meta name="date" content="2017-04-09">
5+
<!-- Generated by javadoc (1.8.0_121) on Fri Jan 19 07:00:58 EST 2018 -->
6+
<title>All Classes</title>
7+
<meta name="date" content="2018-01-19">
98
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
109
<script type="text/javascript" src="script.js"></script>
1110
</head>
1211
<body>
1312
<h1 class="bar">All&nbsp;Classes</h1>
1413
<div class="indexContainer">
1514
<ul>
15+
<li><a href="com/jgcomptech/tools/events/ActionEvent.html" title="class in com.jgcomptech.tools.events" target="classFrame">ActionEvent</a></li>
16+
<li><a href="com/jgcomptech/tools/CollectionUtils.html" title="class in com.jgcomptech.tools" target="classFrame">CollectionUtils</a></li>
17+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/ColumnBuilder.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">ColumnBuilder</a></li>
1618
<li><a href="com/jgcomptech/tools/CommandInfo.html" title="class in com.jgcomptech.tools" target="classFrame">CommandInfo</a></li>
1719
<li><a href="com/jgcomptech/tools/CommandInfo.Output.html" title="class in com.jgcomptech.tools" target="classFrame">CommandInfo.Output</a></li>
1820
<li><a href="com/jgcomptech/tools/ComputerInfo.html" title="class in com.jgcomptech.tools" target="classFrame">ComputerInfo</a></li>
1921
<li><a href="com/jgcomptech/tools/databasetools/jbdc/Database.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">Database</a></li>
2022
<li><a href="com/jgcomptech/tools/databasetools/jbdc/Database.Settings.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">Database.Settings</a></li>
21-
<li><a href="com/jgcomptech/tools/databasetools/jbdc/Database.Users.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">Database.Users</a></li>
2223
<li><a href="com/jgcomptech/tools/databasetools/jbdc/DatabaseConnectionInfo.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">DatabaseConnectionInfo</a></li>
2324
<li><a href="com/jgcomptech/tools/databasetools/jbdc/DatabaseType.html" title="enum in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">DatabaseType</a></li>
25+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/DataTypes.html" title="enum in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">DataTypes</a></li>
26+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/DeleteBuilder.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">DeleteBuilder</a></li>
2427
<li><a href="com/jgcomptech/tools/dialogs/DialogResult.html" title="class in com.jgcomptech.tools.dialogs" target="classFrame">DialogResult</a></li>
28+
<li><a href="com/jgcomptech/tools/EmailValidator.html" title="class in com.jgcomptech.tools" target="classFrame">EmailValidator</a></li>
29+
<li><a href="com/jgcomptech/tools/events/Event.html" title="class in com.jgcomptech.tools.events" target="classFrame">Event</a></li>
30+
<li><a href="com/jgcomptech/tools/events/EventHandler.html" title="interface in com.jgcomptech.tools.events" target="classFrame"><span class="interfaceName">EventHandler</span></a></li>
31+
<li><a href="com/jgcomptech/tools/events/EventManager.html" title="class in com.jgcomptech.tools.events" target="classFrame">EventManager</a></li>
32+
<li><a href="com/jgcomptech/tools/events/EventTarget.html" title="class in com.jgcomptech.tools.events" target="classFrame">EventTarget</a></li>
33+
<li><a href="com/jgcomptech/tools/events/EventType.html" title="class in com.jgcomptech.tools.events" target="classFrame">EventType</a></li>
2534
<li><a href="com/jgcomptech/tools/dialogs/FXMLDialogWrapper.html" title="class in com.jgcomptech.tools.dialogs" target="classFrame">FXMLDialogWrapper</a></li>
2635
<li><a href="com/jgcomptech/tools/HWInfo.html" title="class in com.jgcomptech.tools" target="classFrame">HWInfo</a></li>
2736
<li><a href="com/jgcomptech/tools/HWInfo.BIOS.html" title="class in com.jgcomptech.tools" target="classFrame">HWInfo.BIOS</a></li>
@@ -37,6 +46,8 @@ <h1 class="bar">All&nbsp;Classes</h1>
3746
<li><a href="com/jgcomptech/tools/HWInfo.RAMObject.html" title="class in com.jgcomptech.tools" target="classFrame">HWInfo.RAMObject</a></li>
3847
<li><a href="com/jgcomptech/tools/HWInfo.Storage.html" title="class in com.jgcomptech.tools" target="classFrame">HWInfo.Storage</a></li>
3948
<li><a href="com/jgcomptech/tools/HWInfo.StorageObject.html" title="class in com.jgcomptech.tools" target="classFrame">HWInfo.StorageObject</a></li>
49+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/IndexBuilder.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">IndexBuilder</a></li>
50+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/InsertBuilder.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">InsertBuilder</a></li>
4051
<li><a href="com/jgcomptech/tools/dialogs/LoginDialog.html" title="class in com.jgcomptech.tools.dialogs" target="classFrame">LoginDialog</a></li>
4152
<li><a href="com/jgcomptech/tools/demo/Main.html" title="class in com.jgcomptech.tools.demo" target="classFrame">Main</a></li>
4253
<li><a href="com/jgcomptech/tools/dialogs/MessageBox.html" title="class in com.jgcomptech.tools.dialogs" target="classFrame">MessageBox</a></li>
@@ -47,10 +58,12 @@ <h1 class="bar">All&nbsp;Classes</h1>
4758
<li><a href="com/jgcomptech/tools/Misc.html" title="class in com.jgcomptech.tools" target="classFrame">Misc</a></li>
4859
<li><a href="com/jgcomptech/tools/Misc.SecondsConverter.html" title="class in com.jgcomptech.tools" target="classFrame">Misc.SecondsConverter</a></li>
4960
<li><a href="com/jgcomptech/tools/Misc.SecondsConverter.NegativeNumberException.html" title="class in com.jgcomptech.tools" target="classFrame">Misc.SecondsConverter.NegativeNumberException</a></li>
61+
<li><a href="com/jgcomptech/tools/authenication/MultiSessionManager.html" title="class in com.jgcomptech.tools.authenication" target="classFrame">MultiSessionManager</a></li>
5062
<li><a href="com/jgcomptech/tools/NativeMethods.html" title="class in com.jgcomptech.tools" target="classFrame">NativeMethods</a></li>
5163
<li><a href="com/jgcomptech/tools/NativeMethods.Kernel32.html" title="interface in com.jgcomptech.tools" target="classFrame"><span class="interfaceName">NativeMethods.Kernel32</span></a></li>
5264
<li><a href="com/jgcomptech/tools/NativeMethods.Secur32.html" title="interface in com.jgcomptech.tools" target="classFrame"><span class="interfaceName">NativeMethods.Secur32</span></a></li>
5365
<li><a href="com/jgcomptech/tools/NativeMethods.Shell32.html" title="interface in com.jgcomptech.tools" target="classFrame"><span class="interfaceName">NativeMethods.Shell32</span></a></li>
66+
<li><a href="com/jgcomptech/tools/NumberUtils.html" title="class in com.jgcomptech.tools" target="classFrame">NumberUtils</a></li>
5467
<li><a href="com/jgcomptech/tools/OSInfo.html" title="class in com.jgcomptech.tools" target="classFrame">OSInfo</a></li>
5568
<li><a href="com/jgcomptech/tools/OSInfo.Architecture.html" title="class in com.jgcomptech.tools" target="classFrame">OSInfo.Architecture</a></li>
5669
<li><a href="com/jgcomptech/tools/OSInfo.CheckIf.html" title="class in com.jgcomptech.tools" target="classFrame">OSInfo.CheckIf</a></li>
@@ -74,10 +87,12 @@ <h1 class="bar">All&nbsp;Classes</h1>
7487
<li><a href="com/jgcomptech/tools/enums/OSType.html" title="enum in com.jgcomptech.tools.enums" target="classFrame">OSType</a></li>
7588
<li><a href="com/jgcomptech/tools/enums/OtherConsts.html" title="class in com.jgcomptech.tools.enums" target="classFrame">OtherConsts</a></li>
7689
<li><a href="com/jgcomptech/tools/permissions/Permission.html" title="class in com.jgcomptech.tools.permissions" target="classFrame">Permission</a></li>
90+
<li><a href="com/jgcomptech/tools/events/PermissionEvent.html" title="class in com.jgcomptech.tools.events" target="classFrame">PermissionEvent</a></li>
7791
<li><a href="com/jgcomptech/tools/permissions/PermissionManager.html" title="class in com.jgcomptech.tools.permissions" target="classFrame">PermissionManager</a></li>
78-
<li><a href="com/jgcomptech/tools/permissions/PermissionManager.PermissionType.html" title="enum in com.jgcomptech.tools.permissions" target="classFrame">PermissionManager.PermissionType</a></li>
92+
<li><a href="com/jgcomptech/tools/permissions/PermissionManager.SystemPermissions.html" title="enum in com.jgcomptech.tools.permissions" target="classFrame">PermissionManager.SystemPermissions</a></li>
7993
<li><a href="com/jgcomptech/tools/enums/ProductEdition.html" title="enum in com.jgcomptech.tools.enums" target="classFrame">ProductEdition</a></li>
8094
<li><a href="com/jgcomptech/tools/enums/ProductType.html" title="enum in com.jgcomptech.tools.enums" target="classFrame">ProductType</a></li>
95+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/QueryBuilder.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">QueryBuilder</a></li>
8196
<li><a href="com/jgcomptech/tools/RegistryInfo.html" title="class in com.jgcomptech.tools" target="classFrame">RegistryInfo</a></li>
8297
<li><a href="com/jgcomptech/tools/RegistryInfo.HKEY.html" title="enum in com.jgcomptech.tools" target="classFrame">RegistryInfo.HKEY</a></li>
8398
<li><a href="com/jgcomptech/tools/SecurityTools.html" title="class in com.jgcomptech.tools" target="classFrame">SecurityTools</a></li>
@@ -86,13 +101,27 @@ <h1 class="bar">All&nbsp;Classes</h1>
86101
<li><a href="com/jgcomptech/tools/SecurityTools.PasswordHashes.html" title="class in com.jgcomptech.tools" target="classFrame">SecurityTools.PasswordHashes</a></li>
87102
<li><a href="com/jgcomptech/tools/SecurityTools.RSAFiles.html" title="class in com.jgcomptech.tools" target="classFrame">SecurityTools.RSAFiles</a></li>
88103
<li><a href="com/jgcomptech/tools/SecurityTools.RSAHashes.html" title="class in com.jgcomptech.tools" target="classFrame">SecurityTools.RSAHashes</a></li>
89-
<li><a href="com/jgcomptech/tools/authenication/SessionActivator.html" title="interface in com.jgcomptech.tools.authenication" target="classFrame"><span class="interfaceName">SessionActivator</span></a></li>
104+
<li><a href="com/jgcomptech/tools/authenication/Session.html" title="class in com.jgcomptech.tools.authenication" target="classFrame">Session</a></li>
105+
<li><a href="com/jgcomptech/tools/authenication/SessionActivator.html" title="class in com.jgcomptech.tools.authenication" target="classFrame">SessionActivator</a></li>
106+
<li><a href="com/jgcomptech/tools/events/SessionEvent.html" title="class in com.jgcomptech.tools.events" target="classFrame">SessionEvent</a></li>
90107
<li><a href="com/jgcomptech/tools/authenication/SessionManager.html" title="class in com.jgcomptech.tools.authenication" target="classFrame">SessionManager</a></li>
91-
<li><a href="com/jgcomptech/tools/authenication/SessionManager.UserType.html" title="enum in com.jgcomptech.tools.authenication" target="classFrame">SessionManager.UserType</a></li>
108+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/SQLBuilder.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">SQLBuilder</a></li>
92109
<li><a href="com/jgcomptech/tools/StringUtils.html" title="class in com.jgcomptech.tools" target="classFrame">StringUtils</a></li>
110+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/TableBuilder.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">TableBuilder</a></li>
111+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/TableNotFoundException.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">TableNotFoundException</a></li>
112+
<li><a href="com/jgcomptech/tools/tests/Tests.html" title="class in com.jgcomptech.tools.tests" target="classFrame">Tests</a></li>
113+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/TypedStatement.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">TypedStatement</a></li>
114+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/TypedStatement.Type.html" title="enum in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">TypedStatement.Type</a></li>
115+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/UpdateBuilder.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">UpdateBuilder</a></li>
116+
<li><a href="com/jgcomptech/tools/authenication/UserAccount.html" title="class in com.jgcomptech.tools.authenication" target="classFrame">UserAccount</a></li>
117+
<li><a href="com/jgcomptech/tools/authenication/UserManager.html" title="class in com.jgcomptech.tools.authenication" target="classFrame">UserManager</a></li>
118+
<li><a href="com/jgcomptech/tools/authenication/UserRole.html" title="class in com.jgcomptech.tools.authenication" target="classFrame">UserRole</a></li>
119+
<li><a href="com/jgcomptech/tools/authenication/UserRoleManager.html" title="class in com.jgcomptech.tools.authenication" target="classFrame">UserRoleManager</a></li>
120+
<li><a href="com/jgcomptech/tools/authenication/UserRoleManager.SystemUserRoles.html" title="enum in com.jgcomptech.tools.authenication" target="classFrame">UserRoleManager.SystemUserRoles</a></li>
93121
<li><a href="com/jgcomptech/tools/enums/VERSuite.html" title="enum in com.jgcomptech.tools.enums" target="classFrame">VERSuite</a></li>
94122
<li><a href="com/jgcomptech/tools/WebTools.html" title="class in com.jgcomptech.tools" target="classFrame">WebTools</a></li>
95123
<li><a href="com/jgcomptech/tools/WebTools.HTML.html" title="class in com.jgcomptech.tools" target="classFrame">WebTools.HTML</a></li>
124+
<li><a href="com/jgcomptech/tools/databasetools/jbdc/WhereBuilder.html" title="class in com.jgcomptech.tools.databasetools.jbdc" target="classFrame">WhereBuilder</a></li>
96125
<li><a href="com/jgcomptech/tools/enums/WMIClasses.html" title="enum in com.jgcomptech.tools.enums" target="classFrame">WMIClasses</a></li>
97126
<li><a href="com/jgcomptech/tools/enums/WMIClasses.COM.html" title="enum in com.jgcomptech.tools.enums" target="classFrame">WMIClasses.COM</a></li>
98127
<li><a href="com/jgcomptech/tools/enums/WMIClasses.File_System.html" title="enum in com.jgcomptech.tools.enums" target="classFrame">WMIClasses.File_System</a></li>

0 commit comments

Comments
 (0)