@@ -0,0 +1,2436 @@
+//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%0A// This file is a part of the 'esoco-business' project.%0A// Copyright 2017 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany%0A//%0A// Licensed under the Apache License, Version 2.0 (the %22License%22);%0A// you may not use this file except in compliance with the License.%0A// You may obtain a copy of the License at%0A//%0A//%09  http://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing, software%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0A// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A// See the License for the specific language governing permissions and%0A// limitations under the License.%0A//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%0Apackage de.esoco.entity;%0A%0Aimport de.esoco.lib.comm.Connection;%0Aimport de.esoco.lib.comm.HttpEndpoint;%0Aimport de.esoco.lib.comm.http.HttpRequestMethod;%0A%0Aimport static de.esoco.lib.comm.CommunicationRelationTypes.HTTP_STATUS_CODE;%0Aimport static de.esoco.lib.expression.Functions.identity;%0A%0A%0A/********************************************************************%0A * The HTTP endpoint for interaction with the %7B@link EntitySyncService%7D REST%0A * service.%0A *%0A * @author eso%0A */%0Apublic class EntitySyncEndpoint extends HttpEndpoint%0A%7B%0A%09//~ Inner Classes ----------------------------------------------------------%0A%0A%09/********************************************************************%0A%09 * The base class for request methods to the %7B@link EntitySyncEndpoint%7D.%0A%09 *%0A%09 * @author eso%0A%09 */%0A%09public static class EntitySyncRequest extends HttpRequest%3CString, String%3E%0A%09%7B%0A%09%09//~ Constructors -------------------------------------------------------%0A%0A%09%09/***************************************%0A%09%09 * Creates a new instance.%0A%09%09 *%0A%09%09 * @param sMethodName The name of the request method%0A%09%09 */%0A%09%09public EntitySyncRequest(String sMethodName)%0A%09%09%7B%0A%09%09%09super(sMethodName,%0A%09%09%09%09  null,%0A%09%09%09%09  HttpRequestMethod.POST,%0A%09%09%09%09  %22/api/sync/%22,%0A%09%09%09%09  identity(),%0A%09%09%09%09  identity());%0A%09%09%7D%0A%0A%09%09//~ Methods ------------------------------------------------------------%0A%0A%09%09/***************************************%0A%09%09 * @see HttpRequest#processResponse(Connection, String)%0A%09%09 */%0A%09%09@Override%0A%09%09protected String processResponse(%0A%09%09%09Connection rConnection,%0A%09%09%09String%09   sRawResponse)%0A%09%09%7B%0A%09%09%09return rConnection.get(HTTP_STATUS_CODE).toString();%0A%09%09%7D%0A%09%7D%0A%7D%0A

Implement an entity modification synchronization service