Removed now the unused SVC_ACCOUNT_ACCOUNTNAME, but added a CHECK option
to the account service.

The AccountService now has a method to check the usertoken for
expiration.

Change-Id: Ic1ec8a00c95ecbfeb49e3e9c3a1f5c609ad89b80
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added a token check to the services. It's checks if a given token can be
mapped to a user.

Change-Id: Id541ccf6a2ed51fb8824507e535df5bad62aeead
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added a method to set the account details and to logout. The account
details can only be modified if a valid token is passed, too. The logout
just removes the user with the given token from the database.

Change-Id: I4498f2ee454a0e99ead6bacaaca3ee8f9c1d7baf
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added a logout functionality to the SL.

Changed the param at the method to get the account info to the token
(before: account name).

Change-Id: Icb751c70ff03b62c4b52958d20a733054061a1e4
Signed-off-by: Peter Merkert <p.merkert@sap.com>
AccountDetails had some (de)serialization problems. Fixed the method
with a Jackson Mixin: AccountDetailsMixin.

The CustomObjectWrapper has been extended with the AccountDetailsMixin.

Change-Id: I543944d941609a95bb571748eb9191b62ace9c76
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Merge remote-tracking branch 'origin/master' into JAXRS-migrate

Conflicts:
	org.sopeco.service/src/main/java/org/sopeco/service/configuration/ServiceConfiguration.java
	org.sopeco.service/src/main/java/org/sopeco/service/persistence/entities/AccountDetails.java
	org.sopeco.service/src/main/java/org/sopeco/service/rest/AccountService.java
	org.sopeco.service/src/main/java/org/sopeco/service/rest/json/CustomObjectWrapper.java
Updated the CustomObjectMapper to add the AccountDetailsMixIn into the
JSON mapping configuration.

Change-Id: I1b6297618c7a66fcba7219067b43e2ecd9083b6f
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Somehow, eclipse always wants to commit this file. I'll do it now one
time.

Change-Id: Ie2bc5df1a7dbc20d6ac41da57e70c903ba34a045
Signed-off-by: Peter Merkert <p.merkert@sap.com>
FINAL STEP TO JERSEY 2.6 MASTERED! Now the CustomObjectMapper has been
injected on startup of the servlet. An application class is needed:
ServletContainerInitialization. It overwrites the ResourceConfig of the
servlet with custom settings. In my case it's the CustomObjectMapper for
JSON converting.
The web.xml has been modified to call the new
ServletContainerInitialization on servlet creation.

The mapping for JSON works now great (tested with WebUI and the complex
object AccountDetails on a RESTful interface).

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