Commit Graph

214 Commits

Author SHA1 Message Date
Robert von Burg 825f8de64d [Major] simplified API for fluent API in StrolchSearch
No matter how hard you try, you can't have an API be good the first round
2018-03-27 14:58:54 +02:00
Robert von Burg 5befc47268 [Minor] Code cleanup in TransientElementMap 2018-03-27 14:14:59 +02:00
Robert von Burg 0c61d563f5 [Minor] Add forEach method on SearchResult 2018-03-26 16:30:39 +02:00
Robert von Burg 77ea06d781 [Major] simplified API for fluent API in StrolchSearch 2018-03-26 14:49:05 +02:00
Robert von Burg a53c9a0e46 [Major] simplified API for fluent API in StrolchSearch 2018-03-26 14:48:12 +02:00
Robert von Burg 277a57dda3 [Minor] Cache PrivilegeContext in StrolchTransaction 2018-03-23 17:11:35 +01:00
Robert von Burg 86b65f8697 [Major] Removed petitparser, using StrolchSearch in REST API 2018-03-20 07:46:28 +01:00
Robert von Burg fee696a5ef [Fix] Fixed compile errors 2018-03-14 10:10:01 +01:00
Robert von Burg 73744d0931 [Fix] Fixed compile errors 2018-03-14 09:33:50 +01:00
Robert von Burg 50fbafde45 [Major] Implemented GenericSearch for internal use 2018-03-14 09:04:07 +01:00
Robert von Burg 9bd0d43f50 [Major] Better generics support in Search API, includin ExpressionBuilder 2018-03-14 08:09:29 +01:00
Robert von Burg 75d79544af [Major] Implemented new search API using Streams 2018-03-13 17:51:24 +01:00
Robert von Burg d3b5fa5128 [Major] Moved query classes to li.strolch.agent 2018-03-12 18:13:46 +01:00
Robert von Burg 44bb21a43f [Fix] DefaultLockHandler uses ConcurrentHashMap 2018-03-10 15:17:30 +01:00
Robert von Burg 7e30e0c78d [Minor] Use tx ind InMemoryElementListener instead of ElementMaps 2018-03-09 12:45:23 +01:00
Robert von Burg 42c500d677 [Minor] clear cache when flushing 2018-03-09 10:49:00 +01:00
Robert von Burg 5fcf08e4eb [New] Added tx.clearCache() 2018-03-09 10:27:28 +01:00
Robert von Burg 742e436a93 [Major] Implemented caching of data in AbstractTransaction 2018-03-08 18:07:11 +01:00
Robert von Burg caeed3d670 [Minor] Fix in TransientElementMap.java 2018-03-08 18:07:11 +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 315879ebe1 [Major] (Re-)Implemented XML Persistence 2018-02-27 09:00:26 +01:00
Robert von Burg 8e4a1c7ac3 [Fix] Set initial version when updating in TransientElementMap 2018-02-20 12:04:11 +01:00
Robert von Burg a2a0645f3b [Minor] Log exceptions of StrolchSystemAction 2018-02-20 09:47:35 +01:00
Robert von Burg aac4ad2fd9 [Fix] Swapped enableDelayedObserverUpdates 2018-02-13 17:59:01 +01:00
Robert von Burg f3ea159052 [Major] RIP transactional mode 2018-02-09 22:16:34 +01:00
Robert von Burg 0d42defd2a [Major] Reworked visitors: StrolchElement.accept(StrolchElementVisitor) 2018-02-09 11:32:50 +01:00
Robert von Burg a5f9d655b8 [Fix] Remove version of parsed files in inspector 2018-02-02 11:56:41 +01:00
Robert von Burg ba115b70c4 [Fix] Remove version of parsed files in inspector 2018-02-02 11:50:00 +01:00
Robert von Burg a7a33e4e0c [Minor] logger change in TransientRealm 2018-01-10 18:27:05 +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 6328827f9e [Minor] Fixed logging in CachedElementMap 2017-12-07 11:01:12 +01:00
Robert von Burg 04f4fed0ba [New] Added toJson() to ServiceResult, ModelStatistics 2017-11-29 16:56:36 +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 49d5e41fe5 [Minor] Also log for which parameter the element was not found 2017-10-27 09:20:04 +02:00
Robert von Burg d44da5b587 [New] Added StrolchEnum.keySet() 2017-10-25 09:41:07 +02:00
Reto Breitenmoser b89aa885d4 [Minor] set new creation date for template orders 2017-10-21 21:04:19 +02:00
Robert von Burg c0bf2ae428 [Major] Refactored GenericReport into Policies for extension 2017-10-18 13:11:39 +02:00
Robert von Burg 394c3735e3 [New] Added StrolchTransaction.getResourceFor(Action) 2017-10-12 16:12:39 +02:00
Robert von Burg 5c5a3afbbc [Fix] re-run add model change commands in TX, as commands create new 2017-10-10 12:06:37 +02:00
Reto Breitenmoser 4adac09ab5 [Minor] set username from certificate 2017-10-09 21:44:49 +02:00
Reto Breitenmoser 283a78bdfa [Minor] added authenticateSingleSignOn method 2017-10-08 21:19:30 +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 45a385920d [Fix] Fixed NPE in AbstractTransaction.needsCommit() 2017-10-04 14:27:13 +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 90a81b6725 [Major] Rename DO_NOTHING as READ_ONLY in StrolchTransaction 2017-10-03 11:37:01 +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