Commit Graph

23 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 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 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
eitch 1d410a6ede 2010-09-18 20:13:31 +00:00
eitch c5fe322c5f 2010-09-18 20:03:09 +00:00
eitch 28f1e4a662 2010-08-02 23:20:54 +00:00
eitch 57f0164e38 2010-07-14 21:26:52 +00:00
eitch f491dd7293 2010-06-20 20:13:58 +00:00
eitch dc414218e6 2010-06-05 21:06:03 +00:00
eitch ddb1aa279a - remodelled privilege to be its own object and put all models into the persistence handler 2010-06-03 20:37:00 +00:00
eitch 152d58d515 2010-05-31 21:55:52 +00:00
eitch 756ae1e3e9 2010-05-31 21:44:15 +00:00
eitch 0775f52b0c 2010-05-31 19:34:26 +00:00
eitch 89e4f30bcf 2010-05-30 19:28:39 +00:00
eitch 00ed10014d 2010-05-29 22:32:53 +00:00
eitch d4f471028e 2010-05-29 19:11:28 +00:00
eitch 4d46267b1d 2010-05-25 21:15:35 +00:00