commit 6671db2d776a9a5852aa00733e25404b8bdef010 Author: inghamn Date: Thu Dec 17 22:11:39 2009 +0000 Initial import of Rosehill from 2005 version git-svn-id: https://rosehill.googlecode.com/svn/trunk@1 100bd78a-fc82-11de-b5bc-ffd2847a4b57 diff --git a/WEB-INF/classes/RoseHill/Deed.class b/WEB-INF/classes/RoseHill/Deed.class new file mode 100644 index 0000000..1da3eb3 Binary files /dev/null and b/WEB-INF/classes/RoseHill/Deed.class differ diff --git a/WEB-INF/classes/RoseHill/DeedBrowse.class b/WEB-INF/classes/RoseHill/DeedBrowse.class new file mode 100644 index 0000000..13a347f Binary files /dev/null and b/WEB-INF/classes/RoseHill/DeedBrowse.class differ diff --git a/WEB-INF/classes/RoseHill/DeedQuery.class b/WEB-INF/classes/RoseHill/DeedQuery.class new file mode 100644 index 0000000..3e225c2 Binary files /dev/null and b/WEB-INF/classes/RoseHill/DeedQuery.class differ diff --git a/WEB-INF/classes/RoseHill/DeedZoom.class b/WEB-INF/classes/RoseHill/DeedZoom.class new file mode 100644 index 0000000..58c8278 Binary files /dev/null and b/WEB-INF/classes/RoseHill/DeedZoom.class differ diff --git a/WEB-INF/classes/RoseHill/RHAddUser.class b/WEB-INF/classes/RoseHill/RHAddUser.class new file mode 100644 index 0000000..da53d08 Binary files /dev/null and b/WEB-INF/classes/RoseHill/RHAddUser.class differ diff --git a/WEB-INF/classes/RoseHill/RHAdminLogin.class b/WEB-INF/classes/RoseHill/RHAdminLogin.class new file mode 100644 index 0000000..73ae368 Binary files /dev/null and b/WEB-INF/classes/RoseHill/RHAdminLogin.class differ diff --git a/WEB-INF/classes/RoseHill/RHAdminMenu.class b/WEB-INF/classes/RoseHill/RHAdminMenu.class new file mode 100644 index 0000000..d7cbe5e Binary files /dev/null and b/WEB-INF/classes/RoseHill/RHAdminMenu.class differ diff --git a/WEB-INF/classes/RoseHill/RHDeleteUser.class b/WEB-INF/classes/RoseHill/RHDeleteUser.class new file mode 100644 index 0000000..ba20199 Binary files /dev/null and b/WEB-INF/classes/RoseHill/RHDeleteUser.class differ diff --git a/WEB-INF/classes/RoseHill/RHLogout.class b/WEB-INF/classes/RoseHill/RHLogout.class new file mode 100644 index 0000000..523093c Binary files /dev/null and b/WEB-INF/classes/RoseHill/RHLogout.class differ diff --git a/WEB-INF/classes/RoseHill/RHUserLogin.class b/WEB-INF/classes/RoseHill/RHUserLogin.class new file mode 100644 index 0000000..9521755 Binary files /dev/null and b/WEB-INF/classes/RoseHill/RHUserLogin.class differ diff --git a/WEB-INF/classes/RoseHill/RHUserMenu.class b/WEB-INF/classes/RoseHill/RHUserMenu.class new file mode 100644 index 0000000..8e5c160 Binary files /dev/null and b/WEB-INF/classes/RoseHill/RHUserMenu.class differ diff --git a/WEB-INF/classes/RoseHill/Rose.class b/WEB-INF/classes/RoseHill/Rose.class new file mode 100644 index 0000000..bf89ab5 Binary files /dev/null and b/WEB-INF/classes/RoseHill/Rose.class differ diff --git a/WEB-INF/classes/RoseHill/RoseBrowse.class b/WEB-INF/classes/RoseHill/RoseBrowse.class new file mode 100644 index 0000000..6a86df8 Binary files /dev/null and b/WEB-INF/classes/RoseHill/RoseBrowse.class differ diff --git a/WEB-INF/classes/RoseHill/RoseQuery.class b/WEB-INF/classes/RoseHill/RoseQuery.class new file mode 100644 index 0000000..0211468 Binary files /dev/null and b/WEB-INF/classes/RoseHill/RoseQuery.class differ diff --git a/WEB-INF/classes/RoseHill/RoseZoom.class b/WEB-INF/classes/RoseHill/RoseZoom.class new file mode 100644 index 0000000..c5aac24 Binary files /dev/null and b/WEB-INF/classes/RoseHill/RoseZoom.class differ diff --git a/WEB-INF/classes/RoseHill/showImage.class b/WEB-INF/classes/RoseHill/showImage.class new file mode 100644 index 0000000..9c1d479 Binary files /dev/null and b/WEB-INF/classes/RoseHill/showImage.class differ diff --git a/WEB-INF/classes/r.tar b/WEB-INF/classes/r.tar new file mode 100644 index 0000000..3c64f7e Binary files /dev/null and b/WEB-INF/classes/r.tar differ diff --git a/WEB-INF/web.xml b/WEB-INF/web.xml new file mode 100644 index 0000000..1f95789 --- /dev/null +++ b/WEB-INF/web.xml @@ -0,0 +1,275 @@ + + + + + + + + + + Noisy Program + + This is version 1. of an application to perform + a wild and wonderful task, based on servlets and + JSP pages. It was written by WS + + + + + + + + + + + RHUserLogin + + The User Menu + + RoseHill.RHUserLogin + 5 + + + RHLogout + + The User Menu + + RoseHill.RHLogout + 5 + + + + RHUserMenu + + The User Menu + + RoseHill.RHUserMenu + + + + RHAdminLogin + + The User Menu + + RoseHill.RHAdminLogin + + + + RHAdminMenu + + The User Menu + + RoseHill.RHAdminMenu + + + + RHAddUser + + The User Menu + + RoseHill.RHAddUser + + + + RHDeleteUser + + The User Menu + + RoseHill.RHDeleteUser + + + + Deed + + Add new records + + RoseHill.Deed + + + + DeedBrowse + + Add new records + + RoseHill.DeedBrowse + + + + DeedZoom + + Add new records + + RoseHill.DeedZoom + + + + Rose + + Add new records + + RoseHill.Rose + + + RoseBrowse + + Add new records + + RoseHill.RoseBrowse + + + + RoseZoom + + Add new records + + RoseHill.RoseZoom + + + showImage + + Add new records + + RoseHill.showImage + + + + + Deed + /Deed + + + DeedBrowse + /DeedBrowse + + + DeedZoom + /DeedZoom + + + Rose + /Rose + + + RoseBrowse + /RoseBrowse + + + RoseZoom + /RoseZoom + + + + RHUserLogin + /RHUserLogin + + + RHUserMenu + /RHUserMenu + + + RHLogout + /RHLogout + + + RHAdminLogin + /AHAdminLogin + + + RHAdminMenu + /AHAdminMenu + + + RHAddUser + /RHAddUser + + + RHDeleteUser + /RHDeleteUser + + + showImage + /showImage + + + + + + + 120 + + + + diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..fddf0fe --- /dev/null +++ b/build.xml @@ -0,0 +1,476 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/WEB-INF/classes/RoseHill/Deed.class b/build/WEB-INF/classes/RoseHill/Deed.class new file mode 100644 index 0000000..1da3eb3 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/Deed.class differ diff --git a/build/WEB-INF/classes/RoseHill/DeedBrowse.class b/build/WEB-INF/classes/RoseHill/DeedBrowse.class new file mode 100644 index 0000000..13a347f Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/DeedBrowse.class differ diff --git a/build/WEB-INF/classes/RoseHill/DeedZoom.class b/build/WEB-INF/classes/RoseHill/DeedZoom.class new file mode 100644 index 0000000..58c8278 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/DeedZoom.class differ diff --git a/build/WEB-INF/classes/RoseHill/RHAddUser.class b/build/WEB-INF/classes/RoseHill/RHAddUser.class new file mode 100644 index 0000000..da53d08 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/RHAddUser.class differ diff --git a/build/WEB-INF/classes/RoseHill/RHAdminLogin.class b/build/WEB-INF/classes/RoseHill/RHAdminLogin.class new file mode 100644 index 0000000..73ae368 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/RHAdminLogin.class differ diff --git a/build/WEB-INF/classes/RoseHill/RHAdminMenu.class b/build/WEB-INF/classes/RoseHill/RHAdminMenu.class new file mode 100644 index 0000000..d7cbe5e Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/RHAdminMenu.class differ diff --git a/build/WEB-INF/classes/RoseHill/RHDeleteUser.class b/build/WEB-INF/classes/RoseHill/RHDeleteUser.class new file mode 100644 index 0000000..ba20199 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/RHDeleteUser.class differ diff --git a/build/WEB-INF/classes/RoseHill/RHLogout.class b/build/WEB-INF/classes/RoseHill/RHLogout.class new file mode 100644 index 0000000..523093c Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/RHLogout.class differ diff --git a/build/WEB-INF/classes/RoseHill/RHUserLogin.class b/build/WEB-INF/classes/RoseHill/RHUserLogin.class new file mode 100644 index 0000000..9521755 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/RHUserLogin.class differ diff --git a/build/WEB-INF/classes/RoseHill/RHUserMenu.class b/build/WEB-INF/classes/RoseHill/RHUserMenu.class new file mode 100644 index 0000000..8e5c160 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/RHUserMenu.class differ diff --git a/build/WEB-INF/classes/RoseHill/Rose.class b/build/WEB-INF/classes/RoseHill/Rose.class new file mode 100644 index 0000000..bf89ab5 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/Rose.class differ diff --git a/build/WEB-INF/classes/RoseHill/RoseBrowse.class b/build/WEB-INF/classes/RoseHill/RoseBrowse.class new file mode 100644 index 0000000..6a86df8 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/RoseBrowse.class differ diff --git a/build/WEB-INF/classes/RoseHill/RoseZoom.class b/build/WEB-INF/classes/RoseHill/RoseZoom.class new file mode 100644 index 0000000..c5aac24 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/RoseZoom.class differ diff --git a/build/WEB-INF/classes/RoseHill/showImage.class b/build/WEB-INF/classes/RoseHill/showImage.class new file mode 100644 index 0000000..9c1d479 Binary files /dev/null and b/build/WEB-INF/classes/RoseHill/showImage.class differ diff --git a/build/WEB-INF/classes/rose.tar b/build/WEB-INF/classes/rose.tar new file mode 100644 index 0000000..5053d47 Binary files /dev/null and b/build/WEB-INF/classes/rose.tar differ diff --git a/cpc.bat b/cpc.bat new file mode 100644 index 0000000..7edf018 --- /dev/null +++ b/cpc.bat @@ -0,0 +1,7 @@ +@echo off +if ""%1""=="""" goto usage +copy .\build\WEB-INF\classes\%1\*.class .\WEB-INf\classes\%1\. +goto done +:usage +echo " need to pass an argument to cpc " +:done diff --git a/cpc.sh b/cpc.sh new file mode 100644 index 0000000..54a38c2 --- /dev/null +++ b/cpc.sh @@ -0,0 +1,8 @@ +#!/bin/sh +/bin/cp ./build/WEB-INF/classes/$1/*.class ./WEB-INF/classes/$1/. + + + + + + diff --git a/docs.tar b/docs.tar new file mode 100644 index 0000000..c611ff9 Binary files /dev/null and b/docs.tar differ diff --git a/docs/RoseHill/Deed.html b/docs/RoseHill/Deed.html new file mode 100644 index 0000000..54f5391 --- /dev/null +++ b/docs/RoseHill/Deed.html @@ -0,0 +1,301 @@ + + + + + + +: Class Deed + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class Deed

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.Deed
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class Deed
extends javax.servlet.http.HttpServlet
+ +

+Adds deed records to RoseHill database. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
Deed() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Shows the deed form to the user.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Saves the users input in the deed form in the database.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+Deed

+
+public Deed()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Shows the deed form to the user.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Saves the users input in the deed form in the database.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/DeedBrowse.html b/docs/RoseHill/DeedBrowse.html new file mode 100644 index 0000000..fb1288d --- /dev/null +++ b/docs/RoseHill/DeedBrowse.html @@ -0,0 +1,301 @@ + + + + + + +: Class DeedBrowse + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class DeedBrowse

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.DeedBrowse
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class DeedBrowse
extends javax.servlet.http.HttpServlet
+ +

+The search engine for the deed records in the databse. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
DeedBrowse() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Shows the deed search form to the user.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Presents the output of the search to the user in case there is a match.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+DeedBrowse

+
+public DeedBrowse()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Shows the deed search form to the user.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Presents the output of the search to the user in case there is a match.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/DeedZoom.html b/docs/RoseHill/DeedZoom.html new file mode 100644 index 0000000..bc3f186 --- /dev/null +++ b/docs/RoseHill/DeedZoom.html @@ -0,0 +1,330 @@ + + + + + + +: Class DeedZoom + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class DeedZoom

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.DeedZoom
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class DeedZoom
extends javax.servlet.http.HttpServlet
+ +

+Shows a deed record in a form and lets the user to update or delete it. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + +
+Field Summary
+static java.lang.String[]allmonths + +
+           
+  + + + + + + + + + + +
+Constructor Summary
DeedZoom() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Shows a deed record in a form.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Updates or deletes a deed record according to users request.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+allmonths

+
+public static java.lang.String[] allmonths
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+DeedZoom

+
+public DeedZoom()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Shows a deed record in a form.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Updates or deletes a deed record according to users request.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/RHAddUser.html b/docs/RoseHill/RHAddUser.html new file mode 100644 index 0000000..1290fc9 --- /dev/null +++ b/docs/RoseHill/RHAddUser.html @@ -0,0 +1,301 @@ + + + + + + +: Class RHAddUser + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class RHAddUser

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.RHAddUser
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class RHAddUser
extends javax.servlet.http.HttpServlet
+ +

+Adds a new user to the authorized users. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
RHAddUser() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Shows a form to input his username.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Saves the username in the authorzied table of users to this database.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RHAddUser

+
+public RHAddUser()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Shows a form to input his username.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Saves the username in the authorzied table of users to this database.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/RHAdminLogin.html b/docs/RoseHill/RHAdminLogin.html new file mode 100644 index 0000000..f0ecf09 --- /dev/null +++ b/docs/RoseHill/RHAdminLogin.html @@ -0,0 +1,301 @@ + + + + + + +: Class RHAdminLogin + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class RHAdminLogin

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.RHAdminLogin
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class RHAdminLogin
extends javax.servlet.http.HttpServlet
+ +

+The admin login interface. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
RHAdminLogin() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Presents the login screen for the admin user.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Validates if the user is an admin authorized.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RHAdminLogin

+
+public RHAdminLogin()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Presents the login screen for the admin user.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Validates if the user is an admin authorized.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/RHAdminMenu.html b/docs/RoseHill/RHAdminMenu.html new file mode 100644 index 0000000..5daa66e --- /dev/null +++ b/docs/RoseHill/RHAdminMenu.html @@ -0,0 +1,301 @@ + + + + + + +: Class RHAdminMenu + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class RHAdminMenu

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.RHAdminMenu
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class RHAdminMenu
extends javax.servlet.http.HttpServlet
+ +

+Adds a new user to the authorized users. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
RHAdminMenu() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Presents a form with menu of selections.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Presents the user with a selection menu.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RHAdminMenu

+
+public RHAdminMenu()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Presents a form with menu of selections.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Presents the user with a selection menu.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/RHDeleteUser.html b/docs/RoseHill/RHDeleteUser.html new file mode 100644 index 0000000..fbf63a7 --- /dev/null +++ b/docs/RoseHill/RHDeleteUser.html @@ -0,0 +1,320 @@ + + + + + + +: Class RHDeleteUser + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class RHDeleteUser

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.RHDeleteUser
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class RHDeleteUser
extends javax.servlet.http.HttpServlet
+ +

+Adds a new user to the authorized users. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
RHDeleteUser() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Shows a form to input the username that need to be deleted.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Deletes a user from the authorized users.
+ java.lang.StringgetUsers(java.io.PrintWriter out) + +
+          Gets the list of current authorized users.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RHDeleteUser

+
+public RHDeleteUser()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Shows a form to input the username that need to be deleted.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Deletes a user from the authorized users.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+
+ +

+getUsers

+
+public java.lang.String getUsers(java.io.PrintWriter out)
+
+
Gets the list of current authorized users.
+
Parameters:
out - the ouput stream
Returns:
String the list of users
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/RHLogout.html b/docs/RoseHill/RHLogout.html new file mode 100644 index 0000000..52be526 --- /dev/null +++ b/docs/RoseHill/RHLogout.html @@ -0,0 +1,243 @@ + + + + + + +: Class RHLogout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class RHLogout

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.RHLogout
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class RHLogout
extends javax.servlet.http.HttpServlet
+ +

+Logs out the user from the system and destroys the session instance. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
RHLogout() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Logs the user out.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RHLogout

+
+public RHLogout()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Logs the user out.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/RHUserLogin.html b/docs/RoseHill/RHUserLogin.html new file mode 100644 index 0000000..66ffcd0 --- /dev/null +++ b/docs/RoseHill/RHUserLogin.html @@ -0,0 +1,317 @@ + + + + + + +: Class RHUserLogin + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class RHUserLogin

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.RHUserLogin
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class RHUserLogin
extends javax.servlet.http.HttpServlet
+ +

+The login process of users to the system. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
RHUserLogin() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Shows the login screen for the user to input username and password.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Validates the username and password.
+ booleanmt() + +
+           
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RHUserLogin

+
+public RHUserLogin()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Shows the login screen for the user to input username and password.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Validates the username and password.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+
+ +

+mt

+
+public boolean mt()
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/RHUserMenu.html b/docs/RoseHill/RHUserMenu.html new file mode 100644 index 0000000..ca7b653 --- /dev/null +++ b/docs/RoseHill/RHUserMenu.html @@ -0,0 +1,301 @@ + + + + + + +: Class RHUserMenu + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class RHUserMenu

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.RHUserMenu
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class RHUserMenu
extends javax.servlet.http.HttpServlet
+ +

+The main selection menu of this application. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
RHUserMenu() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Presents the menu selection for the user.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Presents the menu selection for the user.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RHUserMenu

+
+public RHUserMenu()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Presents the menu selection for the user.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Presents the menu selection for the user.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/Rose.html b/docs/RoseHill/Rose.html new file mode 100644 index 0000000..5444a3e --- /dev/null +++ b/docs/RoseHill/Rose.html @@ -0,0 +1,301 @@ + + + + + + +: Class Rose + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class Rose

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.Rose
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class Rose
extends javax.servlet.http.HttpServlet
+ +

+Adds a new internment record to the rosehill database. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
Rose() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Shows the internment form for new data input.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Adds the new record to the database.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+Rose

+
+public Rose()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Shows the internment form for new data input.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Adds the new record to the database.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/RoseBrowse.html b/docs/RoseHill/RoseBrowse.html new file mode 100644 index 0000000..077b95a --- /dev/null +++ b/docs/RoseHill/RoseBrowse.html @@ -0,0 +1,301 @@ + + + + + + +: Class RoseBrowse + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class RoseBrowse

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.RoseBrowse
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class RoseBrowse
extends javax.servlet.http.HttpServlet
+ +

+Adds a new user to the authorized users. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
RoseBrowse() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Presents the search engine page of internement databse.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Shows the records that matches the users query.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RoseBrowse

+
+public RoseBrowse()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Presents the search engine page of internement databse.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Shows the records that matches the users query.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/RoseZoom.html b/docs/RoseHill/RoseZoom.html new file mode 100644 index 0000000..2973b5b --- /dev/null +++ b/docs/RoseHill/RoseZoom.html @@ -0,0 +1,301 @@ + + + + + + +: Class RoseZoom + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class RoseZoom

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.RoseZoom
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class RoseZoom
extends javax.servlet.http.HttpServlet
+ +

+Shows an internment record in a form for view, update or delete operations. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
RoseZoom() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Shows an internement reocrd.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Perform update or delete operations on an internment record.
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+RoseZoom

+
+public RoseZoom()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Shows an internement reocrd.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
Perform update or delete operations on an internment record.
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/package-frame.html b/docs/RoseHill/package-frame.html new file mode 100644 index 0000000..95ae315 --- /dev/null +++ b/docs/RoseHill/package-frame.html @@ -0,0 +1,52 @@ + + + + + + +: Package RoseHill + + + + + +RoseHill + + + + +
+Classes  + +
+Deed +
+DeedBrowse +
+DeedZoom +
+RHAddUser +
+RHAdminLogin +
+RHAdminMenu +
+RHDeleteUser +
+RHLogout +
+RHUserLogin +
+RHUserMenu +
+Rose +
+RoseBrowse +
+RoseZoom +
+showImage
+ + + + diff --git a/docs/RoseHill/package-summary.html b/docs/RoseHill/package-summary.html new file mode 100644 index 0000000..442b73b --- /dev/null +++ b/docs/RoseHill/package-summary.html @@ -0,0 +1,154 @@ + + + + + + +: Package RoseHill + + + + + + + + + + + + + + + + + +
+ +
+ + +
+

+Package RoseHill +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
DeedAdds deed records to RoseHill database.
DeedBrowseThe search engine for the deed records in the databse.
DeedZoomShows a deed record in a form and lets the user to update or delete it.
RHAddUserAdds a new user to the authorized users.
RHAdminLoginThe admin login interface.
RHAdminMenuAdds a new user to the authorized users.
RHDeleteUserAdds a new user to the authorized users.
RHLogoutLogs out the user from the system and destroys the session instance.
RHUserLoginThe login process of users to the system.
RHUserMenuThe main selection menu of this application.
RoseAdds a new internment record to the rosehill database.
RoseBrowseAdds a new user to the authorized users.
RoseZoomShows an internment record in a form for view, update or delete operations.
showImageShows an image of a location in Rose Hill based on lot and section.
+  + +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/package-tree.html b/docs/RoseHill/package-tree.html new file mode 100644 index 0000000..81afdd8 --- /dev/null +++ b/docs/RoseHill/package-tree.html @@ -0,0 +1,103 @@ + + + + + + +: RoseHill Class Hierarchy + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Hierarchy For Package RoseHill +

+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/RoseHill/showImage.html b/docs/RoseHill/showImage.html new file mode 100644 index 0000000..76681ab --- /dev/null +++ b/docs/RoseHill/showImage.html @@ -0,0 +1,298 @@ + + + + + + +: Class showImage + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +RoseHill +
+Class showImage

+
+java.lang.Object
+  |
+  +--javax.servlet.GenericServlet
+        |
+        +--javax.servlet.http.HttpServlet
+              |
+              +--RoseHill.showImage
+
+
+
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
+
+
+
+
public class showImage
extends javax.servlet.http.HttpServlet
+ +

+Shows an image of a location in Rose Hill based on lot and section. +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
showImage() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddatabaseConnect() + +
+          Connects to the rosehill database.
+ voiddatabaseDisconnect() + +
+          Disconnects from the rosehill database.
+ voiddoGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+          Shows the image of the location of selected lot and section.
+ voiddoPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse res) + +
+           
+ + + + + + + +
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
+ + + + + + + +
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+showImage

+
+public showImage()
+
+
+ + + + + + + + +
+Method Detail
+ +

+doGet

+
+public void doGet(javax.servlet.http.HttpServletRequest req,
+                  javax.servlet.http.HttpServletResponse res)
+           throws javax.servlet.ServletException,
+                  java.io.IOException
+
+
Shows the image of the location of selected lot and section.
+
Overrides:
doGet in class javax.servlet.http.HttpServlet
+
+
+
Parameters:
req - the request input stream
res - the ouput stream
Throws:
javax.servlet.ServletException -  
java.io.IOException -  
+
+
+
+ +

+doPost

+
+public void doPost(javax.servlet.http.HttpServletRequest req,
+                   javax.servlet.http.HttpServletResponse res)
+            throws javax.servlet.ServletException,
+                   java.io.IOException
+
+
+
Overrides:
doPost in class javax.servlet.http.HttpServlet
+
+
+
+ +

+databaseConnect

+
+public void databaseConnect()
+
+
Connects to the rosehill database.
+
+ +

+databaseDisconnect

+
+public void databaseDisconnect()
+
+
Disconnects from the rosehill database.
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/allclasses-frame.html b/docs/allclasses-frame.html new file mode 100644 index 0000000..70f609f --- /dev/null +++ b/docs/allclasses-frame.html @@ -0,0 +1,51 @@ + + + + + + +All Classes + + + + + +All Classes +
+ + + + + +
Deed +
+DeedBrowse +
+DeedZoom +
+RHAddUser +
+RHAdminLogin +
+RHAdminMenu +
+RHDeleteUser +
+RHLogout +
+RHUserLogin +
+RHUserMenu +
+Rose +
+RoseBrowse +
+RoseZoom +
+showImage +
+
+ + + diff --git a/docs/deprecated-list.html b/docs/deprecated-list.html new file mode 100644 index 0000000..6e68f42 --- /dev/null +++ b/docs/deprecated-list.html @@ -0,0 +1,89 @@ + + + + + + +: Deprecated List + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Deprecated API

+
+
+ + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/help-doc.html b/docs/help-doc.html new file mode 100644 index 0000000..3cc0492 --- /dev/null +++ b/docs/help-doc.html @@ -0,0 +1,138 @@ + + + + + + +: API Help + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

+
+

+Class/Interface

+
+ +

+Each class, interface, inner class and inner interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. +
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/index-all.html b/docs/index-all.html new file mode 100644 index 0000000..3b45471 --- /dev/null +++ b/docs/index-all.html @@ -0,0 +1,324 @@ + + + + + + +: Index + + + + + + + + + + + + + + + + + +
+ +
+ + +A D G M R S
+

+A

+
+
allmonths - +Static variable in class RoseHill.DeedZoom +
  +
+
+

+D

+
+
databaseConnect() - +Method in class RoseHill.RHAdminMenu +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.RHUserMenu +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.RHUserLogin +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.Deed +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.showImage +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.Rose +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.DeedBrowse +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.RoseZoom +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.RoseBrowse +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.DeedZoom +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.RHAdminLogin +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.RHDeleteUser +
Connects to the rosehill database. +
databaseConnect() - +Method in class RoseHill.RHAddUser +
Connects to the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.RHAdminMenu +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.RHUserMenu +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.RHUserLogin +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.Deed +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.showImage +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.Rose +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.DeedBrowse +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.RoseZoom +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.RoseBrowse +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.DeedZoom +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.RHAdminLogin +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.RHDeleteUser +
Disconnects from the rosehill database. +
databaseDisconnect() - +Method in class RoseHill.RHAddUser +
Disconnects from the rosehill database. +
Deed - class RoseHill.Deed.
Adds deed records to RoseHill database.
Deed() - +Constructor for class RoseHill.Deed +
  +
DeedBrowse - class RoseHill.DeedBrowse.
The search engine for the deed records in the databse.
DeedBrowse() - +Constructor for class RoseHill.DeedBrowse +
  +
DeedZoom - class RoseHill.DeedZoom.
Shows a deed record in a form and lets the user to update or delete it.
DeedZoom() - +Constructor for class RoseHill.DeedZoom +
  +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHAdminMenu +
Presents a form with menu of selections. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHUserMenu +
Presents the menu selection for the user. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHUserLogin +
Shows the login screen for the user to input username and password. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.Deed +
Shows the deed form to the user. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.showImage +
Shows the image of the location of selected lot and section. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHLogout +
Logs the user out. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.Rose +
Shows the internment form for new data input. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.DeedBrowse +
Shows the deed search form to the user. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RoseZoom +
Shows an internement reocrd. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RoseBrowse +
Presents the search engine page of internement databse. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.DeedZoom +
Shows a deed record in a form. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHAdminLogin +
Presents the login screen for the admin user. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHDeleteUser +
Shows a form to input the username that need to be deleted. +
doGet(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHAddUser +
Shows a form to input his username. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHAdminMenu +
Presents the user with a selection menu. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHUserMenu +
Presents the menu selection for the user. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHUserLogin +
Validates the username and password. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.Deed +
Saves the users input in the deed form in the database. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.showImage +
  +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.Rose +
Adds the new record to the database. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.DeedBrowse +
Presents the output of the search to the user in case there is a match. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RoseZoom +
Perform update or delete operations on an internment record. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RoseBrowse +
Shows the records that matches the users query. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.DeedZoom +
Updates or deletes a deed record according to users request. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHAdminLogin +
Validates if the user is an admin authorized. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHDeleteUser +
Deletes a user from the authorized users. +
doPost(HttpServletRequest, HttpServletResponse) - +Method in class RoseHill.RHAddUser +
Saves the username in the authorzied table of users to this database. +
+
+

+G

+
+
getUsers(PrintWriter) - +Method in class RoseHill.RHDeleteUser +
Gets the list of current authorized users. +
+
+

+M

+
+
mt() - +Method in class RoseHill.RHUserLogin +
  +
+
+

+R

+
+
RHAddUser - class RoseHill.RHAddUser.
Adds a new user to the authorized users.
RHAddUser() - +Constructor for class RoseHill.RHAddUser +
  +
RHAdminLogin - class RoseHill.RHAdminLogin.
The admin login interface.
RHAdminLogin() - +Constructor for class RoseHill.RHAdminLogin +
  +
RHAdminMenu - class RoseHill.RHAdminMenu.
Adds a new user to the authorized users.
RHAdminMenu() - +Constructor for class RoseHill.RHAdminMenu +
  +
RHDeleteUser - class RoseHill.RHDeleteUser.
Adds a new user to the authorized users.
RHDeleteUser() - +Constructor for class RoseHill.RHDeleteUser +
  +
RHLogout - class RoseHill.RHLogout.
Logs out the user from the system and destroys the session instance.
RHLogout() - +Constructor for class RoseHill.RHLogout +
  +
RHUserLogin - class RoseHill.RHUserLogin.
The login process of users to the system.
RHUserLogin() - +Constructor for class RoseHill.RHUserLogin +
  +
RHUserMenu - class RoseHill.RHUserMenu.
The main selection menu of this application.
RHUserMenu() - +Constructor for class RoseHill.RHUserMenu +
  +
Rose - class RoseHill.Rose.
Adds a new internment record to the rosehill database.
Rose() - +Constructor for class RoseHill.Rose +
  +
RoseBrowse - class RoseHill.RoseBrowse.
Adds a new user to the authorized users.
RoseBrowse() - +Constructor for class RoseHill.RoseBrowse +
  +
RoseHill - package RoseHill
 
RoseZoom - class RoseHill.RoseZoom.
Shows an internment record in a form for view, update or delete operations.
RoseZoom() - +Constructor for class RoseHill.RoseZoom +
  +
+
+

+S

+
+
showImage - class RoseHill.showImage.
Shows an image of a location in Rose Hill based on lot and section.
showImage() - +Constructor for class RoseHill.showImage +
  +
+
+A D G M R S + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..81843ae --- /dev/null +++ b/docs/index.html @@ -0,0 +1,22 @@ + + + + + + +Generated Documentation (Untitled) + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to <A HREF="RoseHill/package-summary.html">Non-frame version.</A> + diff --git a/docs/overview-tree.html b/docs/overview-tree.html new file mode 100644 index 0000000..6d0c868 --- /dev/null +++ b/docs/overview-tree.html @@ -0,0 +1,105 @@ + + + + + + +: Class Hierarchy + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
RoseHill
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/package-list b/docs/package-list new file mode 100644 index 0000000..71a4386 --- /dev/null +++ b/docs/package-list @@ -0,0 +1 @@ +RoseHill diff --git a/docs/packages.html b/docs/packages.html new file mode 100644 index 0000000..0775d2c --- /dev/null +++ b/docs/packages.html @@ -0,0 +1,26 @@ + + + + + + + + + + + + +
+ +
+ +
+
+The front page has been relocated.Please see: +
+          Frame version +
+          Non-frame version.
+ + + diff --git a/docs/serialized-form.html b/docs/serialized-form.html new file mode 100644 index 0000000..083699f --- /dev/null +++ b/docs/serialized-form.html @@ -0,0 +1,1521 @@ + + + + + + +Serialized Form + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
+

+Serialized Form

+
+
+ + + + + +
+Package RoseHill
+ +

+ + + + + +
+Class RoseHill.Deed implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+baseNumber

+
+int baseNumber
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+unicID

+
+java.lang.String unicID
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+password

+
+java.lang.String password
+
+
+ +

+ + + + + +
+Class RoseHill.DeedBrowse implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+out

+
+java.io.PrintWriter out
+
+
+
+ +

+iniFile

+
+java.lang.String iniFile
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+sortby

+
+java.lang.String sortby
+
+
+
+ +

+accessUser

+
+java.lang.String accessUser
+
+
+
+ +

+accessPass

+
+java.lang.String accessPass
+
+
+
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+debug

+
+boolean debug
+
+
+ +

+ + + + + +
+Class RoseHill.DeedZoom implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+debug

+
+boolean debug
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+accessUser

+
+java.lang.String accessUser
+
+
+
+ +

+accessPass

+
+java.lang.String accessPass
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+password

+
+java.lang.String password
+
+
+ +

+ + + + + +
+Class RoseHill.RHAddUser implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+WEBserver

+
+java.lang.String WEBserver
+
+
Interface to RoseHill data base.
+
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+url2

+
+java.lang.String url2
+
+
+
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+unicID

+
+java.lang.String unicID
+
+
+
+ +

+key

+
+java.lang.String key
+
+
+
+ +

+secretKey

+
+java.lang.String secretKey
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+password

+
+java.lang.String password
+
+
+ +

+ + + + + +
+Class RoseHill.RHAdminLogin implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+WEBserver

+
+java.lang.String WEBserver
+
+
+
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+unicID

+
+java.lang.String unicID
+
+
+
+ +

+key

+
+java.lang.String key
+
+
+
+ +

+secretKey

+
+java.lang.String secretKey
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+password

+
+java.lang.String password
+
+
+ +

+ + + + + +
+Class RoseHill.RHAdminMenu implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+WEBserver

+
+java.lang.String WEBserver
+
+
+
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+unicID

+
+java.lang.String unicID
+
+
+
+ +

+key

+
+java.lang.String key
+
+
+
+ +

+secretKey

+
+java.lang.String secretKey
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+password

+
+java.lang.String password
+
+
+ +

+ + + + + +
+Class RoseHill.RHDeleteUser implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+WEBserver

+
+java.lang.String WEBserver
+
+
Interface to RoseHill data base.
+
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+unicID

+
+java.lang.String unicID
+
+
+
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+url2

+
+java.lang.String url2
+
+
+
+ +

+key

+
+java.lang.String key
+
+
+
+ +

+secretKey

+
+java.lang.String secretKey
+
+
+ +

+ + + + + +
+Class RoseHill.RHLogout implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+url

+
+java.lang.String url
+
+
+ +

+ + + + + +
+Class RoseHill.RHUserLogin implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+unicID

+
+java.lang.String unicID
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+password

+
+java.lang.String password
+
+
+
+ +

+testFlagOnPC

+
+boolean testFlagOnPC
+
+
+
+ +

+url

+
+java.lang.String url
+
+
+ +

+ + + + + +
+Class RoseHill.RHUserMenu implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+WEBserver

+
+java.lang.String WEBserver
+
+
Interface to RoseHill data base.
+
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+unicID

+
+java.lang.String unicID
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+ +

+ + + + + +
+Class RoseHill.Rose implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+baseNumber

+
+int baseNumber
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+unicID

+
+java.lang.String unicID
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+iniFile

+
+java.lang.String iniFile
+
+
+
+ +

+accessUser

+
+java.lang.String accessUser
+
+
+
+ +

+accessPass

+
+java.lang.String accessPass
+
+
+
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+password

+
+java.lang.String password
+
+
+ +

+ + + + + +
+Class RoseHill.RoseBrowse implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+out

+
+java.io.PrintWriter out
+
+
+
+ +

+iniFile

+
+java.lang.String iniFile
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+accessUser

+
+java.lang.String accessUser
+
+
+
+ +

+accessPass

+
+java.lang.String accessPass
+
+
+
+ +

+Section

+
+java.lang.String[] Section
+
+
+
+ +

+imagePath

+
+java.lang.String imagePath
+
+
+
+ +

+roseAll

+
+java.lang.String roseAll
+
+
+
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+debug

+
+boolean debug
+
+
+ +

+ + + + + +
+Class RoseHill.RoseZoom implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+con

+
+java.sql.Connection con
+
+
+
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+debug

+
+boolean debug
+
+
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+iniFile

+
+java.lang.String iniFile
+
+
+
+ +

+accessUser

+
+java.lang.String accessUser
+
+
+
+ +

+accessPass

+
+java.lang.String accessPass
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+password

+
+java.lang.String password
+
+
+ +

+ + + + + +
+Class RoseHill.showImage implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+con

+
+java.sql.Connection con
+
+
To add deed records to RoseHill database.
+
+ +

+stmt

+
+java.sql.Statement stmt
+
+
+
+ +

+rs

+
+java.sql.ResultSet rs
+
+
+
+ +

+baseNumber

+
+int baseNumber
+
+
+
+ +

+os

+
+java.io.PrintWriter os
+
+
+
+ +

+unicID

+
+java.lang.String unicID
+
+
+
+ +

+Section

+
+java.lang.String[] Section
+
+
+
+ +

+imgRhAval

+
+boolean[] imgRhAval
+
+
+
+ +

+imgSecAval

+
+boolean[] imgSecAval
+
+
+
+ +

+url

+
+java.lang.String url
+
+
+
+ +

+url2

+
+java.lang.String url2
+
+
+
+ +

+url3

+
+java.lang.String url3
+
+
+
+ +

+imagePath

+
+java.lang.String imagePath
+
+
+
+ +

+roseAll

+
+java.lang.String roseAll
+
+
+
+ +

+roseAlls

+
+java.lang.String roseAlls
+
+
+
+ +

+debug

+
+boolean debug
+
+
+
+ +

+username

+
+java.lang.String username
+
+
+
+ +

+password

+
+java.lang.String password
+
+
+ +

+


+ + + + + + + + + + + + + +
+ +
+ + +
+ + + diff --git a/docs/stylesheet.css b/docs/stylesheet.css new file mode 100644 index 0000000..07dc9ea --- /dev/null +++ b/docs/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ +.TableRowColor { background: #FFFFFF } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: normal; font-family: normal } +.FrameHeadingFont { font-size: normal; font-family: normal } +.FrameItemFont { font-size: normal; font-family: normal } + +/* Example of smaller, sans-serif font in frames */ +/* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */ + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF;}/* Light mauve */ +.NavBarCell1Rev { background-color:#00008B;}/* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} + diff --git a/images/rose/J.gif b/images/rose/J.gif new file mode 100644 index 0000000..d83474b Binary files /dev/null and b/images/rose/J.gif differ diff --git a/images/rose/rhA.gif b/images/rose/rhA.gif new file mode 100644 index 0000000..e05d68c Binary files /dev/null and b/images/rose/rhA.gif differ diff --git a/images/rose/rhB.gif b/images/rose/rhB.gif new file mode 100644 index 0000000..07974ba Binary files /dev/null and b/images/rose/rhB.gif differ diff --git a/images/rose/rhC.gif b/images/rose/rhC.gif new file mode 100644 index 0000000..ac12b22 Binary files /dev/null and b/images/rose/rhC.gif differ diff --git a/images/rose/rhD.gif b/images/rose/rhD.gif new file mode 100644 index 0000000..9b8b706 Binary files /dev/null and b/images/rose/rhD.gif differ diff --git a/images/rose/rhF.gif b/images/rose/rhF.gif new file mode 100644 index 0000000..67daf2e Binary files /dev/null and b/images/rose/rhF.gif differ diff --git a/images/rose/rhG.gif b/images/rose/rhG.gif new file mode 100644 index 0000000..4045698 Binary files /dev/null and b/images/rose/rhG.gif differ diff --git a/images/rose/rhH.gif b/images/rose/rhH.gif new file mode 100644 index 0000000..de9e311 Binary files /dev/null and b/images/rose/rhH.gif differ diff --git a/images/rose/rhJ.gif b/images/rose/rhJ.gif new file mode 100644 index 0000000..f65685b Binary files /dev/null and b/images/rose/rhJ.gif differ diff --git a/images/rose/rhK.gif b/images/rose/rhK.gif new file mode 100644 index 0000000..d7bb75a Binary files /dev/null and b/images/rose/rhK.gif differ diff --git a/images/rose/rhM.gif b/images/rose/rhM.gif new file mode 100644 index 0000000..d81190e Binary files /dev/null and b/images/rose/rhM.gif differ diff --git a/images/rose/rhN.gif b/images/rose/rhN.gif new file mode 100644 index 0000000..d81190e Binary files /dev/null and b/images/rose/rhN.gif differ diff --git a/images/rose/rhO.gif b/images/rose/rhO.gif new file mode 100644 index 0000000..60f827b Binary files /dev/null and b/images/rose/rhO.gif differ diff --git a/images/rose/roseAll.gif b/images/rose/roseAll.gif new file mode 100644 index 0000000..1b79e02 Binary files /dev/null and b/images/rose/roseAll.gif differ diff --git a/images/rose/rosehill_allJ.gif b/images/rose/rosehill_allJ.gif new file mode 100644 index 0000000..1b79e02 Binary files /dev/null and b/images/rose/rosehill_allJ.gif differ diff --git a/images/rose/rosehill_closeJ2.gif b/images/rose/rosehill_closeJ2.gif new file mode 100644 index 0000000..27f9c81 Binary files /dev/null and b/images/rose/rosehill_closeJ2.gif differ diff --git a/images/rosehill/J.gif b/images/rosehill/J.gif new file mode 100644 index 0000000..d83474b Binary files /dev/null and b/images/rosehill/J.gif differ diff --git a/images/rosehill/east.gif b/images/rosehill/east.gif new file mode 100644 index 0000000..e2e99a1 Binary files /dev/null and b/images/rosehill/east.gif differ diff --git a/images/rosehill/old/J.gif b/images/rosehill/old/J.gif new file mode 100644 index 0000000..d83474b Binary files /dev/null and b/images/rosehill/old/J.gif differ diff --git a/images/rosehill/old/rhA.gif b/images/rosehill/old/rhA.gif new file mode 100644 index 0000000..e05d68c Binary files /dev/null and b/images/rosehill/old/rhA.gif differ diff --git a/images/rosehill/old/rhB.gif b/images/rosehill/old/rhB.gif new file mode 100644 index 0000000..07974ba Binary files /dev/null and b/images/rosehill/old/rhB.gif differ diff --git a/images/rosehill/old/rhC.gif b/images/rosehill/old/rhC.gif new file mode 100644 index 0000000..ac12b22 Binary files /dev/null and b/images/rosehill/old/rhC.gif differ diff --git a/images/rosehill/old/rhD.gif b/images/rosehill/old/rhD.gif new file mode 100644 index 0000000..9b8b706 Binary files /dev/null and b/images/rosehill/old/rhD.gif differ diff --git a/images/rosehill/old/rhF.gif b/images/rosehill/old/rhF.gif new file mode 100644 index 0000000..67daf2e Binary files /dev/null and b/images/rosehill/old/rhF.gif differ diff --git a/images/rosehill/old/rhG.gif b/images/rosehill/old/rhG.gif new file mode 100644 index 0000000..4045698 Binary files /dev/null and b/images/rosehill/old/rhG.gif differ diff --git a/images/rosehill/old/rhH.gif b/images/rosehill/old/rhH.gif new file mode 100644 index 0000000..de9e311 Binary files /dev/null and b/images/rosehill/old/rhH.gif differ diff --git a/images/rosehill/old/rhJ.gif b/images/rosehill/old/rhJ.gif new file mode 100644 index 0000000..f65685b Binary files /dev/null and b/images/rosehill/old/rhJ.gif differ diff --git a/images/rosehill/old/rhK.gif b/images/rosehill/old/rhK.gif new file mode 100644 index 0000000..d7bb75a Binary files /dev/null and b/images/rosehill/old/rhK.gif differ diff --git a/images/rosehill/old/rhM.gif b/images/rosehill/old/rhM.gif new file mode 100644 index 0000000..d81190e Binary files /dev/null and b/images/rosehill/old/rhM.gif differ diff --git a/images/rosehill/old/rhMN.gif b/images/rosehill/old/rhMN.gif new file mode 100644 index 0000000..d81190e Binary files /dev/null and b/images/rosehill/old/rhMN.gif differ diff --git a/images/rosehill/old/rhN.gif b/images/rosehill/old/rhN.gif new file mode 100644 index 0000000..d81190e Binary files /dev/null and b/images/rosehill/old/rhN.gif differ diff --git a/images/rosehill/old/rhO.gif b/images/rosehill/old/rhO.gif new file mode 100644 index 0000000..60f827b Binary files /dev/null and b/images/rosehill/old/rhO.gif differ diff --git a/images/rosehill/old/rhsA.gif b/images/rosehill/old/rhsA.gif new file mode 100644 index 0000000..b4d41d1 Binary files /dev/null and b/images/rosehill/old/rhsA.gif differ diff --git a/images/rosehill/old/rhsB.gif b/images/rosehill/old/rhsB.gif new file mode 100644 index 0000000..20d8663 Binary files /dev/null and b/images/rosehill/old/rhsB.gif differ diff --git a/images/rosehill/old/rhsC.gif b/images/rosehill/old/rhsC.gif new file mode 100644 index 0000000..2ec0c27 Binary files /dev/null and b/images/rosehill/old/rhsC.gif differ diff --git a/images/rosehill/old/rhsD.gif b/images/rosehill/old/rhsD.gif new file mode 100644 index 0000000..553094d Binary files /dev/null and b/images/rosehill/old/rhsD.gif differ diff --git a/images/rosehill/old/rhsF.gif b/images/rosehill/old/rhsF.gif new file mode 100644 index 0000000..ff490e3 Binary files /dev/null and b/images/rosehill/old/rhsF.gif differ diff --git a/images/rosehill/old/rhsG.gif b/images/rosehill/old/rhsG.gif new file mode 100644 index 0000000..8bc7e5d Binary files /dev/null and b/images/rosehill/old/rhsG.gif differ diff --git a/images/rosehill/old/rhsH.gif b/images/rosehill/old/rhsH.gif new file mode 100644 index 0000000..e82a314 Binary files /dev/null and b/images/rosehill/old/rhsH.gif differ diff --git a/images/rosehill/old/rhsJ.gif b/images/rosehill/old/rhsJ.gif new file mode 100644 index 0000000..d7d97fd Binary files /dev/null and b/images/rosehill/old/rhsJ.gif differ diff --git a/images/rosehill/old/rhsK.gif b/images/rosehill/old/rhsK.gif new file mode 100644 index 0000000..19bcf75 Binary files /dev/null and b/images/rosehill/old/rhsK.gif differ diff --git a/images/rosehill/old/rhsM.gif b/images/rosehill/old/rhsM.gif new file mode 100644 index 0000000..2bbc4e7 Binary files /dev/null and b/images/rosehill/old/rhsM.gif differ diff --git a/images/rosehill/old/rhsN.gif b/images/rosehill/old/rhsN.gif new file mode 100644 index 0000000..2bbc4e7 Binary files /dev/null and b/images/rosehill/old/rhsN.gif differ diff --git a/images/rosehill/old/rhsO.gif b/images/rosehill/old/rhsO.gif new file mode 100644 index 0000000..2a88746 Binary files /dev/null and b/images/rosehill/old/rhsO.gif differ diff --git a/images/rosehill/old/roseAll.gif b/images/rosehill/old/roseAll.gif new file mode 100644 index 0000000..1b79e02 Binary files /dev/null and b/images/rosehill/old/roseAll.gif differ diff --git a/images/rosehill/old/roseAlls.gif b/images/rosehill/old/roseAlls.gif new file mode 100644 index 0000000..d7d97fd Binary files /dev/null and b/images/rosehill/old/roseAlls.gif differ diff --git a/images/rosehill/old/rosehill_allJ.gif b/images/rosehill/old/rosehill_allJ.gif new file mode 100644 index 0000000..1b79e02 Binary files /dev/null and b/images/rosehill/old/rosehill_allJ.gif differ diff --git a/images/rosehill/old/rosehill_closeJ.gif b/images/rosehill/old/rosehill_closeJ.gif new file mode 100644 index 0000000..d83474b Binary files /dev/null and b/images/rosehill/old/rosehill_closeJ.gif differ diff --git a/images/rosehill/old/rosehill_closeJ2.gif b/images/rosehill/old/rosehill_closeJ2.gif new file mode 100644 index 0000000..27f9c81 Binary files /dev/null and b/images/rosehill/old/rosehill_closeJ2.gif differ diff --git a/images/rosehill/rhA.gif b/images/rosehill/rhA.gif new file mode 100644 index 0000000..e05d68c Binary files /dev/null and b/images/rosehill/rhA.gif differ diff --git a/images/rosehill/rhB.gif b/images/rosehill/rhB.gif new file mode 100644 index 0000000..07974ba Binary files /dev/null and b/images/rosehill/rhB.gif differ diff --git a/images/rosehill/rhC.gif b/images/rosehill/rhC.gif new file mode 100644 index 0000000..ac12b22 Binary files /dev/null and b/images/rosehill/rhC.gif differ diff --git a/images/rosehill/rhD.gif b/images/rosehill/rhD.gif new file mode 100644 index 0000000..9b8b706 Binary files /dev/null and b/images/rosehill/rhD.gif differ diff --git a/images/rosehill/rhF.gif b/images/rosehill/rhF.gif new file mode 100644 index 0000000..67daf2e Binary files /dev/null and b/images/rosehill/rhF.gif differ diff --git a/images/rosehill/rhG.gif b/images/rosehill/rhG.gif new file mode 100644 index 0000000..4045698 Binary files /dev/null and b/images/rosehill/rhG.gif differ diff --git a/images/rosehill/rhH.gif b/images/rosehill/rhH.gif new file mode 100644 index 0000000..de9e311 Binary files /dev/null and b/images/rosehill/rhH.gif differ diff --git a/images/rosehill/rhJ.gif b/images/rosehill/rhJ.gif new file mode 100644 index 0000000..f65685b Binary files /dev/null and b/images/rosehill/rhJ.gif differ diff --git a/images/rosehill/rhK.gif b/images/rosehill/rhK.gif new file mode 100644 index 0000000..d7bb75a Binary files /dev/null and b/images/rosehill/rhK.gif differ diff --git a/images/rosehill/rhM.gif b/images/rosehill/rhM.gif new file mode 100644 index 0000000..d81190e Binary files /dev/null and b/images/rosehill/rhM.gif differ diff --git a/images/rosehill/rhMN.gif b/images/rosehill/rhMN.gif new file mode 100644 index 0000000..d81190e Binary files /dev/null and b/images/rosehill/rhMN.gif differ diff --git a/images/rosehill/rhN.gif b/images/rosehill/rhN.gif new file mode 100644 index 0000000..d81190e Binary files /dev/null and b/images/rosehill/rhN.gif differ diff --git a/images/rosehill/rhO.gif b/images/rosehill/rhO.gif new file mode 100644 index 0000000..60f827b Binary files /dev/null and b/images/rosehill/rhO.gif differ diff --git a/images/rosehill/rhsA.gif b/images/rosehill/rhsA.gif new file mode 100644 index 0000000..b4d41d1 Binary files /dev/null and b/images/rosehill/rhsA.gif differ diff --git a/images/rosehill/rhsB.gif b/images/rosehill/rhsB.gif new file mode 100644 index 0000000..20d8663 Binary files /dev/null and b/images/rosehill/rhsB.gif differ diff --git a/images/rosehill/rhsC.gif b/images/rosehill/rhsC.gif new file mode 100644 index 0000000..2ec0c27 Binary files /dev/null and b/images/rosehill/rhsC.gif differ diff --git a/images/rosehill/rhsD.gif b/images/rosehill/rhsD.gif new file mode 100644 index 0000000..553094d Binary files /dev/null and b/images/rosehill/rhsD.gif differ diff --git a/images/rosehill/rhsF.gif b/images/rosehill/rhsF.gif new file mode 100644 index 0000000..ff490e3 Binary files /dev/null and b/images/rosehill/rhsF.gif differ diff --git a/images/rosehill/rhsG.gif b/images/rosehill/rhsG.gif new file mode 100644 index 0000000..8bc7e5d Binary files /dev/null and b/images/rosehill/rhsG.gif differ diff --git a/images/rosehill/rhsH.gif b/images/rosehill/rhsH.gif new file mode 100644 index 0000000..e82a314 Binary files /dev/null and b/images/rosehill/rhsH.gif differ diff --git a/images/rosehill/rhsJ.gif b/images/rosehill/rhsJ.gif new file mode 100644 index 0000000..d7d97fd Binary files /dev/null and b/images/rosehill/rhsJ.gif differ diff --git a/images/rosehill/rhsK.gif b/images/rosehill/rhsK.gif new file mode 100644 index 0000000..19bcf75 Binary files /dev/null and b/images/rosehill/rhsK.gif differ diff --git a/images/rosehill/rhsM.gif b/images/rosehill/rhsM.gif new file mode 100644 index 0000000..2bbc4e7 Binary files /dev/null and b/images/rosehill/rhsM.gif differ diff --git a/images/rosehill/rhsN.gif b/images/rosehill/rhsN.gif new file mode 100644 index 0000000..2bbc4e7 Binary files /dev/null and b/images/rosehill/rhsN.gif differ diff --git a/images/rosehill/rhsO.gif b/images/rosehill/rhsO.gif new file mode 100644 index 0000000..2a88746 Binary files /dev/null and b/images/rosehill/rhsO.gif differ diff --git a/images/rosehill/roseAll.gif b/images/rosehill/roseAll.gif new file mode 100644 index 0000000..1b79e02 Binary files /dev/null and b/images/rosehill/roseAll.gif differ diff --git a/images/rosehill/roseAlls.gif b/images/rosehill/roseAlls.gif new file mode 100644 index 0000000..d7d97fd Binary files /dev/null and b/images/rosehill/roseAlls.gif differ diff --git a/images/rosehill/rosehill_allJ.gif b/images/rosehill/rosehill_allJ.gif new file mode 100644 index 0000000..1b79e02 Binary files /dev/null and b/images/rosehill/rosehill_allJ.gif differ diff --git a/images/rosehill/rosehill_closeJ.gif b/images/rosehill/rosehill_closeJ.gif new file mode 100644 index 0000000..d83474b Binary files /dev/null and b/images/rosehill/rosehill_closeJ.gif differ diff --git a/images/rosehill/rosehill_closeJ2.gif b/images/rosehill/rosehill_closeJ2.gif new file mode 100644 index 0000000..27f9c81 Binary files /dev/null and b/images/rosehill/rosehill_closeJ2.gif differ diff --git a/images/rosehill/west.gif b/images/rosehill/west.gif new file mode 100644 index 0000000..841ae43 Binary files /dev/null and b/images/rosehill/west.gif differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..2033244 --- /dev/null +++ b/index.html @@ -0,0 +1,32 @@ + + + + + +City of Bloomington Parks and Recreation + +
+

Rose Hill Cemetary Database +

+
+

User Login

+ +
+

Admininstrator Login

+ +
+
+ + + diff --git a/src/RoseHill/Deed.java b/src/RoseHill/Deed.java new file mode 100644 index 0000000..ce85c1c --- /dev/null +++ b/src/RoseHill/Deed.java @@ -0,0 +1,486 @@ +package RoseHill; + +import java.util.*; +import java.sql.*; +import java.io.*; +import javax.servlet.*; +import javax.servlet.http.*; + +/** + * Adds deed records to RoseHill database. + * @author Walid Sibo + * @version %I%,%G% + */ + + +public class Deed extends HttpServlet{ + + + Connection con; + Statement stmt; + ResultSet rs; + final int baseNumber = 10000; + PrintWriter os; + String unicID =""; + + static final String iniFile = ""; + //"c:/RoseHill/rosehill.ini"; + // "/usr/local/jserv/servlets/RoseHill/rosehill.ini"; + + // old database connect string (Oracle 7.1) + // + /* + final static String dbConnectStr = + "jdbc:oracle:thin:@earth.city.bloomington.in.us:1521:dev"; + */ + // + // New database connect string (Oracle 8.2) + // + final static String dbConnectStr = + "jdbc:oracle:thin:@pluto.city.bloomington.in.us:1521:proto"; + + // + static final String accessUser = "myr"; + static final String accessPass = "kings"; // developer + /* + static final String url="http://isotope/rose/"; + static final String url2="http://isotope/rosehill/"; // for web page + static final String url3="http://isotope/"; // for images + static final boolean debug = false; + */ + static final String url="http://localhost:8080/rose/"; + static final String url2="http://localhost:8080/rose/"; + static final String url3="http://localhost:8080/"; + static final boolean debug = true; + + String username = "", password = ""; + + /** + * Shows the deed form to the user. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + + public void doGet(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + + res.setContentType("text/html"); + PrintWriter out = res.getWriter(); + + // obtainProperties(out); + Enumeration values = req.getParameterNames(); + String name, value; + + while (values.hasMoreElements()){ + name = ((String)values.nextElement()).trim(); + value = req.getParameter(name).trim(); + if(name.equals("unicID")){ + unicID = value; + } + else if(name.equals("username")){ + username = value; + } + } + out.println("City of Bloomington Parks and "+ + "Recreation"); + // + // This script validate only two field the sec and lot + // + out.println(" "); + out.println(""); + out.println("

Add Deed Record

"); + + out.println("
"); + + //box it in + out.println("
"); + + out.println("
"); + //the real table + out.println("
"); + out.println(""); + out.println(""); + + out.println(""); + out.println(""); + out.println(""); + + out.println(""); + + out.println(""); + + out.println("" + + ""); + + out.println("
Section"); + out.println(""); + out.println(""); + out.println("Lot Number"); + out.println("" + + "
First Name 1"); + out.println(""); + out.println(""); + out.println("MI 1"); + out.println(""); + out.println("Last Name 1"); + out.println("" + + "
First Name 2"); + out.println(""); + out.println(""); + + out.println("MI 2"); + out.println(""); + out.println("Last Name 2"); + out.println("" + + "
Date of Issue "); + out.println(""); + out.println("(mm/dd/yyyy)"); + out.println("" + + "
 Notes" + + "
"); + out.println("
"); + out.println("
"); + //end add new record + + out.println("
"); + out.println("
"); + + out.println("
  • Return to User Menu "); + out.println("
  • Log Out "); + out.print(""); + out.close(); + + } + /** + * Saves the users input in the deed form in the database. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + + public void doPost(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + + res.setStatus(HttpServletResponse.SC_OK); + res.setContentType("text/html"); + os=res.getWriter(); + + Enumeration values = req.getParameterNames(); + String name, value; + os.println(""); + + String + sec = null, + lot = null, + lname1 = null, + fname1 = null, + lname2 = null, + fname2 = null, + mi1 = null, + mi2 = null, + date_issue = null, + notes = null, + id="" ; + + while (values.hasMoreElements()){ + name = ((String)values.nextElement()).trim(); + value = doubleApostrify((req.getParameter(name)).trim()); + if(!name.equals("username") && !value.equals("")){ + value = value.toUpperCase(); + } + // + // + if (name.equals("username")){ + username = value; + } + if (name.equals("sec")){ + if(!value.equals("")) + sec = "'"+value+"'"; + } + else if (name.equals("lot")){ + if(!value.equals("")) + lot = "'"+value+"'"; + } + else if (name.equals("lname1")){ + if(!value.equals("")) + lname1 = "upper('"+value+"')"; + } + else if (name.equals("fname1")){ + if(!value.equals("")) + fname1 = "upper('"+value+"')"; + } + else if (name.equals("lname2")){ + if(!value.equals("")) + lname2 = "upper('"+value+"')"; + } + else if (name.equals("fname2")){ + if(!value.equals("")) + lname2 = "upper('"+value+"')"; + } + else if (name.equals("mi1")){ + if(!value.equals("")) + mi1 = "upper('"+value+"')"; + } + else if (name.equals("mi2")){ + if(!value.equals("")) + mi2 = "upper('"+value+"')"; + } + else if (name.equals("date_issue")){ + if(!value.equals("")) + date_issue = "to_date('"+value+"', 'MM/DD/YYYY')"; + } + else if (name.equals("notes")){ + if(!value.equals("")) + notes = "'"+value+"'"; + } + } + try { + databaseConnect(); + /* + rs = stmt.executeQuery("select max(id) from deed"); + int nextid = 1; + if (rs.next()){ + nextid = rs.getInt(1) + 1; + // System.err.println("nextid " + nextid); + // String id_query = "select Deed_id_seq.nextval from dual"; + // rs = stmt.executeQuery(id_query); + // rs.next(); + // int nextid = rs.getInt(1); + } + */ + String query = "insert into deed values (" + + "Deed_id_seq.nextval,"+ + sec +"," + + lot + "," + + lname1 +"," + + fname1 + "," + + mi1 + "," + + lname2 + "," + + fname2 + "," + + mi2 + "," + + date_issue + "," + + notes + ")"; + + // os.println(query); + stmt.executeUpdate(query); + String query2 = ("commit"); + stmt.executeUpdate(query2); + os.println("" + + ""); + os.println(""); + + os.println("Record successfully added: "); + os.println("
  • Back to User Menu

    "); + os.println("
  • Log Out "); + os.println(""); + os.println(""); + } + catch (Exception ex) { + os.println(ex); + // ex.printStackTrace(); + } + os.flush(); + databaseDisconnect(); + } + /** + * Connects to the rosehill database. + */ + public void databaseConnect() { + try { + Class.forName("oracle.jdbc.driver.OracleDriver"); + con = DriverManager. + getConnection( + dbConnectStr, + accessUser, accessPass); + + stmt = con.createStatement(); + } + catch (Exception sqle) { + sqle.printStackTrace(); + } + } + /** + * Disconnects from the rosehill database. + */ + public void databaseDisconnect() { + + try { + con.close(); + } + catch (Exception e) { + e.printStackTrace(); + } + } + /** + * Adds an extra apostrophy to each occurrence of an apostrophy in the + * input string. + * @param s the input string + * @return String the modified string + * + */ + final String doubleApostrify(String s) { + + StringBuffer apostrophe_safe = new StringBuffer(s); + int len = s.length(); + int c = 0; + while (c < len){ + + if (apostrophe_safe.charAt(c) == '\'') { + apostrophe_safe.insert(c, '\''); + c += 2; + len = apostrophe_safe.length(); + } + else{ + c++; + } + } + return apostrophe_safe.toString(); + } + /** + * Authonticates the users input. + * Checks the username in the input stream and in the session to + * make sure that the same user is performing the database operations. + * @param out the ouput stream + * @param username the username from the input stream + * @param req the input stream to get the sessions info. + * @param title the title for output window in case of an error. + * @param url the applications url + * @param boolean true if ok and false if not. + */ + // + // check the user privileges + // + final static boolean checkUserLogin(PrintWriter out, String username, + HttpServletRequest req, + String title, String url){ + HttpSession session = null; + session = req.getSession(); + String user = null ; + if(session != null){ + Object ob = session.getAttribute("username"); + if(ob != null) user = ob.toString(); + } + if(user != null && + user.equals(username)) return true; + else { + out.println(""+title+" "); + out.println(""); + out.println("

    Security violation. Click here to login "+ + "again

    "); + out.println(""); + out.println(""); + out.close(); + return false; + } + } + +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/RoseHill/DeedBrowse.java b/src/RoseHill/DeedBrowse.java new file mode 100644 index 0000000..de210d8 --- /dev/null +++ b/src/RoseHill/DeedBrowse.java @@ -0,0 +1,1031 @@ +package RoseHill; + +import java.util.*; +import java.sql.*; +import java.io.*; +import javax.servlet.*; +import javax.servlet.http.*; +import RoseHill.Deed; + +/** + * The search engine for the deed records in the databse. + * @author Walid Sibo + * @version %I%,%G% + */ +public class DeedBrowse extends HttpServlet{ + + Connection con; + Statement stmt; + + ResultSet rs; + PrintWriter os, out; + String iniFile = Deed.iniFile; + String username = ""; + String sortby = ""; + String accessUser = Deed.accessUser; + String accessPass = Deed.accessPass; + + String url = Deed.url; + boolean debug = Deed.debug; + /** + * Shows the deed search form to the user. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + public void doGet(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + res.setStatus(HttpServletResponse.SC_OK); + res.setContentType("text/html"); + out = res.getWriter(); + + Enumeration values = req.getParameterNames(); + //obtainProperties(out); + String name, value; + out.println(""); + + while (values.hasMoreElements()){ + name = ((String)values.nextElement()).trim(); + value = (req.getParameter(name)).trim(); + if (name.equals("username")){ + username = value; + } + } + String log_out = + "Log Out "; + // + // Browsing the records + // + out.println("Browsing "); + out.println(" "); + out.println(""); + out.println("

    Deed Browsing

    "); + out.println("
    "); + out.println(""); + out.println("
    "); + out.println(""); + out.println(""); + out.println(""); + + out.println(""); + + out.println(""); + + out.println(""); + */ + // one row table + out.println("
    "); + out.println("Sort by "); + out.println("
    Show only " + +""); + out.println(""); + out.println(""+ + "Records per page.
    Section: "); + out.println(""); + out.println(""); + out.println("Lot: "); + out.println("
    Last Name 1"+ + ""); + out.println(""); + out.println("First Name 1"); + out.println(""); + out.println("MI "); + out.println("
    Last Name 2"+ + ""); + out.println(""); + out.println("First Name 2"); + out.println(""); + out.println("MI 2"); + out.println("
    Date of Issue "+ + ""); + /* + out.println(""); + out.println(""); + out.println(""); +; out.println(""); +; out.println("
    From  mm/dd/yyyyTo  mm/dd/yyyy
    "); + + // table for from + out.println("From:"); + out.println(""+ + ""+ + ""); + out.println(""); + out.println(""); + out.println("
    mm dd yyyy
    //
    "); + // table for to + out.println("To: "); + out.println(""); + out.println(""); + out.println(""); + out.println("
    mm "+ + "dd yyyy
    //
    "); + out.println(""); + // + // + out.println("Output Type "+ + ""); + out.println("Table"); + out.println("Report" + + ""); + + out.println("
    "); + //out.println(""); + + out.println("
    "); + out.println("
          "); + out.println("      "); + out.println("
        "+ + "        "+ + "        "+ + "        "+ + "        "+ + "      "); + out.println("
    "); + out.println("
    "); + out.println(log_out); + out.println("
    "); + out.println("
    "); + + out.println("\n"); + out.close(); + + } + /** + * Presents the output of the search to the user in case there is a match. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + public void doPost(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + String[] repItem = {"Section: ","Lot: ","Deed Owner(s): ", " "," ", + " ", " "," ", // second name + "Date of Issue: ", + "Notes: "}; + String[] tableItem = {"Id","Section","Lot","Name 1", "Name 2", + "Date of Issue ", + " Notes     "}; + + res.setStatus(HttpServletResponse.SC_OK); + res.setContentType("text/html"); + os = res.getWriter(); + int maxRecords = 100, minRecords = 0, row; + Enumeration values = req.getParameterNames(); + //obtainProperties(os); + String name, value, wt="table"; + boolean rangeFlag = true, showNext=true; + int incr = 0; + String id = ""; + String sec = ""; + String lot = ""; + String book = ""; + String issueFrom = ""; + String issueTo = ""; + String lname = ""; + String fname = ""; + String mi = ""; + String lname2 = ""; + String fname2 = ""; + String mi2 = ""; + String date_issue=""; + String monthFrom = "", dayFrom = "", yearFrom = ""; + String monthTo = "", dayTo = "", yearTo = ""; + + os.println(""); + + while (values.hasMoreElements()){ + name = ((String)values.nextElement()).trim(); + value = (req.getParameter(name)).trim(); + if (name.equals("username")){ + username = value; + } + else if (name.equals("wt")){ + wt = value; + } + else if (name.equals("maxRecords")){ + try{ + maxRecords = Integer.parseInt(value); + }catch(Exception ex){}; + } + else if (name.equals("minRecords")){ + try{ + minRecords = Integer.parseInt(value); + }catch(Exception ex){}; + } + else if (name.equals("id")){ + id = value; + } + else if (name.equals("sec")){ + sec = value.toUpperCase() ; + } + else if (name.equals("lot")){ + lot = value.toUpperCase(); + } + else if (name.equals("lname")){ + lname = value.toUpperCase(); + } + else if (name.equals("fname")){ + fname = value.toUpperCase(); + } + else if (name.equals("mi")){ + mi = value.toUpperCase(); + } + else if (name.equals("lname2")){ + lname2 = value.toUpperCase(); + } + else if (name.equals("fname2")){ + fname2 = value.toUpperCase(); + } + else if (name.equals("mi2")){ + mi2 = value.toUpperCase(); + } + else if (name.equals("monthFrom")){ + monthFrom = value; + } + else if (name.equals("dayFrom")){ + dayFrom = value; + } + else if (name.equals("yearFrom")){ + yearFrom = value; + } + else if (name.equals("monthTo")){ + monthTo = value; + } + else if (name.equals("dayTo")){ + dayTo = value; + } + else if (name.equals("yearTo")){ + yearTo = value; + } + else if (name.equals("sortby")){ + sortby = value; + } + else { + System.err.println("Unknown choice "+name+" "+value); + } + } + try{ + databaseConnect(); + if(minRecords > maxRecords){ //swap + int temp = minRecords; + minRecords = maxRecords; + maxRecords = temp; + } + os.println("Browsing Deed Records" + + ""); + os.println(""); + os.println("
    "); + os.println(""); + os.println("
    "); + String back_to_main = + "" + + "Back to User Menu"; + String back_to_browse = + "" + + "Back to Browse "; + String log_out = "Log Out "; + os.println("

    Parks and Recreation

    "); + os.println("

    Rose Hill Cemetary

    "+ + "
    "); + /* + os.println(back_to_main+"      "+ + "        "+ + "      "+log_out); + */ + os.println("
    "); + // + // check where clause, it is common for table and report + // + Vector wherecases = new Vector(); + boolean andFlag = false; + if(!id.equals("")){ + wherecases.addElement(" id='"+id+"'"); + andFlag = true; + } + if(!sec.equals("")){ + String str=""; + if(andFlag) str = " and "; + if(sec.indexOf("%") > -1) + str += "sec like '"+sec+"'"; + else + str += "sec='"+sec+"'"; + wherecases.addElement(str); + andFlag = true; + } + if(!lot.equals("")){ + String str=""; + if(andFlag) str = " and "; + if(lot.indexOf("%") > -1) + str += "lot like '"+lot+"'"; + else + str += "lot='"+lot+"'"; + wherecases.addElement(str); + andFlag = true; + } + if(!lname.equals("")){ + String str=""; + if(andFlag) str = " and "; + if(lname.indexOf("%") > -1) + str += "lname like '"+lname+"'"; + else + str += "lname1='"+lname+"'"; + wherecases.addElement(str); + andFlag = true; + } + if(!fname.equals("")){ + String str=""; + if(andFlag) str = " and "; + if(fname.indexOf("%") > -1) + str += "fname1 like '"+fname+"'"; + else + str += "fname1='"+fname+"'"; + wherecases.addElement(str); + andFlag = true; + } + if(!mi.equals("")){ + String str=""; + if(andFlag) str = " and "; + str += "mi1='"+mi+"'"; + wherecases.addElement(str); + andFlag = true; + } + if(!lname2.equals("")){ + String str=""; + if(andFlag) str = " and "; + if(lname2.indexOf("%") > -1) + str += "lname2 like '"+lname2+"'"; + else + str += "lname2='"+lname2+"'"; + wherecases.addElement(str); + andFlag = true; + } + if(!fname2.equals("")){ + String str=""; + if(andFlag) str = " and "; + if(fname2.indexOf("%") > -1) + str += "fname2 like '"+fname2+"'"; + else + str += "fname2='"+fname2+"'"; + wherecases.addElement(str); + andFlag = true; + } + if(!mi2.equals("")){ + String str=""; + if(andFlag) str = " and "; + str += "mi2='"+mi2+"'"; + wherecases.addElement(str); + andFlag = true; + } + if(!issueFrom.equals("")){ + String str=""; + if(andFlag) str = " and "; + str += "to_date('"+ issueFrom + + "','MM/DD/YYYY') <= date_issue"; + wherecases.addElement(str); + andFlag = true; + } + if(!issueTo.equals("")){ + String str=""; + if(andFlag) str = " and "; + str += "to_date('"+issueTo+ + "','MM/DD/YYYY') >= date_issue"; + wherecases.addElement(str); + andFlag = true; + } + if(!dayFrom.equals("") || !monthFrom.equals("") || + !yearFrom.equals("")){ + String str=""; + if(andFlag) str = " and "; + if(!dayFrom.equals("") && !monthFrom.equals("") && + !yearFrom.equals("")){ + str += "to_date('"+ monthFrom+"/"+dayFrom+"/"+ + yearFrom+ "','MM/DD/YYYY') <= date_issue"; + } + else if(!monthFrom.equals("") && !yearFrom.equals("")){ + str += "to_date('"+ monthFrom+"/"+yearFrom+ + "','MM/YYYY') <= date_issue"; + } + else if(!yearFrom.equals("")){ + str += "to_date('"+ yearFrom + + "','yyyy') <= date_issue"; + } + if(!str.equals("")){ + wherecases.addElement(str); + andFlag = true; + } + } + if(!dayTo.equals("") || !monthTo.equals("") || + !yearTo.equals("")){ + String str=""; + if(andFlag) str = " and "; + if(!dayTo.equals("") && !monthTo.equals("") && + !yearTo.equals("")){ + str += "to_date('"+ monthTo+"/"+dayTo+"/"+ + yearTo+ "','MM/DD/YYYY') >= date_issue"; + } + else if(!monthTo.equals("") && !yearTo.equals("")){ + str += "to_date('"+ monthTo+"/"+yearTo+ + "','MM/YYYY') >= date_issue"; + } + else if(!yearTo.equals("")){ + str += "to_date('"+ yearTo+ + "','yyyy') >= date_issue"; + } + if(!str.equals("")){ + wherecases.addElement(str); + andFlag = true; + } + } + String added = "lname1, fname1,lname2,fname2"; + String query2 = "select count(*) from deed "; + sortby = sortby.toLowerCase();// id, lot,sec, mi1, mi2 + if(sortby.startsWith("name 1")) sortby = added+",sec,lot"; + else if(sortby.startsWith("name 2")) + sortby = "lname2,fname2,lname1,fname1,sec,lot"; + else if(sortby.startsWith("section")) + sortby ="sec,"+added; + else if(sortby.startsWith("date")) + sortby ="date_issue,"+added+",sec,lot"; + else if(sortby.equals("id"))sortby = added + ",sec,lot"; + // + // Table presentation first + // + if(wt.equals("table")){ + String query = "select id,sec,lot,initcap(lname1) ||', '||"+ + "initcap(fname1) ||' '|| mi1,"+ + "initcap(lname2) ||', '|| initcap(fname2) ||' '|| mi2,"+ + "to_char(date_issue,'MM/DD/YYYY'),"+ + "notes from deed "; + + if(wherecases.size() > 0){ + query += " where "; + query2 += " where "; + for (int c = 0; c < wherecases.size(); c++){ + query += wherecases.elementAt(c).toString(); + query2 += wherecases.elementAt(c).toString(); + } + } + query += " order by "+sortby; + if(debug){ + os.println("" + query + ""); + } + rs = stmt.executeQuery(query2); + int total = 0; + if(rs.next()){ + total = rs.getInt(1); + } + os.println("Matching total records :"+ total + + "
    "); + + if(total < maxRecords && minRecords == 0){ + os.println("Showing all the: "+ total + + " records
    "); + showNext = false; + } + else if(total <= maxRecords && total > minRecords){ + os.println("Showing the records from:"+ minRecords + + " to " + total+ "
    "); + showNext= false; + } + else if(total > maxRecords && total > minRecords){ + os.println("Showing the records from:"+ minRecords + + " to " + maxRecords+ "
    "); + showNext= true; + incr = maxRecords - minRecords; + } + else if(total < minRecords){ + os.println("Error in setting the \"From\" field in "+ + "\"Show Records\", go back and "+ + "reset this field.
    "); + rangeFlag = false; + showNext = false; + } + os.println("
    Note: To get the map of "+ + "Rose Hill and the related Section click on the "+ + "link under the Section column below."+ + "
    "); + if(rangeFlag){ + rs = stmt.executeQuery(query); + os.println(""); + + int colcnt = rs.getMetaData().getColumnCount(); + // System.err.println(colcnt); + row = 0; + while (rs.next()){ + if(row >= minRecords && row <= maxRecords){ + if(row%20 == 0){ + os.println(""); + for (int c = 0; c < tableItem.length; c++) { + os.println(""); + } + os.println(""); + } + if(row%2 == 0) + os.println(""); + else + os.println(""); + for (int c = 0; c < colcnt; c++){ + os.println(""); + } + } + os.println(""); + } + row++; + if(row > maxRecords) break; + } + os.println("
    "); + os.println(tableItem[c]); + os.println("
    "); + String that = rs.getString(c+1); + if(that != null) that = that.trim(); + // System.err.print(that+" "); + if (c == 0){ + os.println("" + + that + ""); + } + else if(c == 1){ + String lott = rs.getString(c+2); + os.println("" + + that + ""); + } + else{ + if(that == null || that.equals(",")) + os.println("  "); + else + os.println(that); + os.println("
    "); + } + } + else{ //report + // + // Report presentation + // + String query = "select sec,lot,initcap(lname1) lname1,"+ + "initcap(fname1) fname1,mi1,"+ + "initcap(lname2) lname2,initcap(fname2) fname2,mi2,"+ + "to_char(date_issue,'Mon DD/YYYY'),"+ + "notes from deed "; + + if(wherecases.size() > 0){ + query += " where "; + query2 += " where "; + for (int c = 0; c < wherecases.size(); c++){ + query += wherecases.elementAt(c).toString(); + query2 += wherecases.elementAt(c).toString(); + } + } + query += " order by "+sortby; + if(debug){ + os.println("" + query + ""); + } + rs = stmt.executeQuery(query2); + int total = 0; + if(rs.next()){ + total = rs.getInt(1); + } + os.println("Matching total records :"+ total + + "
    "); + if(total < maxRecords && minRecords == 0) + os.println("Showing all the: "+ total + + " records
    "); + else if(total <= maxRecords && total > minRecords) + os.println("Showing the records from:"+ minRecords + + " to " + total+ "
    "); + else if(total > maxRecords && total > minRecords) + os.println("Showing the records from:"+ minRecords + + " to " + maxRecords+ "
    "); + else if(total < minRecords){ + os.println("Error in setting the \"From\" field in "+ + "\"Show Records\", go back and "+ + "reset this field.
    "); + rangeFlag = false; + } + // System.err.println("total: "+total); + // System.err.println("query: "+query); + + if(rangeFlag){ + rs = stmt.executeQuery(query); + int colcnt = rs.getMetaData().getColumnCount(); + // System.err.println("column count: "+colcnt); + // os.println("
    Rose Hill Cemetary"+ + // "
    "); + os.println("
    Deed Report
    "); + os.println("
    "); + + // System.out.println("After rs.next"); + row = 0; + while (rs.next()){ + if(row >= minRecords && row <= maxRecords){ + os.println(""); + // section + int c = 0; + String that = rs.getString(c+1); + if(that != null) + writeItem(that, repItem[c]); + // lot + c++; + that = rs.getString(c+1); + if(that != null) + writeItem(that, repItem[c]); + // name + c++; + that = rs.getString(c+1); + name = ""; + if(that != null) name = that; + that = rs.getString(c+2); + if(that != null) name += ", "+that; + that = rs.getString(c+3); + if(that != null) name += ", "+that; + that = rs.getString(c+4); + if(!name.equals("")){ + if(that != null) name += " & "+that; + } + else{ + if(that != null) name = that; + } + that = rs.getString(c+5); + if(that != null) name += ", "+that; + that = rs.getString(c+6); + if(that != null) name += ", "+that; + + if(!name.equals("")) + writeItem(name, repItem[c]); + c+=6; + // age + for(int i=c; i"); + os.println("


    "); + } + row++; + if(row > maxRecords) break; + } + } + } + if(showNext){ + os.println("
    "); + os.println(""); + os.println(""); + os.println(""); + os.println(""); + + if(!sec.equals("")){ + os.println(""); + } + if(!lot.equals("")){ + os.println(""); + } + if(!lname.equals("")){ + os.println(""); + } + if(!fname.equals("")){ + os.println(""); + } + if(!mi.equals("")){ + os.println(""); + } + if(!lname2.equals("")){ + os.println(""); + } + if(!fname2.equals("")){ + os.println(""); + } + if(!mi2.equals("")){ + os.println(""); + } + if(!monthFrom.equals("")){ + os.println(""); + } + if(!dayFrom.equals("")){ + os.println(""); + } + if(!yearFrom.equals("")){ + os.println(""); + } + if(!monthTo.equals("")){ + os.println(""); + } + if(!dayTo.equals("")){ + os.println(""); + } + if(!yearTo.equals("")){ + os.println(""); + } + + os.println(""); + // os.println("
    "); + // os.println("
    "); + os.println("
    "); + os.println(""); + os.println("
    "); + os.println(""); + } + os.println(back_to_browse +"
    "+back_to_main +"
    "+ + log_out); + os.println(""); + os.println(""); + } + catch (Exception ex){ + System.err.println(ex); + os.println(ex); + } + os.flush(); + os.close(); + databaseDisconnect(); + + } + /** + * Formats and writes a tupple of title-item to a table. + * @param that the item. + * @param title the title of the item. + */ + void writeItem(String that, String title){ + os.println(""); + os.println(title+""); + os.println(that+""); + } + /** + * Connects to the rosehill database. + */ + public void databaseConnect() { + //obtainProperties(); + try { + Class.forName("oracle.jdbc.driver.OracleDriver"); + con = DriverManager. + getConnection( + Deed.dbConnectStr, + accessUser, accessPass); + stmt = con.createStatement(); + } + catch (Exception sqle){ + sqle.printStackTrace(); + } + } + /** + * Disconnects from the rosehill database. + */ + public void databaseDisconnect(){ + try { + con.close(); + } + catch (Exception e) { + e.printStackTrace(); + } + } + /** + * Adds an extra apostrophy to each occurrence of an apostrophy in the + * input string. + * @param s the input string + * @return String the modified string + */ + final String doubleApostrify(String s){ + StringBuffer apostrophe_safe = new StringBuffer(s); + int len = s.length(); + int c = 0; + while (c < len) { + if (apostrophe_safe.charAt(c) == '\''){ + apostrophe_safe.insert(c, '\''); + c += 2; + len = apostrophe_safe.length(); + } + else{ + c++; + } + } + return apostrophe_safe.toString(); + } + /* + + public void obtainProperties(PrintWriter out){ + + try { + FileInputStream fis = new FileInputStream(new File(iniFile)); + Properties pr = new Properties(); + pr.load(fis); + accessUser = pr.getProperty("accessUser"); + accessPass = pr.getProperty("accessPass"); + + } catch(Exception ee){ + out.println(ee.toString());} + } + */ + +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/RoseHill/DeedZoom.java b/src/RoseHill/DeedZoom.java new file mode 100644 index 0000000..779aee3 --- /dev/null +++ b/src/RoseHill/DeedZoom.java @@ -0,0 +1,512 @@ +package RoseHill; + +import java.util.*; +import java.sql.*; +import java.io.*; +import javax.servlet.*; +import javax.servlet.http.*; +import RoseHill.Deed; + +/** + * Shows a deed record in a form and lets the user to update or delete it. + * @author Walid Sibo + * @version %I%,%G% + */ + +public class DeedZoom extends HttpServlet{ + + Connection con; + + String url = Deed.url; + boolean debug = Deed.debug; + + Statement stmt; + ResultSet rs; + PrintWriter os; + static final String iniFile = ""; + // "/usr/local/jserv/servlets/RoseHill/rosehill.ini"; + //"c:/RoseHill/rosehill.ini"; + + String accessUser = Deed.accessUser; + String accessPass = Deed.accessPass; + + String username = "", password = ""; + public static String[] allmonths = {"JAN","FEB","MAR","APR","MAY","JUN", + "JUL","AUG","SEP","OCT","NOV","DEC"}; + /** + * Shows a deed record in a form. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + + public void doGet(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException { + res.setContentType("text/html"); + PrintWriter os = res.getWriter(); + os.println("Rose Hill, Viewing a Deed Record "+ + ""); + Enumeration values = req.getParameterNames(); + String name, value; + + String id = "", username=""; + String browsebyreturn = ""; + String whoseagendareturn = ""; + String whichdeptreturn = ""; + // obtainProperties(os); + while (values.hasMoreElements()) { + name = ((String)values.nextElement()).trim(); + value = (req.getParameter(name)).trim(); + if (name.equals("id")){ + id = value; + } + if (name.equals("username")){ + username = value; + } + else if (name.equals("browsebyreturn")) { + browsebyreturn = value; + } + else if (name.equals("whoseagendareturn")) { + whoseagendareturn = value; //not used + } + else if (name.equals("whichdeptreturn")) { + whichdeptreturn = value; //not used + } + } + + databaseConnect(); + try { + String query = "Select sec,lot,upper(fname1),mi1,upper(lname1),"+ + "upper(fname2),mi2,upper(lname2),"+ + "to_char(date_issue,'MM/DD/YYYY') date_issue, " + + "notes FROM deed WHERE id=" + id; + + os.println(" "); + os.println(""); + if(debug){ + os.println(""); + os.println(query); + os.println("
    "); + } + String back_to_browse = + ""); + os.println("

    Edit record

    "); + + rs = stmt.executeQuery(query); + rs.next(); + os.println("
    "); + os.println(""); + os.println(""); + os.println(""); + os.println(""); + os.println(""); + + // os.println("
    "); + // os.println(""); + + String str1 = rs.getString(1); + String str2 = rs.getString(2); + String str3 = rs.getString(3); + String str4 = rs.getString(4); + String str5 = rs.getString(5); + String str6 = rs.getString(6); + String str7 = rs.getString(7); + String str8 = rs.getString(8); + String str9 = rs.getString(9); + String str10 = rs.getString(10); + if(str1 == null) str1 =""; + if(str2 == null) str2 =""; + if(str3 == null) str3 =""; + if(str4 == null) str4 =""; + if(str5 == null) str5 =""; + if(str6 == null) str6 =""; + if(str7 == null) str7 =""; + if(str8 == null) str8 =""; + if(str9 == null) str9 =""; + if(str10 == null) str10 =""; + + os.println("
    id" + id + "
    "); + + os.println("
    "); + //the real table + + os.println(""); + os.println(""); + os.println(""); + os.println(""); + os.println(""); + + os.println(""); + + os.println(""); + + os.println(""); + + os.println(""); + + os.println(""); + os.println(""); + os.println(""); + os.println(""); + os.println("
    Section"); + os.println(""); + os.println(""); + os.println("Lot Number"); + os.println("" + + "
    First Name 1"); + os.println(""); + os.println(""); + os.println("MI 1"); + os.println(""); + os.println("Last Name 1"); + os.println("" + + "
    First Name 2"); + os.println(""); + os.println(""); + + os.println("MI 2"); + os.println(""); + os.println("Last Name 2"); + os.println("" + + "
    Date of Issue "); + os.println(""); + os.println("(mm/dd/yyyy)"); + os.println("" + + "
     "+ + "Notes" + + "
    "); + os.println("
    "); + os.println("
    "); + os.println("
    " + back_to_browse); + } + catch (SQLException sqle) { + os.println(sqle); + } + os.print(""); + databaseDisconnect(); + os.close(); + } + + /** + * Updates or deletes a deed record according to users request. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + + public void doPost(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + res.setStatus(HttpServletResponse.SC_OK); + res.setContentType("text/html"); + os=res.getWriter(); + + Enumeration values = req.getParameterNames(); + String name, value, username=""; + + os.println(""); + String id="", sec = "", lot="", fname1=null, + mi1=null, lname1=null,fname2=null,mi2=null, + lname2 = null,date_issue=null,notes=null, + browsebyreturn="", action = "update", + whoseagendareturn = "", whichdeptreturn=""; + + while (values.hasMoreElements()) { + name = ((String)values.nextElement()).trim(); + value = doubleApostrify((req.getParameter(name)).trim()); + + if(!(value.equals("") || name.equals("username"))) + value = value.toUpperCase(); + // + if (name.equals("sec")){ + if(!value.equals("")) + sec = "'"+value+"'"; + } + else if (name.equals("lot")){ + if(!value.equals("")) + lot = "'"+value+"'"; + } + else if (name.equals("fname1")){ + if(!value.equals("")) + fname1="'"+value+"'"; + } + else if (name.equals("mi1")){ + if(!value.equals("")) + mi1="'"+value+"'"; + } + else if (name.equals("lname1")){ + if(!value.equals("")) + lname1="'"+value+"'"; + } + else if (name.equals("fname2")){ + if(!value.equals("")) + fname2 ="'"+value+"'"; + } + else if (name.equals("mi2")){ + if(!value.equals("")) + mi2="'"+value+"'"; + } + else if (name.equals("lname2")){ + if(!value.equals("")) + lname2="'"+value+"'"; + } + else if (name.equals("date_issue")){ + if(!value.equals("")) + date_issue="to_date('" + value + "','MM/DD/YYYY')"; + } + else if (name.equals("notes")){ + if(!value.equals("")) + notes= "'"+value+"'"; + } + else if (name.equals("id")){ + if(!value.equals("")) + id = value; + } + else if (name.equals("username")){ + username = value; + } + else if (name.equals("update")){ + if(!value.equals("")) + action = "update"; + } + else if (name.equals("delete")){ + if(!value.equals("")) + action = "delete"; + } + + } + databaseConnect(); + String query = ""; + if(action.equals("delete")) + query = " delete from deed where id="+id; + else + query = "update deed set sec = "+sec+", " + + "lot =" + lot + ", " + + "fname1 = "+fname1 + ", " + + "mi1 = " + mi1 + ", " + + "lname1 = " + lname1 + ", " + + "lname2 = " + lname2 + ", " + + "fname2 = " + fname2 + ", " + + "mi2 = " + mi2 + ", " + + "date_issue = " + date_issue + ", " + + "notes = " + notes + + " where id = " + id; + + // os.println(query); + boolean success = true; + try { + stmt.executeUpdate(query); + } + catch (Exception ex){ + os.println(ex); + success = false; + } + os.println("" + + ""); + os.println(""); + String back_to_browse = + "
    "; + back_to_browse += "back to browse"; + os.print(back_to_browse); + os.println("

    "); + if(success){ + if(action.equals("update")) + os.println("Record successfully modified!\n"); + else + os.println("Record successfully deleted!\n"); + } + else{ + if(action.equals("update")) + os.println("Problem updating record!\n"); + else + os.println("Problem deleting record!\n"); + } + os.println(""); + os.println(""); + } + /** + * Connects to the rosehill database. + */ + public void databaseConnect() { + try { + Class.forName("oracle.jdbc.driver.OracleDriver"); + con = DriverManager. + getConnection( + Deed.dbConnectStr, + accessUser, accessPass); + stmt = con.createStatement(); + } + catch (Exception sqle) { + sqle.printStackTrace(); + } + } + /** + * Disconnects from the rosehill database. + */ + public void databaseDisconnect() { + try { + con.close(); + } + catch (Exception e) { + e.printStackTrace(); + } + } + /** + * Adds an extra apostrophy to each occurrence of an apostrophy in the + * input string. + * @param s the input string + * @return String the modified string + * + */ + final String doubleApostrify(String s) { + StringBuffer apostrophe_safe = new StringBuffer(s); + int len = s.length(); + int c = 0; + while (c < len) { + if (apostrophe_safe.charAt(c) == '\'') { + apostrophe_safe.insert(c, '\''); + c += 2; + len = apostrophe_safe.length(); + } + else { + c++; + } + } + return apostrophe_safe.toString(); + } + +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/RoseHill/RHAddUser.java b/src/RoseHill/RHAddUser.java new file mode 100644 index 0000000..8975c73 --- /dev/null +++ b/src/RoseHill/RHAddUser.java @@ -0,0 +1,267 @@ +package RoseHill; +import java.util.*; +import java.sql.*; +import java.io.*; +import javax.servlet.*; +import javax.servlet.http.*; +import RoseHill.Deed; + +/** + * Adds a new user to the authorized users. + * @author Walid Sibo + * @version %I%,%G% + */ + +public class RHAddUser extends HttpServlet{ + + /** + * Interface to RoseHill data base. + * @author Walid Sibo + * Date: sept. 2001 + */ + String WEBserver = ""; + String url = Deed.url; + String url2 = Deed.url2; + Connection con; + Statement stmt; + ResultSet rs; + PrintWriter os; + String unicID = ""; + String key = "rosehillKey"; + String secretKey="Absrcht123567663yteuuii7663kfre456aiehhskllj"+ + "76654498776665qweiur3ioojjneklllelllllllq4qqqq477787999999"+ + "99999999999999874873688773139999999999999qqeuuroooeoouuryeioo"+ + "3oowooooeu4eiiiiroooooooooooooo"; + + String username = "", password = ""; + + /** + * Shows a form to input his username. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + public void doGet(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + + res.setContentType("text/html"); + PrintWriter out = res.getWriter(); + HttpSession session = req.getSession(true); + //Hashtable hash = (Hashtable) session.getAttribute("RoseHill.dbase"); + Hashtable hash = (Hashtable) session.getValue("RoseHill.dbase"); + + if(hash == null){ + sendError(out, "Unauthorized User, hash=null"); + out.close(); + return; + } + else{ + String skey = (String) hash.get(key); + // System.err.println("skey="+skey); + if(!skey.equals(secretKey)){ + sendError(out, "Unauthorized User"); + out.close(); + return; + } + } + out.println("Add a New User to RoseHill " + + "Authorized Users"); + out.println(""); + out.println(""); + out.println("
    "); + out.println("

    Add a New User to Authorized "+ + "RoseHill Users

    "); + out.println("

    Enter the user name for the new user "+ + "and then press return.

    "); + out.println("
    "); + out.println(""); + out.println("
    Username
    "); + out.println(""); + out.close(); + + } + /** + * Saves the username in the authorzied table of users to this database. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + public void doPost(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + + res.setStatus(HttpServletResponse.SC_OK); + res.setContentType("text/html"); + os=res.getWriter(); + Enumeration values = req.getParameterNames(); + String name, value; + //obtainProperties(os); + os.println(""); + + HttpSession session = req.getSession(true); + Hashtable hash = (Hashtable) session.getValue("RoseHill.dbase"); + if(hash == null){ + sendError(os, "Add user failed, Unauthorized User"); + os.close(); + return; + } + else{ + String skey = (String) hash.get(key); + // System.err.println("skey="+skey); + if(!skey.equals(secretKey)){ + sendError(os, "Add user failed, Unauthorized User"); + os.close(); + return; + } + } + while (values.hasMoreElements()){ + name = ((String)values.nextElement()).trim(); + value = (req.getParameter(name)).trim(); + if(name.equals("useridField")){ + username = value.toLowerCase(); + } + } + try{ + // + // add the user to the data base + // + databaseConnect(); + // + // check if the table exist + // + try{ + stmt.executeQuery("select count(*) from "+ + "rosehill_authorized"); + } + catch(Exception ex){ + // + // if we get here means that + // this table does not exist yet + // this would happen only for the + // first time use + // + //System.err.println("about to create the table"); + stmt.executeUpdate("create table "+ + "rosehill_authorized ( userid "+ + "varchar(20) not null )"); + } + // System.err.println("insert user in table"); + stmt.executeUpdate("insert into rosehill_authorized "+ + " values ('"+username+"')"); + databaseDisconnect(); + os.println("Add a new User to RoseHill "+ + "Authorized Users"); + os.println(""); + os.println("
    "); + os.println("

    New user added successfully

    "); + os.println("
    "); + os.println("
    "); + os.println("
    "); + os.println("

    "); + os.println("

  • To Add Another User "+ + "
  • "+ + "
  • Go back to main menu
  • "+ + ""+ + "
    "); + os.println(""); + os.println(""); + } + catch (Exception ex) { + os.println(ex); + } + os.flush(); + os.close(); + + } + /** + * Connects to the rosehill database. + */ + public void databaseConnect() { + + try{ + Class.forName("oracle.jdbc.driver.OracleDriver"); + con = DriverManager. + getConnection(Deed.dbConnectStr, + "myr","developer"); + stmt = con.createStatement(); + } + catch (Exception sqle) { + sqle.printStackTrace(); + } + } + /** + * Disconnects from the rosehill database. + */ + public void databaseDisconnect() { + + try { + con.close(); + } + catch (Exception e) { + e.printStackTrace(); + } + } + /** + * Adds an extra apostrophy to each occurrence of an apostrophy in the + * input string. + * @param s the input string + * @return String the modified string + */ + final String doubleApostrify(String s){ + + StringBuffer apostrophe_safe = new StringBuffer(s); + int len = s.length(); + int c = 0; + while (c < len){ + if (apostrophe_safe.charAt(c) == '\''){ + apostrophe_safe.insert(c, '\''); + c += 2; + len = apostrophe_safe.length(); + } + else { + c++; + } + } + return apostrophe_safe.toString(); + } + /** + * Shows an error message in html format. + * @param out the output stream + * @param message the output message + * @throws IOException + */ + void sendError(PrintWriter out, String message)throws IOException{ + + out.println(""); + out.println("Add User "); + out.println(""); + out.println("

    Error in login

    "); + out.println("

    "+message+"

    "); + out.println(""); + out.println(""); + + } + +} + diff --git a/src/RoseHill/RHAdminLogin.java b/src/RoseHill/RHAdminLogin.java new file mode 100644 index 0000000..ecd48d3 --- /dev/null +++ b/src/RoseHill/RHAdminLogin.java @@ -0,0 +1,192 @@ +package RoseHill; +import java.util.*; +import java.sql.*; +import java.io.*; +import javax.servlet.*; +import javax.servlet.http.*; +import RoseHill.Deed; + +/** + * The admin login interface. + * @author Walid Sibo + * @version %I%,%G% + */ +public class RHAdminLogin extends HttpServlet { + + String url = Deed.url; + String WEBserver = ""; // not used + Connection con; + Statement stmt; + ResultSet rs; + PrintWriter os; + String unicID = ""; + String key ="rosehillKey"; + String secretKey="Absrcht123567663yteuuii7663kfre456aiehhskllj"+ + "76654498776665qweiur3ioojjneklllelllllllq4qqqq477787999999"+ + "99999999999999874873688773139999999999999qqeuuroooeoouuryeioo"+ + "3oowooooeu4eiiiiroooooooooooooo"; + + String username = "", password = ""; + /** + * Presents the login screen for the admin user. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + + public void doGet(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException { + + res.setContentType("text/html"); + PrintWriter out = res.getWriter(); + out.println("LDAP Editor Login Page"); + out.println(""); + out.println(""); + out.println("
    "); + out.println("

    RoseHill Adminstrator Login Page

    "); + + out.println("
    "); + out.println(""); + out.println(" "); + out.println(""); + out.println(""); + out.println("
    Username
    Password
    "); + out.println(" "); + out.println(""); + out.close(); + } + /** + * Validates if the user is an admin authorized. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + public void doPost(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + + res.setStatus(HttpServletResponse.SC_OK); + res.setContentType("text/html"); + os=res.getWriter(); + Enumeration values = req.getParameterNames(); + String name, value; + //obtainProperties(os); + os.println(""); + HttpSession session = req.getSession(true); + Hashtable hash = (Hashtable) session.getValue("RoseHill.dbase"); + if(hash == null){ + hash = new Hashtable(); + session.putValue("RoseHill.dbase", hash); + } + + while (values.hasMoreElements()) { + name = ((String)values.nextElement()).trim(); + value = (req.getParameter(name)).trim(); + + if (name.equals("useridField")) { + username = value.toLowerCase(); + } + else if (name.equals("passwordField")) { + password = value; + } + } + try { + + if (!(username.equals("admin") && password.equals("lita98!"))) { + os.println("login failed
    "); + os.println("Press the BACK button on your web " + + "browser to try again
    "); + os.println(""); + os.println(""); + } else { + // + // to make sure that the add user is called after the admin + // request and nobody else + // + hash.put(key, secretKey); + // WS + // TODO + // add new authorised user to the table of + // authorized users + // System.err.println("authorized next to adduser"); + os.println(""); + os.println(""); + os.println(""); + os.println(""); + } + } + catch (Exception ex) { + os.println(ex); + } + os.flush(); + } + /** + * Connects to the rosehill database. + */ + public void databaseConnect() { + try { + Class.forName("oracle.jdbc.driver.OracleDriver"); + con = DriverManager. + getConnection(Deed.dbConnectStr, + "myr","developer"); + stmt = con.createStatement(); + } + catch (Exception sqle) { + sqle.printStackTrace(); + } + } + /** + * Disconnects from the rosehill database. + */ + public void databaseDisconnect() { + try { + con.close(); + } + catch (Exception e) { + e.printStackTrace(); + } + } + /** + * Adds an extra apostrophy to each occurrence of an apostrophy in the + * input string. + * @param s the input string + * @return String the modified string + */ + final String doubleApostrify(String s) { + StringBuffer apostrophe_safe = new StringBuffer(s); + int len = s.length(); + int c = 0; + while (c < len) { + if (apostrophe_safe.charAt(c) == '\'') { + apostrophe_safe.insert(c, '\''); + c += 2; + len = apostrophe_safe.length(); + } + else { + c++; + } + } + return apostrophe_safe.toString(); + } + +} + diff --git a/src/RoseHill/RHAdminMenu.java b/src/RoseHill/RHAdminMenu.java new file mode 100644 index 0000000..d01b9f4 --- /dev/null +++ b/src/RoseHill/RHAdminMenu.java @@ -0,0 +1,191 @@ +package RoseHill; +import java.util.*; +import java.sql.*; +import java.io.*; +import javax.servlet.*; +import javax.servlet.http.*; +import RoseHill.Deed; + +/** + * Adds a new user to the authorized users. + * @author Walid Sibo + * @version %I%,%G% + */ + +public class RHAdminMenu extends HttpServlet{ + + /* + * Interface to RoseHill data base. + * @author Walid Sibo + * Date: sept. 2001 + */ + String WEBserver = ""; + String url = Deed.url; + Connection con; + Statement stmt; + ResultSet rs; + PrintWriter os; + String unicID = ""; + String key = "rosehillKey"; + String secretKey="Absrcht123567663yteuuii7663kfre456aiehhskllj"+ + "76654498776665qweiur3ioojjneklllelllllllq4qqqq477787999999"+ + "99999999999999874873688773139999999999999qqeuuroooeoouuryeioo"+ + "3oowooooeu4eiiiiroooooooooooooo"; + + String username = "", password = ""; + /** + * Presents a form with menu of selections. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + public void doGet(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + + res.setContentType("text/html"); + PrintWriter out = res.getWriter(); + HttpSession session = req.getSession(true); + //Hashtable hash = (Hashtable) session.getAttribute("RoseHill.dbase"); + Hashtable hash = (Hashtable) session.getValue("RoseHill.dbase"); + + if(hash == null){ + sendError(out, "Unauthorized User, hash=null"); + out.close(); + return; + } + else{ + String skey = (String) hash.get(key); + // System.err.println("skey="+skey); + if(!skey.equals(secretKey)){ + sendError(out, "Unauthorized User"); + out.close(); + return; + } + } + out.println("Rose Hill Administrator Menu " + + ""); + out.println(""); + out.println(""); + out.println("
    "); + out.println("

    Rose Hill Administrator Menu "+ + "RoseHill Users

    "); + out.println("

    Select one of the following options; "+ + "

    "); + + out.println("
    "); + out.println("
    "); + out.println("
    "); + out.println("

    "); + out.println("

  • To Add a New User "+ + "
  • "+ + "
  • Delete an Existing User
  • "+ + ""+ + "
    "); + + out.println(""); + out.close(); + + } + /** + * Presents the user with a selection menu. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + public void doPost(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + + doGet(req, res); + + } + /** + * Connects to the rosehill database. + */ + public void databaseConnect() { + + try{ + Class.forName("oracle.jdbc.driver.OracleDriver"); + con = DriverManager. + getConnection(Deed.dbConnectStr, + "myr","developer"); + stmt = con.createStatement(); + } + catch (Exception sqle) { + sqle.printStackTrace(); + } + } + /** + * Disconnects from the rosehill database. + */ + public void databaseDisconnect() { + + try { + con.close(); + } + catch (Exception e) { + e.printStackTrace(); + } + } + /** + * Adds an extra apostrophy to each occurrence of an apostrophy in the + * input string. + * @param s the input string + * @return String the modified string + */ + final String doubleApostrify(String s){ + + StringBuffer apostrophe_safe = new StringBuffer(s); + int len = s.length(); + int c = 0; + while (c < len){ + if (apostrophe_safe.charAt(c) == '\''){ + apostrophe_safe.insert(c, '\''); + c += 2; + len = apostrophe_safe.length(); + } + else { + c++; + } + } + return apostrophe_safe.toString(); + } + /** + * Shows an error message in html format. + * @param out the output stream + * @param message the output message + * @throws IOException + */ + void sendError(PrintWriter out, String message)throws IOException{ + + out.println(""); + out.println("Add User "); + out.println(""); + out.println("

    Error in login

    "); + out.println("

    "+message+"

    "); + out.println(""); + out.println(""); + + } + +} + diff --git a/src/RoseHill/RHDeleteUser.java b/src/RoseHill/RHDeleteUser.java new file mode 100644 index 0000000..65142db --- /dev/null +++ b/src/RoseHill/RHDeleteUser.java @@ -0,0 +1,281 @@ +package RoseHill; +import java.util.*; +import java.sql.*; +import java.io.*; +import javax.servlet.*; +import javax.servlet.http.*; +import RoseHill.Deed; + +/** + * Adds a new user to the authorized users. + * @author Walid Sibo + * @version %I%,%G% + */ +public class RHDeleteUser extends HttpServlet{ + + /** + * Interface to RoseHill data base. + * @author Walid Sibo + * Date: sept. 2001 + */ + + String WEBserver = ""; + Connection con; + Statement stmt; + ResultSet rs; + PrintWriter os; + String unicID = ""; + String url = Deed.url; + String url2 = Deed.url2; + String key = "rosehillKey"; + + String secretKey="Absrcht123567663yteuuii7663kfre456aiehhskllj"+ + "76654498776665qweiur3ioojjneklllelllllllq4qqqq477787999999"+ + "99999999999999874873688773139999999999999qqeuuroooeoouuryeioo"+ + "3oowooooeu4eiiiiroooooooooooooo"; + /** + * Shows a form to input the username that need to be deleted. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + public void doGet(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + + String username = "", password = "", username2=""; + res.setContentType("text/html"); + PrintWriter out = res.getWriter(); + HttpSession session = req.getSession(true); + Hashtable hash = (Hashtable) session.getValue("RoseHill.dbase"); + + if(hash == null){ + // System.err.println("hash is null"); + sendError(out, "Unauthorized User"); + out.close(); + return; + } + else{ + String skey = (String) hash.get(key); + // System.err.println("in delete skey="+skey); + if(!skey.equals(secretKey)){ + sendError(out, "Unauthorized User"); + out.close(); + return; + } + } + + out.println("Delete a User from RoseHill "+ + "Authorized Users"); + out.println(""); + out.println(""); + out.println("

    Delete a User from Authorized "+ + "RoseHill Users

    "); + out.println("

    Enter/Select the user name for the user "+ + "and then press return.

    "); + + out.println("
    "); + out.println("
    Username
    "); + databaseConnect(); + + out.println("
    List of Current Users
    "); + out.println(""); + out.println("
    "); + databaseDisconnect(); + + out.println("
    "); + out.println(""); + out.close(); + + } + /** + * Deletes a user from the authorized users. + * @param req the request input stream + * @param res the ouput stream + * @throws ServletException + * @throws IOException + */ + public void doPost(HttpServletRequest req, + HttpServletResponse res) + throws ServletException, IOException{ + + res.setStatus(HttpServletResponse.SC_OK); + res.setContentType("text/html"); + String username = "", password = "", username2=""; + os=res.getWriter(); + Enumeration values = req.getParameterNames(); + String name, value; + //obtainProperties(os); + os.println(""); + + HttpSession session = req.getSession(true); + Hashtable hash = (Hashtable) session.getValue("RoseHill.dbase"); + if(hash == null){ + sendError(os, "Delete user failed, Unauthorized User"); + os.close(); + return; + } + else{ + String skey = (String) hash.get(key); + // System.err.println("skey="+skey); + if(!skey.equals(secretKey)){ + sendError(os, "Delete user failed, Unauthorized User"); + os.close(); + return; + } + } + while (values.hasMoreElements()){ + name = ((String)values.nextElement()).trim(); + value = (req.getParameter(name)).trim(); + if (name.equals("useridField")){ + username = value.toLowerCase(); + } + if (name.equals("lst")){ + username2 = value.toLowerCase(); + } + } + if(username.equals("")) username = username2; + try { + // + // delete the user to the data base + // + databaseConnect(); + + stmt.executeUpdate("delete from rosehill_authorized "+ + " where userid='"+username+"'"); + databaseDisconnect(); + os.println("User "+username+" deleted from "+ + "RoseHill "+ + "Authorized Users"); + os.println("

    User "+username+" deleted from "+ + "Authorized Users Successfully

    "); + + os.println(""); + os.println("
    "); + os.println("
    "); + os.println("
    "); + os.println("

    "); + os.println("

  • To Delete "+ + "Another User
  • "+ + "
  • Go back to main menu
  • "+ + ""+ + "
    "); + + os.println(""); + os.println(""); + } + + catch (Exception ex) { + os.println(ex); + } + os.flush(); + os.close(); + } + /** + * Connects to the rosehill database. + */ + public void databaseConnect() { + try { + Class.forName("oracle.jdbc.driver.OracleDriver"); + con = DriverManager. + getConnection(Deed.dbConnectStr, + "myr","developer"); + stmt = con.createStatement(); + } + catch (Exception sqle) { + sqle.printStackTrace(); + } + } + /** + * Disconnects from the rosehill database. + */ + public void databaseDisconnect(){ + + try { + con.close(); + } + catch (Exception e){ + e.printStackTrace(); + } + } + /** + * Adds an extra apostrophy to each occurrence of an apostrophy in the + * input string. + * @param s the input string + * @return String the modified string + */ + final String doubleApostrify(String s){ + + StringBuffer apostrophe_safe = new StringBuffer(s); + int len = s.length(); + int c = 0; + while (c < len){ + if (apostrophe_safe.charAt(c) == '\''){ + apostrophe_safe.insert(c, '\''); + c += 2; + len = apostrophe_safe.length(); + } + else{ + c++; + } + } + return apostrophe_safe.toString(); + } + + /** + * Shows an error message in html format. + * @param out the output stream + * @param message the output message + * @throws IOException + */ + + void sendError(PrintWriter out, String message)throws IOException{ + + out.println(""); + out.println("Add User "); + out.println(""); + out.println("

    Error in login

    "); + out.println("

    "+message+"

    "); + out.println(""); + out.println(""); + + } + /** + * Gets the list of current authorized users. + * @param out the ouput stream + * @return String the list of users + */ + public String getUsers(PrintWriter out){ + String ret = ""; + try { + rs = stmt.executeQuery("select * from rosehill_authorized order by userid"); + while(rs.next()) { + String str = rs.getString(1); + if(str != null) + ret = ret + "