Commit Graph

8 Commits

Author SHA1 Message Date
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 e76d9f9121 Implemented XML parsing and writing by using basic Java implementation 2013-01-20 21:26:18 +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 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
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 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 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