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
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
4bcddc4e3b
[Major] Removed MainStarter.java as never used
2017-09-28 13:32:57 +02:00
Robert von Burg
592fce0e88
[Minor] tx.add*() -> remove check for existing. Need deeper fix
2017-09-27 20:52:10 +02:00
Robert von Burg
3310bb8766
[Minor] Fix compile warnings
2017-09-26 15:01:02 +02:00
Robert von Burg
1a2752039f
[Project] logback is now a compile time dependency
2017-09-25 12:17:16 +02:00
Reto Breitenmoser
361d52201f
[Project] added logback as compile dependency
2017-09-24 18:13:51 +02:00
Robert von Burg
fd4d428000
[New] It is now possible to override a logging
...
Just add a logback.xml file with the appropriate configuration in the
config folder and it will be loaded automatically.
2017-09-20 17:41:24 +02:00
Robert von Burg
060692a5c1
[Fix] Fixed RuntimeConfiguration.getConfigFile()
2017-09-20 17:40:34 +02:00
Robert von Burg
d0aa763f6a
[New] Added StrolchJob for recurring jobs
2017-09-15 10:35:37 +02:00
Robert von Burg
4153c9bb14
[Minor] Throw exception if forget to commit
2017-09-08 18:51:23 +02:00
Robert von Burg
97a0c076a4
[Minor] Throw exception if forget to commit
2017-09-08 18:48:53 +02:00
Robert von Burg
d2f19dca5d
[Minor] Small memory consumption improvement
2017-08-30 16:31:44 +02:00
Robert von Burg
5461d04f4e
[New] StrolchAgent now instantiates executor services for async work
2017-08-30 14:34:19 +02:00
Robert von Burg
9e47eb4070
[Fix] Fixed error due to objectFilter noch flushed
2017-08-24 16:44:09 +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
2863a5746b
[Fix] Fixed wrong filtering of resources
2017-08-18 09:46:54 +02:00
Robert von Burg
f2cdea3b7d
[Major] Changes in LogMessage, not using ID for equals
2017-08-16 11:23:44 +02:00
Robert von Burg
27b6beff03
[Fix] Use certificate username, if firstname and lastname null
...
- but only for agent users
2017-08-08 14:58:01 +02:00
Robert von Burg
c79f1d6ae6
[Fix] Returning 401 if session is invalid, 403 for privilege
2017-07-26 15:15:20 +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
e459b561b8
[Major] LogMessage now has an ID which is used in OperationsLog
2017-06-15 13:33:14 +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
0badb0fc01
[Minor] Log duration of state changes in components
2017-06-07 15:53:10 +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
d5514e772c
[Minor] Fixed deprecation in MainStarter
2017-05-18 15:02:58 +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
3f7c959865
[New] Added new EventCollectingObserverHandler
...
This observer handler is enabled with the additional boolean
configuration <enableDelayedObserverUpdates> and allows for less updates
to observers as they are cached
2017-05-16 14:29:59 +02:00
Robert von Burg
f1216f8825
[Major] Now throwing exception if TX is not committed but has commands
2017-05-16 14:28:32 +02:00
Robert von Burg
b68b74aade
[Fix] Fixed InMemoryTransaction marked committed on flush
2017-05-09 12:30:53 +02:00
Robert von Burg
b302c3f19e
[Fix] Fixed wrong exception message when asserting *-Ref parameters
2017-05-08 19:07:51 +02:00
Robert von Burg
96ed97132b
[New] StrolchTransaction.findElement() override for allowing null
2017-05-03 15:31:26 +02:00
Robert von Burg
22538dc7fa
[Major] New implementation of ObserverHandler for async updates
2017-05-02 16:07:55 +02:00
Robert von Burg
d1a392f025
[Major] Changed the behaviour of the EventBasedExecutionHandler
...
Now execution is always performed asynchronously for each Action and an
Activity should be added to the ExecutionHandler by calling
.addForExecution(), so that it is executed later even if an action
couldn't be executed to it being reserved (for instance).
2017-04-22 19:25:27 +02:00
Robert von Burg
c835ef2735
[Minor] Cleaned up use of new FileInputStream
2017-04-11 11:04:46 +02:00
Robert von Burg
6afba02c59
[Major] Implemented querying Activities by state and resolves #3
2017-04-06 10:02:04 +02:00
Robert von Burg
fbb2bc85db
[Minor] Small logging changes
2017-04-06 08:42:05 +02:00