Commit Graph

387 Commits

Author SHA1 Message Date
Robert von Burg 60c57efc28 [Fix] Added trigger after calling SetActionStateService 2019-10-21 16:58:53 +02:00
Robert von Burg 72f77b2360 [Fix] Fixed broken tests 2019-10-18 22:57:43 +02:00
Robert von Burg 8ee29b7688 [Fix] Use relation in ExecutionCommand.updateOrderState() instead of type/id 2019-10-17 16:23:03 +02:00
Robert von Burg faf9df3556 [Major] Fixed and renamed I18n* classes 2019-10-11 15:56:22 +02:00
Robert von Burg 2697f5947c [Major] Removed ISO8061Duration, replace with PeriodDuration 2019-09-09 14:40:28 +02:00
Robert von Burg 704dc2b702 [Fix] Fixed test due to message change 2019-09-04 13:24:26 +02:00
Robert von Burg ef2b57d6dd [Fix] Fixed broken test 2019-08-29 08:45:39 +02:00
Robert von Burg 67d77bafea [New] Extended ExecutionHandler to be paused, persisted over reboots 2019-08-27 08:35:18 +02:00
Robert von Burg 44f7ed163e [New] Added I18n*Bundles for quick i18n 2019-08-27 08:30:53 +02:00
Robert von Burg 8ff7e83a90 [Minor] java doc in MailHandler 2019-06-27 11:37:37 +02:00
Robert von Burg d99c029433 [New] Added StrolchRootElementListResult 2019-06-19 13:13:01 +02:00
Robert von Burg 4da1353bc1 [New] Extended GenericReport with additionalType joining 2019-06-04 12:43:00 +02:00
Robert von Burg f587e06183 [Fix] Handle missing activity in EventBasedExecutionHandler.archiveActivity() 2019-05-15 13:22:26 +02:00
Robert von Burg ffe6b8abdc [Fix] Archive activity after toExecution() if state is executed 2019-05-15 11:32:45 +02:00
Robert von Burg 251d0cab1f [New] Added new StringListArgument 2019-05-06 14:49:24 +02:00
Robert von Burg 78c96d4351 [Fix] Fixed parsing and formatting of Locale 2019-04-10 16:44:52 +02:00
Robert von Burg 74a649d2d7 [Fix] Fixed NPE in DefaultServiceHandler 2019-04-01 16:53:07 +02:00
Robert von Burg 5bde584774 [Major] New TransactionCloseStrategy.DEFAULT, added readOnly flag for openTx 2019-04-01 16:31:53 +02:00
Robert von Burg 104add7035 [Minor] Fixed logger in SetActionTo* commands 2019-03-13 15:26:56 +01:00
Robert von Burg dc9e1d09f1 [Minor] Added JsonServiceArgument.objectType 2019-03-13 15:21:49 +01:00
Robert von Burg 33cfc9b9d7 [Project] Added missing secret keys 2019-03-09 20:05:41 +01:00
Robert von Burg 04c5263eeb [Major] Added request source for REST calls 2019-03-09 19:38:30 +01:00
Robert von Burg cc15510753 [New] Added PrivilegeAddUserCommand.setCert() 2019-03-07 14:28:13 +01:00
Robert von Burg e4cad10afc [New] New StringArgument 2019-03-07 14:27:56 +01:00
Robert von Burg 724c106273 [Fix] Fixed formatting of numbers in SQL 2019-03-05 19:06:49 +01:00
Robert von Burg 0d1ab66cb9 [Major] Made GenericReport to be auto closeable 2019-03-05 18:01:09 +01:00
Robert von Burg 7d87589ce2 [Minor] Log when activity is complete and needs archiving 2019-02-22 15:44:54 +01:00
Robert von Burg 21c414ab00 [Major] runAs*() now throws Exception 2018-12-18 14:30:37 +01:00
Robert von Burg 15a03928e2 [Major] Refactored StrolchXmlHelper 2018-12-12 10:58:13 +01:00
Robert von Burg 22883faa0d [Major] Implemented Control REST Service 2018-12-04 09:00:00 +01:00
Robert von Burg 84cf1471ea [New] Added privileges for viewable reports 2018-11-08 10:48:23 +01:00
Robert von Burg 34d53d5d56 [Fix] Ignore duplicate calls in SimpleDurationExecutionTimer for same Locator 2018-10-23 15:26:54 +02:00
Robert von Burg 038dc62d8d [New] Update existing sessions when modifying roles and users 2018-10-16 13:34:43 +02:00
Robert von Burg ced8c42c57 [Major] Implemented persisting of OperationsLog 2018-10-15 11:06:45 +02:00
Robert von Burg 1c6d873e5c [New] added ArchiveExecutedActivitiesJob 2018-10-05 13:31:33 +02:00
Robert von Burg b6819c4b47 [Major] Removed serializable and reformatted all code 2018-10-05 09:17:13 +02:00
Robert von Burg 0c287b917a [Minor] use tx.findParameterOnHierarchy() in GenericReport 2018-10-04 19:05:04 +02:00
Robert von Burg b02731ac74 [New] New method tx.findParameterOnHierarchy() 2018-10-04 19:04:36 +02:00
Robert von Burg 8516233943 [Minor] compile error fix in ShiftActionTest 2018-09-28 18:53:47 +02:00
Robert von Burg c8d23d0393 [Fix] lock action's resource early by locator to stop race condition 2018-09-12 10:29:45 +02:00
Reto Breitenmoser 4a751412ca [Fix] switched params for sorting (desc,asc) 2018-09-11 14:46:48 +02:00
Robert von Burg e4a91526d8 [Minor] make sure objectType param exists in GenericReport 2018-09-11 09:11:12 +02:00
Robert von Burg 91167cfccd [Major] Clean up of the services to add, update, remove root elements 2018-09-10 12:51:38 +02:00
Robert von Burg 9b8e91d0a5 [New] Added REST API for Reports 2018-09-07 10:17:37 +02:00
Robert von Burg 966fbf6f69 [Fix] Fixed counter in reports 2018-09-06 20:27:54 +02:00
Robert von Burg 1ed1d57880 [Fix] Fixed calculating size, by peeking the stream 2018-09-06 19:46:46 +02:00
Robert von Burg 96180ce91e [Major] Cleanup services to add/update/remove resources/orders/activities 2018-09-05 17:48:12 +02:00
Robert von Burg 7677d27442 [Fix] Fixed behavior of IsIn and Contains ReportFilters 2018-08-30 13:08:59 +02:00
Robert von Burg 3b1d8ce6e5 [Fix] Fixed broken tests 2018-08-29 13:45:08 +02:00
Robert von Burg 13f180fe6d [New] GenericReport: sorting of filter criteria and hiding of them 2018-08-29 13:12:45 +02:00
Robert von Burg bce72f76f6 [Fix] Fixed log output of SetActionTo* commands 2018-08-27 10:21:35 +02:00
Robert von Burg 844bb670b4 [New] Added ExecutionPolicy.runAsAgentWithResult() 2018-08-23 10:51:07 +02:00
Robert von Burg 15db21b45e [Major] Call validate() in EventBasedExecutionHandler and lock action/activie 2018-08-23 10:50:51 +02:00
Reto Breitenmoser f05b02e956 [New] added Contains Report Filter 2018-08-21 10:18:00 +02:00
Reto Breitenmoser 2ddc98fe04 [New] added isIn Report Filter 2018-08-20 21:32:25 +02:00
Robert von Burg 0c8f0df318 [New] Added getter for underlying ReportPolicy in Report 2018-08-16 13:37:11 +02:00
Robert von Burg 374cd77d6d [New] Added JavaDoc to GenericReport 2018-08-13 17:46:01 +02:00
Robert von Burg f1f689b8ca [New] Added exception to OperationsLog 2018-08-07 13:54:17 +02:00
Robert von Burg e644b43e2c [Major] Refactored Operations Log 2018-08-03 14:13:46 +02:00
Robert von Burg 060e3f21ad [New] Allow to reference object in report 2018-07-13 12:19:23 +02:00
Robert von Burg 2d7ade06a8 [Minor] Find dependency by String as well as Interpretation and UOM 2018-07-03 15:26:32 +02:00
Robert von Burg ea4bfa8a6a [Minor] Report takes the container from the TX 2018-06-30 20:41:04 +02:00
Robert von Burg e61a4f94f1 [Fix] clone activity before modifying in EventBasedExecutionHandler 2018-06-28 16:23:31 +02:00
Robert von Burg 466838d73b [New] Implemented LessThan and now(Period) filter in reports 2018-06-27 11:12:46 +02:00
Robert von Burg c052911d71 [Major] Refactored ReportFilterPolicy for easier extension 2018-06-26 18:30:29 +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 bbf021f73b [Fix] Fixed bug where changed element is not returned in streams 2018-06-22 11:38:24 +02:00
Robert von Burg d3375455d6 [Minor] catch exception on stop in StrolchComponents 2018-06-21 17:54:02 +02:00
Robert von Burg d535bf9a5a [Minor] Handle wrong type of join parameter in GenericReport 2018-06-20 15:04:55 +02:00
Robert von Burg 2ee6f9a689 [Project] Fixed db test user examples in README.md 2018-06-18 11:07:34 +02:00
Robert von Burg fa9d0afacf [Fix] Don't toString columnValues in GenericReport before necessary 2018-05-29 10:04:28 +02:00
Robert von Burg 87d9b83f38 [Fix] Don't toString columnValues in GenericReport before necessary 2018-05-29 09:48:07 +02:00
Robert von Burg f8ea8998b1 [Minor] Fixed JavaDoc due to doclint errors 2018-04-04 16:02:45 +02:00
Robert von Burg 5b6183319c [Fix] don't persist set password if don't have privilege 2018-03-29 16:56:24 +02:00
Robert von Burg 3eba63ff13 [Minor] code cleanup in planning tests 2018-03-26 10:41:25 +02:00
Robert von Burg 9ccaf5392a [Minor] Persist roles and users after changes 2018-03-20 14:30:12 +01:00
Robert von Burg 2907df815a [Project] Added privilege StrolchSearch 2018-03-20 07:46:50 +01:00
Robert von Burg 6d7e473564 [Major] Implemented user modification in inspector 2018-03-16 17:17:59 +01:00
Robert von Burg abeceb7a6c [Minor] more waiting in LockingTest 2018-03-09 10:42:16 +01:00
Robert von Burg 20cd71ab6a [Minor] Use ? extends StrolchRootElement in GenericReport 2018-03-08 18:07:11 +01:00
Robert von Burg 4f2fd4648a [Fix] fix broken tests 2018-02-28 09:10:47 +01:00
Robert von Burg 676bb9c11e [Fix] Fixed broken tests 2018-02-28 09:04:49 +01:00
Robert von Burg c66f7c2805 [Major] Implement StrolchElement.isReadOnly() and .setReadOnly()
Modifying a read only element causes an exception. Retrieving elements from the TX, or directly from the ElementMap returns a clone, so nothing changes there. But elements returned by a query will have their readOnly flag set, thus if these are modified, then they need to be cloned first.
2018-02-27 14:46:23 +01:00
Robert von Burg f3ea159052 [Major] RIP transactional mode 2018-02-09 22:16:34 +01:00
Robert von Burg 475c719859 [Major] Reworked visitors: StrolchElement.accept(StrolchElementVisitor) 2018-02-09 09:49:51 +01:00
Robert von Burg 50c379d06d [Major] Using executor pools with names in StrolchAgent 2017-12-19 14:54:57 +01:00
Robert von Burg 04f4fed0ba [New] Added toJson() to ServiceResult, ModelStatistics 2017-11-29 16:56:36 +01:00
Robert von Burg 4513de79af [Minor] Log error in SimpleExecution.java.toError(LogMessage) 2017-11-21 18:04:21 +01:00
Robert von Burg 93e099f101 [New] Adding value changes to actions on execution 2017-11-07 07:40:31 +01:00
Robert von Burg b05c3db748 [Fix] Allow missing join to not crash report on filter of said join 2017-11-02 17:53:49 +01:00
Robert von Burg 2d60a352b4 [Fix] Fix not allow to re-add removed element with versioning enabled 2017-11-01 10:15:21 +01:00
Robert von Burg d21785edd0 [Fix] Allow to archive activities in state CLOSED 2017-10-31 10:55:47 +01:00
Robert von Burg b0ef4ff50d [New] Allow to handle missing columns 2017-10-27 19:22:22 +02:00
Robert von Burg 7c15a8d7c5 [New] Added ExecutionHandler.archiveActivity() 2017-10-27 09:20:32 +02:00
Robert von Burg 3bcd2075d3 [Fix] filter to only StringParameters in joining of GenericReport 2017-10-18 16:33:56 +02:00
Robert von Burg c0bf2ae428 [Major] Refactored GenericReport into Policies for extension 2017-10-18 13:11:39 +02:00
Robert von Burg 7dd6aa8afc [Minor] logger fix in Migrations 2017-10-12 16:13:59 +02:00
Robert von Burg c7fc11f563 [Fix] Fixed reservation problem in concurrent execution 2017-10-09 12:31:02 +02:00
Robert von Burg adf53dd49f [Major] Implemented SingleSignOn facility for Privilege 2017-10-06 16:59:22 +02:00
Robert von Burg 4087608e1a [Fix] Throw Exception on programmer mistake if no commitOnClose with + 2017-10-05 09:54:42 +02:00
Robert von Burg dad2f35b16 [Major] Multiple changes to StrolchTransaction:
New:
- needsCommit() -> return true if objects or commands are registered
- hasResource()
- hasOrder()
- hasActivity()

Changes:
- When tx.add(), update() or remove() is called, then get*Template(),  or get*By() check the internal cache and thus e.g. a new resource is immediately available.
- the has*()-methods also check the internal cache, thus the need to get the underlying maps should now no longe be required in normal TX use.
2017-10-04 13:10:20 +02:00
Robert von Burg 2c5dddd893 [Major] rename add/update/remove methods in StrolchTransaction 2017-10-03 11:41:30 +02:00
Robert von Burg 84d3ca4666 [Minor] Some code cleanup for JDK 9 2017-09-29 16:21:21 +02:00
Robert von Burg 2cb799dfb4 [Major] Removed the need for javax.xml.bind.* imports. Using gson 2017-09-29 15:57:21 +02:00
Robert von Burg 76e7403974 [Project] Update all dependencies and plugin dependencies in pom.xml 2017-09-28 19:11:34 +02:00
Robert von Burg 80a1e4af62 [Fix] Fixed not committing after archiving activity 2017-09-19 15:19:29 +02:00
Robert von Burg d9db935bbb [Fix] Fixed wrong value order in CSV export 2017-09-13 15:28:40 +02:00
Robert von Burg 9801e8e543 [Fix] Fixed race condition in XmlExportModelCommand 2017-08-30 16:31:24 +02:00
Robert von Burg a27e9a2999 [Project] Set new snapshot version 1.6.0-SNAPSHOT 2017-08-24 14:11:29 +02:00
Robert von Burg 0aca2e517c [Minor] stop future when stopping ExecutorService 2017-08-23 10:59:47 +02:00
Robert von Burg b3adf8dfa5 [Major] Implemented new ToErrorReservationExecution 2017-08-18 17:42:02 +02:00
Robert von Burg 2863a5746b [Fix] Fixed wrong filtering of resources 2017-08-18 09:46:54 +02:00
Robert von Burg c1522fc1e7 [New] EventBasedExecutionHandler can now restart in-exec Activity 2017-08-09 11:31:36 +02:00
Robert von Burg cfe8664ddc [Minor] Allow to set Action to ERROR, if already in ERROR 2017-08-09 11:31:10 +02:00
Robert von Burg 40c9d92bb2 [Fix] Fixed broken test 2017-07-27 14:27:47 +02:00
Robert von Burg e71b7b018b [Major] Now exposing StrolchTransaction.assertHasPrivilege()
Enforcing privilege checking was a bad idea
2017-07-25 14:12:51 +02:00
Robert von Burg 1183000520 [Major] Implemented privilege checking for DAO
Now the PrivilegeConfig.xml must include:

	<Policies>
		<Policy name="ModelPrivilege"
class="li.strolch.runtime.privilege.ModelPrivilege" />
	</Policies>

And PrivilegeRoles.xml must include:

	<Role>
		<Privilege name="GetResource" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="GetOrder" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="GetActivity" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="AddResource" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="AddOrder" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="AddActivity" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="UpdateResource" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="UpdateOrder" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="UpdateActivity" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="RemoveResource" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="RemoveOrder" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
		<Privilege name="RemoveActivity" policy="ModelPrivilege">
			<AllAllowed>true</AllAllowed>
		</Privilege>
	</Role>
2017-07-24 20:07:10 +02:00
Robert von Burg c0cc6f57cb [Major] Added add, update and remove methods to TX for elements
Moved add, update and remove commands to agent package
2017-07-24 13:51:17 +02:00
Robert von Burg a214853e94 [Major] Inspector can now update StrolchElements from JSON/XML 2017-07-05 15:07:51 +02:00
Robert von Burg a7fc27627f [New] GenericReport can now do ordering 2017-06-27 08:45:26 +02:00
Robert von Burg ad8f0220e9 [Project] filter all property files 2017-06-20 15:38:46 +02:00
Robert von Burg 9b92d2fdbc [Major] Refactored LogMessage to use ResourceBundle, instead of bundleId 2017-06-14 17:58:13 +02:00
Robert von Burg 08631498dc [Major] Creating LogMessages for exceptions in Migrations, TX, Execution 2017-06-14 15:54:58 +02:00
Robert von Burg 6dfdcf6a04 [New] Added SimpleExecution methods with LogMessage 2017-06-14 12:53:47 +02:00
Robert von Burg 6171e53ff4 [New] Implemented simple OperationsLog to storing messages 2017-06-14 12:53:08 +02:00
Robert von Burg 5bf7cd8b72 [Major] Changed State machine implementation 2017-06-13 10:26:21 +02:00
Robert von Burg 5471a3176b [Fix] Fix able to restart error actions by setting to STOPPED first 2017-06-12 21:48:33 +02:00
Robert von Burg 3e2e21da6d [Fix] Fixed re-executing ERRORed Action 2017-06-09 16:11:22 +02:00
Robert von Burg b8b0806e12 [New] Now StrolchTimedState compact only if boolean supplied 2017-06-08 14:33:59 +02:00
Robert von Burg ffbbe3c4bb [New] ExecutionHandler.triggerExecution(realm) is now public 2017-06-07 15:53:52 +02:00
Robert von Burg 2470b02a10 [New] Added StringServiceArgument 2017-06-01 12:42:07 +02:00
Robert von Burg 58a3afb3e7 [Minor] Fix logging error in XmlExportModelService 2017-06-01 10:10:41 +02:00
Robert von Burg 4c9e66876a [Major] Privilege passwords are now salted! 2017-05-22 14:37:48 +02:00
Robert von Burg f87c42f399 [Project] switched tests to use logback-classic 2017-05-22 09:50:48 +02:00
Robert von Burg 1354a89f72 [Fix] Fixed issues where remaining actions on Activity aren't executed
This ocurred because of settings remaining unneeded Actions to state
CLOSED, and thus execution was not continued.
2017-05-19 10:55:57 +02:00
Robert von Burg 3622339896 [Major] Total refactoring of StrolchElementVisitor hierarchy 2017-05-17 09:20:27 +02:00
Robert von Burg 42c623cea6 [Major] Added Service.getArgumentInstance() 2017-05-16 15:18:38 +02:00
Robert von Burg 2ed8c8dc5f [New] Implemented RemoveActivityArchival policy 2017-05-14 16:32:59 +02:00
Robert von Burg 24b7f1d2bc [New] Update the order state of activity by Type and Id reference 2017-05-14 15:33:23 +02:00
Robert von Burg 76fb797102 [New] Added ConfirmationPolicy and ActivityArchivalPolicy 2017-05-14 11:42:37 +02:00
Robert von Burg 3dcd4aafaf [New] Added ActivityCreationPolicy 2017-05-09 17:34:52 +02:00
Robert von Burg ade6b5374d [Fix] EventBasedExecutionHandler now executes next action in same TX 2017-05-09 12:43:32 +02:00
Robert von Burg 358f4eff63 [Minor] Small change in ParameterizedElement 2017-05-04 20:45:44 +02:00
Robert von Burg 5d907dc6db [Minor] Added exception handling in EventBasedExecutionHandler 2017-05-04 15:48:39 +02:00
Robert von Burg 49f8e2bec5 [Fix] fixing broken tests 2017-05-03 16:47:49 +02:00
Robert von Burg fdc08d873d [Fix] Fixing StartActivityExecutionServiceTest test 2017-05-03 16:36:41 +02:00
Robert von Burg b13558eb65 [Fix] Fixing StartActivityExecutionServiceTest test 2017-05-03 16:24:04 +02:00
Robert von Burg b700bdf270 [New] Allow to hide objectType from report filter criteria 2017-05-03 16:06:56 +02:00
Robert von Burg 5f1f4af7b0 [Major] GenericReport now supports filter policies
The first two are:
- GreaterThan for FloatParameters
- Equals for strings
2017-05-03 15:32:20 +02:00