Commit Graph

79 Commits

Author SHA1 Message Date
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
Robert von Burg 3a756b9561 [New] added new TEMPLATE constant to Tags 2014-01-01 02:17:26 +01:00
Robert von Burg 2cb1aa0ffe [Bugfix] fixed an issue where cloning a Resource was missing the params 2013-12-28 12:58:13 +01:00
Robert von Burg fc92e9fff3 [Bugfix] fixed a bug in a test due to a timinig issue 2013-12-25 17:00:35 +01:00
Robert von Burg 43c31f4f31 [Minor] fixed issue where eclipse couldn't validate log4j.xml 2013-12-25 11:56:07 +01:00
Robert von Burg 46d446c700 [New] methods to generate bulk objects now pad the id
This allows for easier lexical sorting
2013-12-24 02:46:43 +01:00
Robert von Burg 66392767e5 [New] added methods to generate bulk model objects 2013-12-24 01:47:38 +01:00
Robert von Burg 98f92dc0f8 [Minor] moved constant for default realm 2013-12-24 00:17:30 +01:00
Robert von Burg 6951bac61c [Minor] added constant for default realm 2013-12-23 20:24:53 +01:00
Robert von Burg 9b836dd45c [New] Added visitor pattern for Resources and Orders 2013-12-23 01:52:50 +01:00
Robert von Burg e8cdbb59fe [Project] Changed all licence references to Apache License 2.0 2013-12-15 13:10:01 +01:00
Robert von Burg 2ab55605b9 [New] finally implemented a query model
In li.strolch.model we keep the API so that the visitors are available
in all Strolch projects
2013-12-11 23:50:20 +01:00
Robert von Burg d3353062b9 [New] Implemented an XmlModelDefaultHandler to parse a model file
Now we can parse a big file containing multiple types of objects. It is
also supported to include files by using the <IncludeFile file="" />
element.

Including tests
2013-11-21 18:17:35 +01:00
Robert von Burg 7289dccdfc [New] added parseFromString()-methods to all Parameter implementations 2013-11-19 22:54:25 +01:00