Robert von Burg
b37c83eea1
[Fix] Clone element in AbstractTransaction.findElement()
2020-04-20 08:36:47 +02:00
Robert von Burg
f04ee3df62
[Minor] New constants in StrolchConstants
2020-04-06 20:49:08 +02:00
Robert von Burg
5491f284a8
[New] Added ExpressionsSupport.relationParam(String)
2020-04-03 14:27:39 +02:00
Robert von Burg
8f181a0d88
[New] Extended OrderDao to allow a DateRange on queries
2020-03-26 14:37:37 +01:00
Robert von Burg
8aa1ad7977
[Minor] Code cleanup
2020-03-26 14:36:30 +01:00
Robert von Burg
de361f7ca6
[New] Added StrolchComponent.runAsWithResult()
2020-03-24 13:23:55 +01:00
Robert von Burg
2332c6d0b3
[New] Added tx.getPolicyDef(PolicyDef, PolicyDef)
2020-03-20 14:57:31 +01:00
Robert von Burg
c4ea66ee2e
[New] Added OperationsLog.removeMessage()
2020-03-16 17:11:53 +01:00
Robert von Burg
dd6c069eb5
[Fix] OperationsLog now gracefully handles failing to load
2020-03-12 10:14:42 +01:00
Robert von Burg
0417a4ebdf
[Minor] Code cleanup in StrolchBootstrapper
2020-03-12 10:14:07 +01:00
Robert von Burg
11c2268b9a
[Minor] Changed TX to not first validate all commands executing them, but validate then do each.
2020-03-04 11:08:58 +01:00
Robert von Burg
3bf912c94b
[Minor] Code cleanup
2020-02-27 11:53:06 +01:00
Robert von Burg
56c948a361
[Major] Removed tx.setSuppressDoNothingLogging(), replaced with tx.silentThreshold()
2020-02-27 11:52:46 +01:00
Robert von Burg
6b7f118969
[New] Added StrolchComponent.hasComponent()
2020-02-26 09:25:28 +01:00
Robert von Burg
e4f1a388f7
[Minor] Using ExecutorPool in StrolchAgent
2020-02-21 16:24:34 +01:00
Robert von Burg
8e629dfe82
[Minor] code cleanup
2020-02-20 17:58:20 +01:00
Robert von Burg
3475eefd09
[New] Added AbstractService.getArgOrUserRealm()
2020-02-20 17:58:05 +01:00
Robert von Burg
dadc2a8cb8
[Major] Rewrote execution with controllers
2020-02-18 18:11:22 +01:00
Robert von Burg
1bda9df450
[WIP] Implementing Planning refactoring
2020-02-17 14:22:32 +01:00
Robert von Burg
47da3334b9
[New] Added tx.isUpdated() and tx.isRemoved()
2020-02-12 14:54:18 +01:00
Robert von Burg
1cf28eaa15
[Minor] Fixed logger in DefaultLockHandler
2020-02-04 20:45:00 +01:00
Robert von Burg
4638f44c91
[Minor] Change to single parameter StrolchPolicy constructor
2020-01-30 14:58:37 +01:00
Robert von Burg
a048a7c76e
[Minor] Change to single parameter StrolchPolicy constructor
2020-01-30 14:43:43 +01:00
Robert von Burg
10a7bc8280
[New] Added StrolchValueSearch
2020-01-20 16:43:34 +01:00
Robert von Burg
085335d393
[New] Added orderBy*() methods without need for BAG_PARAMETERS, or reverse flag
2020-01-20 11:18:21 +01:00
Robert von Burg
7ba2968923
[New] Added RootElementSearchResult.orderByName() without reverse boolean
2020-01-18 20:51:38 +01:00
Robert von Burg
b0c78e692c
[Minor] Added ExpressionsSupport.param(String)
2020-01-18 20:50:55 +01:00
Robert von Burg
93cebbde3b
[New] Added ComponentConfiguration.getDataOrAbsoluteDir()
2020-01-09 11:57:14 +01:00
Robert von Burg
fa389d7072
[Project] Updated .gitignore files
2020-01-08 09:18:37 +01:00
Robert von Burg
ddbb7d65cb
[New] Added overrides for ComponentConfiguration. getConfigFile() getDataDir() getDataFile()
2020-01-08 09:11:45 +01:00
Robert von Burg
d6a8c99b3a
[Minor] Extract Realm instantiation into method
2020-01-08 09:11:00 +01:00
Robert von Burg
c96ca434be
[Minor] Fixed code comment
2020-01-08 09:10:27 +01:00
Robert von Burg
f53b548a5d
[New] Allow to decode 0x values in IntegerParameter and int component props
2019-12-11 18:30:36 +01:00
Robert von Burg
793435454b
[New] Only add Exception class name in messages if message is null
2019-12-11 18:27:50 +01:00
Robert von Burg
2ac8c288d3
[New] Allow to ignore StrolchPolicy.undo() by having empty default impl
2019-12-10 19:33:24 +01:00
Robert von Burg
c9a1d63d62
[Fix] Removed defaultEncoding Component property, as not changeable after start
2019-11-20 22:16:45 +01:00
Reto Breitenmoser
aa6209dcb7
[Minor] set default encoding to utf-8
2019-11-01 14:11:31 +01:00
Robert von Burg
07e7752c68
[New] Added SearchResult.isEmpty() and .isNotEmpty()
2019-10-21 16:59:10 +02:00
Robert von Burg
1deb0ec88e
[Fix] Fixed broken tests
2019-10-18 18:39:03 +02:00
Robert von Burg
e82167bb2a
[New] Added OrderSearch.withState(State)
2019-10-18 17:27:48 +02:00
Robert von Burg
4b1a6c9fec
[Minor] Added StrolchPolicy.getOrder(Action)
2019-10-18 17:27:25 +02:00
Robert von Burg
c2ae2e88d1
[Minor] Don't double throw StrolchPolicyException if can't get policy
2019-10-18 17:26:52 +02:00
Robert von Burg
19765898d6
[Minor] Validating elements are not read-only when adding to TX
2019-10-18 17:26:21 +02:00
Robert von Burg
b750df79d5
[New] Added StrolchTransaction.get*ByRelation()
2019-10-17 16:21:39 +02:00
Robert von Burg
ffd51f3f8b
[New] Added ServiceResult.i18n(I18nMessage)
2019-10-15 19:09:40 +02:00
Robert von Burg
fc04530b41
[New] Added ExpressionsSupport.relationName() and .relationParam()
2019-10-15 16:22:04 +02:00
Robert von Burg
d2bd1f415b
[New] Added .where() overrides in ResourceSearch, OrderSearch and ActivitySearch
2019-10-11 18:29:41 +02:00
Robert von Burg
faf9df3556
[Major] Fixed and renamed I18n* classes
2019-10-11 15:56:22 +02:00
Robert von Burg
ff434cb285
[New] Added SearchResult.toMapOf*
2019-10-02 11:27:23 +02:00
Robert von Burg
9c08d87be2
[New] Using StrolchElementNotFoundException for missing elements, for 404 in REST
2019-09-27 09:59:44 +02:00
Robert von Burg
f911f72bdd
[Minor] Use ServiceResultState.EXCEPTION for ServiceResult.failed()
2019-09-27 09:58:31 +02:00
Robert von Burg
aec29adcd1
[Minor] Optimizations, reduce memory and calls in Transaction and ObjectFilter
2019-09-25 11:13:45 +02:00
Robert von Burg
785616428a
[New] Added openSystemUserContext() and validateSystemSession()
2019-09-25 11:11:46 +02:00
Robert von Burg
92319d61cd
[Fix] Always set a message on ServiceResult.toJson()
2019-09-10 17:11:15 +02:00
Robert von Burg
14712c4556
[Minor] make sure startup success log ist last of all start logs
2019-09-10 13:21:36 +02:00
Robert von Burg
5360d4c0fb
[Major] add subpath to StrolchBootstrapper.setupByUserDir()
2019-09-10 13:21:04 +02:00
Robert von Burg
ed9506555d
[Fix] Fixed type in StrolchBootstrapper
2019-09-09 17:03:09 +02:00
Robert von Burg
2697f5947c
[Major] Removed ISO8061Duration, replace with PeriodDuration
2019-09-09 14:40:28 +02:00
Robert von Burg
f64ffa7651
[Minor] better logging in DefaultLockHandler.lock()
2019-09-04 13:15:05 +02:00
Robert von Burg
bdda43822d
[New] added StrolchTransaction.getLocale()
2019-08-30 16:00:43 +02:00
Robert von Burg
1627a60b9a
[New] Added further i18n props to ServiceResult.i18n()
2019-08-28 12:05:14 +02:00
Robert von Burg
c822f00473
[Major] Added new service result EXCEPTION used when exception thrown
2019-08-28 12:04:46 +02:00
Robert von Burg
0db98efd9f
[New] Extended ServiceResult to have an i18n part
2019-08-27 08:32:08 +02:00
Robert von Burg
44f7ed163e
[New] Added I18n*Bundles for quick i18n
2019-08-27 08:30:53 +02:00
Robert von Burg
a3f8c862c0
[Fix] Fixed tx.addOrUpdate() when already in filter
2019-08-22 16:16:49 +02:00
Robert von Burg
0bde117d41
[Minor] Handle empty/null value in SearchBuilder.buildSimpleValueSearch()
2019-07-12 12:42:44 +02:00
Robert von Burg
b8678e72da
[Minor] Show system encodings on startup
2019-07-11 11:46:27 +02:00
Robert von Burg
d3dd56656f
[Project] Use Locale.toLanguageTag() instead of toString() in RuntimeConfiguration constructor
2019-07-11 11:46:10 +02:00
Robert von Burg
5063c111ad
[Fix] Make sure to store LogMessage date time with millisecond only, as is in DB
2019-07-03 20:37:23 +02:00
Robert von Burg
acc2cd2fc0
[Fix] Add new line in DefaultLockHandler when logging locking
2019-07-03 19:34:44 +02:00
Robert von Burg
7c9d049d0d
[Minor] Properly log stack trace in DefaultLockHandler
2019-06-27 10:57:03 +02:00
Robert von Burg
5c4a455665
[New] Added overloaded methods to open TX in AbstractService for readOnly flag
2019-06-19 13:12:52 +02:00
Robert von Burg
f4d5c096cb
[Minor] Log active threads on StrolchLockException
2019-06-18 12:40:33 +02:00
Robert von Burg
b6e9fb6b99
[New] Added PolicyHandler.getPolicyTypes() and .getPolicyKeysByType()
2019-06-18 12:38:18 +02:00
Robert von Burg
dacc890e8c
[New] allow passing enums in SearchExpressions, converting to string internally
2019-06-14 13:23:40 +02:00
Robert von Burg
939a510bab
[Minor] log locale and time zone after start
2019-06-05 14:46:07 +02:00
Robert von Burg
5d47fdb7ec
[New] Allow to use constructor new StrolchPolicy(tx)
2019-05-30 17:15:19 +02:00
Robert von Burg
14f6fb47b6
[Minor] Added StrolchEnum.hasValue()
2019-05-30 15:34:09 +02:00
Robert von Burg
66121d4f0f
[New] Adding environment, timezone and locale to version
2019-05-27 19:00:01 +02:00
Robert von Burg
b654fd4bf7
[New] Added new ExpressionsSupport.predicate()
...
can be used as search.where(predicate(() -> someBool)
2019-05-21 14:14:15 +02:00
Robert von Burg
3a009a6857
[Minor] Sorting in DefaultEnumHandler by param index
2019-05-10 11:33:12 +02:00
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