Commit Graph

769 Commits

Author SHA1 Message Date
Robert von Burg 7b8defc56f [New] added StrolchQuery.getSelection() and cleaned up some constants 2014-08-04 14:50:56 +02:00
Robert von Burg c21f96a5ae [New] added StrolchQuery.getSelection() and cleaned up some constants 2014-08-04 14:50:36 +02:00
Robert von Burg abf2a06b9e [New] Implemented StrolchDao.hasElement() 2014-08-04 11:47:56 +02:00
Robert von Burg 5623f27f2d [New] Implemented StrolchDao.hasElement() 2014-08-04 11:47:51 +02:00
Robert von Burg bf4c23e241 [New] Implemented StrolchDao.hasElement() 2014-08-04 11:47:44 +02:00
Robert von Burg 1b956fbd45 [Major] cleaned up stupid use of forms for POST and added proper sec
fixed broken tests
2014-08-04 00:41:35 +02:00
Robert von Burg b6828be09b [Major] cleaned up stupid use of forms for POST and added proper sec 2014-08-04 00:24:57 +02:00
Robert von Burg 62265da046 [Minor] fixed typo 2014-07-31 22:59:27 +02:00
Robert von Burg 68a69f6319 [Bugfix] never ever return your own set!
Fixed issue where querying the keyset returned the actual set, thus
modifying the set caused modifications in the ElementMap
2014-07-31 22:22:46 +02:00
Robert von Burg ef15d4af1f [New] extended XmlExportModelService to handle overwriting existing 2014-07-31 20:05:54 +02:00
Robert von Burg b1622eab47 [Major] refactored Service tests for easier re-use
It is now also very easy to inject a before, after and validator to
validate the services execution
2014-07-31 17:57:08 +02:00
Robert von Burg 57607ae23c [Bugfix] fixed concurrent modification of list when removing elements 2014-07-31 16:35:29 +02:00
Robert von Burg 29ca8ba3c5 [New] Added ClearModelServiceTest 2014-07-31 16:34:58 +02:00
Robert von Burg c16685dfc6 [New] added tests for ElementMap.removeAll() 2014-07-31 16:12:56 +02:00
Robert von Burg 14d9c66a78 [Major] added ClearModelCommand and Service 2014-07-31 16:12:31 +02:00
Robert von Burg 348b2121e9 [Major] added new methods ElementMap.removeAll() 2014-07-31 16:12:07 +02:00
Robert von Burg 7b6ad39060 [Major] added new methods ElementMap.removeAll() 2014-07-31 16:12:00 +02:00
Robert von Burg ddf7c95bb5 [Major] added new methods ElementMap.removeAll() 2014-07-31 16:11:46 +02:00
Robert von Burg d36267f640 [Minor] extracted ModelStatistics 2014-07-31 16:11:20 +02:00
Robert von Burg 281ce4e826 [New] Added a DataRange parameter selection 2014-07-31 09:42:41 +02:00
Robert von Burg 16db0e357e [New] Added a DataRange parameter selection 2014-07-31 09:40:49 +02:00
Robert von Burg a80c24a82b [Minor] enums has abstract methods... 2014-07-15 18:51:34 +02:00
Robert von Burg c246c76236 [New] Added a StrolchQuery.hasSelection() and Selection.hasSelection()
This allows for checking if a query really has a selection.
2014-07-15 18:50:45 +02:00
Robert von Burg 87ee16e33b [New] Added AbstractConfiguration.getDataDir()
This is a convenience method to get a certain directory in the data path
of a strolch runtime.
2014-06-28 01:06:21 +02:00
Robert von Burg 76274b81c8 [New] Added a ElementMap.getTemplate()-method
This really simplifies the working with templates in Strolch. Just know
the type of template, retrieve it, clone it and then set your values.
2014-06-28 01:05:13 +02:00
Robert von Burg 22ff59c384 [New] Added a new @Provider CharsetResponseFilter to enforce utf-8
This is needed because the JSON returned is UTF-8, but the browsers
don't always pick this up.
2014-06-13 19:50:39 +02:00
Robert von Burg d1206d2293 [Minor] fixed brittle test due to unordered sets 2014-06-13 18:15:48 +02:00
Robert von Burg 40de765eca [Minor] documenting how to run tests by adding user for postgresql 2014-06-13 18:12:35 +02:00
Robert von Burg 7c0e64808d [Minor] documenting how to run tests by adding user for postgresql 2014-06-13 17:54:01 +02:00
Robert von Burg f12d731145 [Minor] documenting how to run tests by adding user for postgresql 2014-06-13 17:53:42 +02:00
Robert von Burg a087f4a624 [Minor] fixed compiler warning 2014-06-13 17:33:53 +02:00
Robert von Burg 028d198f79 [Minor] fixed test which breaks on Java8 2014-06-13 17:23:56 +02:00
Robert von Burg 791e8b7416 [Major] No more static persistence of a Privilege Certificate
Now the certificate is passed into the Service before execution.

This is better than having a static reference which can always lead to
weird behaviour, especially when multiple ClassLoaders come into play.
2014-04-15 19:20:13 +02:00
Robert von Burg c8cedae647 [Minor] Code formatting 2014-03-31 21:37:13 +02:00
Robert von Burg f714da28f2 [New] Added ElementMap.getBy(String, Parameter)
This allows to query elements by using a StringParameter which is a
reference to another element.
2014-03-31 21:36:12 +02:00
Robert von Burg 86105eaba2 [Minor] Added exception when adding a resource which already exists 2014-03-29 02:07:05 +01:00
Robert von Burg a7bae4b9f5 [Major] fixed rest unit tests due to changes in jersey 2.7
also had to replace eclipse.persistence with 2.5.1 due to a bug in
namespace resolution.
2014-03-28 22:22:44 +01:00
Robert von Burg 316764a409 [Project] using jersey version 2.7 2014-03-28 19:33:19 +01:00
Robert von Burg ff9b864ee9 [Minor] only log message every 10 seconds when exporting XML model 2014-03-28 18:43:31 +01:00
Robert von Burg 6ae9cbf866 [Minor] use locator when throwing exceptions 2014-03-28 18:43:04 +01:00
Robert von Burg e9f9a24981 Merge branch 'master' of git@github.com:eitch/li.strolch.service.git 2014-03-27 18:59:29 +01:00
Robert von Burg ac8c76868a [Minor] added more debugging when exporting
This is useful for long running exports
2014-03-27 18:53:32 +01:00
Robert von Burg 5cb0982b2f [Minor] Added missing writing of Parameter attributes 2014-03-27 18:52:57 +01:00
Robert von Burg c24e01cdc8 [Minor] BooleanParameter is now more restrictive on parsing from string
We only want the string literals true and false to parse
2014-03-27 18:52:13 +01:00
Robert von Burg fd4f7382f5 [Project] added MacOSX ignors 2014-03-27 18:51:28 +01:00
Robert von Burg 95117bdf88 [Minor] NetBeans didn't play nice... now using tabs, instead of spaces 2014-03-24 15:35:13 +01:00
Robert von Burg 396d458112 Merge origin/master 2014-03-24 15:03:28 +01:00
Robert von Burg 7ca7bc7ca7 [New] TimedStates are now properly incorporated into the Strolch Model
The TimedStates have been added to Resources and can be added, removed and retrieved using the following methods:
- addTimedState(StrolchTimedState):void
- removeTimedState(String):<T extends StrolchTimedState>
- getTimedState(String):<T extends StrolchTimedState>
- getTimedStates():List<StrolchTimedState<?>>
- hasTimedState(String):boolean

Also created a new Boolean StateVariables type

The TimedStates are added to Resources using the StrolchTimedState interface and there is a concrete implementation for each type:
- BooleanTimedState
- IntegerTimedState
- FloatTimedState
- StringSetTimedState

Each timed state is tested in a unit test
Each timed state is (de)serializable from/to XML
2014-03-24 15:02:58 +01:00
Robert von Burg 1c76c1fd34 [New] Added development and download pages 2014-03-22 00:58:53 +01:00
Robert von Burg a8aba4dade [New] Added development and download pages 2014-03-22 00:47:17 +01:00