Commit Graph

138 Commits

Author SHA1 Message Date
Robert von Burg a70b430986 [Minor] set parent version to 1.0.0-SNAPSHOT 2014-09-19 21:12:03 +02:00
Robert von Burg e3dab98b3f [Minor] code cleanup 2014-09-14 12:19:34 +02:00
Robert von Burg 901c2c86f2 [New] added PrivilegeContext.getFlatAllowList()
This allows to query all the allows which can be used to define which
UIs and buttons to show on a client
2014-09-08 13:35:02 +02:00
Robert von Burg dd9824f130 [Project] set version to 1.0.0-SNAPSHOT 2014-08-24 18:17:35 +02:00
Robert von Burg 7e4adffb4c [Project] set version to 1.0.0-SNAPSHOT 2014-08-24 17:21:29 +02:00
Robert von Burg bb949f38af [Minor] Added check for user's referencing inexistant oles 2014-08-22 22:28:33 +02:00
Robert von Burg d2faed1d2e [Major] added firstname and lastname to certificate
Also renamed model attribute from surname to lastname
2014-08-22 20:36:18 +02:00
Robert von Burg b47d3e3dcd [Minor] firstname and lastname are not required for SYSTEM users 2014-08-22 18:54:10 +02:00
Robert von Burg 828d725a69 [Project] using parent version 1.1.0-SNAPSHOT 2014-08-14 16:22:15 +02:00
Robert von Burg 32c2c43fbd [New] added Certificate.sessionDataMap for mutable session information 2014-08-04 00:44:09 +02:00
Robert von Burg 2e1412de93 [Major] Removed the use of a ThreadLocal for the PrivilegeContext
ThreadLocals are bad idea when ClassLoaders come into play, so removing
the need makes Privilege better usable in different contexts.
2014-04-15 19:18:11 +02:00
Robert von Burg 77f631a2dc [Project] fixed urls of projects 2014-03-14 14:36:07 +01:00
Robert von Burg 58b742d5d9 [Minor] using Deque instead of Stack 2014-02-01 13:47:04 +01:00
Robert von Burg 5e6423c443 [Bugfix] fixed NPE when Certificate is created with null properties 2014-01-28 22:19:15 +01:00
Robert von Burg 4627f59a80 [Minor] properties are read-only on Certificate 2014-01-28 22:07:04 +01:00
Robert von Burg 1f28237091 [Project] added Jenkins build badge to README.md 2014-01-23 22:59:42 +01:00
Robert von Burg 11f53cb272 [Minor] removed the use of the authPass in the certificate 2013-12-29 23:12:37 +01:00
Robert von Burg bab1e4b119 [Bugfix] fixed a bug where the role were not properly read from XML
Added tests for reading the model from XML
2013-12-28 12:16:48 +01:00
Robert von Burg 5d59a52eeb [Minor] Throwing explicit exception system user tries to login
Further enforcing that a system user may not have a password
2013-12-28 10:55:58 +01:00
Robert von Burg 3727d3545f [Minor] cleaned up all compiler warnings 2013-12-25 14:37:22 +01:00
Robert von Burg 15a245d94e [Minor] added new initialization to PrivilegeInitializationHelper
Configuration can now be parsed and then passed to an initialization
method
2013-12-25 13:10:58 +01:00
Robert von Burg 85db07a002 [Minor] fixed issue where eclipse couldn't validate log4j.xml 2013-12-25 11:55:55 +01:00
Robert von Burg 744920a62b [Minor] removed use of deprecated JUnit classes 2013-12-24 02:42:29 +01:00
Robert von Burg 036c725a52 [Project] Changed all licence references to Apache License 2.0 2013-12-15 13:38:29 +01:00
Robert von Burg a8b0f37834 [Minor] Changed exceptions to contain cause and code clean up 2013-11-16 01:08:27 +01:00
Robert von Burg 01884029b8 [Minor] removed unused file config/Model.xml 2013-11-15 18:44:55 +01:00
Robert von Burg f2fd1233d9 [Minor] renamed validateIsPrivilegeAdmin to assertIsPrivilegeAdmin 2013-10-28 22:00:33 +01:00
Robert von Burg 33d7fb2e33 [Minor] cleaned up .gitignore 2013-10-28 18:56:38 +01:00
Robert von Burg bac94f6075 [Minor] set parent to 0.1.0-SNAPSHOT 2013-10-27 23:06:19 +01:00
Robert von Burg 6f0c623d20 [Project] added dependency of ch.eitchnet.utils:0.2.0-SNAPSHOT 2013-09-21 10:07:31 +02:00
Robert von Burg a68c44c9fd [Project] moved some project details to parent ch.eitchnet.parent
This simplifies project setup and maintenance
2013-09-21 09:11:34 +02:00
Robert von Burg 3d8fa992d4 [Project] moved some project details to parent ch.eitchnet.parent
This simplifies project setup and maintenance
2013-09-21 09:03:05 +02:00
Robert von Burg 31c6acec6c [Minor] fixed failing test due to different formatting of xml writing 2013-09-15 21:57:42 +02:00
Robert von Burg 874acc5828 fixed wrong namespace in PrivilegeModel.xsd 2013-08-12 17:00:05 +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 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 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 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
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 bf250de0f9 Merge branch 'master' of ssh://github.com/eitch/ch.eitchnet.privilege 2013-02-24 11:27:34 +01:00
Robert von Burg acef67a99f [Minor] code cleanup
commented out unneeded code
2013-01-31 19:07:37 +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 f92afab671 Removed local XmlHelper and moved it to ch.eitchnet.utils 2013-01-20 23:21:56 +01:00
Robert von Burg dfbae9b6cb moved XML schemas to src/main/resoures/ 2013-01-20 22:53:58 +01:00
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