Commit Graph

92 Commits

Author SHA1 Message Date
Robert von Burg 0882274198 moved everything to a subdirectory for repo merge 2014-09-16 08:50:59 +02:00
Robert von Burg 70d2318852 [Minor] code cleanup 2014-09-14 12:20:44 +02:00
Robert von Burg 92286c9b13 [Bugfix] fixed bug where type was not copied when cloned 2014-09-08 13:55:07 +02:00
Robert von Burg 523d44c41e [New] Added privilege checking for StrolchQueries 2014-09-08 13:35:47 +02:00
Robert von Burg 352a702c15 [New] Implemented param null selector and ParameterBagSelector 2014-09-04 20:30:35 +02:00
Robert von Burg 7cb7c2749c [Major] Implemented AuditQuery 2014-08-28 21:45:03 +02:00
Robert von Burg b8bfaf8408 [Major] Using DateRange in DateSelector 2014-08-26 22:02:20 +02:00
Robert von Burg e9fc3d7ac8 [Major] moved StringMatchMode to ch.eitchnet.utils 2014-08-25 22:52:18 +02:00
Robert von Burg c2fc8474f6 [Project] set version to 1.0.0-SNAPSHOT 2014-08-24 17:23:38 +02:00
Robert von Burg b0d921d720 [New] Implemented opt-in audit trail in Strolch
The audit trail has its own map on the Realm and a trail is written by
realm at the end of the transaction.

You can write your own audit trail using tx.getAuditTrail().

Enable the audit trail by setting the realm configuration value
'enableAuditTrail'.
2014-08-23 20:49:43 +02:00
Robert von Burg c7a69dbf88 [New] Added convenience method Locator.newLocatorBuilder(String...) 2014-08-21 17:51:52 +02:00
Robert von Burg 453b6b5bcb [Major] added missing parsing of StrolchTimedState and fixed locators
Locators are now a bit different, to handle finding StrolchTimedState as
well, the Locator has the form:
Resource/<type>/<id>/State/<id>
Resource/<type>/<id>/Bag/<id>/<param_id>
2014-08-21 17:42:10 +02:00
Robert von Burg 647de2b392 [Minor] renamed StrolchElementToDomVisitor to StrolchElementToSaxVisitor 2014-08-17 14:09:29 +02:00
Robert von Burg 208f8f0ec9 [Project] added resource filtering for componentVersion.properties 2014-08-13 23:37:47 +02:00
Robert von Burg 5e062f0630 [New] Implemented AnySelection 2014-08-07 01:00:25 +02:00
Robert von Burg 41f0e72cc5 [New] Moved *Visitor transformations in query into query method
This is better than keeping the Visitor in the instance of the query,
where it might be to early to instantiate it.
2014-08-06 18:42:44 +02:00
Robert von Burg e1dbb00ab7 [Major] renamed methods 2014-08-06 16:35:41 +02:00
Robert von Burg 1f986797d4 [New] OrderQuery and ResourceQuery now require a visitor
This visitor is used to transform the query result. In cases where
transformation is not required, use the NoStrategyOrderVisitor or
NoStrategyResourceVisitor.

For convenience new static helper methods were:
ResourceQuery.resourceQuery(Navigation)
ResourceQuery.resourceQuery(String)
ResourceQuery.resourceQuery(String, ResourceVisitor)

OrderQuery.orderQuery(Navigation)
OrderQuery.orderQuery(String)
OrderQuery.orderQuery(String, ResourceVisitor)
2014-08-06 16:33:10 +02:00
Robert von Burg 1ceedfc818 [Major] refactored StrolchElementVisitor to return value
Now instead of having visitors implement their own getters, the return
type is defined as a template on the concrete implementation.

To return nothing simply use the type Void and return null.
2014-08-06 12:46:31 +02:00
Robert von Burg 64afcb02a6 [New] Implemented NameSelection.contains() and caseInsensitive() 2014-08-04 15:10:19 +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 d36267f640 [Minor] extracted ModelStatistics 2014-07-31 16:11:20 +02:00
Robert von Burg 16db0e357e [New] Added a DataRange parameter selection 2014-07-31 09:40:49 +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 c8cedae647 [Minor] Code formatting 2014-03-31 21:37:13 +02:00
Robert von Burg 6ae9cbf866 [Minor] use locator when throwing exceptions 2014-03-28 18:43:04 +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 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 66415dea5f [Project] fixed urls of projects 2014-03-14 14:36:39 +01:00
Robert von Burg 0dae330e72 [Major] Multiple issues
- setId() and setName() don't allow empty values
- added Locator.newBuilder(String)
- fixed wrong locator created by ParameterizedElement
- Better exception handling when parsing from XML as Sax
2014-03-03 23:32:33 +01:00
Robert von Burg d15d163ebf [New] Added New StrolchElementVisitor for StrolchRootElement
Also added getParent() and getRootElement() on StrolchElement
2014-02-26 20:37:42 +01:00
Robert von Burg 7147bc1570 [New] added a new StrolchRootElement interface for Resource and Order 2014-02-24 21:48:53 +01:00
Robert von Burg 205c4b967d [Minor] added sorting of exports XML model
- Parameters are sorted by Index
- ParameterBags are sorted by Id
2014-02-13 22:18:01 +01:00
Robert von Burg 791f12eef3 [Bugfix] fixed bug where Locator was not complete for Parameters 2014-02-13 22:17:02 +01:00
Robert von Burg 14dd9ff73b [New] added a ParameterVisitor interface with SetParameterValueVisitor 2014-02-07 17:54:48 +01:00
Robert von Burg 8b76bf3d4b [Major] refactoring use of BooleanSelection in StrolchQuery 2014-02-03 08:03:10 +01:00
Robert von Burg e023733cf0 [New] Added NotSelection and further builder methods to StrolchQuery 2014-02-01 13:12:43 +01:00
Robert von Burg 5915fe086d [New] added Parameter.getIndex() 2014-01-31 19:13:19 +01:00
Robert von Burg 49df0b54da [Minor] switched to StringHelper.isNotEmpty() 2014-01-31 19:02:21 +01:00
Robert von Burg 368f8f14a4 [New] modified the Selection to have a builder pattern
Further modified the StringParameterSelection to allow for contains and
case insensitive querying
2014-01-31 15:55:16 +01:00
Robert von Burg 743e1c039b [New] Implemented Export and Import model services and commands 2014-01-30 00:21:13 +01:00
Robert von Burg 9fda376697 [Minor] code cleanup 2014-01-25 22:14:33 +01:00
Robert von Burg 84c75c8d32 [Project] added Jenkins build badge to README.md 2014-01-23 22:52:38 +01:00
Robert von Burg 0f6f2183c9 [New] added version info metadata to agent 2014-01-23 22:00:34 +01:00
Robert von Burg 63fc60bdfd [Bugfix] fixed a bug that tries to parse inexistant state on Order 2014-01-22 20:19:10 +01:00
Robert von Burg ce2afd365b [Minor] extended Locator to get the path elements
Further added JavaDoc and removed exceptions when formatting about
locator length. This is now checked when instantiating using the builder
2014-01-13 19:08:21 +01:00
Robert von Burg e781aea668 [Major] refactored how transactions are opened
Now the ElementMapHandler is the central object and clients do not use
access DAOs or the PersistenceHandler anymore. This is now transparent.
2014-01-10 19:10:36 +01:00