Commit Graph

460 Commits

Author SHA1 Message Date
Robert von Burg f1c0e22227 [Minor] Sorting in DefaultEnumHandler by param index 2019-05-10 11:08:42 +02:00
Robert von Burg d70a4e8f62 [New] Added ReloadPrivilegeHandlerJob 2019-05-07 14:05:37 +02:00
Robert von Burg 29302a79b0 [Fix] Handle missing version on versioned elements 2019-05-07 11:25:57 +02:00
Robert von Burg 321d63dfb3 [New] Simplified instantiating policy: tx.getPolicy(PolicyDef) 2019-04-26 15:49:59 +02:00
Robert von Burg 27c413afda [Fix] Throw exception if modifying a read-only TX 2019-04-23 17:20:48 +02:00
Robert von Burg 1ade695e9b [Minor] Made StrolchComponent.getConfiguration() public 2019-04-15 12:22:48 +02:00
Robert von Burg 78c96d4351 [Fix] Fixed parsing and formatting of Locale 2019-04-10 16:44:52 +02:00
Robert von Burg ca7f80d58e [Major] Refactored EnumHandler for proper use in REST and different realms 2019-04-10 14:10:29 +02:00
Robert von Burg 8a60cad375 [New] Added ResourceSystemStateFromJson to persist StrolchAgent.getSystemState() 2019-04-04 22:52:17 +02:00
Robert von Burg 18cc052a34 [New] Added system state on agent 2019-04-02 17:06:13 +02:00
Robert von Burg fc1ec3b5a3 [New] Added constants for VersionQueryResult 2019-04-02 15:26:53 +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
Reto Breitenmoser a52dec2740 [Minor] set timezone from strolch configuration 2019-03-25 20:52:27 +01:00
Robert von Burg 05a1b8ab22 [New] Added .getRealm(), .getEmail(), .getLocator() on Certificate, User, UserRep 2019-03-11 13:11:53 +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 5520180254 [New] New PrivilegeModelException sub class of PrivilegeException for REST 2019-03-07 14:27:42 +01:00
Robert von Burg 0b4e2e6e40 [New] Added ValueSearch.search(Stream) 2019-03-05 17:59:17 +01:00
Robert von Burg 68e06af486 [New] Added new SearchBuilder.buildSimpleValueSearch() 2019-03-05 17:58:51 +01:00
Robert von Burg 45189a5bc3 [Major] Extended StrolchDao with paging feature 2019-03-05 17:57:59 +01:00
Robert von Burg 1e1ac785ea [New] Added NamedThreadPoolFactory 2019-02-06 14:33:45 +01:00
Robert von Burg 8c4a8b77f1 [Fix] Fixed calling tx.addOrUpdate() after tx.remove() 2019-01-30 16:37:03 +01:00
Robert von Burg a85fa26b5e [New] Added StrolchTransaction.addOrUpdate() methods 2019-01-23 18:48:11 +01:00
Robert von Burg 8e0c2e6412 [Fix] Don't release locks a second time 2019-01-17 16:50:56 +01:00
Robert von Burg 81de2b94e4 [Fix] Added proper privilege validation for StrolchJob 2019-01-17 13:57:26 +01:00
Robert von Burg d0751345ff [New] Added ReloadPoliciesJob 2019-01-17 09:13:12 +01:00
Robert von Burg 8e3b22b3e3 [New] Added PolicyHandler.isPolicyDefAvailable() 2019-01-16 17:25:57 +01:00
Robert von Burg 37fb641892 [New] Added ValueSearch API for non-strolch object 2019-01-14 14:33:06 +01:00
Robert von Burg 292db1b4f0 [Major] Added has* methods in privilege validation 2019-01-10 16:20:40 +01:00
Robert von Burg b3c936c0b2 [Minor] Allow Collection in StrolchSearch.search(Collection) 2019-01-08 11:16:27 +01:00
Robert von Burg 3bbfcab345 [New] Added StrolchTransaction.assertHasRole() and .assertHasAnyRole() 2019-01-07 13:56:35 +01:00
Robert von Burg b0f85ed76e [New] Added simple constructor for StrolchJob 2018-12-18 14:32:12 +01:00
Robert von Burg 21c414ab00 [Major] runAs*() now throws Exception 2018-12-18 14:30:37 +01:00
Robert von Burg e72ad04805 [Minor] Better exception message on CollectionsHelper.singletonCollector() 2018-12-07 11:38:39 +01:00
Robert von Burg b0e5739034 [New] Added ComponentContainer.runAsAgent() and .runAsAgentWithResult() 2018-12-05 15:49:12 +01:00
Robert von Burg 301c7bf785 [New] Added SearchResult.toSingleton() for optional result 2018-12-05 15:48:21 +01:00
Robert von Burg 55b762f2f1 [Minor] Move RootElementSearchResult.toSingleton() to super class SearchResult 2018-12-04 11:17:45 +01:00
Robert von Burg 790f7a0415 [New] added RootElementSearchResult.toSingleton() 2018-12-03 14:20:25 +01:00
Robert von Burg cb633081eb [Minor] Keep minimum thread pool size at 4 2018-11-22 23:24:36 +01:00
Robert von Burg 941641f357 [New] Added pruning of old Locator locks 2018-11-21 12:47:26 +01:00
Robert von Burg 3e71c6d5b5 [Minor] keep scheduled thread pool as small as possible if idle 2018-11-20 17:43:39 +01:00
Robert von Burg 09bcdfd772 [Minor] Added simpler constructor to Command class 2018-11-17 16:49:47 +01:00
Robert von Burg 8dcc6c310d [Fix] schedule StrolchJob after running now 2018-11-14 14:20:00 +01:00
Robert von Burg 7c778d334a [New] Allow to search activities and order by state in inspector 2018-11-14 13:43:41 +01:00
Robert von Burg 84cf1471ea [New] Added privileges for viewable reports 2018-11-08 10:48:23 +01:00
Robert von Burg 02b959ab77 [New] Added ?:<paramId>:<value> search predicate to SearchBuilder 2018-11-07 14:03:11 +01:00
Robert von Burg 3908d30400 [New] Added ?:<paramId>:<value> search predicate to SearchBuilder 2018-11-07 13:55:30 +01:00
Robert von Burg 24f8296006 [Fix] Fix inspector search
- remove param: prefix
- search empty parameters
- allow to prefix query string with one of: & and | or
- allow to prefix search parts with: !

Now you can do the following search:
    or relations:person:4 !parameters:status:productMissing
to find all elements where the person parameters contains the value 5 and the status parameter is not equal to productMissing

or you can go and search for empty values:
    relations:person:
2018-11-06 10:08:04 +01:00
Robert von Burg 793f750103 [Fix] Update version of updated elements 2018-10-30 14:39:43 +01:00
Robert von Burg aa3699326b [Fix] Fixed version issues 2018-10-29 15:44:55 +01:00
Robert von Burg 7084467104 [New] Added updated to version 2018-10-29 14:37:38 +01:00
Robert von Burg c64fdf81d7 [Fix] Refactored Search API to auto cast 2018-10-25 11:22:26 +02:00
Robert von Burg 89b3612c03 [New] added StrolchComponent.openTx(Certificate, String) and
StrolchComponent.openTx(String, Certificate, String)
2018-10-22 09:20:03 +02:00
Robert von Burg 16696e5202 [Fix] Ignore OperationsLog.addMessage if not yet initialized 2018-10-16 19:59:06 +02:00
Robert von Burg bd1b7090cb [Minor] added LogMessage for agent start and stop 2018-10-15 15:17:42 +02:00
Robert von Burg e82767b079 [Minor] added LogMessage for agent start and stop 2018-10-15 15:00:29 +02:00
Robert von Burg 91dee21300 [Minor] added LogMessage for agent start and stop 2018-10-15 14:56:55 +02:00
Robert von Burg 2286752c57 [Fix] Fixed pruning of messages in OperationsLog 2018-10-15 14:37:27 +02:00
Robert von Burg cee1ac4f82 [New] added StrolchAgent.getSingleThreadExecutor() 2018-10-15 14:36:56 +02:00
Robert von Burg 21aa92182c [Minor] added LogMessage for agent start and stop 2018-10-15 13:12:17 +02:00
Robert von Burg ced8c42c57 [Major] Implemented persisting of OperationsLog 2018-10-15 11:06:45 +02:00
Robert von Burg d7b4bef70c [Minor] check if refP is empty, and stop early 2018-10-05 11:45:08 +02:00
Robert von Burg b6819c4b47 [Major] Removed serializable and reformatted all code 2018-10-05 09:17:13 +02:00
Robert von Burg b02731ac74 [New] New method tx.findParameterOnHierarchy() 2018-10-04 19:04:36 +02:00
Robert von Burg 6e87ffc078 [Minor] small log fix when throwing exception on missing elements 2018-09-27 16:18:35 +02:00
Robert von Burg 62c206bfd0 [Minor] small log fix when throwing exception on missing elements 2018-09-27 15:11:26 +02:00
Robert von Burg 9566c89b2c [Minor] Sort by name using lower case 2018-09-14 14:10:10 +02:00
Robert von Burg 027613b1a1 [New] Added missing listContains() in SearchPredicates 2018-09-13 21:02:26 +02:00
Robert von Burg ba13b981c1 [New] added StrolchJobsHandler.register(StrolchJob) method 2018-09-11 12:48:43 +02:00
Robert von Burg 5736cead97 [New] added duration and running flag to StrolchJob 2018-09-11 12:18:51 +02:00
Robert von Burg b0231cdf91 [New] Added last execution to StrolchJob 2018-09-10 18:29:19 +02:00
Robert von Burg 00ade23b4d [New] Added JobMode to StrolchJob for Manual, Once and Recurring 2018-09-10 17:51:35 +02:00
Robert von Burg fa39ad7386 [Major] Refactored StrolchJob for calling manually 2018-09-06 15:23:34 +02:00
Reto Breitenmoser 1f780374b9 [New] added listContains predicate 2018-08-31 14:45:56 +02:00
Robert von Burg 458706d8fc [Fix] Allow to flush TX while doing commands 2018-08-27 14:24:58 +02:00
Robert von Burg 4ffd92e0a7 [New] Allow to set input for strolch search 2018-08-20 16:35:10 +02:00
Robert von Burg 178ad78dea [Fix] Fixed searching StringListParameter with equals and contains ignoreCase 2018-08-17 11:32:10 +02:00
Robert von Burg 30421d606e [Fix] Fixed searching in inspector 2018-08-08 16:25:24 +02:00
Robert von Burg a1c1e60306 [Fix] Fixed i18n property 2018-08-07 14:04:26 +02:00
Robert von Burg f1f689b8ca [New] Added exception to OperationsLog 2018-08-07 13:54:17 +02:00
Robert von Burg fb795be104 [Minor] Using action as locator in AbstractTransaction for operations log 2018-08-03 22:14:34 +02:00
Robert von Burg f6349dde10 [Minor] Logging of exception in StrolchSystemActionWithResult 2018-08-03 22:14:12 +02:00
Robert von Burg 2eaca7d7d8 [Minor] Changed SearchBuilder to AND not OR query 2018-08-03 15:50:44 +02:00
Robert von Burg e644b43e2c [Major] Refactored Operations Log 2018-08-03 14:13:46 +02:00
Robert von Burg 42dc80592d [Major] StrolchQuery now uses streams internally 2018-07-12 14:32:26 +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 352220702f [Minor] add documentation about custom search expression on website 2018-06-29 13:59:27 +02:00
Robert von Burg 4c7be4cbbf [Project] Updated Strolch model files to include schema definition 2018-06-26 18:13:59 +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 acf3b3ff6c [Minor] Added JavaDoc to search API 2018-06-22 11:11:15 +02:00
Robert von Burg d3375455d6 [Minor] catch exception on stop in StrolchComponents 2018-06-21 17:54:02 +02:00
Robert von Burg 81a080ebd1 [Minor] Change logger in ComponentContainerImpl.java 2018-06-20 13:42:41 +02:00
Robert von Burg 6b9d168a0b [Project] Logging exceptions in DefaultPolicyHandler 2018-06-18 19:39:18 +02:00
Robert von Burg 0c6a8b9ba0 Revert "[Minor] Throw exception if policy is missing proper constructor"
This reverts commit abf508c
2018-06-18 18:50:14 +02:00
Robert von Burg abf508cc6b [Minor] Throw exception if policy is missing proper constructor 2018-06-18 18:46:44 +02:00
Robert von Burg 7b2ab07ada [Minor] Add tests for ListParameter isIn() search 2018-06-18 11:09:44 +02:00
Reto Breitenmoser 2ca0d91cd3 [Minor] check for collections on both side 2018-06-17 20:55:28 +02:00
Robert von Burg ac7ef5d1fc [Major] Refactored StrolchJob to handle exceptions and log execution 2018-05-26 13:21:50 +02:00
Robert von Burg c321712150 [Major] Refactored PosgreSQL persistence for easier extension 2018-05-26 13:21:22 +02:00
Robert von Burg f8e9c5321c [Minor] Better logging in DefaultLockHandler 2018-05-18 08:26:50 +02:00
Robert von Burg 710a989ce5 [Fix] throw exception after logging in StrolchSystemAction 2018-05-16 17:52:44 +02:00
Robert von Burg 1e616f0616 [Major] Refactored searching to allow for coercing of left side 2018-04-20 20:49:31 +02:00
Robert von Burg 7deafa533d [New] Added isIn() as new search predicate 2018-04-19 18:11:31 +02:00
Robert von Burg 164fc0ac80 [New] Added array as AND searching in contains*() 2018-04-19 12:21:48 +02:00
Robert von Burg 1729460784 [Fix] Set new date on Order template in CachedOrderMap 2018-04-18 17:15:45 +02:00
Robert von Burg f8ea8998b1 [Minor] Fixed JavaDoc due to doclint errors 2018-04-04 16:02:45 +02:00
Robert von Burg 7bf427edee [Fix] Fix broken Cached mode due to change in TransientElementMap 2018-03-27 17:20:29 +02:00
Robert von Burg f7e083b794 [Fix] Fix broken Cached mode due to change in TransientElementMap 2018-03-27 16:51:33 +02:00
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 2907df815a [Project] Added privilege StrolchSearch 2018-03-20 07:46:50 +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 4689af6ee0 [Major] Implemented GenericSearch for internal use 2018-03-14 09:08:33 +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 131b4bdf83 [Fix] Fixed broken test 2018-03-13 22:09:30 +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