Commit Graph

57 Commits

Author SHA1 Message Date
Robert von Burg 33cfc9b9d7 [Project] Added missing secret keys 2019-03-09 20:05:41 +01:00
Robert von Burg 45189a5bc3 [Major] Extended StrolchDao with paging feature 2019-03-05 17:57:59 +01:00
Robert von Burg ced8c42c57 [Major] Implemented persisting of OperationsLog 2018-10-15 11:06:45 +02:00
Robert von Burg b6819c4b47 [Major] Removed serializable and reformatted all code 2018-10-05 09:17:13 +02:00
Robert von Burg 5af1297f91 [Fix] Fixed broken tests 2018-07-02 16:42:21 +02:00
Robert von Burg a16cee1500 [Major] Added JSON data type for persisting in PostgreSQL 2018-07-02 13:18:10 +02:00
Robert von Burg 20632279f9 [Project] Updated Strolch model files to include schema definition 2018-06-26 18:20:07 +02:00
Robert von Burg 1c2d048c45 [Major] Only use tx.get*Map() if you really need it! 2018-06-22 13:14:14 +02:00
Robert von Burg 2907df815a [Project] Added privilege StrolchSearch 2018-03-20 07:46:50 +01:00
Robert von Burg fee696a5ef [Fix] Fixed compile errors 2018-03-14 10:10:01 +01:00
Robert von Burg 315879ebe1 [Major] (Re-)Implemented XML Persistence 2018-02-27 09:00:26 +01:00
Robert von Burg 0575ee1795 Revert "[Project] removed persistence.xml module"
This reverts commit 37d66f0
2018-02-26 08:36:18 +01:00
Robert von Burg 37d66f0768 [Project] removed persistence.xml module 2017-09-28 12:03:08 +02:00
Robert von Burg ad8f0220e9 [Project] filter all property files 2017-06-20 15:38:46 +02:00
Robert von Burg 4c9e66876a [Major] Privilege passwords are now salted! 2017-05-22 14:37:48 +02:00
Robert von Burg 4a32d06371 [Project] switched tests to use logback-classic 2017-05-22 10:17:55 +02:00
Robert von Burg dd227c65d0 [Major] Refactored SystemAction in privileges
Simplified the API, removed the privileged user - now always use the
agent system user for running system actions. One method has no return
value and one has a return value. Now it is easy to perform a system
action using:

    runAsAgent(ctx -> {
      // do work			
    });

    String result = runAsAgentWithResult(ctx -> {
      // do work
      return "done";
    });

    // execute a SystemAction
    runAsAgent(action);

    // execute a SystemActionWithResult
    String result = runAsAgentWithResult(actionWithResult);
2016-09-29 12:26:27 +02:00
Robert von Burg 19d519a408 [Project] Fixed version in persistence.xml 2016-09-22 15:27:18 +02:00
Robert von Burg bda16a0f80 [Project] Updated project for deployment to Maven Central 2016-09-22 09:37:55 +02:00
Robert von Burg bcc0bf4a10 [Major] Now users can reset their own passwords
- built in User Challenge feature (currently only console)
- extended REST API to allow user to initiate a challenge and then use
the challenge to authenticate for a one time change password session
2016-09-07 14:41:16 +02:00
Robert von Burg 07daf34f86 [Major] Implemented opt-in versioning
- fixing remaining PostgreSQL DAO tests
2016-08-08 09:30:56 +02:00
Robert von Burg 7bdeac179c [Minor] Fixed compilation error by adding auto generated stubs 2016-08-07 12:14:59 +02:00
Robert von Burg 9dc09515e9 [Major] Implemented opt-in versioning
Now all root elements have a version, and if the realm has versioning
enabled, then actions through the ElementMap lead to new versions being
created. There are also methods to revert/undo changes to an object.

Some tests are still failing, this will be fixed later
2016-08-05 20:24:23 +02:00
Robert von Burg 0703103d3b [Major] Refactored object hierarchy and added version to objects
- New ParameterBagContainer interface for GroupedParameterizedElement
- StrolchRootElement extends ParameterBagContainer
- StrolchRootElement is now required in Queries, not StrolchElement
- New Version object on StrolchRootElement
2016-07-31 14:56:57 +02:00
Robert von Burg 612745098b [Project] Set new SNAPSHOT version 1.3.0-SNAPSHOT 2016-07-05 09:57:44 +02:00
Robert von Burg 611a7c670a [Project] Set new SNAPSHOT version 1.2.1-SNAPSHOT 2016-07-05 09:56:56 +02:00
Robert von Burg e15b93e690 [Project] Set version 1.2.0 2016-07-05 09:52:34 +02:00
Robert von Burg 11ba7eb1de [Major] Moved ch.eitchnet to li.strolch 2016-06-26 11:38:41 +02:00
Robert von Burg 3b7e5200fa [Project] Removed parent 2016-06-24 18:05:45 +02:00
Robert von Burg 14197ed644 [Major] Cleaning up parents 2016-06-24 18:00:44 +02:00
Robert von Burg 53d21eefd2 [Major] Add new tests to performance test project 2016-03-27 19:23:35 +02:00
Robert von Burg 0cadf66f3f [Major] Refactored Privilege to use separate mode files
So now users and roles are in their own files. This makes it far easier
to add new privileges without needing to take care if the user changed
their data.
2016-02-28 19:54:17 +01:00
Robert von Burg 041e506b45 [Minor] Fixing broken XmlPersistenceHandler tests 2016-02-27 13:53:01 +01:00
Robert von Burg 8344c75d39 [Major] Refactored setup of StrolchAgent using StrolchBootstrapper
Now instead of instantiating StrolchAgent and calling the method
setup(), instantiate StrolchBootstrapper and call one of the setup
methods which is appropriate to your use-case.

New feature is to use a StrolchBootstrap.xml to configure the
environment, root, config and data paths. Each can be defined by
environment and overridden, etc.
2016-02-27 13:32:18 +01:00
Robert von Burg 69eb5ccf38 [Major] Refactored query API
- Now added ordering
- added setters for visitors on query
-
2015-08-10 22:21:45 +02:00
Robert von Burg 5822c231f0 [Major] Added SAX XML persistence incl. DOM for Activities 2015-07-08 08:21:11 +02:00
Robert von Burg c499f53758 [New][Devel] Work in progress of implementing ActivityMap
- Implemented XML persistence

Still missing is fixing the tests. Currently no tests were run, just
fixed remaining compile errors
2015-06-29 08:37:20 +02:00
Robert von Burg 521bd84ce0 [Major] StrolchComponent methods can now throw Exception
- execption handling is done in the ComponentContainerStateHandler
- clients now not need to worry about exceptions which would make them
  rethrow anyhow as a runtime exception
2015-06-11 19:19:52 +02:00
Robert von Burg 503bdbe4d6 [Major] refactored SystemUserActions in privilege
Now a SystemUserAction is defined as follows:
<Privilege name="ch.eitchnet.privilege.handler.SystemUserAction" 
    policy="DefaultPrivilege">
  <Allow>li.strolch.agent.impl.StartRealms</Allow>
</Privilege>
2015-06-03 23:32:23 +02: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 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 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 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 d55371e9b7 [Minor] fixed component version descriptions 2014-10-04 14:35:01 +02:00
Robert von Burg 96740a571c [Major] Added a DB initialization mechanism
Now PostgreSQL implementation can import a configured dataStore if the persistence handler configuration property ‘allowDataInitOnSchemaCreate’. For this to work, the schema must have a migration status of CREATED, or DROPPED_CREATED on startup, or using the new method PersistenceHandler.performDbInitialization()-method. Further the properties ‘allowSchemaDrop’ and ‘allowSchemaCreate’ must be enabled.
2014-09-23 23:57:11 +02:00