Commit Graph

96 Commits

Author SHA1 Message Date
Robert von Burg 6bd1ed58ad [New] Added limit and sorting to Audit query incl. REST API 2015-04-04 18:29:33 +02:00
Robert von Burg 5d7cf8469f [New] added elementSubType to REST API for querying Audits 2015-04-04 18:05:39 +02:00
Robert von Burg aa11f8098a [New] Added elementSubType to Audit 2015-04-04 17:53:54 +02:00
Robert von Burg 30608ba99a [New] Added REST API to query Audits 2015-04-02 20:26:20 +02:00
Robert von Burg da329c6e46 [New] Added new constructors to Result for ServiceResults 2015-03-22 00:34:31 +01:00
Robert von Burg 01963c7c20 [New] removed need for StrolchPrivilegeAdmin role (user privileges!) 2015-03-18 20:40:41 +01:00
Robert von Burg 296054cf55 [Major] refactored LoginResult - now return sessionId as well
- thus the previous sessionId was renamed to authToken, which is what it
is from certificate
- added sessionId to as we need it to handle session specific data
- also return firstname and lastname on LoginResult
2015-03-17 21:40:08 +01:00
Robert von Burg 172f384680 [New] Implemented UserSessionsService methods properly 2015-03-15 23:45:43 +01:00
Robert von Burg e0b2f32b4f [New] Added UserSession querying and modifying 2015-03-14 21:24:18 +01:00
Robert von Burg 2ee0d2fb4e [New] Added UserSession querying and modifying 2015-03-14 21:23:10 +01:00
Robert von Burg 33041f2b06 [Major] refactored privileges returned on LoginResult 2015-03-12 22:59:12 +01:00
Robert von Burg 819ae53708 [Minor] added missing PrivilegePolicies:
<Policy name="RoleAccessPrivilege"
    class="ch.eitchnet.privilege.policy.RoleAccessPrivilege" />
<Policy name="UserAccessPrivilege" 
    class="ch.eitchnet.privilege.policy.UserAccessPrivilege" />
2015-03-12 18:05:46 +01:00
Robert von Burg 5ffc03f115 [Minor] removed reference to non existing role PrivilegAdmin in users 2015-03-12 18:01:02 +01:00
Robert von Burg fa3fe89237 [Minor] removed requirement for PrivilegeAdmin role in priv. handler 2015-03-12 17:44:46 +01:00
Robert von Burg 5675027f6c [Minor] removed the PrivilegeAdmin role from all PrivilegeModel.xml 2015-03-12 17:43:42 +01:00
Robert von Burg 5602f56c15 [Major] allow user to change their own locale incl. auto persist 2015-03-08 21:44:35 +01:00
Robert von Burg 86895c7aa5 [New] Implemented Rest API for user management 2015-03-08 20:51:46 +01:00
Robert von Burg f774cfb4d5 [New] Added rest services for privilege management
- not yet all services are implemented
- not yet tested
2015-03-08 13:38:59 +01:00
Robert von Burg e961aa8cd3 [Project] Bumped version from 1.2.0-SNAPSHOT to 1.1.0-SNAPSHOT 2015-03-02 14:29:34 +01:00
Robert von Burg 460c26126e [Project] Bumped version from 1.1.0-SNAPSHOT to 1.2.0-SNAPSHOT 2015-03-02 14:28:18 +01:00
Robert von Burg 52e06f1818 [Project] Bumped version to 1.1.0-SNAPSHOT 2015-03-02 13:43:45 +01:00
Robert von Burg a46d5364e4 [Minor] better logging in AuthenicationRequestFilter 2015-02-28 20:43:05 +01:00
Robert von Burg 3fc4c83a61 [Minor] removed all tx.commitOnClose() for read only TXs 2015-02-06 22:13:48 +01:00
Robert von Burg 46ccb921df [Major] Refactored how a TX is closed
- So sadly just auto closing a TX using try-resource from Java7 is a bad idea.
- Doing that leads to problems when an exception is thrown, then the close is called (duh) but this leads to commit being called.
- Since the Java language does not offer a decent way to detect if the close is being called in the context of an exception i was forced to add a tx.commitOnClose() and tx.rollbackOnClose().
- The default is that when a TX is opened, then the close strategy is rollback; the API user must call tx.commitOnClose() before the TX is closed by the braces, or as late as possible, to make sure that if an exception is thrown the transaction is rolled back, and not committed.
- The API was also extended with a tx.fail(msg):StrolchTransactionException so that if the implementor detects an unrecoverable error, one can write: throw tx.fail(“my reason”);

This was sadly an unavoidable late 1.0.0 change
Conflicts:
	li.strolch.agent/src/main/java/li/strolch/persistence/api/AbstractTransaction.java
2015-02-03 23:21:28 +01:00
Robert von Burg 9505ab355c [New] Added new StrolchAccessDeniedException for use in ServiceHandler
Now if you add the DefaultServiceHandler property 'throwOnPrivilegeFail'
and set it to true, then the service handler will throw a
StrolchAccessDeniedException which in combination with the
StrolchRestfulExceptionMapper allows rest services to quickly determine
if the error was because the user does not have access to the requested
resource.

Same goes for performing queries in AbstractTransaction only there
instead of throwing a privilege exception, we now also throw a
StrolchAccessDeniedException
2015-01-18 18:37:04 +01:00
Reto Breitenmoser e39df60247 [Minor] added cache mode setting for rest http header (defaults to
no-cache)
2015-01-17 10:30:45 +01:00
Robert von Burg e44775f30b [Bugfix] fixed not unlocked objects after TX
When a TX is closed, all locked objects are unlocked. The but originated from multiple commands being performed for the same object, thus the object was locked multiple times i.e. the lock counter was >1. Now added a releaseLock() method which is called by the TX when the TX is closed so that the lock counter is really 0 and the lock is released.

- Added tests for this situation
- documented the LockHandler
2015-01-16 13:59:17 +01:00
Robert von Burg b70ee2d228 [New] Added LoginResult.getRoles(), modified logs
- also log user when performing service calls
- also log user when committing TX
2014-12-31 16:41:00 +01:00
Robert von Burg 1231eb1f49 [Minor] don't return default locale, if none is passed by HTTP client 2014-12-20 23:20:21 +01:00
Robert von Burg 1844a4aee6 [Minor] removed the setting of the locale from HTTP Headers 2014-12-02 23:24:03 +01:00
Robert von Burg fd07280edf [Minor] don't send whole strack trace to client 2014-11-28 22:50:10 +01:00
Robert von Burg 84d287dca4 [New] rest logging configuration: 'restLogging' 'restLoggingEntity' 2014-11-14 16:43:44 +01:00
Robert von Burg 7e68717d99 [New] rest logging configuration: 'restLogging' 'restLoggingEntity' 2014-11-14 16:41:46 +01:00
Robert von Burg bdaceb46f7 [Minor] only show rest trace summary on stage and prod 2014-11-14 16:13:54 +01:00
Robert von Burg 4c637ea144 [New] rest tracing configuration: 'restTracing' 'restTracingThreshold' 2014-11-14 16:03:43 +01:00
Robert von Burg 8d5d8b2c89 [Minor] AuthenicationRequestFilter and AuthenticationService changes
Now we check that the authorization header always exists except for the
AuthenticationService.login
2014-10-31 20:53:56 +01:00
Robert von Burg 4f9cd72d68 [Bugfix] fixed bug where certificate.lastAccess was not set after login 2014-10-31 20:47:26 +01:00
Robert von Burg d55371e9b7 [Minor] fixed component version descriptions 2014-10-04 14:35:01 +02:00
Robert von Burg 32c17858e1 [Major] Added Session timeout handling
SessionHandler now has a timer checking to make sure that sessions which haven’t been accessed for a time defined by ‘session.ttl.minutes’ are invalidated
2014-09-27 12:30:35 +02:00
Robert von Burg ada9abb097 [Project] Bumped version from 1.0.0-RC1 to 1.0.0-SNAPSHOT 2014-09-20 15:23:11 +02:00
Robert von Burg 7c0ab16c9e [Project] bumped version from 1.0.0-SNAPSHOT to 1.0.0-RC1 2014-09-20 14:38:29 +02:00
Robert von Burg 890b9f47cd [New] added new setVersion.sh script 2014-09-20 00:31:04 +02:00
Robert von Burg fe37e0aae0 [Project] added a new parent pom where Strolch's version is set 2014-09-19 20:09:42 +02:00
Robert von Burg f590a12e3a [Project] added a new parent pom where Strolch's version is set 2014-09-19 19:23:49 +02:00
Robert von Burg 6b5006c0bb [Project] fixed scm configuration in poms 2014-09-19 18:31:55 +02:00
Robert von Burg c64421a0d7 moved everything to a subdirectory for repo merge 2014-09-16 08:52:52 +02:00