Commit Graph

995 Commits

Author SHA1 Message Date
Robert von Burg 54375f1b8d Merge branch 'master' of git@github.com:eitch/li.strolch.agent.git 2014-03-19 20:28:16 +01:00
Robert von Burg 337f040a3e [New] Added CORS capability as a configuration option
Simply add the property corsEnabled=true and corsOrigin=? to the
configuration properties of the RestfulStrolchComponent and then the
RestFul API should allow cross origin querying
2014-03-19 20:26:01 +01:00
Robert von Burg 8f382caac6 [Bugfix] fixed problem stopping component that throws exception
Now we are sure that if a component fails to stop or destroy, we catch
the situation and carry on stopping the others. This handling is not
done when starting, as there we don't want to finish starting the agent
if something goes wrong.
2014-03-19 20:24:06 +01:00
Robert von Burg 33d5c13ebe [Project] Enabled compiler warnings for maven-compiler-plugin 2014-03-19 14:19:43 +01:00
Robert von Burg 6731c1a646 [Project] Removed duplicate dependency
Removed duplicate entry for dependency buildnumber-maven-plugin
2014-03-19 14:14:33 +01:00
Robert von Burg b1ec30d7b4 [Project] fixed urls of projects 2014-03-14 14:40:39 +01:00
Robert von Burg 53ea7bc7de [Project] fixed urls of projects 2014-03-14 14:38:10 +01:00
Robert von Burg b50863d897 [Project] fixed urls of projects 2014-03-14 14:38:08 +01:00
Robert von Burg 62b0d407b0 [Minor] Accessing the realms through the container 2014-03-14 14:38:08 +01:00
Robert von Burg eb33a5d31a [Project] fixed urls of projects 2014-03-14 14:37:20 +01:00
Robert von Burg 03735eaab8 [Project] fixed urls of projects 2014-03-14 14:37:15 +01:00
Robert von Burg 88e3c6961e [Project] fixed urls of projects 2014-03-14 14:37:11 +01:00
Robert von Burg 3942103d3b [Project] fixed urls of projects 2014-03-14 14:37:02 +01:00
Robert von Burg 236ccb8014 [Project] fixed urls of projects 2014-03-14 14:36:57 +01:00
Robert von Burg 3b8444894a [Project] fixed urls of projects 2014-03-14 14:36:53 +01:00
Robert von Burg d40ea5616b [Project] fixed urls of projects 2014-03-14 14:36:45 +01:00
Robert von Burg 66415dea5f [Project] fixed urls of projects 2014-03-14 14:36:39 +01:00
Robert von Burg 5ee34360ba [Project] fixed urls of projects 2014-03-14 14:36:33 +01:00
Robert von Burg 9992a5dbca [Project] added pom.xml for importing in IDEs and a .ignore 2014-03-11 07:47:35 +01:00
Robert von Burg 3ec337a847 [Minor] added Google webmaster tools verfication 2014-03-11 07:46:01 +01:00
Robert von Burg 9ba616ce94 [Project] added ignore of directory data 2014-03-11 07:43:48 +01:00
Robert von Burg 5e088b7a52 [New] Added tests for Command.undo() for all Command implementations
Except for the XML Import and Export commands...
2014-03-10 22:34:36 +01:00
Robert von Burg 2894b5b157 [Bugfix] Fixed two bugs in CachedElementMap
First bug was a situation where the update() method returned a list of
null elements due to removing and then trying to "replace" the existing
element.

Then fixed a bug where when an element was removed its ID was not
removed the key set.
2014-03-10 22:33:22 +01:00
Robert von Burg acc9e8128d [New] Initial commit 2014-03-09 12:03:31 +01:00
Robert von Burg d7d1225162 [New] added new li.strolch.website project to projects.lst 2014-03-09 11:55:31 +01:00
Robert von Burg c3d8a9c2b8 Initial commit 2014-03-09 03:53:46 -07:00
Robert von Burg d88bb9d074 [Project] added eitchnet dependencies to module build 2014-03-08 18:32:05 +01:00
Robert von Burg fcfdbbd9f7 [Project] fixed empty problem when iterating projects list 2014-03-08 17:36:33 +01:00
Robert von Burg d93b25751e [Project] modifies scripts to use project.lst for iteration and added relevant ch.eitchnet.* projects to list 2014-03-08 17:30:21 +01:00
Robert von Burg 13a158c868 [Project] modifies scripts to use project.lst for iteration and added relevant ch.eitchnet.* projects to list 2014-03-08 17:22:35 +01:00
Robert von Burg b0b580677b [Bugfix] fixed lower case name attribute in Enums.xml 2014-03-03 23:36:21 +01:00
Robert von Burg cfe36bcfeb [Bugfix] fixed lower case name attribute in Enums.xml 2014-03-03 23:36:04 +01:00
Robert von Burg c8d41ac497 [Minor] RuntimeMock.assertServiceResult is static 2014-03-03 23:35:45 +01:00
Robert von Burg 411b7e00df [Major] Implemented tests for all Services
These tests are simple success tests, failure tests come later. Each
tests makes tests that the service works in CACHED, TRANSACTIONAL and
TRANSIENT data store mode.
2014-03-03 23:35:17 +01:00
Robert von Burg ffc8be7498 [Minor] Testbase dependency management is scope test
also added postgresql dependency management
2014-03-03 23:33:21 +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 c7cb42724e [Major] Multiple issues
- Documented ComponentContainer.getComponent()
- StrolchRealm try lock timeout is configurable
- added DataStoreMode.isTransient()
- documented Command
- fixed lower case name attributes in Enums.xml
2014-03-03 23:30:35 +01:00
Robert von Burg 692f80fa61 [Bugfix] Don't close unopened connection
When a PostgreSQL transaction is opened without any objects being
modified or queried, then the connection won't be opened, thus no need
to close it.
2014-03-03 23:22:55 +01:00
Robert von Burg 9555f562fa [Bugfix] don't check db connection for realms which are transient 2014-03-03 18:42:12 +01:00
Robert von Burg 17bf200d3c [Minor] cleaned up exception message 2014-03-03 18:41:26 +01:00
Robert von Burg 1f287fe121 [Minor] all commands now lock their elements before doing their work 2014-02-26 21:32:12 +01:00
Robert von Burg b1e24f8a59 [New] Implemented StrolchTransaction.addCommand(), Command.undo()
Commands are now supposed to be added to the StrolchTransaction so that
when a TX is committed, the commands are first verified and then
Command.doCommand() is called.

But most important of all, in case of an exception, Command.undo() is
called so that each Command can properly undo its changes so that also
in memory changes are rolled back.

Now all Services call tx.addCommand(Command) instead of directly calling
Command.doCommand()
2014-02-26 21:13:47 +01:00
Robert von Burg 66e70fce75 [New] Implemented StrolchTransaction.addCommand(), Command.undo()
Commands are now supposed to be added to the StrolchTransaction so that
when a TX is committed, the commands are first verified and then
Command.doCommand() is called.

But most important of all, in case of an exception, Command.undo() is
called so that each Command can properly undo its changes so that also
in memory changes are rolled back.
2014-02-26 20:43:26 +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 b8981cc592 [New] Implemented Command.undo() for all commands
This lead to the ElementMaps returning replaced elements when calling
update() or updateAll().

Further now the StrolchTransaction has methods to check the state easier
than comparing with the TransactionState enum
2014-02-25 21:21:42 +01:00
Robert von Burg 20f0417d93 [New] Implemented Command.undo() for all commands 2014-02-25 21:19:41 +01:00
Robert von Burg 911a92ad5e [Minor] Added update count checking when executing INSERT, UPDATE, DEL 2014-02-25 21:19:10 +01:00
Robert von Burg 2446682c9a [New] Added SetParameterService and Command 2014-02-24 22:29:02 +01:00
Robert von Burg c3a556df81 [Minor] trying to fix broken LockingTest which has an infinite loop 2014-02-24 21:57:57 +01:00
Robert von Burg 859ca6a89d [New] Implemented locking for Strolch elements
Also cleaned up hierarchy of StrolchTransaction by moving up everything
into AbstractTransaction as made sense and added special delegation
methods for the actual commit() and rollback() ind the concrete
implementations.
2014-02-24 21:49:33 +01:00