Commit Graph

3575 Commits

Author SHA1 Message Date
Robert von Burg e2ebcd1fc6 Fixed some unnecessary TODOs 2013-01-20 22:50:03 +01:00
Robert von Burg f67fbe4edb fixed XXX in copyright headers 2013-01-20 22:44:25 +01:00
Robert von Burg b5b9465dbe fixed compilation warning 2013-01-20 22:35:59 +01:00
Robert von Burg 7814b844a1 fixed an NPE when a user has no parameters during SAX parsing 2013-01-20 22:34:46 +01:00
Robert von Burg 663a0b5995 Merge branch 'switchToJdkSax' 2013-01-20 22:28:57 +01:00
Robert von Burg 5a9104ebbb Fixed failing tests due to a problem in Java 7 changing the byte code
compilation sequence, thus the tests must have better sequencing
2013-01-20 22:21:14 +01:00
Robert von Burg e76d9f9121 Implemented XML parsing and writing by using basic Java implementation 2013-01-20 21:26:18 +01:00
Robert von Burg 39e2eee613 Merge pull request #1 from msmock/master
Value Framework
2012-12-11 00:32:57 -08:00
Martin 38842051d1 TimeValue Framework
Implementation of the time value framework and the timed state build
upon
2012-12-10 17:38:41 +01:00
Robert von Burg 9970055cf9 [New] added preliminary XML schemas for XML files 2012-12-04 20:30:04 +01:00
Robert von Burg 717e2de556 [Minor] cleaned up test
tests left some state files, which are now cleaned up as well
2012-12-01 00:12:00 +01:00
Robert von Burg e0f0b67f60 [Bugfix] fixed failing tests
The tests did not work because of some previous refactoring or some
other weirdness. Solved this issue now by initializing better the
persistence handler for testing
2012-12-01 00:08:09 +01:00
Robert von Burg 28a60b52f7 [New] implemented auto persist on password change
Through configuration option it is now possible to enable automatic
persisting after password change, no matter who the user is.
2012-12-01 00:06:54 +01:00
Robert von Burg f73d829822 [Minor] moved exceptions to base package
Exceptions were previously in package i18n, this didn't make sense, so
they were move to base
2012-12-01 00:04:45 +01:00
Robert von Burg c324b22adf [New] Implemented Model tests
Added tests to test creating Resource and Order and each has a
ParameterBag. The bag has all kinds of Parameters added and each is
tested that it exists and that the right value is stored
2012-11-30 18:57:54 +01:00
Robert von Burg 6b5860c05f [Minor] code cleanup, and fixes in StringListParameter 2012-11-25 18:08:56 +01:00
Robert von Burg 054aa7706e [New] Created ListParameter interface
ListParameter contains methods to handle single values for parameters of
lists of values and also is a marker interface for list parameters.

StringListParameter is the first implementation
2012-11-25 17:26:28 +01:00
Robert von Burg bb9087eba9 [Major] refactored ParameterizedElement
ParameterizedElement is now the parent for all objects with Parameters.
ParameterBag is a sub class of ParameterizedElement.

Resource now extends GroupedParameterizedElement which implements the
container for ParameterBags.

Parameters have been moved to package ch.eitchnet.model.parameter
2012-11-25 17:23:43 +01:00
Robert von Burg bf5b83de22 [New] added log4j.xml configuration file to resources 2012-11-25 00:46:48 +01:00
Robert von Burg e5c23a8924 [Minor] Removed dependency to ch.eitchnet.log4j and thus added log4j.xml
The log4j.xml configuration file is in the test resources and now the
project is completely free of a dependency to a concrete logging
implementation as all logging of the sources is done over slf4j
2012-11-25 00:46:19 +01:00
Robert von Burg 5e56bf28d4 [Minor] Removed dependency to ch.eitchnet.log4j and thus added log4j.xml
The log4j.xml configuration file is in the test resources and now the
project is completely free of a dependency to a concrete logging
implementation as all logging of the sources is done over slf4j
2012-11-25 00:45:47 +01:00
Robert von Burg eac0782810 [Minor] Removed dependency to ch.eitchnet.log4j and thus added log4j.xml
The log4j.xml configuration file is in the test resources and now the
project is completely free of a dependency to a concrete logging
implementation as all logging of the sources is done over slf4j
2012-11-25 00:44:56 +01:00
Robert von Burg 05640bfbbe [Major] refactored use of log4j to slf4j 2012-11-24 13:29:57 +01:00
Robert von Burg 2b0e23eb28 [Major] refactored use of log4j to slf4j 2012-11-24 13:23:49 +01:00
Robert von Burg 38466685a0 [Major] refactored use of log4j to slf4j 2012-11-24 13:23:24 +01:00
Robert von Burg 3f5bf2d334 [Major] refactored use of log4j to slf4j 2012-11-24 13:22:40 +01:00
Robert von Burg 12cd5fbc55 Initial commit 2012-11-19 23:25:55 +01:00
Robert von Burg aa75be2bb6 Initial commit 2012-11-19 23:22:59 +01:00
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