Commit Graph

1630 Commits

Author SHA1 Message Date
Robert von Burg d8650b0ab1 [Minor] Added gson to rest 2015-09-28 11:15:07 +02:00
Robert von Burg bf15669ef2 [New] Added new Privileges for enforcing same organisation access 2015-09-01 19:20:22 +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 363c21d30a [Minor] code cleanup 2015-08-23 16:28: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 4b9e166025 [Minor] fixed Paging so it fits expected result for jQuery DataTable 2015-08-12 20:40:57 +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 65992ce0eb [Minor] changed logger for logged in system user 2015-08-11 13:44:56 +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
Robert von Burg f5cf3e3ad0 [New] Added a DefaultedHashMap for default values on unmapped keys 2015-08-10 22:20:40 +02:00
Robert von Burg 4b96679588 [Major] refactored compareTo()-method on StrolchElements
Parameters are now comparable, but remove from some others like the
timed states
2015-07-29 18:54:42 +02:00
Robert von Burg 2d922df572 [New] Added new ExceptionHelper
- moved exception helper methods from StringHelper to ExceptionHelper
2015-07-15 10:50:12 +02:00
Robert von Burg 2b9d09632c [Major] refactorings of Paging 2015-07-15 10:49:47 +02:00
Robert von Burg 01c9da446c [New] Added Paging
Paging is used to page a list, i.e. return a sublist which has a certain
size.
2015-07-15 07:52:25 +02:00
Robert von Burg 00a1fd4f72 [Major] removed CsvParser as the apache-commons-csv parser is better 2015-07-14 09:15:40 +02:00
Robert von Burg 59b86bc060 [Project] update maven plug-in versions 2015-07-13 13:07:59 +02:00
Robert von Burg f0698d6677 [Project] use maven-compiler-plugin 3.3 2015-07-13 11:23:03 +02:00
Robert von Burg a3c2a2ed8f [Minor] moved CsvData and CsvRow to their own classes 2015-07-10 12:37:24 +02:00
Robert von Burg 29a88fe6ab [New] Added StrolchComponent.getConfiguration()
- and thus removed any instance variables to it in subclasses
2015-07-10 10:48:17 +02:00
Robert von Burg 35bbb04d89 [Minor] Changed exception handling in CsvParser 2015-07-10 10:47:44 +02:00
Robert von Burg ffbce7aab6 [New] Added a CsvParser 2015-07-09 19:50:15 +02:00
Robert von Burg 21d640e081 [Minor] fixed broken test
- the test has changed because default encoding is now UTF-8 instead of
utf-8
2015-07-09 19:31:46 +02:00
Robert von Burg d9dc5261e7 [Minor] fixed broken test
- the test has changed because default encoding is now UTF-8 instead of
utf-8
2015-07-09 19:29:45 +02:00
Robert von Burg acd679636a [New] Added strolch_minimal and strolch_minimal_rest projects
- These projects are the most simple versions of Strolch application
which can be created.
- strolch_minimal is a console based Java SE application
- strolch_minimal_rest is a servlet based web application running on
Tomcat 8. Once started a rest service is available:
  http://localhost:8080/strolch_minimal/rest/greetings?name=eitch
2015-07-09 14:51:06 +02:00
Robert von Burg 2e91d18aa9 [Minor] moved artifact definition before properties 2015-07-09 14:49:13 +02:00
Robert von Burg 022cf4c5f3 [Minor] Added logging of which environment is loaded from root path 2015-07-09 14:48:32 +02:00
Robert von Burg b2ab084f7e [New] Added new blog entry 2015-07-08 17:25:51 +02:00
Robert von Burg 3ea59da454 Merge remote-tracking branch 'refs/remotes/origin/activity-agent-map' into develop 2015-07-08 08:50:02 +02:00
Robert von Burg 5822c231f0 [Major] Added SAX XML persistence incl. DOM for Activities 2015-07-08 08:21:11 +02:00
Robert von Burg 6659b90b83 [Major] Removed redundant XmlPersistenceStreamWriter
- Now SaxParser simply writes to XMLStreamWriter
2015-07-08 08:00:14 +02:00
Robert von Burg 203013c93d [New] Added migration scripts for Activities as version 0.4.0 2015-07-08 07:51:02 +02:00
Robert von Burg cf004e5577 [Minor] Changed TimeState Type from BooleanState to Boolean, etc.
- See StrolchValueType for the types of values which Strolch knows about
2015-07-08 07:47:46 +02:00
Robert von Burg 5fe84b1d02 [Major] Extended XmlExportModel XmlImportModel for Activities 2015-07-08 07:42:53 +02:00
Robert von Burg 588952b526 [Major] Major refactoring of SAX and DOM implemenetations
- also added SAX and DOM visitors for Acitivities and Actions
2015-07-07 17:53:17 +02:00
Robert von Burg 2e58db83fd [Major] change DBC to add bad values for better debugging 2015-07-07 17:53:08 +02:00