Robert von Burg
874acc5828
fixed wrong namespace in PrivilegeModel.xsd
2013-08-12 17:00:05 +02:00
Robert von Burg
1430c9217b
Fixed remaining failing tests by implementing the replacing of objects
...
in the filter as required
2013-08-12 11:54:57 +02:00
U-PX\rvb
6fe7cce9fe
Merge branch 'master' of github.com:eitch/ch.eitchnet.utils
2013-08-12 11:10:51 +02:00
Robert von Burg
c4e6c5e65d
Refactored InitializationHelper so it can take an InputStream
...
Also renamed it to PrivilegeInitializationHelper
2013-08-12 11:04:42 +02:00
Robert von Burg
f53c20d515
extended XmlHelper to take InputStream and always use \n as line sep
2013-08-12 11:02:02 +02:00
Robert von Burg
4263f46934
[Major] Refactoring the ObjectFilter to no longer rely on an interface
...
Now the objects put into the cache no longer need to implement an
interface, this makes it easier to adopt the filter in different
scenarios.
Tests written to validate that the filter works as expected. Still some
outstanding tests which currently fail
2013-08-10 00:37:21 +02:00
Robert von Burg
3b2a397063
[Devel] still implementing new visitor pattern
2013-08-08 00:34:49 +02:00
Robert von Burg
d7f10a731f
[Minor] fixed compiler warnings
...
fixed multiple compiler warnings about broken JavaDocs and pom which was
still set to Java 1.6, now changed to 1.7
2013-08-08 00:32:39 +02:00
Robert von Burg
300399e9c0
Merge branch 'master' of git@github.com:eitch/ch.eitchnet.utils.git
2013-08-08 00:01:38 +02:00
Robert von Burg
2bc24c68c8
[New] set new version to 0.2.0-SNAPSHOT
2013-08-08 00:00:47 +02:00
Robert von Burg
d2ee280dbe
[New] Refactored the ObjectCache to not used a generic T in the class
...
There was no use and it only made the code unreadable.
2013-08-08 00:00:18 +02:00
Robert von Burg
0605dd784f
[Devel] reimplementing using visitor pattern
...
Changing to the visitor pattern will make it easier to implement a SAX
reader and writer
2013-08-07 22:55:18 +02:00
Robert von Burg
6eb34ff532
[Minor] fixed problem with build on mvn cli
...
The problem was due to a naming problem with the PrivilegeMessages class
and property bundle having the same name and being in the same package.
Moved the properties file now to the resources directory
2013-04-19 21:33:18 +02:00
Robert von Burg
7700694a84
[New] add new method ArraysHelper.copyOf(byte[])
2013-04-09 19:25:07 +02:00
Robert von Burg
93022ba559
[Major] major rewrite of the privilege validation.
...
Now the PrivilegeContext object is central and once the user logged in,
this object is bound to a ThreadLocal. From then there is no further
need to interact with the PrivilegeHandler - this allows for
authenticated users to get a remote copy of the PrivilegeContext so that
on a remote client, the user can check for permissions, without having
to do the round trip to the server.
A code review of this change would be good, but preliminary tests show
that it works. A test should now be implemented to check if getting a
remote copy also allows for authorization.
2013-04-09 07:33:32 +02:00
Martin
2a6ec4cf0c
Added Serializable interface to value model objects
2013-03-31 13:57:57 +02:00
Robert von Burg
9261494667
[Minor] cleaned up doc and implemented missing toString() and equals()
...
A number classes had JavaDocs with @see parameters on overriding
methods. This was changed so that they were removed, as they are not
needed.
In some classes the toString() methods were missing, as well as equals()
and hashcode() they were now added
2013-03-26 19:42:17 +01:00
Robert von Burg
44cb148036
[Minor] code cleanup
...
- cleaned up JavaDoc for some classes
- changed equals() to not use instanceOf but class==class
- set some fields private which were package scope
2013-03-24 12:23:29 +01:00
Robert von Burg
17525a41d5
[Bugfix] fixed failing test due to uppercase/lowercase change of BASE16
2013-03-17 12:08:12 +01:00
Robert von Burg
3310a8d471
Update README.md
...
Described the dependencies, features and how to build of XmlPers
2013-03-13 17:29:28 +01:00
Robert von Burg
841fedafdf
Update README.md
...
Added information which classes exist and what they are for.
Added how to build description
2013-03-13 17:13:27 +01:00
Robert von Burg
cca9426358
[Minor] changed alphabet of StringHelper.getHexString() to have capital
...
letters, this corresponds to RFC4648
2013-03-11 22:50:05 +01:00
Robert von Burg
a94981e741
[New] Added new methods to FileHelper to read and write byte arrays.
...
Fixed missing close on existing methods
2013-03-11 21:23:50 +01:00
Robert von Burg
e587229914
[New] added new StringHelper.hash*AsHex() methods as a nice API
2013-03-10 23:58:06 +01:00
Robert von Burg
85bab370a5
[Major] Refactored the base encoding
...
Merged the BaseEncoding and BaseDecoding classes as it seems a better
fit. Added isBaseEncoded methos for checking
2013-03-10 22:09:43 +01:00
Robert von Burg
706d2413ac
[New] added tests for the dmedia base32 encoding
...
Since Jason DeRose now put up some test vectors for the dmedia base32
encoding, i thought it wise to add these in a test
2013-03-01 18:45:59 +01:00
Robert von Burg
4723608d62
[Minor] fixed failing tests on Java 1.7 due to expected execution
2013-02-24 11:49:44 +01:00
Robert von Burg
5b846a1c62
Merge branch 'master' of github.com:eitch/li.strolch.model
2013-02-24 11:28:15 +01:00
Robert von Burg
bf250de0f9
Merge branch 'master' of ssh://github.com/eitch/ch.eitchnet.privilege
2013-02-24 11:27:34 +01:00
Robert von Burg
5ddb277773
[New] Implemented RFC 4648 Base de/encoding
...
Both encoding and decoding has been implemented. The specialty of this
implementation is that it is possible to pass in your own alphabet thus
allowing an extension without a re-implementation (again).
As an addition the dbase32 alphabet was added. See
http://docs.novacut.com/dbase32/dbase32.html for usage details
2013-02-24 11:26:44 +01:00
Robert von Burg
f04de1e935
Minor code cleanup
2013-02-10 18:38:59 +01:00
Robert von Burg
4d61872094
fixed failing junit tests
2013-02-10 18:38:40 +01:00
Robert von Burg
6f5f03f6af
Merge branch 'master' of github.com:eitch/ch.eitchnet.utils
2013-02-09 16:27:11 +01:00
Robert von Burg
b36ab20dc3
[New] Added Dmedia Base32 encoding
2013-02-09 16:25:36 +01:00
Robert von Burg
1cf1a16683
[New] Added Base64, Base32 and Base16 encoding
2013-02-09 15:52:25 +01:00
Robert von Burg
c085625cce
[Minor] JavaDoc comments and file headers
...
fixed some JavaDoc comments and file headers
2013-01-31 19:08:26 +01:00
Robert von Burg
acef67a99f
[Minor] code cleanup
...
commented out unneeded code
2013-01-31 19:07:37 +01:00
Robert von Burg
ca74bf2ae8
[Minor] JavaDoc comments and file headers
...
fixed some JavaDoc comments and file headers
2013-01-31 18:57:38 +01:00
Robert von Burg
a69946d8d4
Update pom.xml
...
Added distribution management to deploy to nexus.eitchnet.ch (fixed wrong URL)
2013-01-30 15:06:43 +01:00
Robert von Burg
8d893d87a0
Update pom.xml
...
Added distribution management to deploy to nexus.eitchnet.ch (fixed wrong URL)
2013-01-30 15:05:22 +01:00
Robert von Burg
8a661ff04e
Update pom.xml
...
Added distribution management to deploy to nexus.eitchnet.ch (fixed wrong URL)
2013-01-30 15:02:53 +01:00
Robert von Burg
08c70f5ec0
Update pom.xml
...
Added distribution management to deploy to nexus.eitchnet.ch
2013-01-30 15:02:17 +01:00
Robert von Burg
1fbe3cb090
Update pom.xml
...
Added distribution management to deploy to nexus.eitchnet.ch
2013-01-30 14:56:56 +01:00
Robert von Burg
a8d8702464
Update pom.xml
...
Added distribution management to deploy to nexus.eitchnet.ch
2013-01-30 14:54:33 +01:00
Robert von Burg
487ad3e826
Fefactored xml parsing and writing to no longer depend on JDom. Now
...
only basic Java XML is used.
2013-01-21 18:39:11 +01:00
Robert von Burg
64e6111c53
Fixed a log message about number of objects added in transaction
2013-01-21 18:29:27 +01:00
Robert von Burg
33df39c03c
Modified XmlDao to have a Document as input to create the DOM
...
representation of the object.
2013-01-21 18:16:21 +01:00
Robert von Burg
f92afab671
Removed local XmlHelper and moved it to ch.eitchnet.utils
2013-01-20 23:21:56 +01:00
Robert von Burg
81a76a5fe0
[New] Added XmlHelper
2013-01-20 23:20:36 +01:00
Robert von Burg
5fcea2bb77
[New] added StringHelper.parseBoolean() to check if the string value
...
passed is either false or true, not allowing other string values.
2013-01-20 23:17:14 +01:00