Added a first simple MAVEN + Jersey REST Project (aka HelloWorld)

Change-Id: I4be86b161a9fd6cc5a693adb1b710649624cc670
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Changed example to a plain login request with a return of a custom ID.
The ID will be fixed for debugging issues and removed when the service
layer is advanced.

Change-Id: Ida938dff7b2da1ab2b772182dcd183426dbed66c
Signed-off-by: Peter Merkert <p.merkert@sap.com>
FINALLY a running test case. The server does not run on Tomcat any more,
but the test case is working now.

Todo: Check running on Tomcat Server again.
Todo: Clean up the project with correct names of the two classes and a
nice test class structure.
Todo: Clean up the pom.xml (add comments as well)

Change-Id: I3e62ed1467e32d97766848192c7cb50e5ac48f28
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Todo done: Check running on Tomcat Server again.
The REST ist now running on Tomcat again.

TODO: Use Dynamic Web Module 3.0 for automatic creation of the web.xml


Change-Id: I8d4f7e75f374da9ac6445212acd66b7525f15194
Signed-off-by: Peter Merkert <p.merkert@sap.com>
===Functions===
==Dynamic Web Module 3.0==
 No possibility atm to use this  service, as the JUnit tests requires an
@Path(..) annotation, but DWM3.0 required @WebServlet(..) annotation. As
this interferese, we cannot use DWM3.0.

==Tomcat publishing==
Fixed the publishing to local Tomcat server. This setting is environment
specific and cannot be used on other PCs.
I can now run the project and access the login page at
"http://localhost:8080/login"

==Sample REST methods==
Added some sample REST request to get HTML, XML and plain text on one
resource.


===ISSUES===
The build-in browser in Eclipse request plain text primarily and Chrome,
Firefox etc. request HTML primarily.



Change-Id: If704bfd0627ae41d8118d99969ce547887f83b80
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Fixed the layout of the pom.xml and added comments to it.

Change-Id: I988d773f189809f1129b6dc6cd9e5df7b76dd1a1
Signed-off-by: Peter Merkert <p.merkert@sap.com>
- Removed HTML and XML example methods.
+ Added MediaType to the plaint ext request, that it is really requested
(may fail otherwise)

Change-Id: I2c6927460a2ea1aab9f8e778e3cca13aceeeb605
Signed-off-by: Peter Merkert <p.merkert@sap.com>
TODO: Add a Persistence provider to access the entities in the SPC
Service.


Change-Id: I7f02261fb5f08404e90d090eef2fd0baf6cbca33
Signed-off-by: Peter Merkert <p.merkert@sap.com>
+ Added a JSON data exchange via the REST service
To do so, transformed the old login method with TEXT_PLAIN to a
JSON_APPLICATION type

+ Added JUnit test with JSON

TODO: Cleant he code with JUnit up.

Change-Id: Ic3dd622e9e733f20192353a396607546225a24d5
Signed-off-by: Peter Merkert <p.merkert@sap.com>
- Removed an unused import for JSON converting out of the pom.xml

+ cleaned the JerseyTest for login up

Change-Id: Ieaf046a6c685e0cebb93db2084a935b5636165a0
Signed-off-by: Peter Merkert <p.merkert@sap.com>
+ moved scope of var to private explicity

+ added comments to the LoginData class

Change-Id: I92f86fdc66fd38a6c431dfe0fbaf5cdf329678b3
Signed-off-by: Peter Merkert <p.merkert@sap.com>
- removed unused annotation ob XMLRootelement for a POJO


Change-Id: Iec1fcc08a5288bd4344ecf2f66e0564142875074
Signed-off-by: Peter Merkert <p.merkert@sap.com>
+ Added a configuration file
+ Added persitence provider files to connect to derby
+ Added entities for
	- a MEC
	- an Scenario
	- Account
	- Accountdetails
+ created persitence.xml for the persitent entities
	- need to store the persistence.xml in root source folder, otherwise it
does not work!
# Moved the rest services into a new org.sopeco.service.rest package.
# Fixed the web.xml with the new rest folder

A lot of changed did happen. Most of the classes can be found in the
WebUI. We need to extract the services completely to provide them in the
service layer.

TODO: Bug with Maven - need to install sometimes twice for the final
packages to appear
TODO: persitstence data have a bad query in the files. cannot create
account because of corrupt query "getAccountByName" when you open
explorer to "http://localhost:8080/account/create/test/test" where test
ist username and password.


Change-Id: I229e295ade1f0a0f0742282cb50235a4a3117554
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Connection to derby successful established!

Now it's possible to create an account via the sopeco service layer into
the derby db.

TODO: Add some comments to the classes!
TODO: Add Unittest for the accounting!
-> need to create derby db fake?


Change-Id: I01e65f6e9f561c85d683e865d41ce13ceb4846ee
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added comments to the ServicePersistence classes.

Change-Id: I5ab96594dfffd9c47d8b6d6a1a30a8551e2a7a3a
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added comments to the service persitence classes.

Change-Id: I660a1cdd43d18ba14a725345be8731dc375e85e8
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added HTTP status code configuration to use globally and for the 
requester to interpret the reponse from this rest service.

Change-Id: Idc2d8630d7706fd8c8f43dec08f58e6327382382
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Replaced old plain test HTTP status codes with the new HTTPStatus
configuration from last commit.

Change-Id: If60949374e6db18ad2466599fd12536997fd9561
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added a message class to send a message back to the service requester if
service cannot be completed

Change-Id: Iff8dbdf094f970105ae35023e20ca4ed643bc1ea
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added an message exchange to the account creation. When the cration
fails, then a message it returned as a POJO to the requester.

Change-Id: Iad913cd5225b9d66f417306dc467bdf1adc6fd2b
Signed-off-by: Peter Merkert <p.merkert@sap.com>