Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src')
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/.gitignore0
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/AbstractHttpRestEndPoint.java151
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/AcLineSegmentsRestEndPoint.java51
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BaseVoltagesRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BaysRestEndPoint.java52
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BreakersRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BusbarSectionsRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/DisconnectorsRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EarthFaultCompensatorsRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EnergyConsumersRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EnergySourcesRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GeographicalRegionsRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GroundingImpedancesRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GroundsRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/JunctionsRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LineTypesRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LinesRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LoadBreakSwitchesRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PetersenCoilsRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PlantsRestEndPoint.java54
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PowerTransformersRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SubGeographicalRegionsRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SubstationsRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SwitchesRestEndPoint.java55
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/TopologyIdRestEndPoint.java53
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/TopologyRestEndPoint.java54
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/VoltageLevelsRestEndPoint.java52
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/resources/.gitignore0
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/test/java/.gitignore0
-rw-r--r--cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/test/resources/.gitignore0
30 files changed, 1512 insertions, 0 deletions
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/.gitignore b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/.gitignore
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/AbstractHttpRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/AbstractHttpRestEndPoint.java
new file mode 100644
index 00000000..f8dd57d5
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/AbstractHttpRestEndPoint.java
@@ -0,0 +1,151 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.io.IOException;
+import java.net.HttpURLConnection;
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.adapter.dataexchange.responder.ICimRequestParameters;
+import org.eclipse.openk.sourcesystem.mockuptopology.adapter.dataexchange.responder.WriterWrapper;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import com.btc.cab.common.Version;
+import com.btc.cab.common.dataexchange.CommunicationTechnology;
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.messages.FailedToCreateException;
+import com.btc.cab.common.messaging.messages.InvalidParameterException;
+import com.btc.cab.common.string.StringUtilities;
+import com.btc.cab.common.value.parameter.MissingParameterException;
+import com.btc.cab.common.value.xparameter.ParameterUtilities;
+import com.btc.cab.common.value.xparameter.exceptions.InvalidParametersException;
+import com.btc.cab.service.IServiceContext;
+import com.btc.cab.service.dataexchange.exporter.AbstractRestResponder;
+import com.btc.cab.service.dataexchange.exporter.IResponder;
+
+/**
+ * The base class for all mock up topology <i>HTTP REST</i> responder end points.
+ *
+ * @author Christian Brunzendorf
+ * @author Frank Jäger
+ */
+public abstract class AbstractHttpRestEndPoint {
+
+ // Attributes
+ @Autowired
+ private IServiceContext context;
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param <P>
+ * the request parameters object type
+ * @param response
+ * the HTTP servlet response
+ * @param requestProperties
+ * the request parameter values
+ * @param scope
+ * the scope - specifies the application area<br/>
+ * for example: 'BaseVoltages'
+ * @param exchangeFormat
+ * the exchange format, i.e. <i>XML<(i> or <i>RDF</i>
+ */
+ @SuppressWarnings("unchecked")
+ public <P> void writeHttpRestResponse(HttpServletResponse response, @RequestParam Map<String, String> requestProperties, String scope, DataExchangeFormat exchangeFormat) {
+
+ IResponder<?, ?, P> responder;
+
+ try(WriterWrapper writerWrapper = new WriterWrapper(response)) {
+
+ P requestParameters = null;
+ Version version = getVersion(requestProperties);
+
+ /* create suitable responder */
+ {
+ responder = context.getServiceController().getResponderFactory().createResponder(scope, version, CommunicationTechnology.REST, exchangeFormat);
+
+ if(responder == null) {
+ getLogger().warn(new FailedToCreateException("Failed to create a suitable responder."));
+ response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);
+ }
+ }
+
+ /* create request parameters */
+ {
+ if(responder != null)
+ requestParameters = ParameterUtilities.createParameters(responder.getRequestParametersObjectType(), requestProperties);
+ }
+
+ /* write response */
+ {
+ if(responder != null)
+
+ if(responder instanceof AbstractRestResponder)
+ ((AbstractRestResponder<?, ?, ?, P>) responder).writeHttpResponse(response, requestProperties);
+ else
+ responder.writeResponse(writerWrapper, requestParameters);
+ }
+ }
+ catch(InvalidParametersException | MissingParameterException exception) {
+ getLogger().warn(exception);
+ response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);
+ }
+ catch(IOException exception) {
+ getLogger().fatal(exception); // REMIND 2017-08-11 Felix: Logger für anderes Loglevel anpassen: Hier eher "warn"
+ response.setStatus(HttpURLConnection.HTTP_INTERNAL_ERROR);
+ }
+ catch(Throwable exception) {
+ getLogger().fatal(exception);
+ response.setStatus(HttpURLConnection.HTTP_INTERNAL_ERROR);
+ }
+ }
+
+ /**
+ * Gets the version from the request properties attribute 'revision'.
+ *
+ * @param requestProperties
+ * the parameter values
+ * @return the version; not <code>null</code>
+ * @throws MissingParameterException
+ * Is thrown in the following cases:
+ * <ul>
+ * <li><code>requestProperties</code> is <code>null</code> or empty</li>
+ * </ul>
+ * @throws InvalidParameterException
+ * Is thrown in the following cases:
+ * <ul>
+ * <li><code>requestProperties</code> has an invalid {@link ICimRequestParameters#PARAMETER_REVISION} value</li>
+ * </ul>
+ */
+ private Version getVersion(Map<String, String> requestProperties) throws InvalidParameterException, MissingParameterException {
+
+ if((requestProperties == null) || requestProperties.isEmpty())
+ throw new MissingParameterException(ICimRequestParameters.PARAMETER_REVISION);
+ else {
+ Version result = null;
+ String revision = requestProperties.get(ICimRequestParameters.PARAMETER_REVISION);
+
+ if(StringUtilities.hasContent(revision))
+ try {
+ int version = Integer.parseInt(revision);
+
+ result = new Version(version);
+ }
+ catch(NumberFormatException exception) {
+ throw new InvalidParameterException(ICimRequestParameters.PARAMETER_REVISION, revision, exception);
+ }
+ else
+ throw new MissingParameterException(ICimRequestParameters.PARAMETER_REVISION);
+
+ return result;
+ }
+ }
+
+ /**
+ * @return the Logger for each instance of the implementation class
+ */
+ public abstract ILogger getLogger();
+}
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/AcLineSegmentsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/AcLineSegmentsRestEndPoint.java
new file mode 100644
index 00000000..540a92a2
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/AcLineSegmentsRestEndPoint.java
@@ -0,0 +1,51 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.ACLineSegment;
+
+/**
+ * The <i>REST</i> endpoint for {@link ACLineSegment}s.
+ *
+ * @author Christian Brunzendorf
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class AcLineSegmentsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(AcLineSegmentsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/ac-line-segments", produces = "application/xml")
+ public void getAcLineSegments(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_AC_LINE_SEGMENTS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BaseVoltagesRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BaseVoltagesRestEndPoint.java
new file mode 100644
index 00000000..55387e32
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BaseVoltagesRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Core.BaseVoltage;
+
+/**
+ * The <i>REST</i> endpoint for {@link BaseVoltage}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class BaseVoltagesRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(BaseVoltagesRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/base-voltages", produces = "application/xml")
+ public void getBaseVoltages(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_BASE_VOLTAGES, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BaysRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BaysRestEndPoint.java
new file mode 100644
index 00000000..919581d9
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BaysRestEndPoint.java
@@ -0,0 +1,52 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Core.BaseVoltage;
+
+/**
+ * The <i>REST</i> endpoint for {@link Bay}s.
+ *
+ * @author Christian Brunzendorf
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class BaysRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(BaysRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/bays", produces = "application/xml")
+ public void getBays(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_BAYS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BreakersRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BreakersRestEndPoint.java
new file mode 100644
index 00000000..784758ba
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BreakersRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.Breaker;
+
+/**
+ * The <i>REST</i> endpoint for {@link Breaker}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class BreakersRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(BreakersRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/breakers", produces = "application/xml")
+ public void getBreakers(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_BREAKERS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BusbarSectionsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BusbarSectionsRestEndPoint.java
new file mode 100644
index 00000000..33429054
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/BusbarSectionsRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.BusbarSection;
+
+/**
+ * The <i>REST</i> endpoint for {@link BusbarSection}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class BusbarSectionsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(BusbarSectionsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/busbar-sections", produces = "application/xml")
+ public void getBusbarSections(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_BUSBAR_SECTIONS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/DisconnectorsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/DisconnectorsRestEndPoint.java
new file mode 100644
index 00000000..2740f825
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/DisconnectorsRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.Disconnector;
+
+/**
+ * The <i>REST</i> endpoint for {@link Disconnector}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class DisconnectorsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(DisconnectorsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/disconnectors", produces = "application/xml")
+ public void getDisconnectors(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_DISCONNECTORS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EarthFaultCompensatorsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EarthFaultCompensatorsRestEndPoint.java
new file mode 100644
index 00000000..488cc0ef
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EarthFaultCompensatorsRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.EarthFaultCompensator;
+
+/**
+ * The <i>REST</i> endpoint for {@link EarthFaultCompensator}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class EarthFaultCompensatorsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(EarthFaultCompensatorsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/earth-fault-compensators", produces = "application/xml")
+ public void getEarthFaultCompensators(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_EARTH_FAULT_COMPENSATORS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EnergyConsumersRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EnergyConsumersRestEndPoint.java
new file mode 100644
index 00000000..00012de6
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EnergyConsumersRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.EnergyConsumer;
+
+/**
+ * The <i>REST</i> endpoint for {@link EnergyConsumer}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class EnergyConsumersRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(EnergyConsumersRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/energy-consumers", produces = "application/xml")
+ public void getEnergyConsumers(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_ENERGY_CONSUMERS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EnergySourcesRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EnergySourcesRestEndPoint.java
new file mode 100644
index 00000000..eb7b8bc3
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/EnergySourcesRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.EnergySource;
+
+/**
+ * The <i>REST</i> endpoint for {@link EnergySource}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class EnergySourcesRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(EnergySourcesRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/energy-sources", produces = "application/xml")
+ public void getEnergySources(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_ENERGY_SOURCES, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GeographicalRegionsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GeographicalRegionsRestEndPoint.java
new file mode 100644
index 00000000..2eb2ec5a
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GeographicalRegionsRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Core.GeographicalRegion;
+
+/**
+ * The <i>REST</i> endpoint for {@link GeographicalRegion}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class GeographicalRegionsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(GeographicalRegionsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/geographical-regions", produces = "application/xml")
+ public void getGeographicalRegions(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_GEOGRAPHICAL_REGIONS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GroundingImpedancesRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GroundingImpedancesRestEndPoint.java
new file mode 100644
index 00000000..7f2665fa
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GroundingImpedancesRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.GroundingImpedance;
+
+/**
+ * The <i>REST</i> endpoint for {@link GroundingImpedance}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class GroundingImpedancesRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(GroundingImpedancesRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/grounding-impedances", produces = "application/xml")
+ public void getGroundingImpedances(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_GROUNDING_IMPEDANCES, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GroundsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GroundsRestEndPoint.java
new file mode 100644
index 00000000..fcd31e6d
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/GroundsRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.Ground;
+
+/**
+ * The <i>REST</i> endpoint for {@link Ground}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class GroundsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(GroundsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/grounds", produces = "application/xml")
+ public void getGrounds(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_GROUNDS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/JunctionsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/JunctionsRestEndPoint.java
new file mode 100644
index 00000000..f5a8973a
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/JunctionsRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.Junction;
+
+/**
+ * The <i>REST</i> endpoint for {@link Junction}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class JunctionsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(JunctionsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/junctions", produces = "application/xml")
+ public void getJunctions(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_JUNCTIONS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LineTypesRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LineTypesRestEndPoint.java
new file mode 100644
index 00000000..f7805eb5
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LineTypesRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.Line;
+
+/**
+ * The <i>REST</i> endpoint for {@link Line}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class LineTypesRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(LineTypesRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/line-types", produces = "application/xml")
+ public void getLines(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_LINE_TYPES, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LinesRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LinesRestEndPoint.java
new file mode 100644
index 00000000..4082f28c
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LinesRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.Line;
+
+/**
+ * The <i>REST</i> endpoint for {@link Line}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class LinesRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(LinesRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/lines", produces = "application/xml")
+ public void getLines(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_LINES, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LoadBreakSwitchesRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LoadBreakSwitchesRestEndPoint.java
new file mode 100644
index 00000000..f2f4e635
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/LoadBreakSwitchesRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.LoadBreakSwitch;
+
+/**
+ * The <i>REST</i> endpoint for {@link LoadBreakSwitch}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class LoadBreakSwitchesRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(LoadBreakSwitchesRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/load-break-switches", produces = "application/xml")
+ public void getLoadBreakSwitches(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_SWITCHES, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PetersenCoilsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PetersenCoilsRestEndPoint.java
new file mode 100644
index 00000000..178c2581
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PetersenCoilsRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.PetersenCoil;
+
+/**
+ * The <i>REST</i> endpoint for {@link PetersenCoil}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class PetersenCoilsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(PetersenCoilsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/petersen-coils", produces = "application/xml")
+ public void getPetersonCoils(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_PETERSEN_COILS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PlantsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PlantsRestEndPoint.java
new file mode 100644
index 00000000..0f4c4321
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PlantsRestEndPoint.java
@@ -0,0 +1,54 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.Plant;
+
+/**
+ * The <i>REST</i> endpoint for {@link Plant}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class PlantsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(PlantsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/plants", produces = "application/xml")
+ public void getPlants(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_PLANTS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PowerTransformersRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PowerTransformersRestEndPoint.java
new file mode 100644
index 00000000..a346b430
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/PowerTransformersRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.PowerTransformer;
+
+/**
+ * The <i>REST</i> endpoint for {@link PowerTransformer}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class PowerTransformersRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(PowerTransformersRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/power-transformers", produces = "application/xml")
+ public void getPowerTransformers(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_POWER_TRANSFORMERS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SubGeographicalRegionsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SubGeographicalRegionsRestEndPoint.java
new file mode 100644
index 00000000..797e3f69
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SubGeographicalRegionsRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Core.SubGeographicalRegion;
+
+/**
+ * The <i>REST</i> endpoint for {@link SubGeographicalRegion}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class SubGeographicalRegionsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(SubGeographicalRegionsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/sub-geographical-regions", produces = "application/xml")
+ public void getGeographicalRegions(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_SUB_GEOGRAPHICAL_REGIONS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SubstationsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SubstationsRestEndPoint.java
new file mode 100644
index 00000000..0b06a60c
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SubstationsRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Core.Substation;
+
+/**
+ * The <i>REST</i> endpoint for {@link Substation}s.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class SubstationsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(SubstationsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/substations", produces = "application/xml")
+ public void getSubstations(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_SUBSTATIONS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SwitchesRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SwitchesRestEndPoint.java
new file mode 100644
index 00000000..d594662d
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/SwitchesRestEndPoint.java
@@ -0,0 +1,55 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Wires.Switch;
+
+/**
+ * The <i>REST</i> endpoint for {@link Switch}es.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class SwitchesRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(SwitchesRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/switches", produces = "application/xml")
+ public void getSwitches(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_SWITCHES, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/TopologyIdRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/TopologyIdRestEndPoint.java
new file mode 100644
index 00000000..b2d82fe2
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/TopologyIdRestEndPoint.java
@@ -0,0 +1,53 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+
+/**
+ * The <i>REST</i> endpoint for a whole Topology.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class TopologyIdRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(TopologyIdRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/topology-id", produces = "application/xml")
+ public void getTopologyId(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_TOPOLOGY_ID, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/TopologyRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/TopologyRestEndPoint.java
new file mode 100644
index 00000000..78e2cf37
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/TopologyRestEndPoint.java
@@ -0,0 +1,54 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+
+/**
+ * The <i>REST</i> endpoint for a whole Topology.
+ *
+ * @author Christian Brunzendorf
+ * @author Felix Korb
+ * @author Frank Jäger
+ * @author Inge Seidel
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class TopologyRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(TopologyRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/topology", produces = "application/xml")
+ public void getTopology(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_TOPOLOGY, DataExchangeFormat.FORMAT_XML_1_0_UTF_8_RDF_1_1);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/VoltageLevelsRestEndPoint.java b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/VoltageLevelsRestEndPoint.java
new file mode 100644
index 00000000..a0016758
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/java/org/eclipse/openk/sourcesystem/mockuptopology/infrastructure/dataexchange/responder/VoltageLevelsRestEndPoint.java
@@ -0,0 +1,52 @@
+package org.eclipse.openk.sourcesystem.mockuptopology.infrastructure.dataexchange.responder;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.eclipse.openk.sourcesystem.mockuptopology.common.MockUpTopologyDefaults;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.btc.cab.common.dataexchange.DataExchangeFormat;
+import com.btc.cab.common.messaging.ILogger;
+import com.btc.cab.common.messaging.LoggerFactory;
+import com.btc.cim.cim17v07.TC57CIM.IEC61970.Base.Core.VoltageLevel;
+
+/**
+ * The <i>REST</i> endpoint for {@link VoltageLevel}s.
+ *
+ * @author Christian Brunzendorf
+ *
+ */
+@RestController
+@RequestMapping(path = "/source-system/topology")
+public final class VoltageLevelsRestEndPoint extends AbstractHttpRestEndPoint {
+
+ // Constants
+ private static final ILogger LOGGER = LoggerFactory.createLogger(VoltageLevelsRestEndPoint.class);
+
+ // Methods
+ /**
+ * Provides the <i>REST</i> interface method.
+ *
+ * @param response
+ * the HttpServletResponse
+ * @param requestProperties
+ * the parameter values
+ */
+ @GetMapping(path = "/voltage-levels", produces = "application/xml")
+ public void getBays(HttpServletResponse response, @RequestParam Map<String, String> requestProperties) {
+
+ writeHttpRestResponse(response, requestProperties, MockUpTopologyDefaults.SCOPE_VOLTAGE_LEVELS, DataExchangeFormat.FORMAT_XML_1_0_UTF_8);
+ }
+
+ // Properties
+ @Override
+ public ILogger getLogger() {
+
+ return LOGGER;
+ }
+} \ No newline at end of file
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/resources/.gitignore b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/resources/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/main/resources/.gitignore
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/test/java/.gitignore b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/test/java/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/test/java/.gitignore
diff --git a/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/test/resources/.gitignore b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/test/resources/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/cim-cache/org.eclipse.openk.sourcesystem.mockuptopology/mock-up-topology-infrastructure/src/test/resources/.gitignore

Back to the top