Commit Graph

1041 Commits

Author SHA1 Message Date
Robert von Burg 652d3d7e34 adding google web admin verification 2016-02-15 16:17:58 +01:00
Robert von Burg 1d3249d9ee [Project] Updated ch.eitchnet.* submodule commits 2016-02-10 20:37:27 +01:00
Robert von Burg 503954554b [Minor] Minor fixes 2016-02-10 18:13:20 +01:00
Robert von Burg 794b3a4d38 [Project] Resource.getTimedState():<T extends StrolchTimedState<?>> T 2016-02-10 17:57:43 +01:00
Robert von Burg bf67d4deac [Project] Don't duplicate maven plug-in versions 2016-02-10 17:52:53 +01:00
Robert von Burg beccdbf4be [Minor] closing potentially open streams 2016-02-10 17:52:17 +01:00
Robert von Burg 465d949071 [Minor] removed unnecessary cast 2016-02-10 17:48:55 +01:00
Robert von Burg e2b3e5f7b0 [Minor] removed unnecessary else 2016-02-10 17:48:18 +01:00
Robert von Burg 3502a4adad [Minor] Removed redundant types (diamond operator) 2016-02-10 17:46:50 +01:00
Robert von Burg 0473b472b3 [Major] Added PolicyContainer interface
Resource, Order, Activity and Action now implement this interface and Command.getPolicy() now takes a PolicyContainer as a parameter.
2016-02-10 17:37:50 +01:00
Robert von Burg fba2b09e04 [New] Also write a cookie when authenticating
- and of course allow the user to authenticate using the cookie
2015-12-04 15:10:52 +01:00
Robert von Burg 8fdcc00ed7 [New] Changed GroupedParameterizedElement.getParameter()
- now returns <T extends Parameter<?>>
2015-12-02 22:04:28 +01:00
Robert von Burg b10a355b5e [New] Added RuntimeMock.assertServiceResult and .loginAdmin() 2015-11-30 23:58:12 +01:00
Robert von Burg 9c7b155b9d [Minor] Fixed closing empty tag in StrolchElementToSaxWriterVisitor 2015-11-28 12:37:15 +01:00
Robert von Burg e6697eb9c2 [Fix] Fixing startup race condition on timeout of old sessions 2015-11-20 19:58:46 +01:00
Robert von Burg cbee61577f [Minor] Caught NPE on shutdown of PostgreSqlPersistenceHandler 2015-11-20 15:20:00 +01:00
Robert von Burg 19f7a6f272 [Minor] fixed wrong root name for strolch model 2015-11-20 14:47:49 +01:00
Robert von Burg cba35dee8d [Project] Updated deployment server 2015-11-20 14:37:36 +01:00
Robert von Burg 70c50077e2 [Project] Updated deployment server 2015-11-20 11:53:54 +01:00
Robert von Burg f09d227fa3 [Project] Updated deployment server 2015-11-20 00:17:16 +01:00
Robert von Burg 974b746a42 [Project] Updated deployment server 2015-11-20 00:15:18 +01:00
Robert von Burg d06fe4fb04 [New][Major] Initial to JSON visitors for Resources and Orders
- added PolicyDefs to Actions
- also fixed a bug in StringSetValue().getValueAsString()
- further refactorings and clean-up
2015-11-16 22:37:00 +01:00
Robert von Burg 8e76e5658e [New] AuthenticationService now uses byte array for password 2015-10-25 11:55:28 +01:00
Robert von Burg 292050a8f9 [New] Use InvalidCredentialsException 2015-10-23 18:22:05 +02:00
Robert von Burg a22a6db408 [Fix] fixed compiler error 2015-10-16 17:59:20 +02:00
Robert von Burg c37fd20efb [Major] Added persisting and reloading of sessions 2015-10-16 17:21:49 +02:00
Robert von Burg 60300ab21d [New] Added AbstractService.runPrivilege()
- This runs the given action as the system user 'privileged'
2015-10-08 22:09:45 +02:00
Robert von Burg d8a68f26fd [New] Added helper methods for running as a system user 2015-10-08 12:32:02 +02:00
Robert von Burg b9f3e5d13c [New] Added better exception messages 2015-10-08 12:30:52 +02:00
Robert von Burg 5256b3ad92 [Project] cleaned up Eclipse settings 2015-10-05 10:57:53 +02:00
Robert von Burg d8650b0ab1 [Minor] Added gson to rest 2015-09-28 11:15:07 +02:00
Robert von Burg 278b3e9b6d [New] Added states to BicycleProduction 2015-09-01 16:00:14 +02:00
Robert von Burg 918e568c00 [New] Added templates to BicycleProduction 2015-09-01 15:11:09 +02:00
Robert von Burg 6bf27b63a9 [New] Added Activities to webpage 2015-08-28 15:00:10 +02:00
Robert von Burg cbda36194a [New] Added a new model BicycleProduction.xml
The production contains an activity model for producing a bicycle with
machine, articles, assembly and stock.
2015-08-28 15:00:10 +02:00
Robert von Burg b76f90d7bd [Minor] Allow not setting of State on Order and Action 2015-08-28 15:00:10 +02:00
Robert von Burg 4de7dfba85 [New] TransientRealm now disallows updates, i.e. duplicates in XML model 2015-08-24 09:50:46 +02:00
Robert von Burg 4e6f7a916f [Minor] also log situations where no service state is returned 2015-08-24 09:41:24 +02:00
Robert von Burg 7414081cbc [Major] Added StrolchPolicy.undo() and Command.getPolicy() 2015-08-22 23:00:50 +02:00
Robert von Burg cde640d511 [Major] Added StrolchPolicy.undo()
- and from now on we don't use interfaces anymore. We use abstract
classes with StrolchPolicy as the super class.
- it would be lovely if Java would get rid of interfaces and abstract
classes. We only need one: abstract classes.
2015-08-22 21:16:43 +02:00
Robert von Burg 01a86ca9f7 [Major] Added StrolchPolicy as super class of all Strolch policies
- this allows to inject a StrolchTransaction and the ComponentContainer
during instantiation
2015-08-22 20:44:31 +02:00
Robert von Burg 12ca8c4f07 [Major] Refactored package for policies in model project
- added additional tests
2015-08-22 15:29:48 +02:00
Robert von Burg 5da07f5824 [Major] Refactored package for policies in model project
- added additional tests
2015-08-22 15:09:30 +02:00
Robert von Burg 339a736c59 [Minor] Fixed broken tests in model due to new Policies in model 2015-08-22 12:07:59 +02:00
Robert von Burg fb26e709a0 Merge pull request #1 from eitchnet/feature/policy-handler
Feature/policy handler
2015-08-22 12:05:20 +02:00
Robert von Burg 0e3b3b2a1e [Minor] [New] Implemented and fixed remaining policy tests 2015-08-22 12:04:41 +02:00
Robert von Burg ac1885883a [New] Added Policies
You can now add policies to Resources, Orders and Activities:
<Policies>
	<Policy Type="PlanningPolicy" Value="key:SimplePlanningPolicy" />
	<Policy Type="ExecutionPolicy"
Value="java:li.strolch.policy.execution.TestSimulatedExecutionPolicy" />
	<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
</Policies>

And now there is a PolicyHandler to get the Policy:
<Component>
	<name>PolicyHandler</name>
	<api>li.strolch.policy.PolicyHandler</api>
	<impl>li.strolch.policy.DefaultPolicyHandler</impl>
	<Properties>
		<readPolicyFile>true</readPolicyFile>
		<policyConfigFile>StrolchPolicies.xml</policyConfigFile>
	</Properties>
</Component>

Which has its own configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<StrolchPolicies>

	<PolicyType Type="PlanningPolicy"
Api="li.strolch.policytest.TestPlanningPolicy">
		<Policy Key="SimplePlanningPolicy"
Class="li.strolch.policytest.TestSimplePlanningPolicy" />
	</PolicyType>

	<PolicyType Type="ConfirmationPolicy"
Api="li.strolch.policytest.TestConfirmationPolicy">
		<Policy Key="NoConfirmation"
Class="li.strolch.policytest.TestNoConfirmationPolicy" />
	</PolicyType>

</StrolchPolicies>

Some tests are still broken at this state - will fix them in the next
commit
2015-08-21 17:38:41 +02:00
Robert von Burg 2eaa0b5498 [New] Added new project li.strolch.planningwebapp
- this project will be a reference implementation for planning use cases
2015-08-11 17:59:12 +02:00
Robert von Burg 5ddccb52a8 [Minor] changed logger for logged in system user 2015-08-11 13:45:07 +02:00
Robert von Burg 69eb5ccf38 [Major] Refactored query API
- Now added ordering
- added setters for visitors on query
-
2015-08-10 22:21:45 +02:00