Commit Graph

3797 Commits

Author SHA1 Message Date
Robert von Burg 59e25a8e75 [Minor] code cleanup 2012-11-19 22:50:32 +01:00
Robert von Burg 2fc807fe11 [Minor] cleaned up warnings in code and cleaned up pom.xml 2012-11-19 22:44:07 +01:00
Robert von Burg bb7042524f [New] added new utility method StringHelper.isEmpty() which also checks
for null
2012-11-16 19:42:58 +01:00
Robert von Burg 0d392b1c60 [New] added new formatting functions in StringHelper
- formatNanoDuration(long:nanos):String
- formatMillisecondsDuration(millis:long):String
2012-11-16 09:58:52 +01:00
Robert von Burg 8b780368d7 [Devel] implementing PrivilegeHandler.runAsSystem()
Implementing the runAsSystem() so that special actions can be performed,
where no user is logged in

Refactored the test classes so that model specific classes are in the
model sub package.
2012-08-05 01:33:54 +02:00
Robert von Burg eec0b67135 [Minor] updated dependency to ch.eitchnet.utils to 0.1.0 2012-08-04 21:37:09 +02:00
Robert von Burg 3831d29a12 [Minor] updated dependency to ch.eitchnet.utils to 0.1.0 2012-08-04 21:36:49 +02:00
Robert von Burg 45e5eac46d [Minor] change modifier of DefaultPrivilegeHandler.nextSessionId()
set method DefaultPrivilegeHandler.nextSessionId() to protected from
private so it can be used in sub classes
2012-08-04 21:31:56 +02:00
Robert von Burg 925623bc93 [Minor] cleaned up copyright notices in all classes 2012-07-29 18:28:22 +02:00
Robert von Burg 2afba1876c [Major] added methods to SystemHelper and new class ProcessHelper
SystemHelper now has a number of methods to query OS information

ProcessHelper is a helper to execute system calls
2012-07-29 18:27:15 +02:00
Robert von Burg b78e9bb064 [New] added a new PrivilegeHandler.queryUser(UserRep) to query users
- The querying is done by passing a UserRep with all the fields set
which
need to be equal to select the user. Null fields are understood as not
required

- Performed further clean up in that all password variables have been
changed to type byte[].

- Cleaned up copyright notices in files

- fixed version of Privilege 0.1.0-SNAPSHOT in pom.xml
2012-07-29 18:23:31 +02:00
Robert von Burg f471be1ea7 [Minor] change mvn eclipse configuration to load sources as well 2012-07-28 23:17:45 +02:00
Robert von Burg 61f6e6cdc4 [Minor] change mvn eclipse configuration to load sources as well 2012-07-28 23:17:07 +02:00
Robert von Burg ffc9fa77cd [Minor] change mvn eclipse configuration to load sources as well 2012-07-28 23:16:16 +02:00
Robert von Burg 7dbd5af6a7 [Bugfix] fixed a resource leak where a BufferedReader was not close
In FileHelper.readFileToString() the BufferedReader was not closed. This
has been corrected
2012-07-28 22:50:52 +02:00
Robert von Burg 7e6987b358 [Minor] Added eclipse settings to .gitignore 2012-07-28 15:47:26 +02:00
Robert von Burg 50f2cba067 [Minor] Added eclipse settings file to .gitignore 2012-07-28 15:46:29 +02:00
Robert von Burg c65fe9c247 [Minor] added eclipse settings path to .gitignore 2012-07-28 15:44:47 +02:00
Robert von Burg 0e026bf713 [Major] rebuilt project to use Maven.
- Now a "mvn compile" will build the project
- Note, that since ch.eitchnet.utils is a dependency, it must be installed first using "mvn install" to be able to compile Privilege
2012-07-28 15:40:01 +02:00
Robert von Burg 10b8cb4071 [Major] rebuilt project to use Maven.
- Now a "mvn compile" will build the project downloading dependencies as needed
- Note: as ch.eitchnet.utils is a dependency, it must be installed first by using "mvn install"
2012-07-28 15:37:24 +02:00
Robert von Burg 2a3222ba66 [Major] rebuilt project using maven
- Now "mvn compile" will build the project and also download dependencies as needed.
- The ant script does not work anymore
2012-07-28 15:34:37 +02:00
Robert von Burg a3d73329bd [New] Added packaging information and files and licence
This includes setting the licence to LGPL, setting the headers, adding a build script and testing the build
2012-06-14 23:40:29 +02:00
Robert von Burg 97bd5cf5a4 [New] Added packaging information and files and licence
This includes setting the licence to LGPL, setting the headers, adding a build script and testing the build
2012-06-14 23:38:50 +02:00
Robert von Burg 4956925329 [New] Initial commit of the XML Persistence implementation
This is a rudimentary implementation which works in that objects can be written to the DB, read back and helper methods like keySet, size are also implemented
2012-06-08 19:05:57 +02:00
Robert von Burg 82368adaff [New] Initial commit of the utils
This is initial commit includes
* a RMI handler which can be used for easy up- and downloading of files over RMI
* a FileHelper
* a Log4jConfigurator
* a StringHelper
* a SystemHelper
* a ObjectFilter which is used for caching operations to objects. These objects must implement ITransactionObject
2012-06-08 19:01:28 +02:00
Robert von Burg b8ece51dbe Initial commit 2012-06-08 09:47:44 -07:00
Robert von Burg 7017a8cfa0 Initial commit 2012-06-08 09:46:26 -07:00
Robert von Burg c44b30a1e1 [Internal] bumped the MANIFEST.MF version to 0.0.3 2011-11-11 10:58:19 +01:00
Robert von Burg 81cb2aa8ae [Interface] added a property map to the Certificate which is a copy of
the users properties on login. This map can be used to configure the
user's session
2011-11-11 10:56:56 +01:00
Robert von Burg 3c322c5b88 [Internal] minor project building changes 2011-11-09 15:05:36 +01:00
Robert von Burg db3c086d39 [Minor] minor message change where if <AllAllowed> is false, the policy,
deny and allow must be defined. This is now better communicated in the
exception message
2011-11-09 15:05:05 +01:00
Robert von Burg cb6215b235 [Bugfix] fixed a bug where if the <AllAllowed> tag was not defined in
the PrivilegeModel.xml file then a NullPointer was thrown. It is now
possible to leave out this tag, in which case false is assumed
2011-11-09 15:03:50 +01:00
Robert von Burg 058e67f10e [New] it is now possible for a user to change their own password 2011-08-07 16:13:23 +02:00
Robert von Burg bb515756cb [New] Changed Privilege Users to have a map of properties with which
meta data of a user can be stored. This can be used for validationg
privileges on user specific data
2011-08-07 16:00:38 +02:00
Robert von Burg 8967f78113 [Minor] Added the build directory dist to the ignore list 2011-08-07 13:52:09 +02:00
Robert von Burg c594d373d4 [New] added the README file with a general overview, it is not finished, but has the basics 2011-08-07 13:48:56 +02:00
eitch bef87b1a18 [Minor] code comments cleanup, added LGPL reference and copyright notice 2011-08-07 10:14:40 +00:00
eitch 4c455c130a 2011-07-31 15:18:29 +00:00
eitch e8a7fb5cf9 [Interface] changed all methods which return boolean on action allowed to be void as they must throw exceptions if the privilege is not granted 2011-07-30 17:34:53 +00:00
eitch 6191949c3e [Minor] logging of authentication attempts 2011-07-30 14:10:47 +00:00
eitch 8b9c8ea1e5 [Major] refactored the use of the Privilege class, now Roles have Privileges in a composition relationship 2011-07-30 13:20:08 +00:00
eitch 65c17ab4a3 [New] added a PasswordCreaterUI with which hashes of passwords can be created 2011-07-29 19:52:44 +00:00
eitch 20a696918b 2011-07-29 19:51:00 +00:00
eitch 7e82285306 [Minor] logging of authentication attempts 2011-07-29 00:30:08 +00:00
eitch d2dff36b4b [Minor] exposed some fields of the DefaultPrivilegeHandler by setting them to protected 2011-07-28 22:31:18 +00:00
eitch f26013583d [Interface] modified privilege to have only two configuration files: Privilege.xml for the configuration for the handlers and Policies. and PrivilegeModel.xml for the configuration of the run time modifiable data (roles, users, privileges) 2011-07-28 20:50:35 +00:00
eitch e7b8de2765 2011-07-27 20:21:17 +00:00
eitch 2758aa61d1 2011-07-27 20:16:05 +00:00
eitch 42383f9400 [New] added a new PrivilegeHandler.invalidate(Certificate)-method with which users can log out of Privilege 2011-07-27 20:15:47 +00:00
eitch e5f80cc5c7 2011-07-25 22:42:49 +00:00