internalEventListeners = new ArrayList<>();
-
-
- /**
- * Register a listener object that will be passed each of the events published by
- * the Asset Catalog OMAS.
- *
- * @param userId calling user
- * @param listener listener object
- * @throws InvalidParameterException one of the parameters is null or invalid.
- */
- @Override
- public synchronized void registerListener(String userId,
- AssetCatalogEventListener listener) throws InvalidParameterException {
- final String methodName = "registerListener";
- final String parameterName = "listener";
-
- if (listener == null) {
- throw new InvalidParameterException(AssetCatalogErrorCode.NULL_LISTENER.getMessageDefinition(userId, methodName),
- this.getClass().getName(),
- methodName,
- parameterName);
- }
-
- internalEventListeners.add(listener);
- }
-
-
- /**
- * Method to pass an event received on topic.
- *
- * @param event inbound event
- */
- @Override
- public synchronized void processEvent(String event) {
- if (event != null) {
- try {
- AssetCatalogEvent eventObject = super.getEventBean(event, AssetCatalogEvent.class);
- for (AssetCatalogEventListener listener : internalEventListeners) {
- try {
- listener.processEvent(eventObject);
- } catch (Exception error) {
- log.error("Listener: {} is unable to process event: {}", listener.getClass().getName(), event, error);
- }
- }
- } catch (Exception error) {
- log.error("Unable to read event: {}", event, error);
- }
- }
- }
-
-
- @Override
- public void processEvent(AssetCatalogEvent event) {
- log.debug("process event {}", this.getClass().getName());
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/asset-catalog-topic-connector/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/connectors/outtopic/AssetCatalogOutTopicClientProvider.java b/open-metadata-implementation/access-services/asset-catalog/asset-catalog-topic-connector/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/connectors/outtopic/AssetCatalogOutTopicClientProvider.java
deleted file mode 100644
index 6631db4cb29..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/asset-catalog-topic-connector/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/connectors/outtopic/AssetCatalogOutTopicClientProvider.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.connectors.outtopic;
-
-import org.odpi.openmetadata.frameworks.connectors.ConnectorProviderBase;
-import org.odpi.openmetadata.frameworks.connectors.properties.beans.ConnectorType;
-
-/**
- * The AssetCatalogOutTopicClientProvider provides a base class for the connector provider supporting
- * AssetCatalogOutTopicClientConnector Connectors.
- *
- * It extends ConnectorProviderBase which does the creation of connector instances. The subclasses of
- * AssetCatalogOutTopicClientProvider must initialize ConnectorProviderBase with the Java class
- * name of their Connector implementation (by calling super.setConnectorClassName(className)).
- * Then the connector provider will work.
- */
-public class AssetCatalogOutTopicClientProvider extends ConnectorProviderBase {
- static final String CONNECTOR_TYPE_GUID = "785fdb3d-34b7-47e0-bc73-5969610331d4";
- static final String CONNECTOR_TYPE_NAME = "Asset Catalog Out Topic Client Connector";
- static final String CONNECTOR_TYPE_DESCRIPTION = "Connector supports the receipt of events on the Asset Catalog OMAS Out Topic.";
-
- /**
- * Constructor used to initialize the ConnectorProviderBase with the Java class name of the specific
- * discovery service implementation.
- */
- public AssetCatalogOutTopicClientProvider() {
- Class> connectorClass = AssetCatalogOutTopicClientConnector.class;
-
- super.setConnectorClassName(connectorClass.getName());
-
- ConnectorType connectorType = new ConnectorType();
- connectorType.setType(ConnectorType.getConnectorTypeType());
- connectorType.setGUID(CONNECTOR_TYPE_GUID);
- connectorType.setQualifiedName(CONNECTOR_TYPE_NAME);
- connectorType.setDisplayName(CONNECTOR_TYPE_NAME);
- connectorType.setDescription(CONNECTOR_TYPE_DESCRIPTION);
- connectorType.setConnectorProviderClassName(this.getClass().getName());
-
- super.connectorTypeBean = connectorType;
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/asset-catalog-topic-connector/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/connectors/outtopic/package-info.java b/open-metadata-implementation/access-services/asset-catalog/asset-catalog-topic-connector/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/connectors/outtopic/package-info.java
deleted file mode 100644
index 6d0ab4947de..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/asset-catalog-topic-connector/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/connectors/outtopic/package-info.java
+++ /dev/null
@@ -1,9 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * The Asset Catalog connector is the interfaces of the connectors supported by the Asset Catalog OMAS.
- * Specifically the client interface is a listener interface to allow the client to receive events from the server.
- * The server interface is an event sending interface.
- */
-package org.odpi.openmetadata.accessservices.assetcatalog.connectors.outtopic;
diff --git a/open-metadata-implementation/access-services/asset-catalog/docs/egeria-asset-search.png b/open-metadata-implementation/access-services/asset-catalog/docs/egeria-asset-search.png
deleted file mode 100644
index 02eaf4dc726..00000000000
Binary files a/open-metadata-implementation/access-services/asset-catalog/docs/egeria-asset-search.png and /dev/null differ
diff --git a/open-metadata-implementation/access-services/asset-catalog/docs/egeria-asset-search.xml b/open-metadata-implementation/access-services/asset-catalog/docs/egeria-asset-search.xml
deleted file mode 100644
index beb9d28451a..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/docs/egeria-asset-search.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
- 7X1Xl5tI1+6vmcvxIodLshBRIJJuZgFCgEDkqF9/oIOn09htj3vc33nVXu4WRVFU7bx3PaA/YOYyCY1fJUp5jPI/IOA4/QGzf0AQgsHL77Vhvm+AEOK+IW7S430T+HeDmV6jh0bgobVPj1H7rGNXlnmXVs8bw7IoorB71uY3TTk+73Yq8+d3rfw4etVghn7+utVJj13y0AoCwN8nNlEaJw+3JtCHE4EfZnFT9sXD/f6A4NPdz/3pi/841kP/NvGP5fikCeb+gJmmLLv7T5eJifKVtI9ku7+O/4ezX+fdREX3ngu6cyFSydHKEP1wNnZ/5vsS/BN94N7g5330uI672XbzI4Xu1hito4B/wLTfhA9MBJajo98md6fWg7Zryixiyrxs7q6Egbuf5cwpzfPH9qIslqvpuPGP6TL1F833YzxyAlpbHum2DhSWlzR8+Hwqi473L2m+Sp4dNUe/8B+aH2YIQg/Hb80p6S75w5pek/KBukPUdNH0pOmBtEJUXqKumZcuj2eJB7F/VINH+Rn/FioCfiBu8kSeEPyho/8gyPHXsf9m5vLhgZ9v81aayVA/mAkEO8JfEj7WWdH9CRI/z1vkxtt/5i3yTtaC8EexFv15zoLP1Bb8RaxdB9T9rouaYmlcyAUshgUA7/7+32U8BD5nPIy95jyOv8V57MOU+qbTv0anwefmGn7NWRDF3zDXyEdxFiK/z9p1fekSu8h+EOV62aZdWq4KF5RdV15WbrfVfZB0SqeVz0+p9ngxlafxelFXVq+E4IGr/kOXcCFwtLTTZd/labF0ewzCgHtOV+vELlO8hoZfwrRr0ulLdIyjdqXYX23UDHeXP5Wnv+Ok57xHfg1jYfi5yuJvqCz2BX3NWfKjGPsoWjfG/krGIhj22xn7DmN8Y+yPMhbFvnLxN7IW/z5ro+JIrQnoSvXcb9vV0S3M8ZvudfMTpr6k4EK4ZnZXBn0h/m7wHnrfHbDTA//uj+bHoyntnl24HK/X/Ql8AUD4oeHva9eD+elAetSkC7lWfn/t8bLtH/nbln0TRt+KVB782UKQOOq+ResH0q5S+E15eSIOj0n4U2F4bGui3O/S4Xl+/5aEPNxBL9NlbV/FEcFfZHIvPf79yh+ueppwvxgIfjEQ+DLTu6fMq4HuBPbrsv+FDL8j//v1MowuUdNTGf4CwMj35PifhPFxxCeyvYg2gH9btH+pFD9Wb74vxcjnkuKX9Qj0J6X45UAg9mIuHyzFCPQbpPipBC8C+D35XVhuPsymbLqkjMvCz7m/W+koD+6m8ejQl6a/s7R/KaDvNbOPBddPIqDPpQr/WSOLPh8HexkR/IN0LnLhz0+6VWuH9p9nC8IvSkAg+s1pveqPPivOLh/uZ/BrVeUdxdz/ZVWB32vLP5mqgCD5GPw+ihOE/py6QNhzuUThFwN9kL6gD/WWz6UvyE1fvqkvj/txN335r/UFA6Hfqi9vbhb+/1LuOKbN0qds5r/LHf+oJD9QUQYec4XHmOaBh0+lHnujiEEQX14I1c+UMd7k2G+IncEfM3Dvsk7fksbvGyfiUxknDH1umiD0J00ThiLPBnq15/SrTBOAPpfrpeHjbc3rUFZmKX1pofqFSRCWL1yhg2b5FHd3YvS65YWgL2rcPZfhNy3LG1tfr4zNS0N1SY/HO2c8JmkXmZV/J7jjYnPe741/xNCA+Av/RiCvLA3+hghDv6Bc+ia3fk+l6edqpejX+pH35NwvriW9SaU3MvU3+2GfzGD9okrSy4E+sJL0tsN4Hb9oimF+UkPxDKLxC6zGYiReGA0Ye201kP/SaoC/o17xY2bjHwn//bCD/FRaDAP4C+b/bD34xa4GDL4v7PhlWvw7kvb/Smigz5VIIyj2i4TmxSYC/BIZ99FC8w7A3OcJUN4dnrwrFPkWgPC7ocjnMmIY8kKMCPwnQ5GXA/3X8vgOeMGbFY0X4LjlH7/e9hU6bznH4wQHIE/OsXdlj/t6TLEWE/94BfNgAZQB8VcRz1MAyDME4XfLPW+XdF7FSf+gT49wwMcKKPBWAellkccfW+RLE92Lghiu86GXw/tPz3vdl3/yqG3/8qsqXya6zv+vJqrWpZQri39J6PUigUbRN/AtxGuteWz79YHX63xNLtfaMQRoyvLL+JsA/1fy6l8eLiPPUUnYIyLoCc/I/zJYfhz4WyZjfRylev/ivz5U4wePIwDfJsqLDA4miVdE+Qp6f4aHBuB/T5Zvbj18Hij8J0FEf1uIvq8Hv5Gl79hneDT66eXu8a7v7yJ811Pl6wn66zNdb7m+u5tRj/7nTWf0MB826br1+TVqpQTEh8cC/JIuynZKF0FsviwysLQe/c5f/qzt7dqpvFT9Ygf/TPzmOC6c/DNcDv+8W/SfQ5mvBW8eXWkbrvr611/r9Q8fx8W13zf89VffBn/9FZbN8a+/qryP/wSXxL8q4l8vIY8IDPhFXQGDXhmFx53EpwIEfyP8+3fy8zrY55bIfWH/0mhGi/6/UUDWmIVRwEOwVTYf4/eeCtOvdH7fB+X+Il4/33F4XT4CH1X1WfD/UWEM9I6s7qNdIkw8T5Eh5A2qvFVVw7EPEv/3BAo3j/hKhn7MI/63HIVecZRq26i7N1htf4nesFeaQpn/G1bs/Rx8E3pIvPG0wX9rx5DfUp1C0B+rT70F0v5Hw/rdvbBHBfpuSfSBNp+kAoXi5ItYB3k+xLtxq9iLgV7uqv2i3XsUgJ7fhwR+bF7P+3/MZj+CfQYFeHxo5j9UgvfuC3wyJYDJLygKEQSCgShMIM/Df/xlCeRnVQJ9J5b7l0nhb3nm6zebYehNyXqvSP4+M0x8IVAUx8h1YxMjn9fq/oUEvkBhfpBRxh5T5Hcb5befcvhYo/yO59E/Ort6udmMP1Zln4gZBOBfMODJzxuhG/FRVVnkHcnWs2Tn2fbJD0bdCEKid53zF0WsV9H3v92PeReadogi//KliS5lF31vz+TbEvZDuReysPs1hxHsC/JRPH5fPfLG43/J40fj+Hqj5b9n+euM+8byj2M5+MZ7df57nr9Goxl3RPjjYVd0LdDna3nrLn55oEsata8k4//EjugvYt2jY3+MTN54jc5jWP+fbJO+8UzXly9f/qdZBC4keJ6iga+jqI8Cfr6dO/zEDt87Nt9+0ky+MMc8T5Iw/GQv726fDqbuDyH+bi+NSW1aM0ZAEuKSWn5U00o4K14+mePya2EmzVDe8omJ9sxIrl0E1+CdjbEPoANwhPj5sKPpg0CmB5PeBg5fHOxt7jkGGoZ5rq8XzEll8wngcKCiXdQhMNHkvj+KBC51/8OOy4yiDZ14UJcfGTo9OMcqOAMpjvfLGTGlqwMLpPbVVhUOHHeQXfpWgoUXex9lqOXBVeNd80w8L3E2LbITohVJFwpgfhS4OBLANigULFpGWGY2eBcLW48DxwY8k0jFTYwtfcaj0JJixmcBtM1FPlEthmYDePnMWr2agmdlvwNFNkTlMwcp1x2qmWOsnKlJY4hx+T8pMzCp5xJQ2HJWUioWmYf/ZyTWN9vscK5Mg/O+zie8GBfd3JbHjTFqKTEc4SMsF+FVvpDzYSYmbZ+h8pWa5as4y+5yfQpeIwcFPDfuluvPT8blDq56Di/5soZ8CFJ6Pgge5jnb4ejuSDEV/6bBss69BZDiJQGOGwqTZ7IP568cOQerRgr8KF+5XmHILrijT9IFAnrVChWwLvazOS9j9g807T2I7GQ4ScKFFvKZGkJwkQLBGpZrrgFszx5kmwfHOy/cRAJn6sNrtUrAO+dyP4+QA1UtW+4H291hoYVpLetbec2gme/sMGNv8wqg0kZmTco1BpU9z2sWB6ucyiucgqjnhNtlB8Fgd0/Gy/sQNpLgouZPxquej7d733hsxS5SmRwFcrYFcggWmdvd0ye2hGRY2q++QI4ip7IiK47KPoslDlzkPu/vzjFZqqcU8cAnzBDs2XcP+YE7zAs94mWeKw0x30GvR4FfaG5vjeUea3/5ki9aUl4XmQSNPc1pnDeqmTIploXs9iKsAh6qWsqsnPNlzosEz+LX8Raan48OmAeF8WQ84/l41nfHG9a5y/AbMrnKKkPeyaWVGcJ9v3u9u9PD/XKeJZFQ4M8+ZAOiYPerxoepuOi/3rESjy4Wih4I0zJoe3P2cR7YdLRrg0dUNyRzK7QmIyalLBXeubWcM2U6qVhLMZDOU3wR4bxL5DElHZsZjcmrpcHjfFs3YUOxGIFy6TjzWkmKrfFwQsEOusINjl8LcJirCxouzooPYLAqhv1QwPuhK/T8QoLq3gE7mS512qJA73rB6NGhxvEseizlnWVRpwHenAYN9w76xPXzwGOaAFL4BHXkMWrVLlEEk8VcCFOByUtSCSC65uxehr6zNALs+Ga1ZxAkUPOF6z3jcKUPlAN5IzUK8cQ7eENhHOrrBxyGXLzt6FIx7ASf0u7opxq8x7eex3IHLwr3VzfvTsF2WUfRmTnkjLMwt5KC1y5MoTi1sdzTDsRwQMDUZQ2mXWFjf4wuEi4yRnfpFCNVWl3iRBvFZ6gNaP06OE1L3t0xR8eMPPbWMtdmWm5By9dtjuMtCVxighNrVPYgp9sPJ88F3eW0BF6DGTrvjSOaq7yn04zUmZpybOSFSxbJweBCn4ENTB/oiWO1QeDpEEFEfUkJPk62Vs5JzVili/1jeWdZkYGYp1M4p6cMgSRfHh2Gyw1HOxj2KJACfOZd6hQsFArpoUikk4qfKu9MW3wGJGw8oKcrU2+wPQZjB2Y3KBvydIXck4CmAODGGF+Zdro7pFjcl/u0k7kNh4qXGlY9YKjj+Ejq/BKV8C4B1htBi6iTYlxnbwuwnl9nDS0svpYGyqVHM8p8VCmyBR7oYIpIkw+RXTroxnHeTEunKnBjfbHuCD2ax016EkM8DM8n2He7focCVLQGKYMbCcBUL582J6hW63krra4zZUVmSM8gWOG4F1nn80nwEdWGQVCxy/aMC6HDO1OwXidCZ93fr1q1BEB0sV5MSKhesvvMI9GePF529vWoJ24z+Jv8yPKlCVKJRQSJqFtszRN8sEQ1qsImYhFFUC3oPWu5GCRKE7iOuqS9tLHciD7KgZcQFjxC7Sidh1zcpkOYQcfDXMNb5Hgl8l0DTVeEOGbdvBt8wchQLxOujk2rk0dVtSmEtc3n3n5lMTnasoZS+2V4/nCtdbE9rndDnK4R6bRPKLhZxQ/YpLCHSZK5Ri42tR3P8OHcngPG11QR6oflkq0PgzaM8NEiOvQe0aiYKnxZxC5WHeneZUvOcMdfwPNKY1w/7qFjboQCS8t3Q1439WWOTvVO92uhoy6N7C+JFM31GqF2+BQGAQA15CEa6Gkz2WYweQikL0PByKBKiovoZESmoBuhIOnX4yYeOHTrqD4HrjP2BBG7WqHcYYrAsIK2RwSdnoeoBvNa1KeuWJVnf812suatYkV743Vvk2DMT00LicQFg847ejdpJ0ZenPFCEb7eXfeoV542MbMhjv5yVSfpZTzvJvjEgE2qkNth2+C1A3tTiF0lJx4TLvSN4ojQEemeTmyoR5rn88uVWZyfdtOYOgd+Oh9W+qD6WEAKokiad503yrpOqAYtRbsWTBhTkBhKaiaU4OL8jCmLTtOypnwncn6RtB6bdR3d4PC5YwLhZA8j44eb0yo6m+HUuqcLsdikCS+4LXK+kt3ZD1Oz1dDVzCC2hZyrSRBaPkh9iDsYWBQ3bpyxBow0XTXpPQ6REYT2EjFlBRFrAY9kAYprOFaerrTYjeIG0chWPC6j2Y3EnbTIHXqP6XDDJCqCRSyjtdguYg7iWSU0I08FmXeZHVbE9HFfl1Y/INs8wrBCxNB45QYiWIrInvBtby9HIVr7w4qHY1v0VI0FncE5tO+DZeDJWdszArHdEL505zqgegSCicEtiONUraZitQc6FUmY2lMT5S4Gwlrtqm/A3OqKJg3PTuIMrSIzMKzBBocNUDF2ojrKFvc4W1G37GJz6Ek2LHdJf/je2sKl1ShODRk0D+nRfBm0K6bqdBMB1aqtNaeAl1U+xFMZr8KlbjpTl87j6SQPi0eV/EQtoVQjr+vy8KsFrYyw+9W0bVVgcJxtWKyqiieMwyYAb/U4xSVdDFXq0rEtLN2GVEbc+tOmZpNUyIRgVWzohCPqyvSRSEzVdIuEvoSGvx97jgZJ7LSZpi0ynPs9tMVp4OQqnqRv91yy5Ca8lqin5Q+p9etRSOyLKmpwrsDDCzheZDM14W4V0wO4KzMxjQFa77L9EsvZZxJi/TMT0jmujLZNj9O53qd7QCaCNLZZGTy1Z5CXr5E+mceY4rzqEqJSnHfc5AnFdE2JokNrgQhXhSLkq7dbLWlgX4R1Wu251EvKIOZ+kZkObVYnZS1RBafV+WYl0ZzvITNpdltmTUEPEOieZHs/ynLGzE0dyrJ/qgq6EtrOq6v6Uokb1KajfbfV3SjnEoq2ozrXql6f1UE+dA4DgrGRWzZR0BNitYG9k+RClHxiULhDLCBqQfKkhZr6hC0TrodDCcUiNYWQvKRc6EHuYVCuxhjdhofF6idyspJN9eTjzOJmeXX2UDjrSyzC77fsQnG6l5ZfyyEjWwBjtdsdC7cieLl4ejMWvDFZspOujkCX+hAkpVVk0aucuRNR+daltbNLTV65ZGlvaxPUVYb1MdAghR3tcEdDssBiKFE9ixBAs2ZnOvE2DUUSrB9BXMW6RGgO9hmNfN7MAMSqZC/RoRnXmlWMitwoCsrHWq3ymZU9yWY6B6lt52ng8geQWN3ono83+DDCaM541eCO3CAwSr/rs1JUI1AD3VBNVoOs8ZPvpgQxoqsNV8c9mhBbN+GvkLe4nTOFr65fJB0Ui7nVBoBErkLOHnEtwjg5R9vc2IB+QlYeK9LWSUa2TMndBcSh7WrLr6d7YO3ZZF0PP5OgMwyt28B0YinkBLJDkjQbqc7oShupgoP5Y4cN6QZ2K0SdjDbo1X0yVIIHe8M6Ene+xqc22trRJV8DveUO1OlKLX/Kzii1/WpCwJ1o7uPVcwYXBdXhQdIbwTodQJQWnPZ8lOf9CsPiZ4GbxNVB+ulJMMjWdDEBc2RllVc5TATUHlxoGs7YLmFDmZlUO7fIrbc55QxhLDrsK8fVVRNbKUPyekfu2CC67LqLH7TbKJywxlrimyVqzpteFtymN5lmiSdjk+iRdL9Q8YpIjHdd0iN6ZNnSlYRMpRuHBTm/xWQvX4m3/HdblXd6TiiQS++6lkCXiX+pmpQANhdkPkEqPYA5tdKYlren7fUcgj2fVqdIywjDYexp59F1HzuNwWXjWbXrNAQPWaHQODUkqyrTwJDbPDEZ0RS25amxlN1kp9FqpPutC04Bn8B1BAxWyjSimHe2iPfbMN5L5tnUtOW2adqnoJmJdJH6V9yIlXYXy7tDjCnBATf7ELLugr/zSYLDeCEKVLDLIXk2ToXTe2FI1Wa7lkDkFdhL2xa0n6IdGO5mYztyEq5w4oZbAhT/Eo5Luuf2Iu6utSxCRWli4Lt4QyH7jQ+4iNFu6GIsCyoZT0VedFHfFnmdkrEvJrqDQGXgNnYiHWB3yEQ1rjbdUF2PKmEyR8MN0m0+96GX+heTLPU6Chv6hGpAkkycsdzP76zZuHa4bO1rnt5fjyzHHQ9yymxbDbvc2wpbIRoQTxVEBE7E2dAtDUxgnVMTKQuAJtF4SkWReNr1434+E8XiyQ9xuGLFNdAHiaZR7BlqWipBL9vzfGIVQGy3TKyldr26q+28UjuLePy44VpHLoUyWGIOEc7crl7x65W7CxeDLeZBwpLcxtzpk8cN6w1Mqo7gXD1cT2YTa56qWvMlA7eYaMS+5GwqTQwPulrsqUEmqyWRhA/XowIvVtXchOlYJexGNXXaYzRbOJuYR3th1vCjsBp96LSHSXY51SFSBhiayeYhWfn1zt6HMHNCqJxfMt1CaneM6J4BoJw11m0jputB3i+TsluEgfc63QVUY1eQ3LHzo96CAffAsFMgQVlvEvVRIGNtyhk6Ik51XCoeuWVOdGpmUDRVWwsqN0Gt5ddR7NEEII9xwlubIhDnCyoXV9Glq8Q2aYi7Op6QS6YBltc4nrtKPIwqI7iHQllCYZpuy54wOuxCdnLkk7rrMVVCubGnjt1uH0jLStaAY9bpqBPWtxHQkl4nYC1pTJtJyiBxB/Ki8wfR1DEDO09Yu4S24ro8sWqERDIUx8/UJWc4GCEFCuQQzhpNEOftEvG0o4KPjoKFsZ7w0XyOko2oRb5mxA2v2qw3bL267LwNkWakM3OrPLKe10XWdMF6cZZXl2tFNpvsIINzxM5PF3NjOEhVrF/xwAt2oqvzxiyR6CiPWYadkW7XbVBWUhGiKkxllV6y5w6JrKAenl6qEDnJwYRvvN2yTthDt0Rp5jlaM2ZW2lAAWJsgZqL9uR3HLbU/okrdZ3tkyQ8rUUFqpL/GfFVGO4VrKZgvQFKcts4Bq5s1/LJ8b1Klk6ijye4y+OqZApdYfFjS0RawrFJc4m7aWWygHPaeyjM+usZq3Bp/WlS8N0fJmVOB0426I9K7cK5tA4i6Ehnvm+p2gGAqnbwMM3dHWUmFoz/4Uy2qB+ggOgpkHbcKuNvKgWUDCA3ExywCym5zbJNd3lBbax2w1v22k5TeKwN8t6pPEZa6u8aiEl9aupex00jn1kZlAnTILncqJnNn7LraU4ocyXLLUHKkERwowzwwuIQmMv1pdbA11tc5nVAWfq7XQCWkMxucQJ1Z2qkD4SLnk2sY86jwiZLYkwDya5ySzSe+Qw1iH0qZ3209IzqL7WG2RGLry+EB0YElUKijYHueIAXGJoQBTl3eNPJcROlylwCEl5vT/F3EfN2s0n7NCStb0nV5ox5dYOhHlbcZSnc69nLcjkS4t/nTrKYQYGFyHSdrSAEdcDvb2qa2etmgdx2tdDAkabF8B10dzlu/X4PfTXILZLXY0hHnOCsrIxi5tI1ae5e2LyXKUwYitjIKix2zNDZr4JxGNpSEsHe1VkuL9BiYqu2OII02N/NLcvYpD0ErFMddYsBdz8rnms3IvXpw/SvnxMw4R6B3XUUYrlqZkTp9L6ZTrM+1hpRBQoDSGizglWBiLp4U2b487RQrG/s9kIOGZ0mobpFjsnW3e4Yze61nC2eNaGalgkDHFX3oTr3WfNDhD912a+m+my+GXZBsmaaLVWaycBXTVUpBKlFmqnXrjRTxcJLvyIDcmVmSX4MUW5y4HOr6djhLKgT05soRXvUHJwKPuyVtQFjD2g0XCHDs1S6aQ5n3Et9gNAdeWaxbE5JaUmx80PRr7IWS0ZbaquB064ibLbxFJQwL2HR13ukIqcBVpzGRhghOZfSdeu33CposS6MJh9i1vDQhPGr0WoWXvEJIse3ZkckLBLBl0s3FAVUiWRlotfwiLkUVEzInXMf4AgXbC0d3OMeJKH8ZJdGaQsWnpiU9gTa61mWTc9jhA3YdJa41icyaFzc4temskaC5RmsDUtfwecn3xwIXu40Fbw5YfjxwVXa6c4hLJHuGV5GjavKU9AaE1hVgoTQE4sY5K91D5qltEDnHudT9HJndwguBIPdpppA6CYvj4yRIneGa6/xxM0JLJm8lWbkWi56D7qFEBNDZe2xdQjql94fmyPMMxmyd3MfTUygv8Qgdt2CQjPtdv91yZHVR80zc6ORi93mgbfeiWYEls6XXyH+RUHnQZA8cNBxBUmtS69NYWcSS3Kw6Ll/IwSRseU7VVY2YwWlOnDs61xNBtu59fKx3B2/gtMAslmjduwsn6L1GG6OAYQnODiOZuH3E+4yPuWswEAnqMb9LwnO0dBBlLTruswzFoAMQbBLoaPlKQ2FKmlJzCO2afMAjc7vE2Mw80KF2bbTT3T4SackNz3G2JzP9cRVzj1tCjsBxd2sxCEaCIJi0EEKAw57Y4zWbcog1SHKC9Oxh9ETWZbfnWma5YlITCz/YgYbJZ9/EIYo2shOjnXmimDvDIICCTLWzmWLhWpQD2WhJXkb9tEeqrEySJaI4UWk7uhVLjYp2jS4Rx23oOmZ69ICuNtimZIs84/IS9pxbh072HHdh0HhTY1JMnZ1UgXpUZbxSkFdfNlUtvT82i/2iO0/eODRO2EWm2ou+jpB33NMXwtPTavWNSUA2rVzD3Hkt7jhZ118PBXeCLJDYa86ROxSaXjjlUeb17LBTm0voO1wgxTvEzKdc1xRlTZDXVLDY8gBo1hxfSm427KMOsrYY7gOM13lLck4POMjB4+5C0aEBso3HFhe+nfW+XNOI1d7QtTxD/LVDD2cyJ4Xp5APyZvUpUBuABYjnLGjsKo8Mzk4UUgwZBVbkXwh+2oOboNXX8JkbKJLWQY3oqn5OdrsUZ9OeVxbDEh6mM+qqwamwNjyw1mxDLyaPPOyP5bhxSSsT5jg58hNegFeNQVzMJ+5kk4ZtMjekDjcBiXRqoaDNnUo20uKO5lMYGFvGm7Cqm1i9v4gOhwZL5NiyPeeC44Dpymy12jaexKld5r2tTt0Zsad5Iu3M2rOgXC9RoL54qwNIGezRM6CcHUEUUOpoIaaay8FdtRVgGdYI0GLU0+umKoHWTHV6dNcgDMsXhV8/yEe08acqXWL3E56qQFgdUJWW1iA1i+3VEJgRZVESWuhLlsv4pwAr40YDVmNZ+Dad7xVdUJlYXLJUZNb0ZWmnhKmacpULzxjaJStY478o80q5aXnqhEcHQeJHbOvH5ZYaY3XnIbGxXeuquSaSixUyt1dNr4ZyyaqYC13opqXyMCOQG7NBNSSDKH+IKzBajcB4iAUKvppcOg0WD0UbdspNNdwK90zIdvd/l9+rEy8poKwhu4DJGqRIxpZyZ3SVdo51myIuA5vUWm0eQbCY52lrzMQxLrqTI5IFOQ/RKFt9U7NIwK9KLnDn9mw1K9KVjzeFtg84HEOtJfSNdgLeq3ZmgOejImsqvyHn0KRX96+1/F1Kctn6VittoPRiwo1SI9LmRAO13ACKy7GowwCl1EpCae2SzZQUIFCN+zjOrkGDeN2SRBmbcwKnUJDk4YVA1tr1mcnSdYFK0kQlwm4gZT/JYyzuav2SWTG82do7FQmwk7wGwZNCOPqZBy16jVNRdzhOzMW5QlRYHY8Yf4ByYaeuGwCUuK0FRziFk2jalWkVBMFOqaLBLblqnoZernfBytyGNBTFxOSSqy9nYWvsB15txanPfNSdEeZKs5d4a7pqJnY9Cqc5KlOoGEzwKkdLPH1m6Oks0ZBS2SEe8FMwEsLcrv7kYCHs4jzrCCzoUmnPNDND58I2dWLIdQYBwm13X9PgKSpLA/AsXWdYxBzHuSa4iqkxBowSVO/b9U40WmlzfNyK8OAwZGpufa7z4pOS5zGbmmygAVvldETTmWmbIOUVz+ttSsNlJdwHkxLpYrGX6p10rLfrwxSL4dBSWoaEMUSCsGjFnY329n4eScrdbhsLE1CKUchd1jsMHNMkuPMZIGbW+kR2nS2YifhzvHW1GCvVJV520I0qQtS66o3kI96+tWkEy0w+ZnDwBNdxG8wTn4XheucdNMxmT5wZeD5x+OSX86ErmKg1Og8eE2sJzlEScgw727VxuIfXkhqE2ASiHPgl2zrR4PYAntcod9PYpTrXfRSz8y7DB2e6nBCAo0+uIEU2VjNSL4DHfLc9YG4IT3R2gRPIywNt7DIRARe1k2rOvtvcI4CyR2ytHMVcc3fTuMWtSBcU6IJEhHyAksPBjjaks27IHFf7gsVAcym5Q6ALcWn20lAaJuAcxau3y+UDyMYTztWI3EGZY9Ty2T1v4GoPFJ5TjVfDTw8nLeQSn/EC18UuZn1SYESleLaLkUnzFMVbQ092N6pWVYdXnSXFyAYtFwghkZgliMVyKw2lK6MHdimNmzowL9QskpuN5Jp0i5zr6XxKddwYEDaSwCrujBCxwn2GdEdT1tuAd2WP6sLgWkMIFdoS3YotS2rXipKalrhTR52NYjmtCXmNPqxK08ccpLedf9gLG+vKxwd8FDpkH67PvrNggDP5JjXIcOvOx4KLx8ULT9ddiWTEkVFZUxUEIoldkbdpMwNwMi6jwUYO7hoKDYq4VYXCvnprVuvbJBwOp5TblPh0OOcHky8Doo8S8jQKinlfeaFxm73mBl14Kqj1FrwPLVDUL+muVQwzq6go6sgNjRaeuZZQklFh0LZlURnbVbHJjHZf6qnhnlCaQkTuylJLABVjG2ahmLNk7QQ1r6VH31CZuaKxKd77yW7xseQa8cPnFWoEqfmwRvIUAOUKR4NXVc0iNjkD3NEE4k1VU6hTw+nAmXPcijwPXzNGrunFm9Pb3HVMU6eqqmoKAq4zerfMqT9o/SUGK/MSpYW623m+hV64dJeLBwba7vu0uQxFzOknGBS0tZoZXkMPvTipa2G5G8rEpVYPa6Qdo35ltIO4W/1Hl/UjPuEE2IUJ6wNB6dRrhMqXZ9PFZF7EbT1icp1EaMfgr/HkYYR87a20WDW9yiUGP3XrBgiX9sEa8Hix0l2Hno/SXTnMTR3vL57HQxXIaIKnxIR9kLwsEiZLARKJ4yK/F1aeSttACVfX49EaEfvukhaWOxbYe+Ao1Wxs8tRx3o+FwNiJd0JWrBe/czLyAB6Y7cmkeXrwcgoxTkvIqCcJq1pmvN2PWx5pYRTtFEYluIxxVreNR9eDrhqJuWgaVx7xJbLmQaLGVWinjqJhh9cWMN20Z4RQQyAYPPcgEvOluWjYEpps2Tm2zvURK6xqjcmxA3Y+wXikTJQXc8loIDZfl61wCc/rvjO3VQRg3gZrftVbUzxw5wtd95a8q+qxLvoldNWgUuWu1XAdL82ZOYCWXG04NQrbbhWxLc23p4bW5cKxLwQrM0qkGjLJVf46PBsCZ9kf6QhwFHYzIFSO82sliIHickcdghyoBwxt+PbKCho5KFziETp1KVTPyT0awPrZlpcU+Ap6wrVQlpzc3IGbttd4TUxT8BqcUuWk0Ka/mmmKLwHSaqEhQ7Oyuq4ZCY9kdMUCcxK13sak7fF4QPdHry5XyuSUXx5w9jgRuD9uexEhA/+4azfyzGlkvy0XMZMHb8elZHqyoiWZ3UwcxFI7FaxCAzj4OX1Njv3ZpuyUgcolamEy1fFDTDaMLOxg4rA395J6CPE151HYolcCq0n03V4QKzTcV408l/JVmjSOXQWTO63Oex42kzOcEB/YHPcZZBZxj5J71BWlw/HqKaBJzIKZZ4I34kY5nWLNRgTawddN8yQSuO2sqOwpaaTcMg4uxIK8RvLpVSav/tniDNZVPCbDos7agHjIkkfW0GD7mLNVkfGWv5rJcHHrB9mLUFuoCBxI8oAv5NWUpzErRDjVYV5+zXeAF4yLAZKV5pAVxlmAiONVLIRwokXbZMRFd6frRi1Rcttipg9DtT9KhQJC5y3kxWw5taeYIyg9sC7+hJUasO6KHM+bRK2xqK0uu0Ey75AESlNIPHEKGA9haQLfxDVdOzRNM1jlhOfo5GAAUsyUqVkQiamqQu9rI407GOlGFrxKZe0D3abu1Clb41Gp1ey96JkGquG5Oyr5LqwXH+WyZJL2s6NuSB0/rptonlmli84rWwbxCRO6isIIxuFaj3IuKG9zwOGc7taOl87apoGmdNQoiNhMUHEQ6Lut6OM7tb3DxdibJQGQ/MqfyW5r2NqcqHSsGHmKUr584gLlDMzX2DTyeoSAURA2OWed+d2h5mX1ohy3KRkosUqnWqtT0iS5NRoKpq/iaqJOK/pHFBtWKbhrbLhCMzk7n+XsQx9H7uagIQnfNq2fqYNCJwlq2N7R2gmbLRrvIOLuXnwYAwNgt+UVdZlpxUys2CBpLQHsDua826yhwj7pyFhRZEkCqQrJoWkIWnW4X10xs5as4vrjbBTn2JGy8XWkFSq1w/Z1F+j3q/CbInKS5+e7YA14u56DBXEeiXhGt+oWVod7PFWRCi41DNbjLJZAY9BXfl4X3+2dZXZOW6iKdLfKIRhhd965kac01lPFthfNfxy1rGjkrDpTDi6Uvl89Z6fiLl0MZBWqQ3jPrYa78iYMJkw0btVhdzeDTb3ZYjYVHEudZphu8DmMx+I7DwuDcNQDnQD77LiLmz1BSYCqkWR8MpLRquiu3gnj1V5jPSuATi5A2uV9+SQdpm214jOXuSzzk0qfHdwDvFulbO92Q5B0VaxsrXF/t2HV9UfTs7JBnHt2NM0W1jipwUA9ser0ClcdT1spFAPCblbpvQN1YMBd7xBqSamseLC85RfqifPSJrjaSm8qHqntZQUqnYrSttR70K9p2ZohoYwniitk+Re9VPwFRvytb8TF30Dywx/1Gij09TM4j2+9eHyJD8AVcVpEnxTd/wFflQmhL7mEAW+9vuLxFVrPHp2BPuiRixua/4bmv6H5b2j+G5r/hua/oflvaP4bmv+PG5r/hua/ofn/uKH5b2j+G5r/hua/oflvaP4bmv+PG5r/hua/oflvaP4bmv+G5r+h+W9o/hua/4bmv6H5b2j+G5r/hua/oflvaP4bmv+G5r+h+W9o/hua/4bmv6H5b2j+G5r/hub/STQ/8fx7c5D/Dsv/NkT8fd+ncYOI3yDiN4j4DSJ+g4jfIOI3iPgfN4j4DSJ+g4jfIOI3iPgNIn6DiN8g4jeI+A0ifoOI3yDiN4j4DSJ+g4jfIOI3iPgNIn6DiN8g4jeI+A0ifoOI3yDiN4j4DSJ+g4jfIOI3iPgNIn6DiN8g4jeI+A0ifoOI3yDiN4j4DSL+BkScfP4mcQD+zRhx7PsY8bgp++r9i4eAsCyKKOz84HEE4NvvV4fxZ0Qh8NfvVn/E0j8lCoZ80Evw4XcA5/9+6/z6pnu/CR9fOr9i5o9+m3w99/wt+H9AMHD38/ar8OPGP6YLiV8034/hPBAEWlsS/1iODxj9sLyk4ZMX4PP+Jc1XatpRc/QL/8V78aGH47fm9OT1/a9Z/m0R+r4W/D6Owv/4tQaM3/n5CikCNIUy1wZZ5NTF1GD5+nUGwRKfY3H3lRz/7gsPFkqf7n7+8289+Lesezj73Hy9Nl7go6o8ZSuKfpT1wn+/9YKJz2a90Jv1+gEVwP9BED6T9UL+2XqVRdtfVkjUS3P1P2jN3s/Kh7PPNfe91oz4KGtG/n5r9jIWgxDkfeYMxz5I+MF3UOVmzl7J0L83Zx/G0a/S+v1g7H/Bar2fY2/GYMRbX0X1n9otDPj9dguFX3xF139pt96kys1s/YDZ+ipCn8NsvTlH8LWYM+Xl0hdpN/+pN+XCieh/yXD9AM8ezj5/PcInMFzvqPN8tOHCCOw5Vf7D9PFtorwuldwM1/dF6HOkj2/P8XX6yNwL6cImCHiMvf73EsYfYN6nTBixd1R6ouJINc2dsoS537arqiyM8pvudfMTVr6k6ELIZnZXci9W++HQe+h7d8BOD7y4P5ofj6a0e7gMwB+OvSfn/r5sPXh6lR416UKmVTTu2v7RBrdl34TRt8j0wLVl0XH0TXl4YGh0jKP3qjL6hiY/tjVR7nfpED2b7ltS8HAHvUyL7om7fBSwx5j2cdzHIe5X/nDV37L03YFA7MVc7inzaqA7ofy67H8hp59gkwkjPluCgL2jeH1ztK9k6BNnCBjxLUeL+ZfVcxVBW90t+4Xj/V/wtz+83fTpMoZ3ZPWfxuNiJPbU434BAPhjvO7b3yT/XqeLfyqni4HP8zEY/0mni4HPHQ4Mvxjoo53uzbt8S37fb4NQ+JNl6K/jhn+uQ/1/ms79BBOfuxLy9bs5Qfgtq/JRngR/XU1cOCa8DhP+PZsemn4lh54Zh1/AHgiHnrEHAl/zB8FeswcCPoo9r/eoLPF/hRnoi/fYYm/EXW9ZvI/jBvSKGzJL6UuLyRn2+oqP/wnGkC9eMEyArytQ/y1fXlcWv3z58j/CDQJCvjwP8UCA/M38eEdB8L7Q8pYjh8LwrVDviAUYiv0QzX64OkNg2Ata/v4o6xZA/0B55qvkfeJ9EPx14KznffxnWrwVHj+Pw351NP1Ur/5JEz9BxeYH2Popd0jw1xW5V6z6NPWa37dDQjyo4XeLNY9G8ZMUa0AAgF/4jZ/eJHljrP96nwR/R3Xxo/dJCAx9SdHfvlNCvM6Vb674+1L0iXdKiNfp9ZI4/M9shPwAiz7pRgjxOiP/vI71QzdCvuszH63XJ/GZJIx+IXEAJQgIRiESAZ8HbBjwBQFBHEPuuyAvHjx9rzfFyZdu5AP3P/Q52l2JkPoryXjT2fR/Fsf+z98ioAAJPxPRRdSI74npevS2tL2QmJ+L7cA30C//vGH3u6Tya0H+QVpQ7CfDuFcDvSy2/LTYLYdNWXZPuy8uIVHKY7T2+H8=
-
-
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/docs/samples/collections/Asset-Catalog-endpoints.postman_collection.json b/open-metadata-implementation/access-services/asset-catalog/docs/samples/collections/Asset-Catalog-endpoints.postman_collection.json
deleted file mode 100644
index 8d5e458bddc..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/docs/samples/collections/Asset-Catalog-endpoints.postman_collection.json
+++ /dev/null
@@ -1,290 +0,0 @@
-{
- "info": {
- "_postman_id": "bc085e19-5492-4446-b323-6ce7c7a0642f",
- "name": "Asset Catalog endpoints",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
- },
- "item": [
- {
- "name": "1. Get supported types",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "type": "text",
- "value": "application/json"
- }
- ],
- "url": {
- "raw": "{{base-url}}/servers/{{server-id}}/open-metadata/access-services/asset-catalog/users/{{user-id}}/supportedTypes?type={{asset-type}}",
- "host": [
- "{{base-url}}"
- ],
- "path": [
- "servers",
- "{{server-id}}",
- "open-metadata",
- "access-services",
- "asset-catalog",
- "users",
- "{{user-id}}",
- "supportedTypes"
- ],
- "query": [
- {
- "key": "type",
- "value": "{{asset-type}}"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "2. Search",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "value": "application/json",
- "type": "text"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\t\"class\": \"SearchParameters\",\n\t\"status\": \"ACTIVE\",\n\t\"from\": 0,\n\t\"pageSize\":100,\n\t\"isCaseInsensitive\": false\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- },
- "url": {
- "raw": "{{base-url}}/servers/{{server-id}}/open-metadata/access-services/asset-catalog/users/{{user-id}}/search?searchCriteria={{search-criteria}}",
- "host": [
- "{{base-url}}"
- ],
- "path": [
- "servers",
- "{{server-id}}",
- "open-metadata",
- "access-services",
- "asset-catalog",
- "users",
- "{{user-id}}",
- "search"
- ],
- "query": [
- {
- "key": "searchCriteria",
- "value": "{{search-criteria}}"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "3. Get asset details",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "type": "text",
- "value": "application/json"
- }
- ],
- "url": {
- "raw": "{{base-url}}/servers/{{server-id}}/open-metadata/access-services/asset-catalog/users/{{user-id}}/asset-details/{{asset-guid}}/?assetType={{asset-type}}",
- "host": [
- "{{base-url}}"
- ],
- "path": [
- "servers",
- "{{server-id}}",
- "open-metadata",
- "access-services",
- "asset-catalog",
- "users",
- "{{user-id}}",
- "asset-details",
- "{{asset-guid}}",
- ""
- ],
- "query": [
- {
- "key": "assetType",
- "value": "{{asset-type}}"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "4. Get asset classifications",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "type": "text",
- "value": "application/json"
- }
- ],
- "url": {
- "raw": "{{base-url}}/servers/{{server-id}}/open-metadata/access-services/asset-catalog/users/{{user-id}}/asset-classifications/{{asset-guid}}?classificationName={{classification-name}}",
- "host": [
- "{{base-url}}"
- ],
- "path": [
- "servers",
- "{{server-id}}",
- "open-metadata",
- "access-services",
- "asset-catalog",
- "users",
- "{{user-id}}",
- "asset-classifications",
- "{{asset-guid}}"
- ],
- "query": [
- {
- "key": "from",
- "value": "0",
- "disabled": true
- },
- {
- "key": "pageSize",
- "value": "10",
- "disabled": true
- },
- {
- "key": "assetType",
- "value": "{{asset-type-1}}",
- "disabled": true
- },
- {
- "key": "classificationName",
- "value": "{{classification-name}}"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "5. Get asset relationships",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "type": "text",
- "value": "application/json"
- }
- ],
- "url": {
- "raw": "{{base-url}}/servers/{{server-id}}/open-metadata/access-services/asset-catalog/users/{{user-id}}/asset-relationships/{{asset-guid}}?assetType={{asset-type}}&relationshipType={{relationship-type}}",
- "host": [
- "{{base-url}}"
- ],
- "path": [
- "servers",
- "{{server-id}}",
- "open-metadata",
- "access-services",
- "asset-catalog",
- "users",
- "{{user-id}}",
- "asset-relationships",
- "{{asset-guid}}"
- ],
- "query": [
- {
- "key": "assetType",
- "value": "{{asset-type}}"
- },
- {
- "key": "relationshipType",
- "value": "{{relationship-type}}"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "6. Get asset context",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "type": "text",
- "value": "application/json"
- }
- ],
- "url": {
- "raw": "{{base-url}}/servers/{{server-id}}/open-metadata/access-services/asset-catalog/users/{{user-id}}/asset-context/{{asset-guid}}",
- "host": [
- "{{base-url}}"
- ],
- "path": [
- "servers",
- "{{server-id}}",
- "open-metadata",
- "access-services",
- "asset-catalog",
- "users",
- "{{user-id}}",
- "asset-context",
- "{{asset-guid}}"
- ]
- }
- },
- "response": []
- },
- {
- "name": "7. Get asset universe",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "type": "text",
- "value": "application/json"
- }
- ],
- "url": {
- "raw": "{{base-url}}/servers/{{server-id}}/open-metadata/access-services/asset-catalog/users/{{user-id}}/asset-universe/{{asset-guid}}",
- "host": [
- "{{base-url}}"
- ],
- "path": [
- "servers",
- "{{server-id}}",
- "open-metadata",
- "access-services",
- "asset-catalog",
- "users",
- "{{user-id}}",
- "asset-universe",
- "{{asset-guid}}"
- ]
- }
- },
- "response": []
- }
- ]
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/README.md b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/README.md
deleted file mode 100644
index 28c9e7ffe51..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-# Asset Catalog Open Metadata Access Service (OMAS) server-side implementation
-
-The Asset Catalog OMAS server supports the server side implementation of the access service. This includes:
-
-* the interaction with the [administration services](../../../admin-services) for
- registration, configuration, initialization and termination of the access service.
-* the interaction with the [repository services](../../../repository-services) to work with open metadata from the
- [cohort](../../../repository-services/docs/open-metadata-repository-cohort.md).
-* the OMRS Topic listener designed for receiving events from the cohorts that the local server is connected to.
-* the audit log used to define the message content for the OMRS Audit Log.
-* the service package that provides the server-side implementation of the Asset Catalog Open Metadata Assess Service (OMAS).
-These services provide the functionality to fetch asset's header, classification, properties and relationships.
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/build.gradle b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/build.gradle
deleted file mode 100644
index d2e24889f08..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/build.gradle
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * SPDX-License-Identifier: Apache-2.0
- * Copyright Contributors to the ODPi Egeria project.
- */
-
-plugins {
- id "io.freefair.lombok"
-}
-
-dependencies {
- implementation project(':open-metadata-implementation:access-services:asset-catalog:asset-catalog-api')
- implementation project(':open-metadata-implementation:access-services:asset-catalog:asset-catalog-topic-connector')
- implementation project(':open-metadata-implementation:admin-services:admin-services-api')
- implementation project(':open-metadata-implementation:admin-services:admin-services-registration')
- implementation project(':open-metadata-implementation:repository-services:repository-services-apis')
- implementation project(':open-metadata-implementation:common-services:multi-tenant')
- implementation project(':open-metadata-implementation:common-services:generic-handlers')
- implementation 'org.apache.commons:commons-collections4'
- implementation project(':open-metadata-implementation:common-services:repository-handler')
- implementation project(':open-metadata-implementation:frameworks:open-connector-framework')
- implementation project(':open-metadata-implementation:common-services:ffdc-services')
- implementation project(':open-metadata-implementation:framework-services:ocf-metadata-management:ocf-metadata-handlers')
- implementation project(':open-metadata-implementation:common-services:metadata-security:metadata-security-server')
- implementation 'org.slf4j:slf4j-api'
- implementation 'org.springframework:spring-core'
- implementation 'com.fasterxml.jackson.core:jackson-databind'
- implementation 'com.fasterxml.jackson.core:jackson-core'
- implementation project(':open-metadata-implementation:frameworks:audit-log-framework')
- testImplementation 'org.mockito:mockito-core'
- testImplementation 'junit:junit'
- testImplementation 'org.junit.jupiter:junit-jupiter-api'
- compileOnly 'com.fasterxml.jackson.core:jackson-annotations'
-}
-
-description = 'Asset Catalog OMAS Server-side'
-
-java {
- withJavadocJar()
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogAdmin.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogAdmin.java
deleted file mode 100644
index 21a93ff5052..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogAdmin.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.admin;
-
-import org.odpi.openmetadata.accessservices.assetcatalog.auditlog.AssetCatalogAuditCode;
-import org.odpi.openmetadata.accessservices.assetcatalog.listeners.AssetCatalogOMRSTopicListener;
-import org.odpi.openmetadata.adminservices.configuration.properties.AccessServiceConfig;
-import org.odpi.openmetadata.adminservices.registration.AccessServiceAdmin;
-import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
-import org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException;
-import org.odpi.openmetadata.frameworks.auditlog.AuditLog;
-import org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection;
-import org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicConnector;
-import org.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicConnector;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector;
-
-import java.util.Collections;
-import java.util.List;
-
-/**
- * AssetCatalogAdmin is the class that is called by the OMAG Server to initialize and terminate
- * the Asset Catalog OMAS. The initialization call provides this OMAS with resources from the
- * Open Metadata Repository Services.
- */
-public class AssetCatalogAdmin extends AccessServiceAdmin {
-
- private static final String SUPPORTED_TYPES_FOR_SEARCH = "SupportedTypesForSearch";
- private static final String ENABLE_INDEX_EVENTS = "EnableIndexingEvents";
- private AuditLog auditLog;
- private String serverName;
- private AssetCatalogServicesInstance instance;
-
-
- /**
- * Initialize the access service.
- *
- * @param accessServiceConfigurationProperties specific configuration properties for this access service.
- * @param enterpriseOMRSTopicConnector connector for receiving OMRS Events from the cohorts
- * @param repositoryConnector connector for querying the cohort repositories
- * @param auditLog audit log component for logging messages.
- * @param serverUserName user id to use on OMRS calls where there is no end user.
- */
- @Override
- public void initialize(AccessServiceConfig accessServiceConfigurationProperties,
- OMRSTopicConnector enterpriseOMRSTopicConnector,
- OMRSRepositoryConnector repositoryConnector,
- AuditLog auditLog,
- String serverUserName) throws OMAGConfigurationErrorException {
- final String actionDescription = "initialize";
-
- auditLog.logMessage(actionDescription, AssetCatalogAuditCode.SERVICE_INITIALIZING.getMessageDefinition());
-
- try {
- this.auditLog = auditLog;
-
- List supportedZones = this.extractSupportedZones(accessServiceConfigurationProperties.getAccessServiceOptions(),
- accessServiceConfigurationProperties.getAccessServiceName(),
- auditLog);
-
- List supportedTypesForSearch = getSupportedTypesForSearchOption(accessServiceConfigurationProperties);
-
- instance = new AssetCatalogServicesInstance(repositoryConnector, supportedZones, auditLog, serverUserName,
- accessServiceConfigurationProperties.getAccessServiceName(), supportedTypesForSearch,
- accessServiceConfigurationProperties.getAccessServiceInTopic(),
- accessServiceConfigurationProperties.getAccessServiceOutTopic());
-
-
- boolean indexingEnabled = this.isIndexingEnabled(accessServiceConfigurationProperties);
-
- if(indexingEnabled) {
- registerListener(accessServiceConfigurationProperties,
- enterpriseOMRSTopicConnector,
- repositoryConnector,
- auditLog);
- }
-
- this.serverName = instance.getServerName();
-
- auditLog.logMessage(actionDescription, AssetCatalogAuditCode.SERVICE_INITIALIZED.getMessageDefinition(serverName));
-
- } catch (Exception error) {
- auditLog.logException(actionDescription, AssetCatalogAuditCode.SERVICE_INSTANCE_FAILURE.getMessageDefinition(error.getMessage(), serverName), error);
-
- super.throwUnexpectedInitializationException(actionDescription, AccessServiceDescription.ASSET_CATALOG_OMAS.getAccessServiceFullName(), error);
- }
- }
-
- private void registerListener(AccessServiceConfig accessServiceConfigurationProperties,
- OMRSTopicConnector enterpriseOMRSTopicConnector,
- OMRSRepositoryConnector repositoryConnector,
- AuditLog auditLog) throws OMAGConfigurationErrorException {
-
- Connection outTopicConnection = accessServiceConfigurationProperties.getAccessServiceOutTopic();
-
- String serviceName = accessServiceConfigurationProperties.getAccessServiceName();
-
- OpenMetadataTopicConnector outTopicConnector = super.getOutTopicEventBusConnector(
- outTopicConnection,
- accessServiceConfigurationProperties.getAccessServiceName(),
- auditLog);
-
- List supportedZones = this.extractSupportedZones(
- accessServiceConfigurationProperties.getAccessServiceOptions(),
- serviceName,
- auditLog);
-
- List supportedTypesForSearch = getSupportedTypesForSearchOption(accessServiceConfigurationProperties);
-
- AssetCatalogOMRSTopicListener omrsTopicListener = new AssetCatalogOMRSTopicListener(
- serviceName,
- auditLog,
- outTopicConnector,
- repositoryConnector.getRepositoryHelper(),
- repositoryConnector.getRepositoryValidator(),
- serverName,
- supportedZones,
- supportedTypesForSearch
- );
-
- super.registerWithEnterpriseTopic(
- serviceName,
- serverName,
- enterpriseOMRSTopicConnector,
- omrsTopicListener,
- auditLog);
- }
-
- /**
- * Shutdown the access service.
- */
- public void shutdown() {
- if (instance != null) {
- instance.shutdown();
- }
-
- if (auditLog != null) {
- final String actionDescription = "shutdown";
-
- auditLog.logMessage(actionDescription, AssetCatalogAuditCode.SERVICE_SHUTDOWN.getMessageDefinition(serverName));
- }
- }
-
- private boolean isIndexingEnabled(AccessServiceConfig accessServiceConfigurationProperties) {
- if (accessServiceConfigurationProperties.getAccessServiceOptions() != null) {
- return (Boolean) accessServiceConfigurationProperties.getAccessServiceOptions().getOrDefault(ENABLE_INDEX_EVENTS, Boolean.FALSE);
- }
- return false;
- }
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogInstanceHandler.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogInstanceHandler.java
deleted file mode 100644
index 376ee1944b8..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogInstanceHandler.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.admin;
-
-import org.odpi.openmetadata.accessservices.assetcatalog.handlers.AssetCatalogHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.handlers.RelationshipHandler;
-import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
-import org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstanceHandler;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-
-/**
- * AssetCatalogInstanceHandler retrieves information from the instance map for the access service instances.
- * The instance map is thread-safe. Instances are added and removed by the AssetCatalogAdmin class.
- */
-public class AssetCatalogInstanceHandler extends OMASServiceInstanceHandler {
-
- /**
- * Default constructor registers the access service
- */
- public AssetCatalogInstanceHandler() {
- super(AccessServiceDescription.ASSET_CATALOG_OMAS.getAccessServiceFullName());
-
- AssetCatalogRegistration.registerAccessService();
- }
-
- /**
- * Retrieve the process handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- * @return handler for use by the requested instance
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public AssetCatalogHandler getAssetCatalogHandler(String userId, String serverName, String serviceOperationName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- AssetCatalogServicesInstance instance = (AssetCatalogServicesInstance) super.getServerServiceInstance(userId,
- serverName, serviceOperationName);
-
- return instance.getAssetCatalogHandler();
- }
-
- /**
- * Retrieve the registration handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- * @return handler for use by the requested instance
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public RelationshipHandler getRelationshipHandler(String userId, String serverName,
- String serviceOperationName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- AssetCatalogServicesInstance instance = (AssetCatalogServicesInstance) super.getServerServiceInstance(userId,
- serverName, serviceOperationName);
-
- return instance.getRelationshipHandler();
- }
-}
-
-
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogRegistration.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogRegistration.java
deleted file mode 100644
index 21182481c03..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogRegistration.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.admin;
-
-import lombok.AccessLevel;
-import lombok.NoArgsConstructor;
-import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceRegistrationEntry;
-import org.odpi.openmetadata.adminservices.registration.OMAGAccessServiceRegistration;
-import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
-import org.odpi.openmetadata.adminservices.configuration.registration.ServiceOperationalStatus;
-
-/**
- * AssetCatalogRegistration registers the access service with the OMAG Server administration services.
- * This registration must be driven once at server start up. The OMAG Server administration services
- * then use this registration information as confirmation that there is an implementation of this
- * access service in the server and that it can be configured and used.
- */
-@NoArgsConstructor(access = AccessLevel.PRIVATE)
-class AssetCatalogRegistration {
-
- /**
- * Pass information about this access service to the OMAG Server administration services.
- */
- static void registerAccessService() {
- AccessServiceDescription myDescription = AccessServiceDescription.ASSET_CATALOG_OMAS;
-
- AccessServiceRegistrationEntry myRegistration = new AccessServiceRegistrationEntry(myDescription,
- ServiceOperationalStatus.ENABLED,
- AssetCatalogAdmin.class.getName());
- OMAGAccessServiceRegistration.registerAccessService(myRegistration);
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogServicesInstance.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogServicesInstance.java
deleted file mode 100644
index 946d9b1dea6..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/AssetCatalogServicesInstance.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.admin;
-
-import lombok.Getter;
-import org.odpi.openmetadata.accessservices.assetcatalog.connectors.outtopic.AssetCatalogOutTopicClientProvider;
-import org.odpi.openmetadata.accessservices.assetcatalog.converters.AssetCatalogConverter;
-import org.odpi.openmetadata.accessservices.assetcatalog.exception.AssetCatalogErrorCode;
-import org.odpi.openmetadata.accessservices.assetcatalog.handlers.AssetCatalogHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.handlers.RelationshipHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean;
-import org.odpi.openmetadata.accessservices.assetcatalog.service.ClockService;
-import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
-import org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler;
-import org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstance;
-import org.odpi.openmetadata.commonservices.multitenant.ffdc.exceptions.NewInstanceException;
-import org.odpi.openmetadata.frameworks.auditlog.AuditLog;
-import org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector;
-
-import java.time.Clock;
-import java.util.List;
-
-/**
- * AssetCatalogServicesInstance caches references to OMRS objects for a specific server.
- * It is also responsible for registering itself in the instance map.
- */
-class AssetCatalogServicesInstance extends OMASServiceInstance {
-
- private static final AccessServiceDescription description = AccessServiceDescription.ASSET_CATALOG_OMAS;
-
- /**
- * Return the handler for assets requests
- * @return handler object
- */
- @Getter
- private final AssetCatalogHandler assetCatalogHandler;
-
- /**
- * Return the handler for relationships requests
- * @return handler object
- */
- @Getter
- private final RelationshipHandler relationshipHandler;
-
- /**
- * Instantiates an AssetCatalogServicesInstance object
- * @param repositoryConnector link to the repository responsible for servicing the REST calls.
- * @param supportedZones configurable list of zones that Asset Catalog is allowed to serve Assets from
- * @param auditLog logging destination
- * @param serverUserName userId used for server initiated actions
- * @param supportedTypesForSearch default list of supported types for search method
- * @throws NewInstanceException a problem occurred during initialization
- */
- AssetCatalogServicesInstance(OMRSRepositoryConnector repositoryConnector, List supportedZones,
- AuditLog auditLog, String serverUserName, String sourceName,
- List supportedTypesForSearch,
- Connection inTopicEventBusConnection,
- Connection outTopicEventBusConnection) throws NewInstanceException {
-
- super(description.getAccessServiceName() + " OMAS",
- repositoryConnector,
- supportedZones,
- null,
- null,
- auditLog,
- serverUserName,
- repositoryConnector.getMaxPageSize(),
- null,
- null,
- AssetCatalogOutTopicClientProvider.class.getName(),
- outTopicEventBusConnection);
-
- super.supportedZones = supportedZones;
-
- if (repositoryHandler != null) {
- AssetCatalogConverter assetCatalogConverter =
- new AssetCatalogConverter<>(repositoryHelper, serviceName, serverName);
-
- OpenMetadataAPIGenericHandler assetHandler =
- new OpenMetadataAPIGenericHandler<>(new AssetCatalogConverter<>(repositoryHelper, serviceName, serverName),
- AssetCatalogBean.class, serviceName, serverName, invalidParameterHandler, repositoryHandler,
- repositoryHelper, localServerUserId, securityVerifier, supportedZones, defaultZones, publishZones,
- auditLog);
- ClockService clockService = new ClockService(Clock.systemUTC());
-
- assetCatalogHandler = new AssetCatalogHandler(serverName, sourceName, invalidParameterHandler,
- repositoryHandler, repositoryHelper, assetHandler, assetCatalogConverter, errorHandler,
- supportedZones, supportedTypesForSearch, clockService);
-
- relationshipHandler = new RelationshipHandler(sourceName, invalidParameterHandler, repositoryHandler,
- repositoryHelper, assetHandler, errorHandler, clockService);
- } else {
- final String methodName = "new ServiceInstance";
- throw new NewInstanceException(AssetCatalogErrorCode.OMRS_NOT_INITIALIZED.getMessageDefinition(serverName),
- this.getClass().getName(),
- methodName);
- }
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/package-info.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/package-info.java
deleted file mode 100644
index aaa6d8f8a37..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/admin/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * Provides the implementation of the admin classes that are called during server start up and shut down.
- */
-package org.odpi.openmetadata.accessservices.assetcatalog.admin;
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/auditlog/AssetCatalogAuditCode.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/auditlog/AssetCatalogAuditCode.java
deleted file mode 100644
index ae9d495c5a0..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/auditlog/AssetCatalogAuditCode.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.auditlog;
-
-import org.odpi.openmetadata.frameworks.auditlog.AuditLogRecordSeverityLevel;
-import org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageDefinition;
-import org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageSet;
-
-/**
- * The AssetCatalogAuditCode is used to define the message content for the OMRS Audit Log.
- *
- * The 5 fields in the enum are:
- *
- * - Log Message Id - to uniquely identify the message
- * - Severity - is this an event, decision, action, error or exception
- * - Log Message Text - includes placeholder to allow additional values to be captured
- * - Additional Information - further parameters and data relating to the audit message (optional)
- * - SystemAction - describes the result of the situation
- * - UserAction - describes how a user should correct the situation
- *
- */
-public enum AssetCatalogAuditCode implements AuditLogMessageSet
-{
- /**
- * OMAS-ASSET-CATALOG-0001 The Asset Catalog OMAS has completed initialization of a new instance.
- */
- SERVICE_INITIALIZED("OMAS-ASSET-CATALOG-0001",
- AuditLogRecordSeverityLevel.STARTUP,
- "The Asset Catalog Open Metadata Access Service (OMAS) has initialized a new instance for server {0}",
- "The Asset Catalog OMAS has completed initialization of a new instance.",
- "No action is required. This is part of the normal operation of the service."),
- /**
- * OMAS-ASSET-CATALOG-0002 The local server has started up a new instance of the Asset Catalog OMAS.
- */
- SERVICE_INITIALIZING("OMAS-ASSET-CATALOG-0002",
- AuditLogRecordSeverityLevel.STARTUP,
- "The Asset Catalog Open Metadata Access Service (OMAS) is initializing a new server instance",
- "The local server has started up a new instance of the Asset Catalog OMAS.",
- "No action is required. This is part of the normal operation of the service."),
-
- /**
- * OMAS-ASSET-CATALOG-0003 The access service detected an error during the start-up of a specific server instance.
- * Its services are not available for the specified server.
- */
- SERVICE_INSTANCE_FAILURE("OMAS-ASSET-CATALOG-0003",
- AuditLogRecordSeverityLevel.ERROR,
- "The Asset Catalog Open Metadata Access Service (OMAS) is unable to initialize a new instance; error message is {0}",
- "The access service detected an error during the start up of a specific server instance. Its services are not available for server {1}.",
- "Review the error message and any other reported failures to determine the cause of the problem. Once this is resolved, restart the server."),
-
- /**
- * OMAS-ASSET-CATALOG-0004 The local server has requested shut down of an Asset Catalog OMAS instance.
- */
- SERVICE_SHUTDOWN("OMAS-ASSET-CATALOG-0004",
- AuditLogRecordSeverityLevel.SHUTDOWN,
- "The Asset Catalog Open Metadata Access Service (OMAS) is shutting down its instance for server {0}",
- "The local server has requested shut down of an Asset Catalog OMAS instance.",
- "No action is required. This is part of the normal operation of the service."),
-
- /**
- * OMAS-ASSET-CATALOG-0005 The event could not be processed.
- */
- EVENT_PROCESSING_EXCEPTION("OMAS-ASSET-CATALOG-0005",
- AuditLogRecordSeverityLevel.EXCEPTION,
- "An exception with message {0} occurred while processing incoming event {1}",
- "The event could not be processed.",
- "Review the exception to determine the source of the error and correct it."),
-
- /**
- * OMAS-ASSET-CATALOG-0006 The event will not be processed.
- */
- EVENT_NOT_PROCESSING("OMAS-ASSET-CATALOG-0006",
- AuditLogRecordSeverityLevel.TRACE,
- "An event is ignored {0}",
- "The event will not be processed.",
- "No action is required. This is part of the normal operation of the service."),;
-
-
- private final String logMessageId;
- private final AuditLogRecordSeverityLevel severity;
- private final String logMessage;
- private final String systemAction;
- private final String userAction;
-
-
- /**
- * The constructor for AssetCatalogAuditCode expects to be passed one of the enumeration rows defined in
- * AssetCatalogAuditCode above. For example:
- *
- * AssetCatalogAuditCode auditCode = AssetCatalogAuditCode.SERVER_NOT_AVAILABLE;
- *
- * This will expand out to the 5 parameters shown below.
- *
- * @param messageId - unique ID for the message
- * @param severity - severity of the message
- * @param message - text for the message
- * @param systemAction - description of the action taken by the system when the condition happened
- * @param userAction - instructions for resolving the situation, if any
- */
- AssetCatalogAuditCode(String messageId,
- AuditLogRecordSeverityLevel severity,
- String message,
- String systemAction,
- String userAction)
- {
- this.logMessageId = messageId;
- this.severity = severity;
- this.logMessage = message;
- this.systemAction = systemAction;
- this.userAction = userAction;
- }
-
-
- /**
- * Retrieve a message definition object for logging. This method is used when there are no message inserts.
- *
- * @return message definition object.
- */
- @Override
- public AuditLogMessageDefinition getMessageDefinition()
- {
- return new AuditLogMessageDefinition(logMessageId,
- severity,
- logMessage,
- systemAction,
- userAction);
- }
-
-
- /**
- * Retrieve a message definition object for logging. This method is used when there are values to be inserted into the message.
- *
- * @param params array of parameters (all strings). They are inserted into the message according to the numbering in the message text.
- * @return message definition object.
- */
- @Override
- public AuditLogMessageDefinition getMessageDefinition(String... params)
- {
- AuditLogMessageDefinition messageDefinition = new AuditLogMessageDefinition(logMessageId,
- severity,
- logMessage,
- systemAction,
- userAction);
- messageDefinition.setMessageParameters(params);
- return messageDefinition;
- }
-
-
- /**
- * JSON-style toString
- *
- * @return string of property names and values for this enum
- */
- @Override
- public String toString()
- {
- return "AssetCatalogAuditCode{" +
- "logMessageId='" + logMessageId + '\'' +
- ", severity=" + severity +
- ", logMessage='" + logMessage + '\'' +
- ", systemAction='" + systemAction + '\'' +
- ", userAction='" + userAction + '\'' +
- '}';
- }
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/auditlog/package-info.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/auditlog/package-info.java
deleted file mode 100644
index 3ef65eff3fd..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/auditlog/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * This package is used to define the message content for the OMRS Audit Log.
- */
-package org.odpi.openmetadata.accessservices.assetcatalog.auditlog;
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/converters/AssetCatalogConverter.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/converters/AssetCatalogConverter.java
deleted file mode 100644
index 216a4e9fe8c..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/converters/AssetCatalogConverter.java
+++ /dev/null
@@ -1,366 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.converters;
-
-import org.apache.commons.collections4.CollectionUtils;
-import org.apache.commons.collections4.MapUtils;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogItemElement;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Classification;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Element;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.ElementOrigin;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Elements;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Type;
-import org.odpi.openmetadata.accessservices.assetcatalog.util.Constants;
-import org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.ArrayPropertyValue;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.MapPropertyValue;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ADDITIONAL_PROPERTIES_PROPERTY_NAME;
-
-/**
- * AssetConverter is a helper class that maps the OMRS objects to Asset Catalog model.
- */
-public class AssetCatalogConverter extends OpenMetadataAPIGenericConverter {
-
- /**
- * Instantiates a new Asset Catalog converter.
- *
- * @param repositoryHelper the repository helper
- * @param serviceName the service name
- * @param serverName the server name
- */
- public AssetCatalogConverter(OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) {
- super(repositoryHelper, serviceName, serverName);
- }
-
- /**
- * Method used to convert the Entity Details to Asset Catalog OMAS Model - Asset Description object
- *
- * @param entityDetail entityDetails object
- * @return Asset Description object
- */
- public AssetCatalogBean getAssetCatalogBean(EntityDetail entityDetail) {
- AssetCatalogBean assetCatalogBean = new AssetCatalogBean();
- assetCatalogBean.setGuid(entityDetail.getGUID());
-
- assetCatalogBean.setCreatedBy(entityDetail.getCreatedBy());
- assetCatalogBean.setCreateTime(entityDetail.getCreateTime());
- assetCatalogBean.setUpdatedBy(entityDetail.getUpdatedBy());
- assetCatalogBean.setUpdateTime(entityDetail.getUpdateTime());
- assetCatalogBean.setVersion(entityDetail.getVersion());
-
- if (entityDetail.getType() != null && entityDetail.getType().getTypeDefName() != null) {
- assetCatalogBean.setType(convertInstanceType(entityDetail.getType()));
- }
-
- assetCatalogBean.setUrl(entityDetail.getInstanceURL());
- if (entityDetail.getStatus() != null && entityDetail.getStatus().getName() != null) {
- assetCatalogBean.setStatus(entityDetail.getStatus().getName());
- }
-
- assetCatalogBean.setProperties(extractProperties(entityDetail.getProperties()));
- assetCatalogBean.setAdditionalProperties(extractAdditionalProperties(entityDetail.getProperties()));
-
- if (CollectionUtils.isNotEmpty(entityDetail.getClassifications())) {
- assetCatalogBean.setClassifications(convertClassifications(entityDetail.getClassifications()));
- }
- ElementOrigin elementOrigin = new ElementOrigin();
- elementOrigin.setSourceServer(serviceName);
- elementOrigin.setMetadataCollectionId(entityDetail.getMetadataCollectionId());
- elementOrigin.setMetadataCollectionName(entityDetail.getMetadataCollectionName());
- elementOrigin.setInstanceLicense(entityDetail.getInstanceLicense());
- elementOrigin.setOriginCategory(this.getElementOriginCategory(entityDetail.getInstanceProvenanceType()));
- assetCatalogBean.setOrigin(elementOrigin);
-
- return assetCatalogBean;
- }
-
- /**
- * Method used to covert a list of relationships from OMRS model to AC OMAS model
- *
- * @param relationships list of relationships - OMRS model
- * @return a list of AC OMAS relationships objects
- */
- public List convertRelationships(List relationships) {
- if (relationships == null) {
- return Collections.emptyList();
- }
-
- return relationships.stream().map(this::convertRelationship).collect(Collectors.toList());
- }
-
- /**
- * Method used to convert the relationship from the OMRS model to AC OMAS model
- *
- * @param rel relationship in the OMRS model
- * @return a relationship in AC OMAS model
- */
- public Relationship convertRelationship(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship rel) {
- Relationship relationship = new Relationship();
-
- relationship.setGuid(rel.getGUID());
- relationship.setCreatedBy(rel.getCreatedBy());
- relationship.setCreateTime(rel.getCreateTime());
-
- relationship.setUpdatedBy(rel.getUpdatedBy());
- relationship.setUpdateTime(rel.getUpdateTime());
-
- relationship.setVersion(rel.getVersion());
- if (rel.getStatus() != null && rel.getStatus().getName() != null) {
- relationship.setStatus(rel.getStatus().getName());
- }
-
- if (rel.getType() != null && rel.getType().getTypeDefName() != null) {
- relationship.setType(convertInstanceType(rel.getType()));
- }
-
- if (rel.getEntityOneProxy() != null) {
- relationship.setFromEntity(getElement(rel.getEntityOneProxy()));
- }
- if (rel.getEntityTwoProxy() != null) {
- relationship.setToEntity(getElement(rel.getEntityTwoProxy()));
- }
-
- return relationship;
- }
-
- /**
- * Convert a list of Classifications from the OMRS model to Asset Catalog OMAS model
- *
- * @param classificationsFromEntity - list of classification in the repository services model
- * @return list of classifications in the AC OMAS model
- */
- public List convertClassifications
- (List classificationsFromEntity) {
-
- if (classificationsFromEntity == null || classificationsFromEntity.isEmpty()) {
- return new ArrayList<>();
- }
-
- List classifications = new ArrayList<>(classificationsFromEntity.size());
- for (org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classificationEntity : classificationsFromEntity) {
- Classification classification = new Classification();
- classification.setName(classificationEntity.getName());
- if (classificationEntity.getClassificationOrigin() != null && classificationEntity.getClassificationOrigin().getDescription() != null) {
- classification.setOrigin(classificationEntity.getClassificationOrigin().getDescription());
- }
- classification.setOriginGUID(classificationEntity.getClassificationOriginGUID());
-
- classification.setCreatedBy(classificationEntity.getCreatedBy());
- classification.setCreateTime(classificationEntity.getCreateTime());
-
- classification.setUpdatedBy(classificationEntity.getUpdatedBy());
- classification.setUpdateTime(classificationEntity.getUpdateTime());
-
- classification.setVersion(classificationEntity.getVersion());
- if (classificationEntity.getStatus() != null) {
- classification.setStatus(classificationEntity.getStatus().getName());
- }
- if (classificationEntity.getType() != null) {
- classification.setType(convertInstanceType(classificationEntity.getType()));
- }
-
- classification.setProperties(extractProperties(classificationEntity.getProperties()));
-
- classifications.add(classification);
- }
-
- return classifications;
- }
-
- /**
- * Add an element in the context. If the context is null, the current element becomes the root of the context
- *
- * @param assetCatalogItemElement the context
- * @param entityDetail entity details of the new element
- */
- public void addElement(AssetCatalogItemElement assetCatalogItemElement, EntityDetail entityDetail) {
- List context = assetCatalogItemElement.getContext();
- Elements element = buildAssetElements(entityDetail);
-
- if (context != null) {
- Element leaf = lastElementAdded(context.get(context.size() - 1));
- leaf.setParentElement(element);
- } else {
- List elements = new ArrayList<>();
- elements.add(element);
- assetCatalogItemElement.setContext(elements);
- }
- }
-
- /**
- * Returns the last node added in the context
- *
- * @param assetCatalogItemElement given context
- * @return the last element
- */
- public Element getLastNode(AssetCatalogItemElement assetCatalogItemElement) {
- List context = assetCatalogItemElement.getContext();
-
- return CollectionUtils.isNotEmpty(context) ? lastElementAdded(context.get(context.size() - 1)) : null;
- }
-
- /**
- * Method use to add the parent element to the current element in the built context tree
- *
- * @param parentElement parent element from the context
- * @param element a child element
- */
- public void addChildElement(Element parentElement, Element element) {
- if (parentElement != null) {
- parentElement.setParentElement(element);
- }
- }
-
- /**
- * Method use to add to the context of the given entity
- *
- * @param assetCatalogItemElement asset element that contains the current context
- * @param entityDetail entity details
- */
- public void addContextElement(AssetCatalogItemElement assetCatalogItemElement, EntityDetail entityDetail) {
- List context = assetCatalogItemElement.getContext();
- if (context == null) {
- context = new ArrayList<>();
- }
- context.add(buildAssetElements(entityDetail));
- assetCatalogItemElement.setContext(context);
- }
-
- /**
- * Method used to convert TypeDef to Type object from the Asset Catalog OMAS
- *
- * @param openType type definition
- * @return the Type object
- */
- public Type convertType(TypeDef openType) {
- Type type = new Type();
- type.setName(openType.getName());
- type.setDescription(openType.getDescription());
- type.setVersion(openType.getVersion());
- type.setSuperType(openType.getSuperType().getName());
- return type;
- }
-
- /**
- * Create an Asset Element from the Entity Details
- *
- * @param entityDetail entityDetails
- * @return an AssetElement object
- */
- public Elements buildAssetElements(EntityDetail entityDetail) {
- if (entityDetail == null) {
- return null;
- }
-
- Elements element = new Elements();
- element.setGuid(entityDetail.getGUID());
- element.setType(convertInstanceType(entityDetail.getType()));
- element.setProperties(extractProperties(entityDetail.getProperties()));
- element.setAdditionalProperties(extractAdditionalProperties(entityDetail.getProperties()));
- ElementOrigin elementOrigin = new ElementOrigin();
- elementOrigin.setSourceServer(serviceName);
- elementOrigin.setMetadataCollectionId(entityDetail.getMetadataCollectionId());
- elementOrigin.setMetadataCollectionName(entityDetail.getMetadataCollectionName());
- elementOrigin.setInstanceLicense(entityDetail.getInstanceLicense());
- elementOrigin.setOriginCategory(this.getElementOriginCategory(entityDetail.getInstanceProvenanceType()));
- element.setOrigin(elementOrigin);
- if (CollectionUtils.isNotEmpty(entityDetail.getClassifications())) {
- element.setClassifications(convertClassifications(entityDetail.getClassifications()));
- }
-
- return element;
- }
-
- private Type convertInstanceType(InstanceType instanceType) {
- Type type = new Type();
- type.setName(instanceType.getTypeDefName());
- type.setVersion(instanceType.getTypeDefVersion());
- return type;
- }
-
- private Element getElement(EntityProxy entityProxy) {
- String method = "getAsset";
- Element asset = new Element();
-
- asset.setGuid(entityProxy.getGUID());
- if (entityProxy.getUniqueProperties() != null) {
- asset.setName(repositoryHelper.getStringProperty(serviceName, Constants.NAME, entityProxy.getUniqueProperties(), method));
- }
- asset.setCreatedBy(entityProxy.getCreatedBy());
- asset.setCreateTime(entityProxy.getCreateTime());
- asset.setUpdatedBy(entityProxy.getUpdatedBy());
- asset.setUpdateTime(entityProxy.getUpdateTime());
- asset.setStatus(entityProxy.getStatus().getName());
- asset.setVersion(entityProxy.getVersion());
- asset.setType(convertInstanceType(entityProxy.getType()));
- if (CollectionUtils.isNotEmpty(entityProxy.getClassifications())) {
- asset.setClassifications(convertClassifications(entityProxy.getClassifications()));
- }
- return asset;
- }
-
- private Element lastElementAdded(Element tree) {
- Element innerElement = tree.getParentElement();
- if (innerElement == null) {
- return tree;
- }
- return lastElementAdded(innerElement);
- }
-
- private Map extractProperties(InstanceProperties instanceProperties) {
- Map instancePropertiesAsMap = repositoryHelper.getInstancePropertiesAsMap(instanceProperties);
- Map properties = new HashMap<>();
- String methodName = "extractProperties";
-
- if (MapUtils.isNotEmpty(instancePropertiesAsMap)) {
- instancePropertiesAsMap.forEach((key, value) -> {
- if (!key.equals(ADDITIONAL_PROPERTIES_PROPERTY_NAME)) {
- if (value instanceof ArrayPropertyValue) {
- List stringArrayProperty = repositoryHelper.getStringArrayProperty(serviceName, key, instanceProperties, methodName);
- properties.put(key, listToString(stringArrayProperty));
- } else if (value instanceof MapPropertyValue) {
- Map mapProperty = repositoryHelper.getMapFromProperty(serviceName, key, instanceProperties, methodName);
- properties.put(key, mapToString(mapProperty));
- } else {
- properties.put(key, String.valueOf(value));
- }
- }
- });
- }
-
- return properties;
- }
-
- private Map extractAdditionalProperties(InstanceProperties instanceProperties) {
- String methodName = "extractAdditionalProperties";
-
- return MapUtils.emptyIfNull(repositoryHelper.removeStringMapFromProperty(serviceName,
- ADDITIONAL_PROPERTIES_PROPERTY_NAME,
- instanceProperties, methodName));
- }
-
- private String listToString(List list) {
- return String.join(",", list);
- }
-
- private String mapToString(Map map) {
- return map.keySet().stream().map(key -> key + ": " + map.get(key))
- .collect(Collectors.joining(", "));
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/converters/package-info.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/converters/package-info.java
deleted file mode 100644
index a77ee30dd7a..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/converters/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * This package offers the mapping of the OMRS objects to Asset Catalog model.
- */
-package org.odpi.openmetadata.accessservices.assetcatalog.converters;
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/AssetCatalogHandler.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/AssetCatalogHandler.java
deleted file mode 100644
index 0bbece9fb42..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/AssetCatalogHandler.java
+++ /dev/null
@@ -1,1500 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.handlers;
-
-import org.apache.commons.collections4.CollectionUtils;
-import org.odpi.openmetadata.accessservices.assetcatalog.converters.AssetCatalogConverter;
-import org.odpi.openmetadata.accessservices.assetcatalog.exception.AssetCatalogErrorCode;
-import org.odpi.openmetadata.accessservices.assetcatalog.exception.AssetCatalogException;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogItemElement;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Connection;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Element;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Elements;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Type;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.body.SearchParameters;
-import org.odpi.openmetadata.accessservices.assetcatalog.service.ClockService;
-import org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler;
-import org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryErrorHandler;
-import org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryHandler;
-import org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.OMRSMetadataCollection;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceGraph;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.PagingErrorException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.PropertyErrorException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.API_ENDPOINT;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.API_ENDPOINT_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ASSET;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ASSET_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ASSET_LOCATION;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ASSET_LOCATION_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ASSET_SCHEMA_TYPE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ASSET_SCHEMA_TYPE_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ATTRIBUTE_FOR_SCHEMA;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ATTRIBUTE_FOR_SCHEMA_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.COMPLEX_SCHEMA_TYPE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.CONNECTION;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.CONNECTION_CONNECTOR_TYPE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.CONNECTION_CONNECTOR_TYPE_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.CONNECTION_ENDPOINT;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.CONNECTION_ENDPOINT_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.CONNECTION_TO_ASSET;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.CONNECTION_TO_ASSET_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DATABASE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DATA_CONTENT_FOR_DATA_SET;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DATA_CONTENT_FOR_DATA_SET_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DATA_FILE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DATA_SET;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DATA_STORE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DEPLOYED_API;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DEPLOYED_VIRTUAL_CONTAINER;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DEPLOYED_VIRTUAL_CONTAINER_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DISPLAY_NAME;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ENDPOINT;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.FILE_FOLDER;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.FOLDER_HIERARCHY;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.FOLDER_HIERARCHY_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.GLOSSARY_TERM;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.GLOSSARY_TERM_TYPE_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.GUID_PARAMETER;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.HOST;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.HOST_CLUSTER;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.HOST_CLUSTER_MEMBER;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.HOST_CLUSTER_MEMBER_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.HOST_LOCATION;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.HOST_LOCATION_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.HOST_NETWORK;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.HOST_NETWORK_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.HOST_OPERATING_PLATFORM;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.HOST_OPERATING_PLATFORM_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.IT_INFRASTRUCTURE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.LOCATION;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.NAME;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.NESTED_FILE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.NESTED_FILE_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.NESTED_SCHEMA_ATTRIBUTE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.NESTED_SCHEMA_ATTRIBUTE_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.NETWORK;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.NETWORK_GATEWAY_LINK;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.NETWORK_GATEWAY_LINK_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.PORT_IMPLEMENTATION;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.PORT_SCHEMA;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.PORT_SCHEMA_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.PROCESS;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.PROCESS_PORT;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.PROCESS_PORT_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.QUALIFIED_NAME;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SCHEMA_ATTRIBUTE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SCHEMA_ATTRIBUTE_TYPE;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SCHEMA_ATTRIBUTE_TYPE_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SCHEMA_ELEMENT;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SCHEMA_ELEMENT_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SEARCH_PARAMETER;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SEARCH_STRING_PARAMETER_NAME;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SEMANTIC_ASSIGNMENT;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SEMANTIC_ASSIGNMENT_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SERVER_ENDPOINT;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SERVER_ENDPOINT_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SOFTWARE_SERVER;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SOFTWARE_SERVER_DEPLOYMENT;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SOFTWARE_SERVER_DEPLOYMENT_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SOFTWARE_SERVER_PLATFORM;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SOFTWARE_SERVER_PLATFORM_DEPLOYMENT;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SOFTWARE_SERVER_PLATFORM_DEPLOYMENT_GUID;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.TYPE_SEQUENCING;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.VIRTUAL_CONTAINER;
-
-/**
- * Asset Catalog Handler supports the lookup of the assets from the repositories.
- * It runs on the server-side of the Asset Catalog OMAS, fetches the entities using the RepositoryHandler.
- */
-public class AssetCatalogHandler {
-
- private static final Logger log = LoggerFactory.getLogger(AssetCatalogHandler.class);
- private static final String THIS_ASSET_IF_A_DIFFERENT_ZONE = "This asset if a different zone: {}";
-
- private final String serverUserName;
- private final String sourceName;
- private final RepositoryHandler repositoryHandler;
- private final OMRSRepositoryHelper repositoryHelper;
- private final InvalidParameterHandler invalidParameterHandler;
- private final RepositoryErrorHandler errorHandler;
- private final CommonHandler commonHandler;
- private final AssetCatalogConverter assetCatalogConverter;
- private final OpenMetadataAPIGenericHandler assetHandler;
- private final Map defaultSearchTypes = new HashMap<>();
- private final ClockService clockService;
- private List supportedTypesForSearch = new ArrayList<>(Arrays.asList(GLOSSARY_TERM, ASSET, SCHEMA_ELEMENT));
-
- private final List supportedZones;
-
- /**
- * Construct the handler information needed to interact with the repository services
- *
- * @param serverUserName name of the local server
- * @param sourceName name of the component
- * @param invalidParameterHandler handler for managing parameter errors
- * @param repositoryHandler manages calls to the repository services
- * @param repositoryHelper provides utilities for manipulating the repository services objects
- * @param assetHandler provides utilities for manipulating asset catalog objects using a generic handler
- * @param assetCatalogConverter asset catalog bean converter
- * @param errorHandler provides common validation routines for the other handler classes
- * @param supportedZones configurable list of zones that Asset Catalog is allowed to serve Assets from
- * @param supportedTypesForSearch configurable list of supported types used for search
- * @param clockService clock service
- */
- public AssetCatalogHandler(String serverUserName, String sourceName, InvalidParameterHandler invalidParameterHandler,
- RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper,
- OpenMetadataAPIGenericHandler assetHandler,
- AssetCatalogConverter assetCatalogConverter,
- RepositoryErrorHandler errorHandler, List supportedZones, List supportedTypesForSearch,
- ClockService clockService) {
- this.serverUserName = serverUserName;
- this.sourceName = sourceName;
- this.invalidParameterHandler = invalidParameterHandler;
- this.repositoryHelper = repositoryHelper;
- this.repositoryHandler = repositoryHandler;
- this.assetHandler = assetHandler;
- this.assetCatalogConverter = assetCatalogConverter;
- this.errorHandler = errorHandler;
- this.supportedZones = supportedZones;
- this.commonHandler = new CommonHandler(sourceName, repositoryHandler, repositoryHelper, assetHandler, errorHandler,
- clockService);
- if (CollectionUtils.isNotEmpty(supportedTypesForSearch)) {
- this.supportedTypesForSearch = supportedTypesForSearch;
- Collections.sort(supportedTypesForSearch);
- }
- this.clockService = clockService;
- defaultSearchTypes.put(GLOSSARY_TERM, GLOSSARY_TERM_TYPE_GUID);
- defaultSearchTypes.put(ASSET, ASSET_GUID);
- defaultSearchTypes.put(SCHEMA_ELEMENT, SCHEMA_ELEMENT_GUID);
- }
-
- /**
- * Return the requested entity and converting to Asset Catalog OMAS model
- *
- * @param userId user identifier that issues the call
- * @param assetGUID the asset identifier
- * @param assetTypeName the asset type name
- * @return AssetCatalogBean that contains the core properties of the entity and additional properties
- * @throws InvalidParameterException is thrown by the OMAS when a parameter is null or an invalid value.
- * @throws PropertyServerException reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connector
- * @throws UserNotAuthorizedException is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.
- */
- public AssetCatalogBean getEntityDetails(String userId, String assetGUID, String assetTypeName)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
-
- String methodName = "getEntityDetails";
- invalidParameterHandler.validateUserId(userId, methodName);
- invalidParameterHandler.validateGUID(assetGUID, GUID_PARAMETER, methodName);
-
- EntityDetail entityByGUID = commonHandler.getEntityByGUID(userId, assetGUID, assetTypeName);
- return assetCatalogConverter.getAssetCatalogBean(entityByGUID);
- }
-
- /**
- * Returns a list of the relationships for the given entity identifier.
- * Relationship type name can be used for filtering.
- *
- * @param userId user identifier that issues the call
- * @param assetGUID the asset identifier
- * @param assetTypeName the asset type name
- * @return a list of Relationships
- * @throws UserNotAuthorizedException is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.
- * @throws PropertyServerException reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connector
- * @throws InvalidParameterException is thrown by the OMAG Service when a parameter is null or an invalid value.
- */
- public List getRelationshipsByEntityGUID(String userId,
- String assetGUID,
- String assetTypeName)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String methodName = "getRelationshipsByEntityGUID";
-
- invalidParameterHandler.validateUserId(userId, methodName);
- invalidParameterHandler.validateGUID(assetGUID, GUID_PARAMETER, methodName);
-
- List relationshipsByType = assetHandler.getAttachmentLinks(userId, assetGUID, GUID_PARAMETER,
- assetTypeName, null, null, null,
- null, 0, false, false, 0,
- invalidParameterHandler.getMaxPagingSize(), clockService.getNow(), methodName);
-
- if (CollectionUtils.isNotEmpty(relationshipsByType)) {
- return assetCatalogConverter.convertRelationships(relationshipsByType);
- }
-
- return Collections.emptyList();
- }
-
- /**
- * Returns a list of the classification assigned to the given asset.
- * The filtering based on the classification name is possible.
- *
- * @param userId user identifier that issues the call
- * @param assetGUID the asset identifier
- * @param assetTypeName the asset type name
- * @param classificationName the classification type name
- * @return a list of Classifications assigned to the given asset
- * @throws InvalidParameterException is thrown by the OMAG Service when a parameter is null or an invalid value.
- * @throws PropertyServerException reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connector
- * @throws UserNotAuthorizedException is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.
- */
- public List getEntityClassificationByName(String userId,
- String assetGUID,
- String assetTypeName,
- String classificationName)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "getEntityClassificationByName";
-
- invalidParameterHandler.validateUserId(userId, methodName);
- invalidParameterHandler.validateGUID(assetGUID, GUID_PARAMETER, methodName);
-
- List entityClassifications = getEntityClassifications(userId, assetGUID, assetTypeName);
-
- if (CollectionUtils.isEmpty(entityClassifications)) {
- return Collections.emptyList();
- }
-
- if (classificationName != null) {
- entityClassifications = filterClassificationByName(entityClassifications, classificationName);
- }
-
- return assetCatalogConverter.convertClassifications(entityClassifications);
- }
-
- /**
- * Returns a certain kind of relationships for a specified asset.
- *
- * @param userId user identifier that issues the call
- * @param assetGUID the asset identifier
- * @param assetTypeName the asset type name
- * @param relationshipTypeName the relationship type name
- * @param from offset
- * @param pageSize limit the number of the assets returned
- * @return the list of relationships for the given asset
- * @throws UserNotAuthorizedException is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.
- * @throws PropertyServerException reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connector
- * @throws InvalidParameterException is thrown by the OMAG Service when a parameter is null or an invalid value.
- */
- public List getRelationships(String userId,
- String assetGUID,
- String assetTypeName,
- String relationshipTypeName,
- Integer from,
- Integer pageSize)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
-
- String methodName = "getRelationships";
- invalidParameterHandler.validateUserId(userId, methodName);
- invalidParameterHandler.validateGUID(assetGUID, GUID_PARAMETER, methodName);
- invalidParameterHandler.validatePaging(from, pageSize, methodName);
-
- String relationshipTypeGUID = commonHandler.getTypeDefGUID(userId, relationshipTypeName);
-
- List pagedRelationshipsByType = assetHandler.getAttachmentLinks(userId, assetGUID, GUID_PARAMETER,
- assetTypeName, relationshipTypeGUID, relationshipTypeName, null, null,0,
- false, false, from, pageSize, clockService.getNow(), methodName);
-
- if (CollectionUtils.isNotEmpty(pagedRelationshipsByType)) {
- return assetCatalogConverter.convertRelationships(pagedRelationshipsByType);
- }
-
- return Collections.emptyList();
- }
-
- /**
- * @param userId user identifier that issues the call
- * @param assetGUID the asset identifier
- * @param searchParameters additional parameters for searching and filtering
- * @param serverName the name of the server
- * @return a list of entities from the neighborhood of the given entity
- * @throws AssetCatalogException is thrown by the Asset Catalog OMAS when the asset passed on a request is not found in the repository
- * @throws InvalidParameterException is thrown by the OMAG Service when a parameter is null or an invalid value.
- * @throws PropertyServerException reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connector
- * @throws UserNotAuthorizedException is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.
- */
- public List getEntitiesFromNeighborhood(String userId, String assetGUID, SearchParameters searchParameters, String serverName)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, AssetCatalogException {
-
- String methodName = "getEntitiesFromNeighborhood";
-
- invalidParameterHandler.validateUserId(userId, methodName);
- invalidParameterHandler.validateGUID(assetGUID, GUID_PARAMETER, methodName);
- invalidParameterHandler.validateObject(searchParameters, SEARCH_PARAMETER, methodName);
- invalidParameterHandler.validatePaging(searchParameters.getFrom(), searchParameters.getPageSize(), methodName);
-
- InstanceGraph entityNeighborhood = getAssetNeighborhood(userId, assetGUID, searchParameters, serverName);
-
- List entities = entityNeighborhood.getEntities();
- if (CollectionUtils.isEmpty(entities)) {
- throw new AssetCatalogException(AssetCatalogErrorCode.NO_ASSET_FROM_NEIGHBORHOOD_NOT_FOUND.getMessageDefinition(assetGUID, serverName),
- this.getClass().getName(),
- methodName);
- }
-
- return getAssetCatalogBeansAfterValidation(methodName, entities);
- }
-
- /**
- * @param userId user identifier that issues the call
- * @param searchCriteria search criteria string used for finding the entities
- * @param searchParameters additional parameters for searching and filtering
- * @return a list of matching criteria entities
- * @throws org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException - is thrown by an OMRS Connector when the supplied UserId
- * is not permitted to perform a specific operation on the metadata collection.
- * @throws FunctionNotSupportedException - provides a checked exception for reporting that an
- * OMRS repository connector does not support the method called
- * @throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException - is thrown by an OMRS Connector when the parameters passed to a repository connector are not valid
- * @throws PropertyErrorException - is thrown by an OMRS Connector when the properties defined for a specific entity
- * or relationship instance do not match the TypeDefs for the metadata collection.
- * @throws TypeErrorException - is thrown by an OMRS Connector when the requested type for an instance is not represented by a known TypeDef.
- * @throws PagingErrorException - is thrown by an OMRS Connector when the caller has passed invalid paging attributes on a search call.
- * @throws InvalidParameterException - is thrown by the OMAG Service when a parameter is null or an invalid value.
- * @throws RepositoryErrorException - there is a problem communicating with the metadata repository.
- * @throws EntityNotKnownException - is thrown when the entity is not found in the repositories
- * @throws PropertyServerException - is thrown when there is a server configuration error
- * @throws UserNotAuthorizedException - is thrown when the user is not authorized to do the search
- */
- public List searchByType(String userId, String searchCriteria, SearchParameters searchParameters)
- throws org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException,
- FunctionNotSupportedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException,
- PropertyErrorException, TypeErrorException, PagingErrorException,
- InvalidParameterException, RepositoryErrorException, EntityNotKnownException, PropertyServerException, UserNotAuthorizedException {
-
- String methodName = "searchByType";
- invalidParameterHandler.validateUserId(userId, methodName);
- invalidParameterHandler.validateSearchString(userId, searchCriteria, methodName);
- invalidParameterHandler.validateObject(searchParameters, SEARCH_PARAMETER, methodName);
- invalidParameterHandler.validatePaging(searchParameters.getFrom(), searchParameters.getPageSize(), methodName);
-
- List result;
- Map typesAndGUIDsFilter;
- if (CollectionUtils.isNotEmpty(searchParameters.getEntityTypes())) {
- typesAndGUIDsFilter = commonHandler.getTypesAndGUIDs(userId, searchParameters.getEntityTypes());
- for( Map.Entry typeAndGUID : typesAndGUIDsFilter.entrySet()) {
- if (typeAndGUID.getValue() == null) {
- ExceptionMessageDefinition messageDefinition = AssetCatalogErrorCode.TYPE_DEF_NOT_FOUND.getMessageDefinition(typeAndGUID.getKey());
- throw new EntityNotKnownException(messageDefinition, this.getClass().getName(), messageDefinition.getUserAction());
- }
- }
- result = collectSearchedEntitiesByType(userId, searchCriteria, searchParameters, typesAndGUIDsFilter, methodName);
- } else {
- result = collectSearchedEntitiesByType(userId, searchCriteria, searchParameters, defaultSearchTypes, methodName);
- }
-
- SequencingOrder sequencingOrder = searchParameters.getSequencingOrder();
- String sequencingProperty = searchParameters.getSequencingProperty();
- List results = createSearchResultList(result, methodName);
- results.sort((firstAsset, secondAsset) ->
- orderElements(firstAsset, secondAsset, sequencingProperty, sequencingOrder));
- return results;
- }
-
- /**
- *
- * @param userId user identifier that issues the call
- * @param typeName the assets type name to search for
- * @return list of assets by type name
- * @throws org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException - is thrown by an OMRS Connector when the supplied UserId
- * is not permitted to perform a specific operation on the metadata collection.
- * @throws FunctionNotSupportedException - provides a checked exception for reporting that an
- * OMRS repository connector does not support the method called
- * @throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException - is thrown by an OMRS Connector when the parameters passed to a repository connector are not valid
- * @throws PropertyErrorException - is thrown by an OMRS Connector when the properties defined for a specific entity
- * @throws TypeErrorException - is thrown by an OMRS Connector when the requested type for an instance is not represented by a known TypeDef.
- * @throws PagingErrorException - is thrown by an OMRS Connector when the caller has passed invalid paging attributes on a search call.
- * @throws InvalidParameterException - is thrown by the OMAG Service when a parameter is null or an invalid value.
- * @throws RepositoryErrorException - there is a problem communicating with the metadata repository.
- * @throws EntityNotKnownException - is thrown when the entity is not found in the repositories
- * @throws PropertyServerException - reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connector
- * @throws UserNotAuthorizedException - is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.
- */
- public List searchByTypeName(String userId, String typeName)
- throws org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException,
- FunctionNotSupportedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException,
- PropertyErrorException, TypeErrorException, PagingErrorException,
- InvalidParameterException, RepositoryErrorException, EntityNotKnownException, PropertyServerException, UserNotAuthorizedException {
-
- String methodName = "searchByTypeName";
- invalidParameterHandler.validateUserId(userId, methodName);
-
- List result;
- if (typeName != null) {
- String typeGUID = commonHandler.getTypeDefGUID(userId, typeName);
- if (typeGUID == null) {
- ExceptionMessageDefinition messageDefinition = AssetCatalogErrorCode.TYPE_DEF_NOT_FOUND.getMessageDefinition(typeName);
- throw new EntityNotKnownException(messageDefinition, this.getClass().getName(), messageDefinition.getUserAction());
- }
- result = collectSearchedEntitiesByTypeIdentifiers(userId, typeName, typeGUID, methodName);
- } else {
- return Collections.emptyList();
- }
-
- return createSearchResultList(result, methodName);
- }
-
- /**
- *
- * @param userId user identifier that issues the call
- * @param typeGUID the assets type GUID to search for
- * @return list of assets by type GUID
- * @throws org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException - is thrown by an OMRS Connector when the supplied UserId
- * is not permitted to perform a specific operation on the metadata collection.
- * @throws FunctionNotSupportedException - provides a checked exception for reporting that an
- * OMRS repository connector does not support the method called
- * @throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException - is thrown by an OMRS Connector when the parameters passed to a repository connector are not valid
- * @throws PropertyErrorException - is thrown by an OMRS Connector when the properties defined for a specific entity
- * @throws TypeErrorException - is thrown by an OMRS Connector when the requested type for an instance is not represented by a known TypeDef.
- * @throws PagingErrorException - is thrown by an OMRS Connector when the caller has passed invalid paging attributes on a search call.
- * @throws InvalidParameterException - is thrown by the OMAG Service when a parameter is null or an invalid value.
- * @throws RepositoryErrorException - there is a problem communicating with the metadata repository.
- * @throws EntityNotKnownException - is thrown when the entity is not found in the repositories
- * @throws PropertyServerException - reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connector
- * @throws UserNotAuthorizedException - is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.
- */
- public List searchByTypeGUID(String userId, String typeGUID)
- throws org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException,
- FunctionNotSupportedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException,
- PropertyErrorException, TypeErrorException, PagingErrorException,
- InvalidParameterException, RepositoryErrorException, EntityNotKnownException, PropertyServerException, UserNotAuthorizedException {
-
- String methodName = "searchByTypeGUID";
- invalidParameterHandler.validateUserId(userId, methodName);
-
- List result;
- if (typeGUID != null) {
- String typeName = repositoryHelper.getTypeDef(userId, "typeName", typeGUID, methodName).getName();
- if (typeName == null) {
- ExceptionMessageDefinition messageDefinition = AssetCatalogErrorCode.TYPE_DEF_NOT_FOUND.getMessageDefinition(typeName);
- throw new EntityNotKnownException(messageDefinition, this.getClass().getName(), messageDefinition.getUserAction());
- }
- result = collectSearchedEntitiesByTypeIdentifiers(userId, typeName, typeGUID, methodName);
- } else {
- return Collections.emptyList();
- }
-
- return createSearchResultList(result, methodName);
- }
-
- /**
- * Returns a list of elements that define the context based on the type of the given asset.
- * @param userId user identifier that issues the call
- * @param entityGUID the identifier of the entity
- * @param entityTypeDefName the type name of the entity
- * @return the context of the given entity
- * @throws UserNotAuthorizedException - is thrown by the OCF when a userId passed on a request is not
- * authorized to perform the requested action.
- * @throws PropertyServerException - provides a checked exception for reporting errors when connecting to a
- * metadata repository to retrieve properties about the connection and/or connector.
- * @throws InvalidParameterException - is thrown by the OMAS when a parameter is null or an invalid value.
- */
- public Elements buildContextByType(String userId,
- String entityGUID,
- String entityTypeDefName)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
-
- String methodName = "buildContextByType";
- invalidParameterHandler.validateUserId(userId, methodName);
-
- EntityDetail entityDetail = getEntity(userId, entityGUID, entityTypeDefName);
-
- if (entityDetail == null || entityDetail.getType() == null || entityDetail.getType().getTypeDefName() == null) {
- return null;
- }
-
- String typeDefName = entityDetail.getType().getTypeDefName();
- Set superTypes = commonHandler.collectSuperTypes(userId, entityDetail.getType().getTypeDefName());
-
- AssetCatalogItemElement assetCatalogItemElement = new AssetCatalogItemElement();
-
- if (typeDefName.equals(GLOSSARY_TERM)) {
- return getContextForGlossaryTerm(userId, entityDetail);
- } else {
- invalidParameterHandler.validateAssetInSupportedZone(entityDetail.getGUID(),
- GUID_PARAMETER,
- commonHandler.getAssetZoneMembership(entityDetail.getClassifications()),
- supportedZones,
- serverUserName,
- methodName);
-
- Elements elements = assetCatalogConverter.buildAssetElements(entityDetail);
- if (superTypes.contains(SCHEMA_ELEMENT)) {
- getContextForSchemaElement(userId, entityDetail, assetCatalogItemElement);
- } else if (superTypes.contains(DEPLOYED_API)) {
- getContextForDeployedAPI(userId, entityDetail, assetCatalogItemElement);
- } else if (superTypes.contains(IT_INFRASTRUCTURE)) {
- getContextForInfrastructure(userId, entityDetail, assetCatalogItemElement);
- } else if (superTypes.contains(PROCESS)) {
- getContextForProcess(userId, entityDetail, assetCatalogItemElement);
- } else if (superTypes.contains(DATA_STORE)) {
- getContextForDataStore(userId, entityDetail, assetCatalogItemElement);
- } else if (superTypes.contains(DATA_SET)) {
- getContextForDataSet(userId, entityDetail, assetCatalogItemElement);
- }
-
- elements.setAssetCatalogItemElements(Collections.singletonList(assetCatalogItemElement));
- return elements;
- }
- }
-
- /**
- * Returns supported types for search with all sub-types.
- * If type name is provided, it returns the type itself and the list of sub-types for it
- *
- * @param userId user identifier that issues the call
- * @param typeName optional type name
- * @return a list of types
- */
- public List getSupportedTypes(String userId, String typeName) {
- if (typeName != null && !typeName.isEmpty()) {
- return getSupportedTypesWithDescendants(userId, typeName);
- }
-
- return getSupportedTypes(userId, supportedTypesForSearch.toArray(new String[0]));
- }
-
- private ArrayList createSearchResultList(List result, String methodName) {
- Set searchResults = new HashSet<>();
-
- for (EntityDetail entityDetail : result) {
- try {
- invalidParameterHandler.validateAssetInSupportedZone(entityDetail.getGUID(),
- GUID_PARAMETER,
- commonHandler.getAssetZoneMembership(entityDetail.getClassifications()),
- supportedZones,
- serverUserName,
- methodName);
- Elements elements = assetCatalogConverter.buildAssetElements(entityDetail);
- searchResults.add(elements);
- } catch (InvalidParameterException e) {
- log.debug(THIS_ASSET_IF_A_DIFFERENT_ZONE, entityDetail.getGUID());
- }
- }
- return new ArrayList<>(searchResults);
- }
-
- private List getAssetCatalogBeansAfterValidation(String methodName,
- List entities) throws InvalidParameterException {
- List result = new ArrayList<>();
-
- for (EntityDetail asset : entities) {
-
- invalidParameterHandler.validateAssetInSupportedZone(asset.getGUID(),
- GUID_PARAMETER,
- commonHandler.getAssetZoneMembership(asset.getClassifications()),
- supportedZones,
- serverUserName,
- methodName);
-
- result.add(assetCatalogConverter.getAssetCatalogBean(asset));
- }
- return result;
- }
-
- private EntityDetail getEntity(String userId,
- String assetGUID,
- String assetTypeName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "getEntity";
-
- invalidParameterHandler.validateUserId(userId, methodName);
- invalidParameterHandler.validateGUID(assetGUID, GUID_PARAMETER, methodName);
-
- EntityDetail entityByGUID = commonHandler.getEntityByGUID(userId, assetGUID, assetTypeName);
- if (entityByGUID != null) {
- invalidParameterHandler.validateAssetInSupportedZone(entityByGUID.getGUID(),
- GUID_PARAMETER,
- commonHandler.getAssetZoneMembership(entityByGUID.getClassifications()),
- supportedZones,
- serverUserName,
- methodName);
- }
-
- return entityByGUID;
- }
-
- private List collectSearchedEntitiesByType(String userId,
- String searchCriteria,
- SearchParameters searchParameters,
- Map typesAndGUIDs,
- String methodName)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- List result = new ArrayList<>();
-
- if(!searchParameters.getExactMatch()) {
- searchCriteria = repositoryHelper.getContainsRegex(searchCriteria, searchParameters.getCaseInsensitive());
- }
-
- for (Map.Entry typeAndGUID : typesAndGUIDs.entrySet()) {
- result.addAll(searchEntityByCriteria(userId, searchCriteria, typeAndGUID.getValue(), typeAndGUID.getKey(),
- searchParameters, methodName));
- }
- return result;
- }
-
- private List collectSearchedEntitiesByTypeIdentifiers(String userId,
- String typeName,
- String typeGUID,
- String methodName)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- List result = new ArrayList<>();
-
- result.addAll(searchEntityByType(userId, typeGUID, typeName, methodName));
- return result;
- }
-
- private void getContextForSchemaElement(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- findAsset(userId, assetCatalogItemElement, entityDetail);
- }
-
- private Elements getContextForGlossaryTerm(String userId,
- EntityDetail glossaryTerm)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForGlossaryTerm";
-
- if (glossaryTerm == null) {
- return null;
- }
- Elements elements = assetCatalogConverter.buildAssetElements(glossaryTerm);
-
- List schemas = assetHandler.getAttachedFilteredEntities(userId, glossaryTerm.getGUID(),
- GUID_PARAMETER, GLOSSARY_TERM, SEMANTIC_ASSIGNMENT, SEMANTIC_ASSIGNMENT_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
- if (CollectionUtils.isEmpty(schemas)) {
- return elements;
- }
-
- List assets = new ArrayList<>(schemas.size());
-
- for (EntityDetail schema : schemas) {
- AssetCatalogItemElement assetCatalogItemElement = addSchemaForGlossaryTerm(userId, schema);
- assets.add(assetCatalogItemElement);
- }
- elements.setAssetCatalogItemElements(assets);
- return elements;
- }
-
- private AssetCatalogItemElement addSchemaForGlossaryTerm(String userId, EntityDetail schema)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- AssetCatalogItemElement assetCatalogItemElement = new AssetCatalogItemElement();
- List elements = new ArrayList<>();
- elements.add(assetCatalogConverter.buildAssetElements(schema));
- assetCatalogItemElement.setContext(elements);
-
- findAsset(userId, assetCatalogItemElement, schema);
-
- return assetCatalogItemElement;
- }
-
- private void getContextForDeployedAPI(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForDeployedAPI";
-
- List endpoints = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, DEPLOYED_API, API_ENDPOINT, API_ENDPOINT_GUID,
- 0, null, null, 0, false,
- false, 0, method);
- if (CollectionUtils.isEmpty(endpoints)) {
- return;
- }
-
- for (EntityDetail endpoint : endpoints) {
- assetCatalogConverter.addContextElement(assetCatalogItemElement, endpoint);
- getConnectionContext(userId, endpoint, assetCatalogItemElement);
- }
-
- }
-
- private void getContextForInfrastructure(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- switch (entityDetail.getType().getTypeDefName()) {
- case HOST:
- getContextForHost(userId, entityDetail, assetCatalogItemElement);
- break;
- case NETWORK:
- getContextForNetwork(userId, entityDetail, assetCatalogItemElement);
- break;
- case SOFTWARE_SERVER_PLATFORM:
- getContextForSoftwareServerPlatform(userId, entityDetail, assetCatalogItemElement);
- break;
- case SOFTWARE_SERVER:
- getContextForSoftwareServer(userId, entityDetail, assetCatalogItemElement);
- break;
- default:
- break;
- }
-
- }
-
- private void getContextForProcess(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForProcess";
-
- List ports = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, PROCESS, PROCESS_PORT, PROCESS_PORT_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
- if (CollectionUtils.isNotEmpty(ports)) {
- for (EntityDetail port : ports) {
- assetCatalogConverter.addContextElement(assetCatalogItemElement, port);
- if (port.getType().getTypeDefName().equals(PORT_IMPLEMENTATION)) {
- EntityDetail schemaType = assetHandler.getAttachedEntity(userId, port.getGUID(), GUID_PARAMETER,
- DATABASE, PORT_SCHEMA_GUID, PORT_SCHEMA, null, false,
- false, clockService.getNow(), method);
-
- if (schemaType != null) {
- assetCatalogConverter.addElement(assetCatalogItemElement, schemaType);
- getContextForSchemaType(userId, assetCatalogItemElement, schemaType);
- }
- }
- }
- }
-
- }
-
- private void getContextForDataStore(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
-
- if (entityDetail.getType().getTypeDefName().equals(DATABASE)) {
- getContextForDatabase(userId, entityDetail, assetCatalogItemElement);
- } else {
- if (entityDetail.getType().getTypeDefName().equals(DATA_FILE)) {
- getContextForDataFile(userId, entityDetail, assetCatalogItemElement);
- } else if (entityDetail.getType().getTypeDefName().equals(FILE_FOLDER)) {
- getContextForFileFolder(userId, entityDetail, assetCatalogItemElement);
- }
- }
- }
-
- private void getContextForDatabase(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForDatabase";
-
- List dataSets = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, DATABASE, DATA_CONTENT_FOR_DATA_SET, DATA_CONTENT_FOR_DATA_SET_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
- if (dataSets != null && !dataSets.isEmpty()) {
- for (EntityDetail dataSet : dataSets) {
- getContextForDataSet(userId, dataSet, assetCatalogItemElement);
- }
- }
- }
-
- private void getContextForDataSet(String userId,
- EntityDetail dataSet,
- AssetCatalogItemElement assetCatalogItemElement) throws
- UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForDataSet";
-
- EntityDetail schemaType = assetHandler.getAttachedEntity(userId, dataSet.getGUID(), GUID_PARAMETER,
- DATA_SET, ASSET_SCHEMA_TYPE_GUID, ASSET_SCHEMA_TYPE, null, false,
- false, clockService.getNow(), method);
-
- if (schemaType == null) {
- return;
- }
- assetCatalogConverter.addElement(assetCatalogItemElement, schemaType);
-
- if (isComplexSchemaType(schemaType.getType().getTypeDefName()).isPresent()) {
- getContextForSchemaType(userId, assetCatalogItemElement, schemaType);
- } else {
- getAsset(userId, assetCatalogItemElement, schemaType);
- }
- }
-
- private void getContextForFileFolder(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForFileFolder";
-
- List connections = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, FILE_FOLDER, CONNECTION_TO_ASSET, CONNECTION_TO_ASSET_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
-
- if (CollectionUtils.isNotEmpty(connections)) {
- setConnections(userId, assetCatalogItemElement, entityDetail);
- return;
- }
-
-
- List parentFolderRelationships = assetHandler.getAttachmentLinks(userId, entityDetail.getGUID(),
- GUID_PARAMETER, entityDetail.getType().getTypeDefName(), FOLDER_HIERARCHY_GUID,
- FOLDER_HIERARCHY, null, null,0, false, false,
- 0, invalidParameterHandler.getMaxPagingSize(), clockService.getNow(), method);
-
- if (CollectionUtils.isEmpty(parentFolderRelationships)) {
- return;
- }
-
- parentFolderRelationships = parentFolderRelationships.stream()
- .filter(s -> s.getEntityTwoProxy().getGUID().equals(entityDetail.getGUID()))
- .collect(Collectors.toList());
- if (parentFolderRelationships.size() != 1) {
- return;
- }
-
- EntityProxy parentFolderProxy = repositoryHandler.getOtherEnd(entityDetail.getGUID(), parentFolderRelationships.get(0));
-
- EntityDetail parentFolder = commonHandler.getEntityByGUID(userId,
- parentFolderProxy.getGUID(),
- parentFolderProxy.getType().getTypeDefName());
-
- assetCatalogConverter.addElement(assetCatalogItemElement, parentFolder);
- getContextForFileFolder(userId, parentFolder, assetCatalogItemElement);
- }
-
- private void getContextForEachParentFolder(String userId,
- AssetCatalogItemElement assetCatalogItemElement,
- List parentFolders)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- for (EntityDetail folder : parentFolders) {
- assetCatalogConverter.addElement(assetCatalogItemElement, folder);
- getContextForFileFolder(userId, folder, assetCatalogItemElement);
- }
- }
-
- private void getContextForDataFile(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForDataFile";
-
- List fileFolders = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, DATA_FILE, NESTED_FILE, NESTED_FILE_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
- if (CollectionUtils.isEmpty(fileFolders)) {
- return;
- }
-
- getContextForEachParentFolder(userId, assetCatalogItemElement, fileFolders);
- }
-
- private void getContextForSoftwareServerPlatform(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForSoftwareServerPlatform";
-
- EntityDetail host = assetHandler.getAttachedEntity(userId, entityDetail.getGUID(), GUID_PARAMETER,
- entityDetail.getType().getTypeDefName(), SOFTWARE_SERVER_PLATFORM_DEPLOYMENT_GUID,
- SOFTWARE_SERVER_PLATFORM_DEPLOYMENT, null, false, false,
- clockService.getNow(), method);
- if (host != null) {
- assetCatalogConverter.addElement(assetCatalogItemElement, host);
- getContextForHost(userId, host, assetCatalogItemElement);
- }
- }
-
- private void getContextForNetwork(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForNetwork";
-
- List networkGateways = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, NETWORK, NETWORK_GATEWAY_LINK, NETWORK_GATEWAY_LINK_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
- networkGateways.forEach(networkGateway -> assetCatalogConverter.addElement(assetCatalogItemElement, networkGateway));
-
- List hosts = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, NETWORK, HOST_NETWORK, HOST_NETWORK_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
- if (CollectionUtils.isNotEmpty(hosts)) {
- for (EntityDetail host : hosts) {
- assetCatalogConverter.addElement(assetCatalogItemElement, host);
- getContextForHost(userId, host, assetCatalogItemElement);
- }
- }
- }
-
- private void getContextForHost(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForHost";
- List hosts = null;
- if (entityDetail.getType().getTypeDefName().equals(VIRTUAL_CONTAINER)) {
- hosts = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, HOST, DEPLOYED_VIRTUAL_CONTAINER, DEPLOYED_VIRTUAL_CONTAINER_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
- } else if (entityDetail.getType().getTypeDefName().equals(HOST_CLUSTER)) {
- hosts = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, HOST, HOST_CLUSTER_MEMBER, HOST_CLUSTER_MEMBER_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
- }
- if (hosts != null) {
- hosts.forEach(host -> assetCatalogConverter.addElement(assetCatalogItemElement, host));
- }
-
- EntityDetail operatingPlatform = assetHandler.getAttachedEntity(userId, entityDetail.getGUID(), GUID_PARAMETER,
- entityDetail.getType().getTypeDefName(), HOST_OPERATING_PLATFORM_GUID, HOST_OPERATING_PLATFORM,
- null, false, false, clockService.getNow(), method);
- assetCatalogConverter.addElement(assetCatalogItemElement, operatingPlatform);
-
- processLocations(userId, entityDetail, assetCatalogItemElement, method);
- }
-
- private void processLocations(String userId, EntityDetail entityDetail, AssetCatalogItemElement assetCatalogItemElement,
- String method) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- List locations = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, HOST, HOST_LOCATION, HOST_LOCATION_GUID, 0,
- null, null, 0, false, false,
- 0, method);
- if (CollectionUtils.isNotEmpty(locations)) {
- for (EntityDetail location : locations) {
- assetCatalogConverter.addElement(assetCatalogItemElement, location);
- getContextForLocation(userId, assetCatalogItemElement, location);
- }
- }
- }
-
- private void getContextForLocation(String userId,
- AssetCatalogItemElement assetCatalogItemElement,
- EntityDetail location)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForLocation";
-
- List assetLocations = assetHandler.getAttachedFilteredEntities(userId, location.getGUID(),
- GUID_PARAMETER, LOCATION, ASSET_LOCATION, ASSET_LOCATION_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
- if (CollectionUtils.isNotEmpty(assetLocations)) {
- for (EntityDetail assetLocation : assetLocations) {
- assetCatalogConverter.addElement(assetCatalogItemElement, assetLocation);
- getAsset(userId, assetCatalogItemElement, assetLocation);
- }
- }
-
- processLocations(userId, location, assetCatalogItemElement, method);
- }
-
- private void getContextForSoftwareServer(String userId,
- EntityDetail entityDetail,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String method = "getContextForSoftwareServer";
- Element parentElement = null;
-
- EntityDetail softwareServerPlatform = assetHandler.getAttachedEntity(userId, entityDetail.getGUID(),
- GUID_PARAMETER, SOFTWARE_SERVER, SOFTWARE_SERVER_DEPLOYMENT_GUID, SOFTWARE_SERVER_DEPLOYMENT,
- null, false, false, clockService.getNow(), method);
- if (softwareServerPlatform != null) {
- parentElement = assetCatalogConverter.getLastNode(assetCatalogItemElement);
- assetCatalogConverter.addElement(assetCatalogItemElement, softwareServerPlatform);
- getContextForSoftwareServerPlatform(userId, softwareServerPlatform, assetCatalogItemElement);
- }
-
- EntityDetail endpoint = assetHandler.getAttachedEntity(userId, entityDetail.getGUID(),
- GUID_PARAMETER, SOFTWARE_SERVER, SERVER_ENDPOINT_GUID, SERVER_ENDPOINT,
- null, false, false, clockService.getNow(), method);
- if (endpoint != null) {
- if (parentElement != null) {
- assetCatalogConverter.addChildElement(parentElement, assetCatalogConverter.buildAssetElements(endpoint));
- } else {
- assetCatalogConverter.addContextElement(assetCatalogItemElement, endpoint);
- }
- getConnectionContext(userId, endpoint, assetCatalogItemElement);
- }
-
- }
-
- private void getConnectionContext(String userId,
- EntityDetail endpoint,
- AssetCatalogItemElement assetCatalogItemElement)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String methodName = "getConnectionContext";
-
- List connections = assetHandler.getAttachedFilteredEntities(userId, endpoint.getGUID(),
- GUID_PARAMETER, ENDPOINT, CONNECTION_ENDPOINT, CONNECTION_ENDPOINT_GUID,
- 0, null, null, 0, false,
- false, 0, methodName);
- if (CollectionUtils.isEmpty(connections)) {
- return;
- }
-
- for (EntityDetail connection : connections) {
- assetCatalogConverter.addElement(assetCatalogItemElement, connection);
-
- List elements = new ArrayList<>();
- EntityDetail connectorType = assetHandler.getAttachedEntity(userId, connection.getGUID(),
- GUID_PARAMETER, CONNECTION, CONNECTION_CONNECTOR_TYPE_GUID, CONNECTION_CONNECTOR_TYPE,
- null, false, false, clockService.getNow(), methodName);
- if (connectorType != null) {
- elements.add(connectorType);
- }
-
- EntityDetail asset = assetHandler.getAttachedEntity(userId, connection.getGUID(),
- GUID_PARAMETER, CONNECTION, CONNECTION_TO_ASSET_GUID, CONNECTION_TO_ASSET,
- null, false, false, clockService.getNow(), methodName);
- invalidParameterHandler.validateAssetInSupportedZone(asset.getGUID(),
- GUID_PARAMETER,
- commonHandler.getAssetZoneMembership(asset.getClassifications()),
- supportedZones,
- serverUserName,
- methodName);
- elements.add(asset);
- elements.forEach(element -> assetCatalogConverter.addElement(assetCatalogItemElement, element));
- }
- }
-
- private void findAsset(String userId,
- AssetCatalogItemElement assetCatalogItemElement, EntityDetail... entitiesByType)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
-
- String method = "findAsset";
- for (EntityDetail entityDetail : entitiesByType) {
- List schemaAttributes = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, SCHEMA_ATTRIBUTE, ATTRIBUTE_FOR_SCHEMA, ATTRIBUTE_FOR_SCHEMA_GUID,
- 0, null, null, 0, false,
- false, 0, method);
-
- if (CollectionUtils.isEmpty(schemaAttributes)) {
- schemaAttributes = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, SCHEMA_ATTRIBUTE, NESTED_SCHEMA_ATTRIBUTE, NESTED_SCHEMA_ATTRIBUTE_GUID,
- 0, null, null, 0, false,
- false, 0, method);
- if (CollectionUtils.isEmpty(schemaAttributes)) {
- continue;
- }
- }
-
- addSchemaAttributes(assetCatalogItemElement, schemaAttributes);
-
- for (EntityDetail schemaAttribute : schemaAttributes) {
- if (processSchemaAttribute(userId, assetCatalogItemElement, method, schemaAttribute)) return;
- }
- }
- }
-
- private boolean processSchemaAttribute(String userId, AssetCatalogItemElement assetCatalogItemElement, String method, EntityDetail schemaAttribute)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- if (isComplexSchemaType(schemaAttribute.getType().getTypeDefName()).isPresent()) {
- setAssetDetails(userId, assetCatalogItemElement, schemaAttribute);
- return true;
- } else {
- processPrimitiveSchema(userId, assetCatalogItemElement, method, schemaAttribute);
- }
- return false;
- }
-
- private void processPrimitiveSchema(String userId, AssetCatalogItemElement assetCatalogItemElement, String method, EntityDetail schemaAttribute)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- List schemaAttributeTypeEntities = assetHandler.getAttachedFilteredEntities(userId, schemaAttribute.getGUID(),
- GUID_PARAMETER, schemaAttribute.getType().getTypeDefName(), SCHEMA_ATTRIBUTE_TYPE,
- SCHEMA_ATTRIBUTE_TYPE_GUID, 0, null, null, 0,
- false, false, 0, method);
-
- if (CollectionUtils.isNotEmpty(schemaAttributeTypeEntities)) {
- schemaAttributeTypeEntities.forEach(schemaAttributeTypeEntity -> assetCatalogConverter.addElement(assetCatalogItemElement, schemaAttributeTypeEntity));
- findAsset(userId, assetCatalogItemElement, schemaAttributeTypeEntities.toArray(new EntityDetail[0]));
- } else {
- findAsset(userId, assetCatalogItemElement, schemaAttribute);
- }
- }
-
- private void addSchemaAttributes(AssetCatalogItemElement assetCatalogItemElement, List schemaAttributes) {
- Element lastNode = assetCatalogConverter.getLastNode(assetCatalogItemElement);
- schemaAttributes.forEach(schemaAttribute -> addNode(assetCatalogItemElement, lastNode, schemaAttribute));
- }
-
- private void addNode(AssetCatalogItemElement assetCatalogItemElement, Element lastNode, EntityDetail schemaAttribute) {
- if (lastNode == null) {
- assetCatalogConverter.addContextElement(assetCatalogItemElement, schemaAttribute);
- }
- assetCatalogConverter.addElement(assetCatalogItemElement, schemaAttribute);
- }
-
- private void getContextForSchemaType(String userId,
- AssetCatalogItemElement assetCatalogItemElement,
- EntityDetail entityDetail)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- Optional isComplexSchemaType = isComplexSchemaType(entityDetail.getType().getTypeDefName());
- String method = "getContextForSchemaType";
-
- if (isComplexSchemaType.isPresent()) {
- setAssetDetails(userId, assetCatalogItemElement, entityDetail);
- } else {
- List attributeForSchemas = assetHandler.getAttachedFilteredEntities(userId, entityDetail.getGUID(),
- GUID_PARAMETER, entityDetail.getType().getTypeDefName(), ATTRIBUTE_FOR_SCHEMA,
- ATTRIBUTE_FOR_SCHEMA_GUID, 0, null, null, 0,
- false, false, 0, method);
- if (CollectionUtils.isEmpty(attributeForSchemas)) {
- return;
- }
-
- for (EntityDetail attributeForSchema : attributeForSchemas) {
- assetCatalogConverter.addElement(assetCatalogItemElement, attributeForSchema);
-
- if (isComplexSchemaType(attributeForSchema.getType().getTypeDefName()).isPresent()) {
- setAssetDetails(userId, assetCatalogItemElement, attributeForSchema);
- return;
- } else {
- List schemaAttributeTypeEntities = assetHandler.getAttachedFilteredEntities(userId,
- attributeForSchema.getGUID(), GUID_PARAMETER, attributeForSchema.getType().getTypeDefName(),
- SCHEMA_ATTRIBUTE_TYPE, SCHEMA_ATTRIBUTE_TYPE_GUID, 0, null,
- null, 0, false, false, 0, method);
-
- for (EntityDetail schema : schemaAttributeTypeEntities) {
- assetCatalogConverter.addElement(assetCatalogItemElement, schema);
- getContextForSchemaType(userId, assetCatalogItemElement, schema);
- }
- }
- }
- }
- }
-
- private void setAssetDetails(String userId,
- AssetCatalogItemElement assetCatalogItemElement,
- EntityDetail entity)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "setAssetDetails";
-
- EntityDetail dataSet = assetHandler.getAttachedEntity(userId, entity.getGUID(),
- GUID_PARAMETER, entity.getType().getTypeDefName(), ASSET_SCHEMA_TYPE_GUID, ASSET_SCHEMA_TYPE,
- null, false, false, clockService.getNow(), methodName);
- if (dataSet == null) {
- return;
- }
-
- try {
- invalidParameterHandler.validateAssetInSupportedZone(dataSet.getGUID(),
- GUID_PARAMETER,
- commonHandler.getAssetZoneMembership(dataSet.getClassifications()),
- supportedZones,
- serverUserName,
- methodName);
-
- if (assetCatalogItemElement.getContext() != null) {
- assetCatalogConverter.addElement(assetCatalogItemElement, dataSet);
- } else {
- assetCatalogItemElement.setContext(Collections.singletonList(assetCatalogConverter.buildAssetElements(dataSet)));
- }
-
- getAsset(userId, assetCatalogItemElement, dataSet);
- } catch (InvalidParameterException e) {
- if (CollectionUtils.isNotEmpty(assetCatalogItemElement.getContext())) {
- assetCatalogItemElement.getContext().remove(assetCatalogItemElement.getContext().size() - 1);
- }
- log.debug("Asset is not in the supported zones {}", dataSet.getGUID());
- }
- }
-
- private void getAsset(String userId,
- AssetCatalogItemElement assetCatalogItemElement,
- EntityDetail dataSet)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- if (dataSet == null) return;
-
- String methodName = "getAsset";
- List assetToDataSetRelationships = assetHandler.getAttachmentLinks(userId, dataSet.getGUID(),
- GUID_PARAMETER, dataSet.getType().getTypeDefName(), DATA_CONTENT_FOR_DATA_SET_GUID,
- DATA_CONTENT_FOR_DATA_SET, null, null, 1, false,
- false,0, invalidParameterHandler.getMaxPagingSize(), clockService.getNow(), methodName);
-
- if (CollectionUtils.isEmpty(assetToDataSetRelationships)) {
- return;
- }
-
- for (Relationship assetToDataSetRelationship : assetToDataSetRelationships) {
- EntityProxy entityOneProxy = assetToDataSetRelationship.getEntityOneProxy();
-
-
- if (entityOneProxy.getGUID().equals(dataSet.getGUID())) {
- setConnections(userId, assetCatalogItemElement, dataSet);
- } else {
- EntityDetail asset = commonHandler.getEntityByGUID(userId,
- entityOneProxy.getGUID(),
- entityOneProxy.getType().getTypeDefName());
-
- if (asset != null) {
- invalidParameterHandler.validateAssetInSupportedZone(asset.getGUID(),
- GUID_PARAMETER,
- commonHandler.getAssetZoneMembership(asset.getClassifications()),
- supportedZones,
- serverUserName,
- methodName);
- assetCatalogConverter.addElement(assetCatalogItemElement, asset);
- setConnections(userId, assetCatalogItemElement, asset);
- }
- }
- }
- }
-
- private void setConnections(String userId,
- AssetCatalogItemElement assetCatalogItemElement,
- EntityDetail asset)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- List connections = getConnections(userId, asset.getGUID());
- assetCatalogItemElement.setConnections(connections);
- }
-
- private Optional isComplexSchemaType(String typeDefName) {
- if (repositoryHelper.getKnownTypeDefGallery() == null
- || CollectionUtils.isEmpty(repositoryHelper.getKnownTypeDefGallery().getTypeDefs())) {
- return Optional.empty();
- }
-
- List allTypes = repositoryHelper.getKnownTypeDefGallery().getTypeDefs();
- return allTypes.stream().filter(t -> t.getName().equals(typeDefName) && t.getSuperType().getName().equals(COMPLEX_SCHEMA_TYPE)).findAny();
- }
-
- private List getConnections(String userId, String dataSetGuid)
- throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String methodName = "getConnections";
- List connections = assetHandler.getAttachedFilteredEntities(userId,
- dataSetGuid, GUID_PARAMETER, CONNECTION,
- CONNECTION_TO_ASSET, CONNECTION_TO_ASSET_GUID, 0, null,
- null, 0, false, false, 0, methodName);
- if (CollectionUtils.isNotEmpty(connections)) {
- List connectionList = new ArrayList<>();
-
- for (EntityDetail entityDetail : connections) {
- Connection connection = new Connection(
- entityDetail.getGUID(),
- repositoryHelper.getStringProperty(sourceName, QUALIFIED_NAME, entityDetail.getProperties(), methodName));
-
- connectionList.add(connection);
- }
- return connectionList;
- }
-
- return Collections.emptyList();
- }
-
- private List getEntityClassifications(String userId, String assetId, String assetTypeName) throws
- InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "getEntityClassifications";
-
- EntityDetail entityDetails = commonHandler.getEntityByGUID(userId, assetId, assetTypeName);
-
- invalidParameterHandler.validateAssetInSupportedZone(entityDetails.getGUID(),
- GUID_PARAMETER,
- commonHandler.getAssetZoneMembership(entityDetails.getClassifications()),
- supportedZones,
- userId,
- methodName);
-
- return entityDetails.getClassifications();
- }
-
- private List searchEntityByCriteria(String userId,
- String searchCriteria,
- String entityTypeGUID,
- String entityTypeName,
- SearchParameters searchParameters,
- String methodName)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
-
- String propertyName = NAME;
- if (commonHandler.hasDisplayName(userId, entityTypeGUID)) {
- propertyName = DISPLAY_NAME;
- }
-
- SequencingOrder sequencingOrder = searchParameters.getSequencingOrder() == null ? SequencingOrder.ANY : searchParameters.getSequencingOrder();
- List entitiesByPropertyValue = assetHandler.getEntitiesByValue(userId, searchCriteria,
- SEARCH_STRING_PARAMETER_NAME, entityTypeGUID, entityTypeName, Collections.singletonList(propertyName),
- searchParameters.getExactMatch(), searchParameters.getCaseInsensitive(),null, null, false,
- false, supportedZones, sequencingOrder.getName(),searchParameters.getFrom(),
- searchParameters.getPageSize(), clockService.getNow(), methodName);
-
- if (CollectionUtils.isNotEmpty(entitiesByPropertyValue)) {
- return entitiesByPropertyValue;
- }
- return new ArrayList<>();
- }
-
- private List searchEntityByType(String userId,
- String entityTypeGUID,
- String entityTypeName,
- String methodName)
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
-
- List entitiesByPropertyValue = assetHandler.getEntitiesByType(userId, entityTypeGUID,
- entityTypeName, null,false,false, 0,
- 20, clockService.getNow(), methodName);
-
- if (CollectionUtils.isNotEmpty(entitiesByPropertyValue)) {
- return entitiesByPropertyValue;
- }
- return new ArrayList<>();
- }
-
- private List filterClassificationByName(List classifications, String classificationName) {
- return classifications.stream().filter(classification -> classification.getName().equals(classificationName)).collect(Collectors.toList());
- }
-
- private InstanceGraph getAssetNeighborhood(String userId, String entityGUID, SearchParameters searchParameters, String serverName)
- throws AssetCatalogException, PropertyServerException, InvalidParameterException, UserNotAuthorizedException {
- OMRSMetadataCollection metadataCollection = commonHandler.getOMRSMetadataCollection();
-
- InstanceGraph entityNeighborhood = null;
- String methodName = "getAssetNeighborhood";
- try {
- entityNeighborhood = metadataCollection.getEntityNeighborhood(
- userId,
- entityGUID,
- commonHandler.getTypesGUID(userId, searchParameters.getEntityTypes()),
- searchParameters.getRelationshipTypeGUIDs(),
- Collections.singletonList(InstanceStatus.ACTIVE),
- searchParameters.getLimitResultsByClassification(),
- null,
- searchParameters.getLevel());
- } catch (org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException
- | TypeErrorException
- | FunctionNotSupportedException
- | PropertyErrorException | RepositoryErrorException e) {
- errorHandler.handleRepositoryError(e, methodName);
- } catch (EntityNotKnownException e) {
- errorHandler.handleUnknownEntity(e, entityGUID, searchParameters.getEntityTypes().get(0), methodName, GUID_PARAMETER);
- } catch (org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException e) {
- errorHandler.handleUnauthorizedUser(userId, methodName);
- }
-
- if (entityNeighborhood == null) {
- throw new AssetCatalogException(AssetCatalogErrorCode.ASSET_NEIGHBORHOOD_NOT_FOUND.getMessageDefinition(entityGUID, serverName),
- this.getClass().getName(),
- methodName);
- }
-
- return entityNeighborhood;
- }
-
- /**
- *
- * @param userId user identifier that issues the call
- * @param supportedTypesForSearch the list of types
- * @return a list of types and all of sub-types recursive
- */
- private List getSupportedTypesWithDescendants(String userId, String... supportedTypesForSearch) {
- List response = new ArrayList<>();
- for (String type : supportedTypesForSearch) {
- List typeContext = commonHandler.getTypeContext(userId, type);
- response.addAll(typeContext);
- }
- return response;
- }
-
- /**
- *
- * @param userId user identifier that issues the call
- * @param supportedTypesForSearch the list of types
- * @return the list of types by names
- */
- private List getSupportedTypes(String userId, String... supportedTypesForSearch) {
- List response = new ArrayList<>();
- for (String typeName : supportedTypesForSearch) {
- Type type = commonHandler.getTypeByTypeDefName(userId, typeName);
- if(type != null) {
- response.add(type);
- }
- }
- return response;
- }
-
- private int orderElements(Elements firstAsset, Elements secondAsset, String sequencingProperty, SequencingOrder sequencingOrder) {
- String firstField;
- String secondField;
- if (TYPE_SEQUENCING.equals(sequencingProperty)) {
- if (firstAsset.getType() == null || secondAsset.getType() == null) {
- return 0;
- }
- firstField = firstAsset.getType().getName();
- secondField = secondAsset.getType().getName();
- } else {
- if (firstAsset.getProperties() == null || secondAsset.getProperties() == null) {
- return 0;
- }
- firstField = firstAsset.getProperties().get(sequencingProperty);
- secondField = secondAsset.getProperties().get(sequencingProperty);
- if (DISPLAY_NAME.equals(sequencingProperty)) {
- if (firstField == null) {
- firstField = firstAsset.getProperties().get(NAME);
- }
- if (secondField == null) {
- secondField = secondAsset.getProperties().get(NAME);
- }
- }
- }
-
- return compareFields(firstField, secondField, sequencingOrder);
-
-
- }
-
- private int compareFields(String firstComparedProperty, String secondComparedProperty, SequencingOrder sequencingOrder) {
- if (firstComparedProperty != null && secondComparedProperty != null) {
- if (sequencingOrder == SequencingOrder.PROPERTY_ASCENDING) {
- return firstComparedProperty.toLowerCase().compareTo(secondComparedProperty.toLowerCase());
- } else if (sequencingOrder == SequencingOrder.PROPERTY_DESCENDING) {
- return secondComparedProperty.toLowerCase().compareTo(firstComparedProperty.toLowerCase());
- }
- }
- if (firstComparedProperty == null && secondComparedProperty != null) {
- return 1;
- }
- if (firstComparedProperty != null && secondComparedProperty == null) {
- return -1;
- }
- return 0;
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/CommonHandler.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/CommonHandler.java
deleted file mode 100644
index 486701674c3..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/CommonHandler.java
+++ /dev/null
@@ -1,316 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.handlers;
-
-import org.apache.commons.collections4.CollectionUtils;
-import org.odpi.openmetadata.accessservices.assetcatalog.converters.AssetCatalogConverter;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Type;
-import org.odpi.openmetadata.accessservices.assetcatalog.service.ClockService;
-import org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler;
-import org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryErrorHandler;
-import org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryHandler;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.OMRSMetadataCollection;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefAttribute;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefAttributeStatus;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefLink;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-import java.util.Optional;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.ASSET_ZONE_MEMBERSHIP;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.DISPLAY_NAME;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.GUID_PARAMETER;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.REFERENCEABLE;
-
-/**
- * Common Handler supports the lookup types and metadata collection.
- * These methods are used in the multiple handlers.
- * It runs on the server-side of the Asset Catalog OMAS, fetches the types, metadata collection using the RepositoryHandler.
- */
-public class CommonHandler {
-
- private static final String ZONE_MEMBERSHIP = "zoneMembership";
- private static final String NONE = "none";
- private final String sourceName;
- private final RepositoryHandler repositoryHandler;
- private final OMRSRepositoryHelper repositoryHelper;
- private final OpenMetadataAPIGenericHandler assetHandler;
- private final RepositoryErrorHandler errorHandler;
- private final ClockService clockService;
-
- /**
- * Construct the handler information needed to interact with the repository services
- *
- * @param sourceName the name of the component
- * @param repositoryHandler manages calls to the repository services
- * @param repositoryHelper provides utilities for manipulating the repository services objects
- * @param assetHandler provides utilities for manipulating asset catalog objects using a generic handler
- * @param errorHandler provides common validation routines for the other handler classes
- */
- CommonHandler(String sourceName, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper,
- OpenMetadataAPIGenericHandler assetHandler, RepositoryErrorHandler errorHandler,
- ClockService clockService) {
- this.sourceName = sourceName;
- this.repositoryHandler = repositoryHandler;
- this.repositoryHelper = repositoryHelper;
- this.assetHandler = assetHandler;
- this.errorHandler = errorHandler;
- this.clockService = clockService;
- }
-
- OMRSMetadataCollection getOMRSMetadataCollection() {
- return repositoryHandler.getMetadataCollection();
- }
-
- /**
- * Returns a list containing the type and all the sub-types of the provided type
- *
- * @param userId user identifier that issues the call
- * @param typeDefName the type definition name
- * @return a list of sub-types recursive
- */
- List getTypeContext(String userId, String typeDefName) {
- List response = new ArrayList<>();
- TypeDef typeDefByName = repositoryHelper.getTypeDefByName(userId, typeDefName);
- AssetCatalogConverter converter = new AssetCatalogConverter<>(repositoryHelper, sourceName, assetHandler.getServerName());
-
- if (typeDefByName != null) {
- if (repositoryHelper.getKnownTypeDefGallery() == null
- || CollectionUtils.isEmpty(repositoryHelper.getKnownTypeDefGallery().getTypeDefs())) {
- return response;
- }
- List typeDefs = repositoryHelper.getKnownTypeDefGallery().getTypeDefs();
-
- Type type = converter.convertType(typeDefByName);
- List subTypes = getSubTypes(typeDefs, type);
- response.add(type);
- response.addAll(subTypes);
-
- collectSubTypes(subTypes, typeDefs, response);
- response.sort(Comparator.comparing(Type::getName));
- }
-
- return response;
- }
-
- /**
- * Returns the type by using the type definition name
- *
- * @param userId user identifier that issues the call
- * @param typeDefName the type definition name
- * @return the Type if exists, otherwise null
- */
- Type getTypeByTypeDefName(String userId, String typeDefName) {
-
- TypeDef typeDefByName = repositoryHelper.getTypeDefByName(userId, typeDefName);
- AssetCatalogConverter converter = new AssetCatalogConverter<>(repositoryHelper, sourceName, assetHandler.getServerName());
-
- if (typeDefByName != null) {
- return converter.convertType(typeDefByName);
- }
- return null;
- }
-
- /**
- * Returns the global identifier of the type using the type def name
- *
- * @param userId user identifier that issues the call
- * @param typeDefName the type definition name
- * @return the global identifier of the type
- */
- public String getTypeDefGUID(String userId, String typeDefName) {
- if (typeDefName == null) {
- return null;
- }
-
- TypeDef typeDefByName = repositoryHelper.getTypeDefByName(userId, typeDefName);
- return Optional.ofNullable(typeDefByName).map(TypeDefLink::getGUID).orElse(null);
- }
-
- /**
- * Checks against the type's list of properties if it has a display name property
- *
- * @param userId the user id
- * @param typeDefGUID the type definition unique identifier
- * @return if the given type has a display name property
- * @throws InvalidParameterException the invalid parameter exception
- */
- public boolean hasDisplayName(String userId, String typeDefGUID) throws InvalidParameterException {
- String methodName = "hasDisplayName";
- TypeDef typeDefByName = null;
- try {
- typeDefByName = repositoryHelper.getTypeDef(userId, GUID_PARAMETER, typeDefGUID, methodName);
- } catch (TypeErrorException typeErrorException) {
- errorHandler.handleUnsupportedType(typeErrorException, methodName, GUID_PARAMETER);
- }
- List allPropertiesForTypeDef = repositoryHelper.getAllPropertiesForTypeDef(sourceName, typeDefByName, methodName);
- if (allPropertiesForTypeDef == null) {
- return false;
- } else {
- return allPropertiesForTypeDef.stream().anyMatch(property -> property.getAttributeName().equals(DISPLAY_NAME)
- && property.getAttributeStatus().equals(TypeDefAttributeStatus.ACTIVE_ATTRIBUTE));
- }
-
- }
-
- /**
- * Fetch the zone membership property
- *
- * @param classifications asset properties
- * @return the list that contains the zone membership
- */
- List getAssetZoneMembership(List classifications) {
- String methodName = "getAssetZoneMembership";
- if (CollectionUtils.isEmpty(classifications)) {
- return Collections.emptyList();
- }
-
- Optional assetZoneMembership = getAssetZoneMembershipClassification(classifications);
-
- if (assetZoneMembership.isPresent()) {
- List zoneMembership = repositoryHelper.getStringArrayProperty(sourceName,
- ZONE_MEMBERSHIP, assetZoneMembership.get().getProperties(), methodName);
-
- if (CollectionUtils.isNotEmpty(zoneMembership)) {
- return zoneMembership;
- }
- }
-
- return Collections.emptyList();
- }
-
- /**
- * Return the requested entity, converting any errors from the repository services into the local
- * OMAS exceptions.
- *
- * @param userId calling user
- * @param guid unique identifier for the entity
- * @param type entity type name
- * @return entity detail object
- * @throws InvalidParameterException one of the parameters is null or invalid.
- * @throws UserNotAuthorizedException user not authorized to issue this request.
- * @throws PropertyServerException problem retrieving the entity.
- */
- EntityDetail getEntityByGUID(String userId,
- String guid,
- String type) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException {
-
- String entityTypeName = type;
- if(NONE.equals(type)) {
- entityTypeName = null;
- }
- String methodName = "getEntityByGUID";
- return assetHandler.getEntityFromRepository(userId, guid, GUID_PARAMETER, entityTypeName,
- null, null, false, false,
- clockService.getNow(), methodName);
- }
-
- /**
- * Return a list of the types def GUIDs
- *
- * @param userId calling user
- * @param types list of the type def names
- * @return a list of type def GUIDs
- */
- List getTypesGUID(String userId, List types) {
- if (CollectionUtils.isEmpty(types)) {
- return Collections.emptyList();
- }
- return types.stream().
- map(type -> repositoryHelper.getTypeDefByName(userId, type)).
- filter(Objects::nonNull).
- map(TypeDef::getGUID).
- collect(Collectors.toList());
- }
-
- /**
- * Return a map of the types def GUIDs and their associated type names
- *
- * @param userId calling user
- * @param types list of the type def names
- * @return a list of type def GUIDs
- */
- Map getTypesAndGUIDs(String userId, List types) {
- if (CollectionUtils.isEmpty(types)) {
- return Collections.emptyMap();
- }
- Map typesAndGUIDs = new HashMap<>();
- for (String type : types) {
- TypeDef typeDef = repositoryHelper.getTypeDefByName(userId, type);
- String typeDefGUID = null;
- if(typeDef != null) {
- typeDefGUID = typeDef.getGUID();
- }
- typesAndGUIDs.put(type, typeDefGUID);
- }
- return typesAndGUIDs;
- }
-
- private void collectSubTypes(List types, List activeTypeDefs, List collector) {
- for (Type currentSubType : types) {
- List subTypes = getSubTypes(activeTypeDefs, currentSubType);
- collector.addAll(subTypes);
- collectSubTypes(subTypes, activeTypeDefs, collector);
- }
- }
-
- private List getSubTypes(List activeTypeDefs, Type type) {
- String typeName = type.getName();
- AssetCatalogConverter converter = new AssetCatalogConverter<>(repositoryHelper, sourceName, assetHandler.getServerName());
-
- List subTypes = new ArrayList<>();
- for (TypeDef typeDef : activeTypeDefs) {
- if (typeDef.getSuperType() != null && typeDef.getSuperType().getName().equals(typeName)) {
-
- subTypes.add(converter.convertType(typeDef));
- }
- }
- return subTypes;
- }
-
- private Optional getAssetZoneMembershipClassification(List classifications) {
- return classifications.stream()
- .filter(classification -> classification.getName().equals(ASSET_ZONE_MEMBERSHIP))
- .findFirst();
- }
-
- Set collectSuperTypes(String userId, String typeDefName) {
- Set superTypes = new HashSet<>();
-
- TypeDef typeDefByName = repositoryHelper.getTypeDefByName(userId, typeDefName);
- if (typeDefByName != null) {
- collectSuperTypes(userId, typeDefByName, superTypes);
- }
-
- return superTypes;
- }
-
- private void collectSuperTypes(String userId, TypeDef type, Set superTypes) {
- if (type.getName().equals(REFERENCEABLE)) {
- return;
- }
- superTypes.add(type.getName());
- TypeDef typeDefByName = repositoryHelper.getTypeDefByName(userId, type.getSuperType().getName());
- if (typeDefByName != null) {
- collectSuperTypes(userId, typeDefByName, superTypes);
- }
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/RelationshipHandler.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/RelationshipHandler.java
deleted file mode 100644
index f96993e4b0e..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/RelationshipHandler.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.handlers;
-
-import org.odpi.openmetadata.accessservices.assetcatalog.converters.AssetCatalogConverter;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean;
-import org.odpi.openmetadata.accessservices.assetcatalog.service.ClockService;
-import org.odpi.openmetadata.accessservices.assetcatalog.util.Constants;
-import org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler;
-import org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryErrorHandler;
-import org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryHandler;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;
-
-/**
- * Relationship Handler supports the lookup of the asset's relationship from the repositories.
- * It runs on the server-side of the Asset Catalog OMAS, fetches the relationships using the RepositoryHandler.
- */
-public class RelationshipHandler {
-
- private static final String ENTITY_1_GUID_PARAMETER = "entity1GUID";
- private static final String ENTITY_2_GUID_PARAMETER = "entity2GUID";
- private final OMRSRepositoryHelper repositoryHelper;
- private final InvalidParameterHandler invalidParameterHandler;
- private final OpenMetadataAPIGenericHandler assetHandler;
- private final CommonHandler commonHandler;
- private final ClockService clockService;
-
- private final String sourceName;
-
- /**
- * Construct the handler information needed to interact with the repository services
- *
- * @param sourceName name of the component
- * @param invalidParameterHandler handler for managing parameter errors
- * @param repositoryHandler manages calls to the repository services
- * @param repositoryHelper provides utilities for manipulating the repository services objects
- * @param assetHandler provides utilities for manipulating asset catalog objects using a generic handler
- * @param errorHandler provides common validation routines for the other handler classes
- * @param clockService clock service
- */
- public RelationshipHandler(String sourceName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler,
- OMRSRepositoryHelper repositoryHelper, OpenMetadataAPIGenericHandler assetHandler,
- RepositoryErrorHandler errorHandler, ClockService clockService) {
- this.sourceName = sourceName;
- this.invalidParameterHandler = invalidParameterHandler;
- this.repositoryHelper = repositoryHelper;
- this.assetHandler = assetHandler;
- this.commonHandler = new CommonHandler(sourceName, repositoryHandler, repositoryHelper, assetHandler, errorHandler,
- clockService);
- this.clockService = clockService;
- }
-
- /**
- * Fetch relationship between entities details based on its unique identifier of the ends
- *
- * @param userId String unique identifier for the user
- * @param serverName server name
- * @param entity1GUID Entity guid of the first end of the relationship
- * @param entity2GUID Entity guid of the second end of the relationship
- * @param relationshipType Type of the relationship
- * @return the relationship between entities
- * @throws InvalidParameterException full path or userId is null
- * @throws PropertyServerException problem accessing property server
- * @throws UserNotAuthorizedException security access problem
- */
- public org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship getRelationshipBetweenEntities(String userId,
- String serverName,
- String entity1GUID,
- String entity2GUID,
- String relationshipType)
- throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException {
- final String methodName = "getRelationshipBetweenEntities";
-
- invalidParameterHandler.validateUserId(userId, methodName);
- invalidParameterHandler.validateGUID(entity1GUID, ENTITY_1_GUID_PARAMETER, methodName);
- invalidParameterHandler.validateGUID(entity2GUID, ENTITY_2_GUID_PARAMETER, methodName);
-
- String relationshipTypeGUID = null;
- if (relationshipType != null) {
- relationshipTypeGUID = commonHandler.getTypeDefGUID(userId, relationshipType);
- }
-
- Relationship relationshipBetweenEntities = assetHandler.getUniqueAttachmentLink(userId, entity1GUID,
- Constants.GUID_PARAMETER, "", relationshipTypeGUID, relationshipType, entity2GUID,
- "", 0, false, false, clockService.getNow(),
- methodName);
-
- if (relationshipBetweenEntities != null) {
- AssetCatalogConverter converter = new AssetCatalogConverter<>(repositoryHelper, serverName,
- assetHandler.getServerName());
- return converter.convertRelationship(relationshipBetweenEntities);
- }
-
- return null;
- }
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/package-info.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/package-info.java
deleted file mode 100644
index f4931d0aef7..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * This package provide handlers that do the lookup of assets and relationships from the repositories.
- */
-package org.odpi.openmetadata.accessservices.assetcatalog.handlers;
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/listeners/AssetCatalogOMRSTopicListener.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/listeners/AssetCatalogOMRSTopicListener.java
deleted file mode 100644
index a86256d56fc..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/listeners/AssetCatalogOMRSTopicListener.java
+++ /dev/null
@@ -1,221 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.listeners;
-
-import org.odpi.openmetadata.accessservices.assetcatalog.auditlog.AssetCatalogAuditCode;
-import org.odpi.openmetadata.accessservices.assetcatalog.converters.AssetCatalogConverter;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogEvent;
-import org.odpi.openmetadata.accessservices.assetcatalog.publishers.AssetCatalogSearchPublisher;
-import org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.AssetConverter;
-import org.odpi.openmetadata.frameworks.auditlog.AuditLog;
-import org.odpi.openmetadata.frameworks.connectors.properties.beans.Asset;
-import org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicListenerBase;
-import org.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicConnector;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryValidator;
-import org.odpi.openmetadata.repositoryservices.events.OMRSEventOriginator;
-import org.odpi.openmetadata.repositoryservices.events.OMRSInstanceEvent;
-import org.odpi.openmetadata.repositoryservices.events.OMRSInstanceEventType;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.util.List;
-
-/**
- * AssetCatalogOMRSTopicListener receives details of each OMRS event from the cohorts that the local server
- * is connected to. It passes indexing events to the publisher.
- */
-public class AssetCatalogOMRSTopicListener extends OMRSTopicListenerBase
-{
- private static final Logger log = LoggerFactory.getLogger( AssetCatalogOMRSTopicListener.class );
- private static final String ASSET_TYPE = "Asset";
-
- private final OMRSRepositoryHelper repositoryHelper;
- private final OMRSRepositoryValidator repositoryValidator;
- private final String serverName;
- private final List supportedZones;
- private final List supportedTypesForSearch;
- private final AssetCatalogSearchPublisher publisher;
- private final AssetCatalogConverter converter;
-
- /**
- * Instantiates a new Asset catalog OMRS topic listener.
- *
- * @param serviceName the service name
- * @param auditLog the audit log
- * @param outTopicConnector the out topic connector
- * @param repositoryHelper the repository helper
- * @param repositoryValidator the repository validator
- * @param serverName the server name
- * @param supportedZones the supported zones
- * @param supportedTypesForSearch the supported types for search
- */
- public AssetCatalogOMRSTopicListener(String serviceName,
- AuditLog auditLog,
- OpenMetadataTopicConnector outTopicConnector,
- OMRSRepositoryHelper repositoryHelper,
- OMRSRepositoryValidator repositoryValidator,
- String serverName,
- List supportedZones,
- List supportedTypesForSearch
- ) {
- super(serviceName, auditLog);
- this.publisher = new AssetCatalogSearchPublisher(outTopicConnector);
- this.serverName = serverName;
- this.supportedZones = supportedZones;
- this.repositoryHelper = repositoryHelper;
- this.repositoryValidator = repositoryValidator;
- this.converter = new AssetCatalogConverter<>(repositoryHelper, serviceName, serverName);
- this.supportedTypesForSearch = supportedTypesForSearch;
- }
-
- /**
- * Unpack and deliver an instance event to the InstanceEventProcessor
- *
- * @param instanceEvent event to unpack
- */
- @Override
- public void processInstanceEvent(OMRSInstanceEvent instanceEvent)
- {
- log.debug("Processing instance event: {}", instanceEvent);
-
- if (instanceEvent == null) {
- log.debug("Ignored instance event - null OMRSInstanceEvent");
- return;
- }
-
- OMRSEventOriginator instanceEventOriginator = instanceEvent.getEventOriginator();
-
- if (instanceEventOriginator == null) {
- log.debug("Ignored instance event - null OMRSEventOriginator");
- auditLog.logMessage(
- "No instance origin. Event IGNORED!",
- AssetCatalogAuditCode.EVENT_NOT_PROCESSING.getMessageDefinition("no instance origin"));
- return;
- }
-
- OMRSInstanceEventType instanceEventType = instanceEvent.getInstanceEventType();
- EntityDetail entityDetail = instanceEvent.getEntity();
- Relationship relationship = instanceEvent.getRelationship();
-
- try{
-
- switch (instanceEventType) {
- case UPDATED_ENTITY_EVENT:
- case NEW_ENTITY_EVENT:
- case DELETED_ENTITY_EVENT:
- case CLASSIFIED_ENTITY_EVENT:
- case RECLASSIFIED_ENTITY_EVENT:
- case DECLASSIFIED_ENTITY_EVENT:
- if (entityDetail != null) {
- processEntityDetail(entityDetail);
- }
- break;
- case NEW_RELATIONSHIP_EVENT :
- case UPDATED_RELATIONSHIP_EVENT:
- case DELETED_RELATIONSHIP_EVENT:
-// processRelationshipEvent(relationship);
- break;
- default: break;
- }
-
- } catch (Exception e) {
- log.error("An exception occurred while processing OMRSTopic event: \n " + instanceEvent, e);
- logExceptionToAudit(instanceEvent, e);
- }
-
- }
-
- /**
- * Publishes the relationship event.
- * @param relationship the relationship to be processed
- */
- private void processRelationshipEvent(Relationship relationship){
- publisher.publishEvent(relationship);
- }
-
- /**
- * Publishes the entity event.
- * @param entityDetail the entityDetail to be processed
- */
- private void processEntityDetail(EntityDetail entityDetail){
- String assetType = getAssetType(entityDetail);
-
- if ( assetType != null ) {
- AssetConverter assetConverter
- = new AssetConverter(entityDetail, null, repositoryHelper, serviceName, serverName);
- Asset assetBean = assetConverter.getAssetBean();
- AssetCatalogEvent assetCatalogEvent = new AssetCatalogEvent();
- assetCatalogEvent.setAsset(assetBean);
- publisher.publishEvent(assetCatalogEvent);
- }else if ( supportedTypesForSearch!=null
- && supportedTypesForSearch.contains(entityDetail.getType().getTypeDefName()))
- {
- AssetCatalogBean assetDescription = converter.getAssetCatalogBean(entityDetail);
- publisher.publishEvent(assetDescription);
- }
-
- }
-
- /**
- * Return the name of the Asset type if this entity has a type that inherits from Asset.
- *
- * @param entity entity to test
- * @return String containing Asset type name, or null if not an Asset.
- */
- private String getAssetType(EntityDetail entity)
- {
- final String methodName = "getAssetType";
-
- if (repositoryValidator.isATypeOf(serviceName, entity, ASSET_TYPE, methodName))
- {
- InstanceType entityType = entity.getType();
-
- if (entityType != null)
- {
- return entityType.getTypeDefName();
- }
- }
-
- return null;
- }
-
- /**
- * Determines whether an Asset is in the supported zones.
- *
- * @param assetZones list of zones for the asset.
- * @return boolean true if at least one of the assetZones is in the supportedZones, otherwise false
- */
- private boolean inTheZone(List assetZones)
- {
- if (supportedZones == null || assetZones == null)
- {
- /*
- * If supported zones is null then all zones are supported
- * or there are no zones set up in the asset then it is a member of all zones.
- */
- return true;
- }
-
- return supportedZones.stream().anyMatch(assetZones::contains);
-
- }
-
- /**
- * Log exceptions using Audit log
- *
- * @param instanceEvent the event that has been received
- * @param e the exception object
- */
- private void logExceptionToAudit(OMRSInstanceEvent instanceEvent, Exception e) {
- String actionDescription = "Asset Lineage OMAS is unable to process an OMRSTopic event.";
-
- auditLog.logException(actionDescription,
- AssetCatalogAuditCode.EVENT_PROCESSING_EXCEPTION.getMessageDefinition(e.getMessage(), instanceEvent.toString()),
- instanceEvent.toString(), e);
- }
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/listeners/package-info.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/listeners/package-info.java
deleted file mode 100644
index ad027895b6c..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/listeners/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * This package defines an OMRS Topic listener designed for receiving events from the cohorts that the local server
- * is connected to.
- */
-package org.odpi.openmetadata.accessservices.assetcatalog.listeners;
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/publishers/AssetCatalogSearchPublisher.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/publishers/AssetCatalogSearchPublisher.java
deleted file mode 100644
index 8e6895660fa..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/publishers/AssetCatalogSearchPublisher.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.publishers;
-
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.ObjectWriter;
-import org.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicConnector;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.io.Serializable;
-
-/**
- * AssetCatalogSearchPublisher is publishing asset indexing events.
- */
-public class AssetCatalogSearchPublisher {
-
- private static final Logger LOG = LoggerFactory.getLogger(AssetCatalogSearchPublisher.class);
- private static final ObjectWriter OBJECT_WRITER = new ObjectMapper().writer();
-
- private final OpenMetadataTopicConnector topicConnector;
-
- /**
- * Instantiates a new AssetCatalogSearchPublisher object.
- *
- * @param outTopicConnector the out topic connector
- */
- public AssetCatalogSearchPublisher(OpenMetadataTopicConnector outTopicConnector)
- {
- this.topicConnector = outTopicConnector;
- }
-
- /**
- * Publish an asset indexing event.
- *
- * @param event event to send
- */
- public void publishEvent(Serializable event)
- {
- try
- {
- if (topicConnector != null)
- {
- topicConnector.sendEvent(OBJECT_WRITER.writeValueAsString(event));
- }
- else
- {
- LOG.error("Cannot publish event: topic connector is null!");
- }
- }
- catch (JsonProcessingException e)
- {
- LOG.error("Unable to create json for publishing: " + event.toString(), e);
- }
- catch (Exception e)
- {
- LOG.error("Unable to publish new asset event", e);
- }
- }
-}
-
-
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/publishers/package-info.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/publishers/package-info.java
deleted file mode 100644
index 46a42885495..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/publishers/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * This package defines a topic publisher for asset indexing events.
- */
-package org.odpi.openmetadata.accessservices.assetcatalog.publishers;
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRESTService.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRESTService.java
deleted file mode 100644
index 89cf0b8183b..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRESTService.java
+++ /dev/null
@@ -1,441 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.service;
-
-import org.odpi.openmetadata.accessservices.assetcatalog.admin.AssetCatalogInstanceHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.handlers.AssetCatalogHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Elements;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.body.SearchParameters;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogSupportedTypes;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetListResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.ClassificationListResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.RelationshipListResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.util.ExceptionHandler;
-import org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler;
-import org.odpi.openmetadata.commonservices.ffdc.rest.ConnectionResponse;
-import org.odpi.openmetadata.frameworks.auditlog.AuditLog;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.PagingErrorException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.PropertyErrorException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * The AssetCatalogService provides the server-side implementation of the Asset Catalog Open Metadata
- * Assess Service (OMAS).
- * This service provide the functionality to fetch asset's header, classification and properties.
- */
-public class AssetCatalogRESTService {
-
- private static final Logger log = LoggerFactory.getLogger(AssetCatalogRESTService.class);
- private static final String CALLING_METHOD = "Calling method: {}";
- private static final String METHOD_WITH_RESPONSE = "Returning from method: {} with response: {}";
-
- private final AssetCatalogInstanceHandler instanceHandler = new AssetCatalogInstanceHandler();
- private final RESTExceptionHandler restExceptionHandler = new RESTExceptionHandler();
- private final ExceptionHandler exceptionHandler = new ExceptionHandler();
-
- /**
- * Fetch asset's header, classification and properties
- *
- * @param serverName unique identifier for requested server.
- * @param userId the unique identifier for the user
- * @param assetGUID the unique identifier for the asset
- * @param assetTypeName the type of the asset
- * @return the asset with its header and the list of associated classifications and specific properties
- */
- public AssetCatalogResponse getAssetDetailsByGUID(String serverName,
- String userId,
- String assetGUID,
- String assetTypeName) {
- String methodName = "getAssetDetailsByGUID";
- log.debug(CALLING_METHOD, methodName);
-
- AssetCatalogResponse response = new AssetCatalogResponse();
-
- try {
- AssetCatalogHandler assetCatalogHandler = instanceHandler.getAssetCatalogHandler(userId, serverName, methodName);
- AssetCatalogBean assetCatalogBean = assetCatalogHandler.getEntityDetails(userId, assetGUID, assetTypeName);
- response.setAssetCatalogBean(assetCatalogBean);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) {
- restExceptionHandler.captureInvalidParameterException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException e) {
- restExceptionHandler.captureUserNotAuthorizedException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException e) {
- restExceptionHandler.capturePropertyServerException(response, e);
- } catch (Exception e) {
- restExceptionHandler.captureExceptions(response, e, methodName);
- }
-
- log.debug(METHOD_WITH_RESPONSE, methodName, response);
-
- return response;
- }
-
- /**
- * Fetch asset's header, classification, properties and relationships
- *
- * @param serverName unique identifier for requested server.
- * @param userId the unique identifier for the user
- * @param assetGUID the unique identifier for the asset
- * @param assetTypeName the asset type
- * @return the asset with its header and the list of associated classifications and relationship
- */
- public AssetCatalogResponse getAssetUniverseByGUID(String serverName,
- String userId,
- String assetGUID,
- String assetTypeName) {
- String methodName = "getAssetUniverseByGUID";
-
- log.debug(CALLING_METHOD, methodName);
-
- AssetCatalogResponse response = new AssetCatalogResponse();
- try {
- AssetCatalogHandler assetCatalogHandler = instanceHandler.getAssetCatalogHandler(userId, serverName, methodName);
- AssetCatalogBean assetCatalogBean = assetCatalogHandler.getEntityDetails(userId, assetGUID, assetTypeName);
- assetCatalogBean.setRelationships(assetCatalogHandler.getRelationshipsByEntityGUID(userId, assetGUID, assetCatalogBean.getType().getName()));
-
- response.setAssetCatalogBean(assetCatalogBean);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) {
- restExceptionHandler.captureInvalidParameterException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException e) {
- restExceptionHandler.captureUserNotAuthorizedException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException e) {
- restExceptionHandler.capturePropertyServerException(response, e);
- } catch (Exception e) {
- restExceptionHandler.captureExceptions(response, e, methodName);
- }
-
- log.debug(METHOD_WITH_RESPONSE, methodName, response);
-
- return response;
- }
-
- /**
- * Fetch the classification for a specific asset
- *
- * @param serverName unique identifier for requested server.
- * @param userId the unique identifier for the user
- * @param assetGUID the unique identifier for the asset
- * @param assetTypeName the type of the asset
- * @param classificationName the name of the classification
- * @return ClassificationsResponse the classification for the asset
- */
- public ClassificationListResponse getClassificationByAssetGUID(String serverName,
- String userId,
- String assetGUID,
- String assetTypeName,
- String classificationName) {
- String methodName = "getClassificationByAssetGUID";
- log.debug(CALLING_METHOD, methodName);
-
- ClassificationListResponse response = new ClassificationListResponse();
- try {
- AssetCatalogHandler assetCatalogHandler = instanceHandler.getAssetCatalogHandler(userId, serverName, methodName);
- response.setClassifications(assetCatalogHandler.getEntityClassificationByName(userId,
- assetGUID, assetTypeName, classificationName));
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) {
- restExceptionHandler.captureInvalidParameterException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException e) {
- restExceptionHandler.captureUserNotAuthorizedException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException e) {
- restExceptionHandler.capturePropertyServerException(response, e);
- } catch (Exception e) {
- restExceptionHandler.captureExceptions(response, e, methodName);
- }
-
- log.debug(METHOD_WITH_RESPONSE, methodName, response);
-
- return response;
- }
-
- /**
- * Returns the asset relationships.
- *
- * @param serverName unique identifier for requested server
- * @param userId the unique identifier for the user
- * @param assetGUID the asset GUID
- * @param assetTypeName the asset type name
- * @param relationshipTypeName the relationship type name
- * @param startFrom the offset
- * @param limit page size to limit the number of the assets returned
- * @return the asset relationships
- */
- public RelationshipListResponse getAssetRelationships(String serverName,
- String userId,
- String assetGUID,
- String assetTypeName,
- String relationshipTypeName,
- Integer startFrom,
- Integer limit) {
- String methodName = "getAssetRelationships";
- log.debug(CALLING_METHOD, methodName);
-
- RelationshipListResponse response = new RelationshipListResponse();
- try {
- AssetCatalogHandler assetCatalogHandler = instanceHandler.getAssetCatalogHandler(userId, serverName, methodName);
- response.setRelationships(assetCatalogHandler.getRelationships(userId, assetGUID,
- assetTypeName, relationshipTypeName, startFrom, limit));
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException e) {
- restExceptionHandler.captureUserNotAuthorizedException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) {
- restExceptionHandler.captureInvalidParameterException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException e) {
- restExceptionHandler.capturePropertyServerException(response, e);
- } catch (Exception e) {
- restExceptionHandler.captureExceptions(response, e, methodName);
- }
-
- log.debug(METHOD_WITH_RESPONSE, methodName, response);
-
- return response;
- }
-
- /**
- * Return a list of assets/glossary terms/schema elements matching the search criteria without the full context.
- * If the searchParameters have an empty list of entity types, the response contains Glossary Terms, Schema Elements, Assets
- *
- * @param serverName unique identifier for requested server
- * @param userId the unique identifier for the user
- * @param searchCriteria a string expression of the characteristics of the required assets
- * @param searchParameters constraints to make the assets' search results more precise
- * @return list of properties used to narrow the search
- */
- public AssetListResponse searchByType(String serverName,
- String userId,
- String searchCriteria,
- SearchParameters searchParameters) {
- String methodName = "searchByType";
- log.debug(CALLING_METHOD, methodName);
-
- AssetListResponse response = new AssetListResponse();
-
- try {
- AssetCatalogHandler assetCatalogHandler = instanceHandler.getAssetCatalogHandler(userId, serverName, methodName);
- response.setElementsList(assetCatalogHandler.searchByType(userId, searchCriteria, searchParameters));
- } catch (UserNotAuthorizedException
- | PagingErrorException
- | TypeErrorException
- | PropertyErrorException
- | RepositoryErrorException
- | InvalidParameterException
- | FunctionNotSupportedException
- | EntityNotKnownException e) {
- exceptionHandler.captureOMRSCheckedExceptionBase(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException e) {
- restExceptionHandler.captureUserNotAuthorizedException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) {
- restExceptionHandler.captureInvalidParameterException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException e) {
- restExceptionHandler.capturePropertyServerException(response, e);
- } catch (Exception e) {
- restExceptionHandler.captureExceptions(response, e, methodName);
- }
-
- log.debug(METHOD_WITH_RESPONSE, methodName, response);
-
- return response;
- }
-
- /**
- * Return a list of assets/glossary terms/schema elements matching the type name without the full context.
- * If the typeName is null or doesn't exist, the response contains an empty list.
- * The list includes also subtypes.
- *
- * @param serverName unique identifier for requested server
- * @param userId the unique identifier for the user
- * @param typeName the assets type name to search for
- * @return list of assets by type name or GUID
- */
- public AssetListResponse searchByTypeName(String serverName,
- String userId,
- String typeName) {
- String methodName = "searchByTypeName";
- log.debug(CALLING_METHOD, methodName);
-
- AssetListResponse response = new AssetListResponse();
-
- try {
- AssetCatalogHandler assetCatalogHandler = instanceHandler.getAssetCatalogHandler(userId, serverName, methodName);
- response.setElementsList(assetCatalogHandler.searchByTypeName(userId, typeName));
- } catch (UserNotAuthorizedException
- | PagingErrorException
- | TypeErrorException
- | PropertyErrorException
- | RepositoryErrorException
- | InvalidParameterException
- | FunctionNotSupportedException
- | EntityNotKnownException e) {
- exceptionHandler.captureOMRSCheckedExceptionBase(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException e) {
- restExceptionHandler.captureUserNotAuthorizedException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) {
- restExceptionHandler.captureInvalidParameterException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException e) {
- restExceptionHandler.capturePropertyServerException(response, e);
- } catch (Exception e) {
- restExceptionHandler.captureExceptions(response, e, methodName);
- }
-
- log.debug(METHOD_WITH_RESPONSE, methodName, response);
-
- return response;
- }
-
- /**
- * Return a list of assets/glossary terms/schema elements matching the type GUID without the full context.
- * If the typeGUID is null or doesn't exist, the response contains an empty list.
- * The list includes also subtypes.
- *
- * @param serverName unique identifier for requested server
- * @param userId the unique identifier for the user
- * @param typeGUID the assets type GUID to search for
- * @return list of assets by type name or GUID
- */
- public AssetListResponse searchByTypeGUID(String serverName,
- String userId,
- String typeGUID) {
- String methodName = "searchByTypeGUID";
- log.debug(CALLING_METHOD, methodName);
-
- AssetListResponse response = new AssetListResponse();
-
- try {
- AssetCatalogHandler assetCatalogHandler = instanceHandler.getAssetCatalogHandler(userId, serverName, methodName);
- response.setElementsList(assetCatalogHandler.searchByTypeGUID(userId, typeGUID));
- } catch (UserNotAuthorizedException
- | PagingErrorException
- | TypeErrorException
- | PropertyErrorException
- | RepositoryErrorException
- | InvalidParameterException
- | FunctionNotSupportedException
- | EntityNotKnownException e) {
- exceptionHandler.captureOMRSCheckedExceptionBase(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException e) {
- restExceptionHandler.captureUserNotAuthorizedException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) {
- restExceptionHandler.captureInvalidParameterException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException e) {
- restExceptionHandler.capturePropertyServerException(response, e);
- } catch (Exception e) {
- restExceptionHandler.captureExceptions(response, e, methodName);
- }
-
- log.debug(METHOD_WITH_RESPONSE, methodName, response);
-
- return response;
- }
-
- /**
- * Return the full context of an asset/glossary term based on its identifier.
- * The response contains the list of the connections assigned to the asset.
- *
- * @param serverName unique identifier for requested server.
- * @param userId the unique identifier for the user
- * @param assetGUID the global unique identifier of the asset
- * @param assetType the type of the asset
- * @return the context of the given asset/glossary term/schema element
- */
- public AssetResponse buildContext(String serverName,
- String userId,
- String assetGUID,
- String assetType) {
- String methodName = "buildContext";
- log.debug(CALLING_METHOD, methodName);
-
- AssetResponse response = new AssetResponse();
- try {
-
- AssetCatalogHandler assetCatalogHandler = instanceHandler.getAssetCatalogHandler(userId, serverName, methodName);
- Elements elements = assetCatalogHandler.buildContextByType(userId, assetGUID, assetType);
- if (elements != null) {
- response.setAsset(elements);
- }
-
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException e) {
- restExceptionHandler.captureUserNotAuthorizedException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) {
- restExceptionHandler.captureInvalidParameterException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException e) {
- restExceptionHandler.capturePropertyServerException(response, e);
- } catch (Exception e) {
- restExceptionHandler.captureExceptions(response, e, methodName);
- }
- log.debug(METHOD_WITH_RESPONSE, methodName, response);
-
- return response;
- }
-
- /**
- * Returns supported types for search with all sub-types.
- * If type name is provided, it returns the type itself and the list of sub-types for it
- *
- * @param serverName unique identifier for requested server.
- * @param userId user identifier that issues the call
- * @param type optional type name
- * @return supported types
- */
- public AssetCatalogSupportedTypes getSupportedTypes(String serverName,
- String userId,
- String type) {
- String methodName = "getTypes";
- log.debug(CALLING_METHOD, methodName);
-
- AssetCatalogSupportedTypes response = new AssetCatalogSupportedTypes();
- try {
-
- AssetCatalogHandler assetCatalogHandler = instanceHandler.getAssetCatalogHandler(userId, serverName, methodName);
- response.setTypes(assetCatalogHandler.getSupportedTypes(userId, type));
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException e) {
- restExceptionHandler.captureUserNotAuthorizedException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) {
- restExceptionHandler.captureInvalidParameterException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException e) {
- restExceptionHandler.capturePropertyServerException(response, e);
- } catch (Exception e) {
- restExceptionHandler.captureExceptions(response, e, methodName);
- }
-
- log.debug(METHOD_WITH_RESPONSE, methodName, response);
-
- return response;
- }
-
- /**
- * Return the connection object for the Asset Catalog OMAS's out topic.
- *
- * @param serverName name of the service to route the request to.
- * @param userId identifier of calling user.
- * @param callerId unique identifier of the caller
- *
- * @return connection object for the out topic or
- * InvalidParameterException one of the parameters is null or invalid or
- * UserNotAuthorizedException user not authorized to issue this request or
- * PropertyServerException problem retrieving the discovery engine definition.
- */
- public ConnectionResponse getOutTopicConnection(String serverName,
- String userId,
- String callerId) {
- final String methodName = "getOutTopicConnection";
- ConnectionResponse response = new ConnectionResponse();
- AuditLog auditLog = null;
-
- try {
- auditLog = instanceHandler.getAuditLog(userId, serverName, methodName);
- response.setConnection(instanceHandler.getOutTopicConnection(userId, serverName, methodName, callerId));
- } catch (Exception error) {
- restExceptionHandler.captureExceptions(response, error, methodName, auditLog);
- }
- return response;
- }
-
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRelationshipRESTService.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRelationshipRESTService.java
deleted file mode 100644
index 3a7d2729833..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRelationshipRESTService.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.service;
-
-
-import org.odpi.openmetadata.accessservices.assetcatalog.admin.AssetCatalogInstanceHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.handlers.RelationshipHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.RelationshipResponse;
-import org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * The AssetCatalogRelationshipService provides the server-side implementation of the Asset Catalog Open Metadata
- * Assess Service (OMAS).
- * This service provide the functionality to fetch asset relationships and details about specific relationships.
- */
-public class AssetCatalogRelationshipRESTService {
-
- private static final Logger log = LoggerFactory.getLogger(AssetCatalogRelationshipRESTService.class);
- private final AssetCatalogInstanceHandler instanceHandler = new AssetCatalogInstanceHandler();
- private final RESTExceptionHandler restExceptionHandler = new RESTExceptionHandler();
-
- /**
- * Fetch relationship between entities details based on its unique identifier of the ends
- *
- * @param serverName unique identifier for requested server
- * @param userId String unique identifier for the user
- * @param entity1GUID Entity guid of the first end of the relationship
- * @param entity2GUID Entity guid of the second end of the relationship
- * @param relationshipType Type of the relationship
- * @return the relationship between entities
- */
- public RelationshipResponse getRelationshipBetweenEntities(String serverName, String userId,
- String entity1GUID,
- String entity2GUID,
- String relationshipType) {
- final String methodName = "getRelationshipBetweenEntities";
-
- log.debug("Calling method: {}", methodName);
-
- RelationshipResponse response = new RelationshipResponse();
-
- try {
- RelationshipHandler relationshipHandler = instanceHandler.getRelationshipHandler(userId, serverName, methodName);
- Relationship relationshipBetweenEntities = relationshipHandler.getRelationshipBetweenEntities(userId, serverName,
- entity1GUID, entity2GUID, relationshipType);
- response.setRelationship(relationshipBetweenEntities);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) {
- restExceptionHandler.captureInvalidParameterException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException e) {
- restExceptionHandler.captureUserNotAuthorizedException(response, e);
- } catch (org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException e) {
- restExceptionHandler.capturePropertyServerException(response, e);
- }
-
- log.debug("Returning from method: {} with response: {}", methodName, response);
-
- return response;
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/ClockService.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/ClockService.java
deleted file mode 100644
index e1d796bd6fe..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/ClockService.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.service;
-
-import java.time.Clock;
-import java.time.Instant;
-import java.util.Date;
-
-
-/**
- * A Clock service to get current time as date based on a java.time.Clock object.
- */
-public class ClockService {
-
- private final Clock clock;
-
- /**
- * Instantiates a new Clock Service.
- *
- * @param clock a java clock providing access to the current instant, date and time using a time-zone
- */
- public ClockService(Clock clock) {
- this.clock = clock;
- }
-
- /**
- * Gets the current time as Date.
- *
- * @return the current time as Date.
- */
- public Date getNow() {
- return Date.from(Instant.now(clock));
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/package-info.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/package-info.java
deleted file mode 100644
index 36e03dfd625..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/service/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * This package provides services that: fetch asset's header, classification and properties, asset relationships and
- * details about specific relationships. Also, it offers a clock service to get the current time.
- */
-package org.odpi.openmetadata.accessservices.assetcatalog.service;
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/util/Constants.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/util/Constants.java
deleted file mode 100644
index 2355eb2c61c..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/util/Constants.java
+++ /dev/null
@@ -1,436 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project */
-package org.odpi.openmetadata.accessservices.assetcatalog.util;
-
-import lombok.AccessLevel;
-import lombok.NoArgsConstructor;
-
-/**
- * Constants for Open Metadata Types (names and guid)
- */
-@NoArgsConstructor(access = AccessLevel.PRIVATE)
-public final class Constants {
-
- /**
- * The Referenceable Open Metadata Type name
- */
- public static final String REFERENCEABLE = "Referenceable";
-
- /**
- * The AssetZoneMembership Open Metadata Type name
- */
- public static final String ASSET_ZONE_MEMBERSHIP = "AssetZoneMembership";
-
- /**
- * The Asset Open Metadata Type unique identifier
- */
- public static final String ASSET_GUID = "896d14c2-7522-4f6c-8519-757711943fe6";
-
- /**
- * The SchemaElement Open Metadata Type unique identifier
- */
- public static final String SCHEMA_ELEMENT_GUID = "718d4244-8559-49ed-ad5a-10e5c305a656";
-
- /**
- * The SchemaElement Open Metadata Type name
- */
- public static final String SCHEMA_ELEMENT = "SchemaElement";
-
- /**
- * The GlossaryTerm Open Metadata Type name
- */
- public static final String GLOSSARY_TERM = "GlossaryTerm";
-
- /**
- * The GlossaryTerm Open Metadata Type unique identifier
- */
- public static final String GLOSSARY_TERM_TYPE_GUID = "0db3e6ec-f5ef-4d75-ae38-b7ee6fd6ec0a";
-
- /**
- * The ComplexSchemaType Open Metadata Type name
- */
- public static final String COMPLEX_SCHEMA_TYPE = "ComplexSchemaType";
-
- /**
- * The Asset Open Metadata Type name
- */
- public static final String ASSET = "Asset";
-
- /**
- * The SchemaAttribute Open Metadata Type name
- */
- public static final String SCHEMA_ATTRIBUTE = "SchemaAttribute";
-
- /**
- * The NestedSchemaAttribute Open Metadata Type name
- */
- public static final String NESTED_SCHEMA_ATTRIBUTE = "NestedSchemaAttribute";
-
- /**
- * The NestedSchemaAttribute Open Metadata Type unique identifier
- */
- public static final String NESTED_SCHEMA_ATTRIBUTE_GUID = "0ffb9d87-7074-45da-a9b0-ae0859611133";
-
- /**
- * The DeployedAPI Open Metadata Type name
- */
- public static final String DEPLOYED_API = "DeployedAPI";
-
- /**
- * The ITInfrastructure Open Metadata Type name
- */
- public static final String IT_INFRASTRUCTURE = "ITInfrastructure";
-
- /**
- * The Process Open Metadata Type name
- */
- public static final String PROCESS = "Process";
-
- /**
- * The DataStore Open Metadata Type name
- */
- public static final String DATA_STORE = "DataStore";
-
- /**
- * The DataSet Open Metadata Type name
- */
- public static final String DATA_SET = "DataSet";
-
- /**
- * The Database Open Metadata Type name
- */
- public static final String DATABASE = "Database";
-
- /**
- * The DataFile Open Metadata Type name
- */
- public static final String DATA_FILE = "DataFile";
-
- /**
- * The FileFolder Open Metadata Type name
- */
- public static final String FILE_FOLDER = "FileFolder";
-
- /**
- * The PortImplementation Open Metadata Type name
- */
- public static final String PORT_IMPLEMENTATION = "PortImplementation";
-
- /**
- * The Host Open Metadata Type name
- */
- public static final String HOST = "Host";
-
- /**
- * The Network Open Metadata Type name
- */
- public static final String NETWORK = "Network";
-
- /**
- * The Location Open Metadata Type name
- */
- public static final String LOCATION = "Location";
-
- /**
- * The Endpoint Open Metadata Type name
- */
- public static final String ENDPOINT = "Endpoint";
-
- /**
- * The Connection Open Metadata Type name
- */
- public static final String CONNECTION = "Connection";
-
- /**
- * The SoftwareServerPlatform Open Metadata Type name
- */
- public static final String SOFTWARE_SERVER_PLATFORM = "SoftwareServerPlatform";
-
- /**
- * The SoftwareServer Open Metadata Type name
- */
- public static final String SOFTWARE_SERVER = "SoftwareServer";
-
- /**
- * The HostCluster Open Metadata Type name
- */
- public static final String HOST_CLUSTER = "HostCluster";
-
- /**
- * The VirtualContainer Open Metadata Type name
- */
- public static final String VIRTUAL_CONTAINER = "VirtualContainer";
-
-
- //Relationships Type
- /**
- * The AssetSchemaType Open Metadata Type unique identifier
- */
- public static final String ASSET_SCHEMA_TYPE_GUID = "815b004d-73c6-4728-9dd9-536f4fe803cd";
-
- /**
- * The AssetSchemaType Open Metadata Type name
- */
- public static final String ASSET_SCHEMA_TYPE = "AssetSchemaType";
-
- /**
- * The PortSchema Open Metadata Type unique identifier
- */
- public static final String PORT_SCHEMA_GUID = "B216fA00-8281-F9CC-9911-Ae6377f2b457";
-
- /**
- * The PortSchema Open Metadata Type name
- */
- public static final String PORT_SCHEMA = "PortSchema";
-
- /**
- * The SoftwareServerPlatformDeployment Open Metadata Type unique identifier
- */
- public static final String SOFTWARE_SERVER_PLATFORM_DEPLOYMENT_GUID = "b909eb3b-5205-4180-9f63-122a65b30738";
-
- /**
- * The SoftwareServerPlatformDeployment Open Metadata Type name
- */
- public static final String SOFTWARE_SERVER_PLATFORM_DEPLOYMENT = "SoftwareServerPlatformDeployment";
-
- /**
- * The HostOperatingPlatform Open Metadata Type unique identifier
- */
- public static final String HOST_OPERATING_PLATFORM_GUID = "b9179df5-6e23-4581-a8b0-2919e6322b12";
-
- /**
- * The HostOperatingPlatform Open Metadata Type name
- */
- public static final String HOST_OPERATING_PLATFORM = "HostOperatingPlatform";
-
- /**
- * The ServerEndpoint Open Metadata Type unique identifier
- */
- public static final String SERVER_ENDPOINT_GUID = "2b8bfab4-8023-4611-9833-82a0dc95f187";
-
- /**
- * The ServerEndpoint Open Metadata Type name
- */
- public static final String SERVER_ENDPOINT = "ServerEndpoint";
-
- /**
- * The SoftwareServerDeployment Open Metadata Type unique identifier
- */
- public static final String SOFTWARE_SERVER_DEPLOYMENT_GUID = "d909eb3b-5205-4180-9f63-122a65b30738";
-
- /**
- * The SoftwareServerDeployment Open Metadata Type name
- */
- public static final String SOFTWARE_SERVER_DEPLOYMENT = "SoftwareServerDeployment";
-
- /**
- * The ConnectionToAsset Open Metadata Type unique identifier
- */
- public static final String CONNECTION_TO_ASSET_GUID = "e777d660-8dbe-453e-8b83-903771f054c0";
-
- /**
- * The ConnectionToAsset Open Metadata Type name
- */
- public static final String CONNECTION_TO_ASSET = "ConnectionToAsset";
-
- /**
- * The ConnectionConnectorType Open Metadata Type unique identifier
- */
- public static final String CONNECTION_CONNECTOR_TYPE_GUID = "e542cfc1-0b4b-42b9-9921-f0a5a88aaf96";
-
- /**
- * The ConnectionConnectorType Open Metadata Type unique identifier
- */
- public static final String CONNECTION_CONNECTOR_TYPE = "ConnectionConnectorType";
-
- /**
- * The DataContentForDataSet Open Metadata Type unique identifier
- */
- public static final String DATA_CONTENT_FOR_DATA_SET_GUID = "b827683c-2924-4df3-a92d-7be1888e23c0";
-
- /**
- * The DataContentForDataSet Open Metadata Type name
- */
- public static final String DATA_CONTENT_FOR_DATA_SET = "DataContentForDataSet";
-
- /**
- * The FolderHierarchy Open Metadata Type unique identifier
- */
- public static final String FOLDER_HIERARCHY_GUID = "48ac9028-45dd-495d-b3e1-622685b54a01";
-
- /**
- * The FolderHierarchy Open Metadata Type name
- */
- public static final String FOLDER_HIERARCHY = "FolderHierarchy";
-
- /**
- * The NestedFile Open Metadata Type unique identifier
- */
- public static final String NESTED_FILE_GUID = "4cb88900-1446-4eb6-acea-29cd9da45e63";
-
- /**
- * The NestedFile Open Metadata Type name
- */
- public static final String NESTED_FILE = "NestedFile";
-
- /**
- * The ProcessPort Open Metadata Type unique identifier
- */
- public static final String PROCESS_PORT_GUID = "fB4E00CF-37e4-88CE-4a94-233BAdB84DA2";
-
- /**
- * The ProcessPort Open Metadata Type name
- */
- public static final String PROCESS_PORT = "ProcessPort";
-
- /**
- * The NetworkGatewayLink Open Metadata Type unique identifier
- */
- public static final String NETWORK_GATEWAY_LINK_GUID = "5bece460-1fa6-41fb-a29f-fdaf65ec8ce3";
-
- /**
- * The NetworkGatewayLink Open Metadata Type name
- */
- public static final String NETWORK_GATEWAY_LINK = "NetworkGatewayLink";
-
- /**
- * The HostNetwork Open Metadata Type unique identifier
- */
- public static final String HOST_NETWORK_GUID = "f2bd7401-c064-41ac-862c-e5bcdc98fa1e";
-
- /**
- * The HostNetwork Open Metadata Type name
- */
- public static final String HOST_NETWORK = "HostNetwork";
-
- /**
- * The DeployedVirtualContainer Open Metadata Type unique identifier
- */
- public static final String DEPLOYED_VIRTUAL_CONTAINER_GUID = "4b981d89-e356-4d9b-8f17-b3a8d5a86676";
-
- /**
- * The DeployedVirtualContainer Open Metadata Type name
- */
- public static final String DEPLOYED_VIRTUAL_CONTAINER = "DeployedVirtualContainer";
-
- /**
- * The HostClusterMember Open Metadata Type unique identifier
- */
- public static final String HOST_CLUSTER_MEMBER_GUID = "1a1c3933-a583-4b0c-9e42-c3691296a8e0";
-
- /**
- * The HostClusterMember Open Metadata Type name
- */
- public static final String HOST_CLUSTER_MEMBER = "HostClusterMember";
-
- /**
- * The HostLocation Open Metadata Type unique identifier
- */
- public static final String HOST_LOCATION_GUID = "f3066075-9611-4886-9244-32cc6eb07ea9";
-
- /**
- * The HostLocation Open Metadata Type name
- */
- public static final String HOST_LOCATION = "HostLocation";
-
- /**
- * The AssetLocation Open Metadata Type unique identifier
- */
- public static final String ASSET_LOCATION_GUID = "bc236b62-d0e6-4c5c-93a1-3a35c3dba7b1";
-
- /**
- * The AssetLocation Open Metadata Type name
- */
- public static final String ASSET_LOCATION = "AssetLocation";
-
- /**
- * The APIEndpoint Open Metadata Type unique identifier
- */
- public static final String API_ENDPOINT_GUID = "de5b9501-3ad4-4803-a8b2-e311c72a4336";
-
- /**
- * The APIEndpoint Open Metadata Type name
- */
- public static final String API_ENDPOINT = "APIEndpoint";
-
- /**
- * The ConnectionEndpoint Open Metadata Type unique identifier
- */
- public static final String CONNECTION_ENDPOINT_GUID = "887a7132-d6bc-4b92-a483-e80b60c86fb2";
-
- /**
- * The ConnectionEndpoint Open Metadata Type name
- */
- public static final String CONNECTION_ENDPOINT = "ConnectionEndpoint";
-
- /**
- * The SemanticAssignment Open Metadata Type unique identifier
- */
- public static final String SEMANTIC_ASSIGNMENT_GUID = "e6670973-645f-441a-bec7-6f5570345b92";
-
- /**
- * The SemanticAssignment Open Metadata Type name
- */
- public static final String SEMANTIC_ASSIGNMENT = "SemanticAssignment";
-
- /**
- * The SchemaAttributeType Open Metadata Type unique identifier
- */
- public static final String SCHEMA_ATTRIBUTE_TYPE_GUID = "2d955049-e59b-45dd-8e62-cde1add59f9e";
-
- /**
- * The SchemaAttributeType Open Metadata Type name
- */
- public static final String SCHEMA_ATTRIBUTE_TYPE = "SchemaAttributeType";
-
- /**
- * The AttributeForSchema Open Metadata Type unique identifier
- */
- public static final String ATTRIBUTE_FOR_SCHEMA_GUID = "86b176a2-015c-44a6-8106-54d5d69ba661";
-
- /**
- * The AttributeForSchema Open Metadata Type name
- */
- public static final String ATTRIBUTE_FOR_SCHEMA = "AttributeForSchema";
- //Instance Properties fields
-
- /**
- * The qualified name property
- */
- public static final String QUALIFIED_NAME = "qualifiedName";
-
- /**
- * The name property
- */
- public static final String NAME = "name";
-
- /**
- * The display name property
- */
- public static final String DISPLAY_NAME = "displayName";
-
- /**
- * The type property
- */
- public static final String TYPE_SEQUENCING = "type";
-
- /**
- * The GUID property
- */
- public static final String GUID_PARAMETER = "GUID";
-
- /**
- * The search parameter property
- */
- public static final String SEARCH_PARAMETER = "searchParameter";
-
- /**
- * The additional properties property
- */
- public static final String ADDITIONAL_PROPERTIES_PROPERTY_NAME = "additionalProperties";
-
- /**
- * The search criteria property
- */
- public static final String SEARCH_STRING_PARAMETER_NAME = "searchCriteria";
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/util/ExceptionHandler.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/util/ExceptionHandler.java
deleted file mode 100644
index 440ff24ab83..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/util/ExceptionHandler.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project */
-package org.odpi.openmetadata.accessservices.assetcatalog.util;
-
-import org.odpi.openmetadata.accessservices.assetcatalog.exception.AssetCatalogException;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogOMASAPIResponse;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.OMRSCheckedExceptionBase;
-
-/**
- * Exception handler used to capture OMRSCheckedExceptionBase and AssetCatalogException
- */
-public class ExceptionHandler {
-
- /**
- * Capture the OMRSCheckedExceptionBase exception and set on the AssetCatalogOMASAPIResponse corresponding HTTP code
- *
- * @param response - AssetCatalogOMASAPIResponse response
- * @param e - OMRSCheckedExceptionBase exception
- */
- public void captureOMRSCheckedExceptionBase(AssetCatalogOMASAPIResponse response, OMRSCheckedExceptionBase e) {
- response.setRelatedHTTPCode(e.getReportedHTTPCode());
- response.setExceptionClassName(e.getClass().getName());
- response.setExceptionErrorMessage(e.getReportedErrorMessage());
- response.setExceptionSystemAction(e.getReportedSystemAction());
- response.setExceptionUserAction(e.getReportedUserAction());
- }
-
- /**
- * Capture the AssetCatalogException and set on the AssetCatalogOMASAPIResponse corresponding HTTP code
- *
- * @param response AssetCatalogOMASAPIResponse
- * @param e AssetCatalogException exception
- */
- public void captureAssetCatalogException(AssetCatalogOMASAPIResponse response, AssetCatalogException e) {
- response.setRelatedHTTPCode(e.getReportedHTTPCode());
- response.setExceptionClassName(e.getClass().getName());
- response.setExceptionErrorMessage(e.getReportedErrorMessage());
- response.setExceptionSystemAction(e.getReportedSystemAction());
- response.setExceptionUserAction(e.getReportedUserAction());
- }
-
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/util/package-info.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/util/package-info.java
deleted file mode 100644
index 9dcdfdd4672..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/util/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * This package offers utility classes like an exception handler used to capture OMRSCheckedExceptionBase and
- * AssetCatalogException and a Constants class.
- */
-package org.odpi.openmetadata.accessservices.assetcatalog.util;
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/AssetCatalogHandlerTest.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/AssetCatalogHandlerTest.java
deleted file mode 100644
index 14b7cd65d57..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/AssetCatalogHandlerTest.java
+++ /dev/null
@@ -1,655 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.handlers;
-
-import org.junit.Before;
-import org.junit.Test;
-import org.mockito.InjectMocks;
-import org.mockito.Mock;
-import org.mockito.MockitoAnnotations;
-import org.odpi.openmetadata.accessservices.assetcatalog.converters.AssetCatalogConverter;
-import org.odpi.openmetadata.accessservices.assetcatalog.exception.AssetCatalogErrorCode;
-import org.odpi.openmetadata.accessservices.assetcatalog.exception.AssetCatalogException;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Classification;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Elements;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Type;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.body.SearchParameters;
-import org.odpi.openmetadata.accessservices.assetcatalog.service.ClockService;
-import org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.AssetHandler;
-import org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryErrorHandler;
-import org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryHandler;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.OMRSMetadataCollection;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceGraph;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefLink;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.PagingErrorException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.PropertyErrorException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertThrows;
-import static org.mockito.Mockito.doThrow;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.GUID_PARAMETER;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.NAME;
-import static org.odpi.openmetadata.accessservices.assetcatalog.util.Constants.SEARCH_STRING_PARAMETER_NAME;
-
-public class AssetCatalogHandlerTest {
-
- private static final String RELATIONSHIP_GUID = "212123-abc";
- private static final String ASSET_TYPE = "Asset";
- private static final String CLASSIFICATION_NAME = "Confidentiality";
- private static final Integer FROM = 0;
- private static final Integer PAGE_SIZE = 10;
- private static final String ASSET_TYPE_GUID = "ababa-12232-abc";
- private static final String SEARCH_CRITERIA = "employee";
- private static final String FIRST_GUID = "ababa-123-acbd";
- private static final String RELATIONSHIP_TYPE_GUID = "adadad-bcba-123";
- public static final String SERVER_NAME = "server";
- private final String USER = "test-user";
- private final String RELATIONSHIP_TYPE = "SemanticAssigment";
- private static final String PROCESS_TYPE = "Process";
- private static final String PROCESS_TYPE_GUID = "ProcessGUID";
- @Mock
- private RepositoryHandler repositoryHandler;
-
- @Mock
- private AssetHandler assetHandler;
-
- @Mock
- private OMRSRepositoryHelper repositoryHelper;
-
- @Mock
- private InvalidParameterHandler invalidParameterHandler;
-
- @Mock
- private RepositoryErrorHandler errorHandler;
-
- @Mock
- private AssetCatalogConverter assetCatalogConverter;
-
- @Mock
- private ClockService clockService;
-
- @InjectMocks
- private AssetCatalogHandler assetCatalogHandler;
-
- @InjectMocks
- private CommonHandler commonHandler;
-
- @Before
- public void before() {
- MockitoAnnotations.openMocks(this);
- }
-
- @Test
- public void getEntityDetails() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "getEntityDetails";
-
- EntityDetail mockEntityDetail = mockEntityDetails(FIRST_GUID);
- AssetCatalogBean assetCatalogBean = convertEntityToAssetCatalogBean(mockEntityDetail);
- when(assetCatalogConverter.getAssetCatalogBean(mockEntityDetail)).thenReturn(assetCatalogBean);
- AssetCatalogBean result = assetCatalogHandler.getEntityDetails(USER, FIRST_GUID, ASSET_TYPE);
-
- assertEquals(FIRST_GUID, result.getGuid());
- verify(invalidParameterHandler, times(1)).validateUserId(USER, methodName);
- verify(invalidParameterHandler, times(1)).validateGUID(FIRST_GUID, GUID_PARAMETER, methodName);
- }
-
- @Test
- public void getEntityDetails_throwsInvalidParameterException() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "getEntityDetails";
- mockEntityDetails(FIRST_GUID);
-
- doThrow(new InvalidParameterException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(SERVER_NAME), this.getClass().getName(), "", ""))
- .when(invalidParameterHandler).validateUserId(USER, methodName);
-
- assertThrows(InvalidParameterException.class, () -> assetCatalogHandler.getEntityDetails(USER, FIRST_GUID, ASSET_TYPE));
- }
-
- @Test
- public void getRelationshipsByEntityGUID() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "getRelationshipsByEntityGUID";
-
- List relationshipsByType = Collections.singletonList(mockRelationship());
-
- when(invalidParameterHandler.getMaxPagingSize()).thenReturn(500);
- when(assetHandler.getAttachmentLinks(USER, FIRST_GUID, GUID_PARAMETER,
- ASSET_TYPE, null, null, null, null, 0,
- false, false, 0, 500, null, methodName))
- .thenReturn(relationshipsByType);
- when(assetCatalogConverter.convertRelationships(relationshipsByType)).
- thenReturn(convertRelationships(relationshipsByType));
-
- List
- result = assetCatalogHandler.getRelationshipsByEntityGUID(USER, FIRST_GUID, ASSET_TYPE);
-
-
- assertEquals(relationshipsByType.get(0).getGUID(), result.get(0).getGuid());
- verify(invalidParameterHandler, times(1)).validateUserId(USER, methodName);
- verify(invalidParameterHandler, times(1)).validateGUID(FIRST_GUID, GUID_PARAMETER, methodName);
- }
-
- @Test
- public void getRelationshipsByEntityGUID_throwsInvalidParameterException() throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException {
-
- String methodName = "getRelationshipsByEntityGUID";
-
- List relationshipsByType = Collections.singletonList(mockRelationship());
-
- when(repositoryHandler.getRelationshipsByType(USER,
- FIRST_GUID,
- ASSET_TYPE,
- null,
- RELATIONSHIP_TYPE,
- methodName)).thenReturn(relationshipsByType);
-
- doThrow(new InvalidParameterException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(SERVER_NAME),
- this.getClass().getName(), "", ""))
- .when(invalidParameterHandler).validateUserId(USER, methodName);
-
- assertThrows(InvalidParameterException.class,
- () -> assetCatalogHandler.getRelationshipsByEntityGUID(USER, FIRST_GUID, ASSET_TYPE));
-
- }
-
- @Test
- public void getEntityClassificationByName() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "getEntityClassificationByName";
-
- EntityDetail entityDetail = new EntityDetail();
- when(commonHandler
- .getEntityByGUID(USER, FIRST_GUID, ASSET_TYPE))
- .thenReturn(entityDetail);
-
- entityDetail.setGUID(FIRST_GUID);
- entityDetail.setType(mockType(ASSET_TYPE, ASSET_TYPE_GUID));
- List
- classifications = mockClassifications();
- entityDetail.setClassifications(classifications);
- entityDetail.setProperties(mockProperties());
- Classification classification = new Classification();
- classification.setName(CLASSIFICATION_NAME);
- when(assetCatalogConverter.convertClassifications(classifications)).thenReturn(Collections.singletonList(classification));
-
- List result = assetCatalogHandler
- .getEntityClassificationByName(USER, FIRST_GUID, ASSET_TYPE, CLASSIFICATION_NAME);
-
-
- assertEquals(CLASSIFICATION_NAME, result.get(0).getName());
- verify(invalidParameterHandler, times(1)).validateUserId(USER, methodName);
- verify(invalidParameterHandler, times(1)).validateGUID(FIRST_GUID, GUID_PARAMETER, methodName);
- }
-
- @Test
- public void getEntityClassificationByName_throwsInvalidParameterException() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "getEntityClassificationByName";
-
- mockEntityDetails(FIRST_GUID);
-
- doThrow(new InvalidParameterException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(SERVER_NAME),
- this.getClass().getName(), "", ""))
- .when(invalidParameterHandler).validateUserId(USER, methodName);
-
- assertThrows(InvalidParameterException.class,
- () -> assetCatalogHandler.getEntityClassificationByName(USER, FIRST_GUID, ASSET_TYPE, CLASSIFICATION_NAME));
-
- }
-
- @Test
- public void getRelationships()
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "getRelationships";
-
- mockPagedRelationships(methodName);
- mockTypeDef(RELATIONSHIP_TYPE, RELATIONSHIP_TYPE_GUID);
-
- List result =
- assetCatalogHandler.getRelationships(USER, FIRST_GUID, ASSET_TYPE, RELATIONSHIP_TYPE, FROM, PAGE_SIZE);
-
- assertEquals(RELATIONSHIP_GUID, result.get(0).getGuid());
- assertEquals(RELATIONSHIP_TYPE, result.get(0).getType().getName());
- verify(invalidParameterHandler, times(1)).validateUserId(USER, methodName);
- verify(invalidParameterHandler, times(1)).validateGUID(FIRST_GUID, GUID_PARAMETER, methodName);
- }
-
- @Test
- public void getRelationships_throwsInvalidParameterException() throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String methodName = "getRelationships";
-
- mockPagedRelationships(methodName);
-
- doThrow(new InvalidParameterException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(SERVER_NAME),
- this.getClass().getName(), "", ""))
- .when(invalidParameterHandler).validateUserId(USER, methodName);
-
- assertThrows(InvalidParameterException.class,
- () -> assetCatalogHandler.getRelationships(USER, FIRST_GUID, ASSET_TYPE, RELATIONSHIP_TYPE, FROM, PAGE_SIZE));
-
- }
-
- @Test
- public void getRelationships_throwsPropertyServerException() throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String methodName = "getRelationships";
- mockTypeDef(RELATIONSHIP_TYPE, RELATIONSHIP_TYPE_GUID);
-
- doThrow(new PropertyServerException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(),
- this.getClass().getName(), "")).when(assetHandler).getAttachmentLinks(USER, FIRST_GUID, GUID_PARAMETER,
- ASSET_TYPE, RELATIONSHIP_TYPE_GUID, RELATIONSHIP_TYPE, null, null, 0,
- false, false, FROM, PAGE_SIZE, null, methodName);
-
- assertThrows(PropertyServerException.class,
- () -> assetCatalogHandler.getRelationships(USER, FIRST_GUID, ASSET_TYPE, RELATIONSHIP_TYPE, FROM, PAGE_SIZE));
- }
-
- @Test
- public void getRelationships_throwsUserNotAuthorizedException() throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- String methodName = "getRelationships";
- mockTypeDef(RELATIONSHIP_TYPE, RELATIONSHIP_TYPE_GUID);
-
- doThrow(new UserNotAuthorizedException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(),
- this.getClass().getName(), "", "")).when(assetHandler).getAttachmentLinks(USER, FIRST_GUID, GUID_PARAMETER,
- ASSET_TYPE, RELATIONSHIP_TYPE_GUID, RELATIONSHIP_TYPE, null, null, 0,
- false, false, FROM, PAGE_SIZE, null, methodName);
-
- assertThrows(UserNotAuthorizedException.class,
- () -> assetCatalogHandler.getRelationships(USER, FIRST_GUID, ASSET_TYPE, RELATIONSHIP_TYPE, FROM, PAGE_SIZE));
- }
-
- @Test
- public void getEntitiesFromNeighborhood()
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException,
- EntityNotKnownException, FunctionNotSupportedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, RepositoryErrorException, PropertyErrorException, AssetCatalogException, TypeErrorException {
-
- OMRSMetadataCollection metadataCollection = mockMetadataCollection();
- InstanceGraph instanceGraph = mockInstanceGraph();
- when(metadataCollection.getEntityNeighborhood(USER,
- FIRST_GUID,
- Collections.singletonList(ASSET_TYPE_GUID),
- Collections.singletonList(RELATIONSHIP_TYPE_GUID),
- Collections.singletonList(InstanceStatus.ACTIVE),
- null,
- null,
- 1))
- .thenReturn(instanceGraph);
- for(EntityDetail entityDetail : instanceGraph.getEntities()) {
- AssetCatalogBean assetCatalogBean = convertEntityToAssetCatalogBean(entityDetail);
- when(assetCatalogConverter.getAssetCatalogBean(entityDetail)).thenReturn(assetCatalogBean);
- }
- SearchParameters searchParams = mockSearchParams();
- mockTypeDef(ASSET_TYPE, ASSET_TYPE_GUID);
- List result = assetCatalogHandler.getEntitiesFromNeighborhood(USER, FIRST_GUID, searchParams, SERVER_NAME);
-
- assertEquals(FIRST_GUID, result.get(0).getGuid());
- String methodName = "getEntitiesFromNeighborhood";
- verify(invalidParameterHandler, times(1)).validateUserId(USER, methodName);
- verify(invalidParameterHandler, times(1)).validateGUID(FIRST_GUID, GUID_PARAMETER, methodName);
- verify(invalidParameterHandler, times(1)).validateObject(searchParams, "searchParameter", methodName);
- }
-
- private AssetCatalogBean convertEntityToAssetCatalogBean(EntityDetail entityDetail) {
- AssetCatalogBean assetCatalogBean = new AssetCatalogBean();
- assetCatalogBean.setGuid(entityDetail.getGUID());
- assetCatalogBean.setType(convertInstanceType(entityDetail.getType()));
- return assetCatalogBean;
- }
-
- @Test
- public void getEntitiesFromNeighborhood_throwsInvalidParameterException() throws InvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException, EntityNotKnownException, FunctionNotSupportedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, RepositoryErrorException, PropertyErrorException, TypeErrorException {
- String methodName = "getEntitiesFromNeighborhood";
-
- OMRSMetadataCollection metadataCollection = mockMetadataCollection();
- when(metadataCollection.getEntityNeighborhood(USER,
- FIRST_GUID,
- Collections.singletonList(ASSET_TYPE_GUID),
- Collections.singletonList(RELATIONSHIP_TYPE_GUID),
- Collections.singletonList(InstanceStatus.ACTIVE),
- null,
- null,
- 1))
- .thenReturn(mockInstanceGraph());
-
- SearchParameters searchParams = mockSearchParams();
-
- doThrow(new InvalidParameterException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(SERVER_NAME),
- this.getClass().getName(), "", ""))
- .when(invalidParameterHandler).validateUserId(USER, methodName);
-
- assertThrows(InvalidParameterException.class,
- () -> assetCatalogHandler.getEntitiesFromNeighborhood(USER, FIRST_GUID, searchParams, SERVER_NAME));
- }
-
- @Test
- public void getEntitiesFromNeighborhood_throwsPropertyServerException() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException, EntityNotKnownException, FunctionNotSupportedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, RepositoryErrorException, PropertyErrorException, TypeErrorException, PropertyServerException {
-
- OMRSMetadataCollection metadataCollection = mockMetadataCollection();
- SearchParameters searchParams = mockSearchParams();
- mockTypeDef(ASSET_TYPE, ASSET_TYPE_GUID);
-
- String methodName = "getAssetNeighborhood";
- FunctionNotSupportedException mockedException = new FunctionNotSupportedException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(SERVER_NAME),
- this.getClass().getName(), "");
- doThrow(mockedException).when(metadataCollection).getEntityNeighborhood(USER,
- FIRST_GUID,
- Collections.singletonList(ASSET_TYPE_GUID),
- Collections.singletonList(RELATIONSHIP_TYPE_GUID),
- Collections.singletonList(InstanceStatus.ACTIVE),
- null,
- null,
- 1);
- doThrow(PropertyServerException.class).when(errorHandler).handleRepositoryError(mockedException, methodName);
- assertThrows(PropertyServerException.class,
- () -> assetCatalogHandler.getEntitiesFromNeighborhood(USER, FIRST_GUID, searchParams, SERVER_NAME));
-
- }
-
- @Test
- public void getEntitiesFromNeighborhood_throwsUserNotAuthorizedException() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException, EntityNotKnownException, FunctionNotSupportedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, RepositoryErrorException, PropertyErrorException, TypeErrorException, UserNotAuthorizedException {
- OMRSMetadataCollection metadataCollection = mockMetadataCollection();
- SearchParameters searchParams = mockSearchParams();
- String methodName = "getAssetNeighborhood";
- mockTypeDef(ASSET_TYPE, ASSET_TYPE_GUID);
-
- doThrow(new org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(SERVER_NAME),
- this.getClass().getName(), "", "")).when(metadataCollection).getEntityNeighborhood(USER,
- FIRST_GUID,
- Collections.singletonList(ASSET_TYPE_GUID),
- Collections.singletonList(RELATIONSHIP_TYPE_GUID),
- Collections.singletonList(InstanceStatus.ACTIVE),
- null,
- null,
- 1);
- doThrow(new UserNotAuthorizedException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(SERVER_NAME),
- this.getClass().getName(), "", "")).when(errorHandler).handleUnauthorizedUser(USER, methodName);
- assertThrows(UserNotAuthorizedException.class,
- () -> assetCatalogHandler.getEntitiesFromNeighborhood(USER, FIRST_GUID, searchParams, SERVER_NAME));
- }
-
- @Test
- public void getEntitiesFromNeighborhood_throwsAssetNotFoundException() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException, EntityNotKnownException, FunctionNotSupportedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, RepositoryErrorException, PropertyErrorException, TypeErrorException {
- OMRSMetadataCollection metadataCollection = mockMetadataCollection();
-
- mockTypeDef(ASSET_TYPE, ASSET_TYPE_GUID);
- when(metadataCollection.getEntityNeighborhood(USER,
- FIRST_GUID,
- Collections.singletonList(ASSET_TYPE_GUID),
- Collections.singletonList(RELATIONSHIP_TYPE_GUID),
- Collections.singletonList(InstanceStatus.ACTIVE),
- null,
- null,
- 1))
- .thenReturn(null);
-
- SearchParameters searchParams = mockSearchParams();
-
- assertThrows(AssetCatalogException.class,
- () -> assetCatalogHandler.getEntitiesFromNeighborhood(USER, FIRST_GUID, searchParams, SERVER_NAME));
-
- }
-
- @Test
- public void getTypeDefGUID() {
- mockTypeDef(RELATIONSHIP_TYPE, RELATIONSHIP_TYPE_GUID);
-
- String typeDefGUID = commonHandler.getTypeDefGUID(USER, RELATIONSHIP_TYPE);
- assertEquals(RELATIONSHIP_TYPE_GUID, typeDefGUID);
- }
-
- @Test
- public void searchByType() throws InvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException,
- FunctionNotSupportedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException,
- RepositoryErrorException, PropertyErrorException, TypeErrorException, PagingErrorException, EntityNotKnownException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "searchByType";
- SearchParameters searchParams = mockSearchParams();
- mockTypeDef(ASSET_TYPE, ASSET_TYPE_GUID);
- mockSearchString(SEARCH_CRITERIA, searchParams.getCaseInsensitive());
-
- List mockedEntities = mockEntities();
- when(assetHandler.getEntitiesByValue(USER, SEARCH_CRITERIA,
- SEARCH_STRING_PARAMETER_NAME, ASSET_TYPE_GUID, ASSET_TYPE, Collections.singletonList(NAME),
- searchParams.getExactMatch(), false, null, null,
- false, false, null,
- SequencingOrder.ANY.getName(), FROM, PAGE_SIZE, null, methodName)).thenReturn(mockedEntities);
-
- for(EntityDetail mockedEntity : mockedEntities) {
- Elements mockedElements = getElementsFromEntity(mockedEntity);
- when(assetCatalogConverter.buildAssetElements(mockedEntity)).thenReturn(mockedElements);
- }
- List elements = assetCatalogHandler.searchByType(USER, SEARCH_CRITERIA, searchParams);
- assertEquals(2, elements.size());
- if (FIRST_GUID.equals(elements.get(0).getGuid()))
- {
- assertEquals(FIRST_GUID, elements.get(0).getGuid());
- assertEquals(ASSET_TYPE, elements.get(0).getType().getName());
- }
- else
- {
- assertEquals(FIRST_GUID, elements.get(1).getGuid());
- assertEquals(ASSET_TYPE, elements.get(1).getType().getName());
- }
- verify(invalidParameterHandler, times(1)).validateUserId(USER, methodName);
- verify(invalidParameterHandler, times(1)).validatePaging(searchParams.getFrom(), searchParams.getPageSize(), methodName);
- verify(invalidParameterHandler, times(1)).validateObject(searchParams, "searchParameter", methodName);
- }
-
- private Elements getElementsFromEntity(EntityDetail mockedEntity) {
- if (mockedEntity == null) {
- return null;
- }
-
- Elements element = new Elements();
- element.setGuid(mockedEntity.getGUID());
- element.setType(convertInstanceType(mockedEntity.getType()));
-
- return element;
- }
-
- private Type convertInstanceType(InstanceType instanceType) {
- Type type = new Type();
- type.setName(instanceType.getTypeDefName());
- type.setVersion(instanceType.getTypeDefVersion());
- return type;
- }
-
- @Test
- public void searchByType_throwsInvalidParameterException() throws InvalidParameterException {
- String methodName = "searchByType";
- SearchParameters searchParams = mockSearchParams();
-
- doThrow(new InvalidParameterException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(),
- this.getClass().getName(), "", ""))
- .when(invalidParameterHandler).validateUserId(USER, methodName);
-
- assertThrows(InvalidParameterException.class,
- () -> assetCatalogHandler.searchByType(USER, SEARCH_CRITERIA, searchParams));
-
- }
-
- @Test
- public void buildContextByType() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "buildContextByType";
-
- EntityDetail mockedEntity = mockEntityDetails(FIRST_GUID);
- mockTypeDef(ASSET_TYPE, ASSET_TYPE_GUID);
- Elements mockedElements = getElementsFromEntity(mockedEntity);
- when(assetCatalogConverter.buildAssetElements(mockedEntity)).thenReturn(mockedElements);
- Elements elements = assetCatalogHandler.buildContextByType(USER, FIRST_GUID, ASSET_TYPE);
-
- assertEquals(FIRST_GUID, elements.getGuid());
- assertEquals(ASSET_TYPE, elements.getType().getName());
- verify(invalidParameterHandler, times(1)).validateUserId(USER, methodName);
- }
-
- @Test
- public void buildContextByType_throwsInvalidParameterException() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- String methodName = "buildContextByType";
- mockEntityDetails(FIRST_GUID);
- mockTypeDef(ASSET_TYPE, ASSET_TYPE_GUID);
-
- doThrow(new InvalidParameterException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(SERVER_NAME),
- this.getClass().getName(), "", ""))
- .when(invalidParameterHandler).validateUserId(USER, methodName);
-
- assertThrows(InvalidParameterException.class,
- () -> assetCatalogHandler.buildContextByType(USER, FIRST_GUID, ASSET_TYPE));
- }
-
- private SearchParameters mockSearchParams() {
- SearchParameters searchParameters = new SearchParameters();
- searchParameters.setLevel(1);
- searchParameters.setFrom(FROM);
- searchParameters.setPageSize(PAGE_SIZE);
- searchParameters.setRelationshipTypeGUIDs(Collections.singletonList(RELATIONSHIP_TYPE_GUID));
- searchParameters.setEntityTypes(Collections.singletonList(ASSET_TYPE));
- searchParameters.setCaseInsensitive(Boolean.FALSE);
- return searchParameters;
- }
-
-
- private void mockPagedRelationships(String methodName) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException {
- List mockedRelationships = mockRelationships();
- when(assetHandler.getAttachmentLinks(USER, FIRST_GUID, GUID_PARAMETER,
- ASSET_TYPE, RELATIONSHIP_TYPE_GUID, RELATIONSHIP_TYPE, null, null, 0,
- false, false, FROM, PAGE_SIZE, null, methodName)).thenReturn(mockedRelationships);
-
- when(assetCatalogConverter.convertRelationships(mockedRelationships)).
- thenReturn(convertRelationships(mockedRelationships));
- }
-
- private OMRSMetadataCollection mockMetadataCollection() throws RepositoryErrorException {
- OMRSMetadataCollection metadataCollection = mock(OMRSMetadataCollection.class);
-
- when(repositoryHandler.getMetadataCollection()).thenReturn(metadataCollection);
-
- when(metadataCollection.getMetadataCollectionId(USER)).thenReturn("metadataCollectionID");
- when(repositoryHelper.getMetadataCollectionName("metadataCollectionID")).thenReturn("metadataCollectionName");
- return metadataCollection;
- }
-
- private InstanceGraph mockInstanceGraph() {
- InstanceGraph instanceGraph = new InstanceGraph();
- instanceGraph.setEntities(mockEntities());
- instanceGraph.setRelationships(mockRelationships());
- return instanceGraph;
- }
-
- private List mockRelationships() {
- return Collections.singletonList(mockRelationship());
- }
-
- private List mockEntities() {
- List entityDetails = new ArrayList<>();
-
- EntityDetail entityDetail = new EntityDetail();
- entityDetail.setGUID(FIRST_GUID);
- entityDetail.setType(mockInstanceType(ASSET_TYPE, ASSET_TYPE_GUID));
- entityDetails.add(entityDetail);
-
- EntityDetail processEntityDetail = new EntityDetail();
- processEntityDetail.setType(mockInstanceType(PROCESS_TYPE, PROCESS_TYPE_GUID));
- entityDetails.add(processEntityDetail);
-
- return entityDetails;
- }
-
- private EntityDetail mockEntityDetails(String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- EntityDetail entityDetail = mock(EntityDetail.class);
- when(commonHandler
- .getEntityByGUID(USER, guid, ASSET_TYPE))
- .thenReturn(entityDetail);
-
- when(entityDetail.getGUID()).thenReturn(guid);
- when(entityDetail.getType()).thenReturn(mockType(ASSET_TYPE, ASSET_TYPE_GUID));
- when(entityDetail.getClassifications()).thenReturn(mockClassifications());
- when(entityDetail.getProperties()).thenReturn(mockProperties());
- return entityDetail;
- }
-
- private InstanceProperties mockProperties() {
- return mock(InstanceProperties.class);
- }
-
- private List mockClassifications() {
- return Collections.singletonList(mockClassification());
- }
-
- private org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification mockClassification() {
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classification =
- new org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification();
- classification.setName(CLASSIFICATION_NAME);
- return classification;
- }
-
- private Relationship mockRelationship() {
- Relationship relationship = new Relationship();
- relationship.setGUID(RELATIONSHIP_GUID);
- InstanceType instanceType = mockInstanceType(RELATIONSHIP_TYPE, RELATIONSHIP_TYPE_GUID);
- relationship.setType(instanceType);
- return relationship;
- }
-
- private List convertRelationships(
- List relationships) {
- List result = new ArrayList<>();
- for (Relationship relationship : relationships) {
- org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship convertedRelationship =
- new org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship();
- convertedRelationship.setGuid(relationship.getGUID());
- convertedRelationship.setType(convertInstanceType(relationship.getType()));
- result.add(convertedRelationship);
- }
- return result;
- }
-
- private InstanceType mockInstanceType(String typeName, String typeGUID) {
- InstanceType instanceType = new InstanceType();
- instanceType.setTypeDefName(typeName);
- instanceType.setTypeDefGUID(typeGUID);
- return instanceType;
- }
-
- private InstanceType mockType(String typeName, String guid) {
- InstanceType entityTypeDef = new InstanceType();
- entityTypeDef.setTypeDefGUID(guid);
- entityTypeDef.setTypeDefName(typeName);
- return entityTypeDef;
- }
-
- private void mockTypeDef(String typeName, String typeGUID) {
- TypeDef entityTypeDef = mock(TypeDef.class);
- when(repositoryHelper.getTypeDefByName(USER, typeName)).thenReturn(entityTypeDef);
-
- when(entityTypeDef.getName()).thenReturn(typeName);
- when(entityTypeDef.getGUID()).thenReturn(typeGUID);
- TypeDefLink typeDefLink = mock(TypeDefLink.class);
- when(typeDefLink.getName()).thenReturn("Referenceable");
- when(entityTypeDef.getSuperType()).thenReturn(typeDefLink);
- }
-
- private void mockSearchString(String searchCriteria, boolean isCaseSensitive) {
- when(repositoryHelper.getContainsRegex(searchCriteria, isCaseSensitive)).thenReturn(searchCriteria);
- }
-
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/RelationshipHandlerTest.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/RelationshipHandlerTest.java
deleted file mode 100644
index 68be2c3ada6..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/handlers/RelationshipHandlerTest.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.handlers;
-
-import org.junit.Before;
-import org.junit.Test;
-import org.mockito.InjectMocks;
-import org.mockito.Mock;
-import org.mockito.MockitoAnnotations;
-import org.odpi.openmetadata.accessservices.assetcatalog.exception.AssetCatalogErrorCode;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean;
-import org.odpi.openmetadata.accessservices.assetcatalog.service.ClockService;
-import org.odpi.openmetadata.accessservices.assetcatalog.util.Constants;
-import org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.AssetHandler;
-import org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryHandler;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.OMRSMetadataCollection;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertThrows;
-import static org.mockito.Mockito.doThrow;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-
-public class RelationshipHandlerTest {
-
- private static final String RELATIONSHIP_GUID = "212123-abc";
- private static final String FIRST_GUID = "ababa-123-acbd";
- private static final String SECOND_GUID = "ababc-2134-2341f";
- private static final String RELATIONSHIP_TYPE_GUID = "adadad-bcba-123";
- public static final String SERVER_NAME = "server-name";
- private final String USER = "test-user";
- private final String RELATIONSHIP_TYPE = "SemanticAssigment";
- @Mock
- private RepositoryHandler repositoryHandler;
-
- @Mock
- private OMRSRepositoryHelper repositoryHelper;
-
- @Mock
- private AssetHandler assetHandler;
-
- @Mock
- private InvalidParameterHandler invalidParameterHandler;
-
- @Mock
- ClockService clockService;
-
- @InjectMocks
- private RelationshipHandler relationshipHandler;
-
- @Before
- public void before() {
- MockitoAnnotations.openMocks(this);
- }
-
- @Test
- public void getRelationshipBetweenEntities()
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, RepositoryErrorException {
- String methodName = "getRelationshipBetweenEntities";
-
- Relationship mock = mockRelationship();
- mockTypeDef(RELATIONSHIP_TYPE, RELATIONSHIP_TYPE_GUID);
- mockMetadataCollection();
-
- when(assetHandler.getUniqueAttachmentLink(USER, FIRST_GUID,
- Constants.GUID_PARAMETER, "", RELATIONSHIP_TYPE_GUID, RELATIONSHIP_TYPE, SECOND_GUID,
- "", 0, false, false, null, methodName)).thenReturn(mock);
-
- org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship
- result = relationshipHandler.getRelationshipBetweenEntities(USER, SERVER_NAME, FIRST_GUID, SECOND_GUID,
- RELATIONSHIP_TYPE);
-
- assertNotNull(result);
- assertEquals(mock.getGUID(), result.getGuid());
- verify(invalidParameterHandler, times(1)).validateUserId(USER, methodName);
- verify(invalidParameterHandler, times(1)).validateGUID(FIRST_GUID, "entity1GUID", methodName);
- verify(invalidParameterHandler, times(1)).validateGUID(SECOND_GUID, "entity2GUID", methodName);
- }
-
- @Test
- public void getRelationshipBetweenEntities_throwsUserNotAuthorizedException()
- throws PropertyServerException, UserNotAuthorizedException, RepositoryErrorException, InvalidParameterException{
- String methodName = "getRelationshipBetweenEntities";
- mockTypeDef(RELATIONSHIP_TYPE, RELATIONSHIP_TYPE_GUID);
- mockMetadataCollection();
-
- UserNotAuthorizedException mockedException = new UserNotAuthorizedException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(), this.getClass().getName(), "", "");
- doThrow(mockedException).when(assetHandler).getUniqueAttachmentLink(USER, FIRST_GUID,
- Constants.GUID_PARAMETER, "", RELATIONSHIP_TYPE_GUID, RELATIONSHIP_TYPE, SECOND_GUID,
- "", 0, false, false, null, methodName);
-
- assertThrows(UserNotAuthorizedException.class, () ->
- relationshipHandler.getRelationshipBetweenEntities(USER, SERVER_NAME, FIRST_GUID, SECOND_GUID, RELATIONSHIP_TYPE));
-
- }
-
- @Test
- public void getRelationshipBetweenEntities_throwsInvalidParameterException() throws InvalidParameterException {
-
- String methodName = "getRelationshipBetweenEntities";
- mockTypeDef(RELATIONSHIP_TYPE, RELATIONSHIP_TYPE_GUID);
-
- InvalidParameterException mockedException = new InvalidParameterException(AssetCatalogErrorCode.SERVICE_NOT_INITIALIZED.getMessageDefinition(), this.getClass().getName(), "", "");
-
- doThrow(mockedException).when(invalidParameterHandler).validateGUID(FIRST_GUID, "entity1GUID", methodName);
-
- assertThrows(InvalidParameterException.class, () ->
- relationshipHandler.getRelationshipBetweenEntities(USER, SERVER_NAME, FIRST_GUID, SECOND_GUID, RELATIONSHIP_TYPE));
-
- }
-
- private void mockTypeDef(String typeName, String typeGUID) {
- TypeDef entityTypeDef = mock(TypeDef.class);
- when(repositoryHelper.getTypeDefByName(USER, typeName)).thenReturn(entityTypeDef);
-
- when(entityTypeDef.getName()).thenReturn(typeName);
- when(entityTypeDef.getGUID()).thenReturn(typeGUID);
- }
-
- private Relationship mockRelationship() {
- Relationship relationship = mock(Relationship.class);
- when(relationship.getGUID()).thenReturn(RELATIONSHIP_GUID);
- return relationship;
- }
-
- private void mockMetadataCollection() throws RepositoryErrorException {
- OMRSMetadataCollection metadataCollection = mock(OMRSMetadataCollection.class);
-
- when(repositoryHandler.getMetadataCollection()).thenReturn(metadataCollection);
-
- when(metadataCollection.getMetadataCollectionId(USER)).thenReturn("metadataCollectionID");
- when(repositoryHelper.getMetadataCollectionName("metadataCollectionID")).thenReturn("metadataCollectionName");
- }
-
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRelationshipServiceTest.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRelationshipServiceTest.java
deleted file mode 100644
index 77e7b82c09b..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRelationshipServiceTest.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.service;
-
-import org.junit.Before;
-import org.junit.Test;
-import org.mockito.InjectMocks;
-import org.mockito.Mock;
-import org.mockito.MockitoAnnotations;
-import org.odpi.openmetadata.accessservices.assetcatalog.admin.AssetCatalogInstanceHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.handlers.RelationshipHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Element;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Type;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.RelationshipResponse;
-import org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException;
-import org.springframework.util.ReflectionUtils;
-
-import java.lang.reflect.Field;
-
-import static org.junit.Assert.assertEquals;
-import static org.mockito.Mockito.when;
-
-public class AssetCatalogRelationshipServiceTest {
-
- private static final String FIRST_GUID = "ababa-123-acbd";
- private static final String SECOND_GUID = "ababc-2134-2341f";
- private final String USER = "test-user";
- private final String SERVER_NAME = "omas";
- private final String RELATIONSHIP_TYPE = "SemanticAssigment";
- @Mock
- RESTExceptionHandler restExceptionHandler;
- private Relationship response;
- @Mock
- private AssetCatalogInstanceHandler instanceHandler;
-
- @InjectMocks
- private AssetCatalogRelationshipRESTService assetCatalogRelationshipService;
-
- @Mock
- private RelationshipHandler relationshipHandler;
-
-
- @Before
- public void before() {
- MockitoAnnotations.openMocks(this);
-
- Field instanceHandlerField = ReflectionUtils.findField(AssetCatalogRelationshipRESTService.class, "instanceHandler");
- instanceHandlerField.setAccessible(true);
- ReflectionUtils.setField(instanceHandlerField, assetCatalogRelationshipService, instanceHandler);
- instanceHandlerField.setAccessible(false);
-
- Field restExceptionHandlerField = ReflectionUtils.findField(AssetCatalogRelationshipRESTService.class, "restExceptionHandler");
- restExceptionHandlerField.setAccessible(true);
- ReflectionUtils.setField(restExceptionHandlerField, assetCatalogRelationshipService, restExceptionHandler);
- restExceptionHandlerField.setAccessible(false);
-
- response = mockRelationshipResponse();
- }
-
-
- @Test
- public void testGetRelationshipBetweenEntities()
- throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, RepositoryErrorException {
- when(instanceHandler.getRelationshipHandler(USER,
- SERVER_NAME,
- "getRelationshipBetweenEntities"))
- .thenReturn(relationshipHandler);
-
-
- when(relationshipHandler
- .getRelationshipBetweenEntities(USER, SERVER_NAME, FIRST_GUID, SECOND_GUID, RELATIONSHIP_TYPE))
- .thenReturn(response);
-
- RelationshipResponse relationshipBetweenEntities = assetCatalogRelationshipService.getRelationshipBetweenEntities(SERVER_NAME,
- USER,
- FIRST_GUID,
- SECOND_GUID,
- RELATIONSHIP_TYPE);
- assertEquals(RELATIONSHIP_TYPE, relationshipBetweenEntities.getRelationship().getType().getName());
- assertEquals(response.getGuid(), relationshipBetweenEntities.getRelationship().getGuid());
- assertEquals(response.getFromEntity().getGuid(), relationshipBetweenEntities.getRelationship().getFromEntity().getGuid());
- assertEquals(response.getToEntity().getGuid(), relationshipBetweenEntities.getRelationship().getToEntity().getGuid());
- }
-
- private Relationship mockRelationshipResponse() {
- Relationship relationshipsResponse = new Relationship();
- Type type = new Type();
- type.setName(RELATIONSHIP_TYPE);
- relationshipsResponse.setType(type);
- relationshipsResponse.setGuid("d1213-dabcf-dafc");
- relationshipsResponse.setFromEntity(mockElement(FIRST_GUID));
- relationshipsResponse.setToEntity(mockElement(SECOND_GUID));
- return relationshipsResponse;
- }
-
- private Element mockElement(String guid) {
- Element asset = new Element();
- asset.setGuid(guid);
- return asset;
- }
-
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogServiceTest.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogServiceTest.java
deleted file mode 100644
index decc800a694..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-server/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogServiceTest.java
+++ /dev/null
@@ -1,279 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.service;
-
-import org.junit.Before;
-import org.junit.Test;
-import org.mockito.InjectMocks;
-import org.mockito.Mock;
-import org.mockito.MockitoAnnotations;
-import org.odpi.openmetadata.accessservices.assetcatalog.admin.AssetCatalogInstanceHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.handlers.AssetCatalogHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.handlers.CommonHandler;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Classification;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Element;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Elements;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.Type;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.body.SearchParameters;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetListResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.ClassificationListResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.RelationshipListResponse;
-import org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-import org.springframework.util.ReflectionUtils;
-
-import java.lang.reflect.Field;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.mockito.Mockito.when;
-
-public class AssetCatalogServiceTest {
-
- private static final String USER = "test-user";
- private static final String SERVER_NAME = "omas";
- private static final String FIRST_GUID = "ababa-123-acbd";
- private static final String ASSET_TYPE = "Process";
- private static final String SECOND_GUID = "ababc-2134-2341f";
- private static final String RELATIONSHIP_TYPE = "SemanticAssigment";
- private static final String RELATIONSHIP_TYPE_GUID = "adadad-bcba-123";
- private static final String CLASSIFICATION_NAME = "Confidentiality";
- private static final String SEARCH_CRITERIA = "employee";
-
- @Mock
- RESTExceptionHandler restExceptionHandler;
-
- @Mock
- private AssetCatalogInstanceHandler instanceHandler;
-
- @InjectMocks
- private AssetCatalogRESTService assetCatalogRESTService;
-
- @Mock
- private AssetCatalogHandler assetCatalogHandler;
-
- @Mock
- private CommonHandler commonHandler;
-
- @Before
- public void before() {
- MockitoAnnotations.openMocks(this);
-
- Field instanceHandlerField = ReflectionUtils.findField(AssetCatalogRESTService.class, "instanceHandler");
- if(instanceHandlerField != null) {
- instanceHandlerField.setAccessible(true);
- ReflectionUtils.setField(instanceHandlerField, assetCatalogRESTService, instanceHandler);
- instanceHandlerField.setAccessible(false);
- }
-
- Field restExceptionHandlerField = ReflectionUtils.findField(AssetCatalogRESTService.class, "restExceptionHandler");
- if(restExceptionHandlerField != null) {
- restExceptionHandlerField.setAccessible(true);
- ReflectionUtils.setField(restExceptionHandlerField, assetCatalogRESTService, restExceptionHandler);
- restExceptionHandlerField.setAccessible(false);
- }
- }
-
- @Test
- public void testGetAssetDetailsByGUID() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
-
- AssetCatalogBean response = mockAssetDescription(FIRST_GUID);
-
- when(instanceHandler.getAssetCatalogHandler(USER,
- SERVER_NAME,
- "getAssetDetailsByGUID"))
- .thenReturn(assetCatalogHandler);
-
- when(assetCatalogHandler
- .getEntityDetails(USER, FIRST_GUID, ASSET_TYPE))
- .thenReturn(response);
-
- AssetCatalogResponse assetDetailsByGUID = assetCatalogRESTService.getAssetDetailsByGUID(SERVER_NAME,
- USER,
- FIRST_GUID,
- ASSET_TYPE);
- assertEquals(FIRST_GUID, assetDetailsByGUID.getAssetCatalogBean().getGuid());
- assertEquals(response.getGuid(), assetDetailsByGUID.getAssetCatalogBean().getGuid());
- assertEquals(response.getType().getName(), assetDetailsByGUID.getAssetCatalogBean().getType().getName());
- }
-
- @Test
- public void testGetAssetUniverseByGUID() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- AssetCatalogBean response = mockAssetDescription(FIRST_GUID);
-
- when(instanceHandler.getAssetCatalogHandler(USER,
- SERVER_NAME,
- "getAssetUniverseByGUID"))
- .thenReturn(assetCatalogHandler);
-
- when(assetCatalogHandler
- .getEntityDetails(USER, FIRST_GUID, ASSET_TYPE))
- .thenReturn(response);
-
- AssetCatalogResponse assetDetailsByGUID = assetCatalogRESTService.getAssetUniverseByGUID(SERVER_NAME,
- USER,
- FIRST_GUID,
- ASSET_TYPE);
- assertEquals(FIRST_GUID, assetDetailsByGUID.getAssetCatalogBean().getGuid());
- assertEquals(response.getGuid(), assetDetailsByGUID.getAssetCatalogBean().getGuid());
- assertEquals(response.getType().getName(), assetDetailsByGUID.getAssetCatalogBean().getType().getName());
- assertNotNull(assetDetailsByGUID.getAssetCatalogBean().getRelationships());
- }
-
-
- @Test
- public void testGetAssetRelationships() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- List response = new ArrayList<>();
- response.add(mockRelationshipResponse());
-
- when(instanceHandler.getAssetCatalogHandler(USER,
- SERVER_NAME,
- "getAssetRelationships"))
- .thenReturn(assetCatalogHandler);
- when(commonHandler
- .getTypeDefGUID(USER, RELATIONSHIP_TYPE))
- .thenReturn(RELATIONSHIP_TYPE_GUID);
-
- when(assetCatalogHandler
- .getRelationships(USER, FIRST_GUID, ASSET_TYPE, RELATIONSHIP_TYPE, 0, 10))
- .thenReturn(response);
-
- RelationshipListResponse assetRelationships = assetCatalogRESTService.getAssetRelationships(SERVER_NAME,
- USER,
- FIRST_GUID,
- ASSET_TYPE,
- RELATIONSHIP_TYPE,
- 0,
- 10);
-
- assertEquals(RELATIONSHIP_TYPE_GUID, assetRelationships.getRelationships().get(0).getGuid());
- assertEquals(response.get(0).getGuid(), assetRelationships.getRelationships().get(0).getGuid());
- assertEquals(response.get(0).getType().getName(), assetRelationships.getRelationships().get(0).getType().getName());
- }
-
- @Test
- public void testGetClassificationByAssetGUID() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- List response = new ArrayList<>();
- response.add(mockClassification(CLASSIFICATION_NAME));
-
- when(instanceHandler.getAssetCatalogHandler(USER,
- SERVER_NAME,
- "getClassificationByAssetGUID"))
- .thenReturn(assetCatalogHandler);
-
- when(assetCatalogHandler
- .getEntityClassificationByName(USER, FIRST_GUID, ASSET_TYPE, CLASSIFICATION_NAME))
- .thenReturn(response);
-
- ClassificationListResponse classificationByAssetGUID = assetCatalogRESTService.getClassificationByAssetGUID(SERVER_NAME,
- USER,
- FIRST_GUID,
- ASSET_TYPE,
- CLASSIFICATION_NAME);
-
- assertEquals(CLASSIFICATION_NAME, classificationByAssetGUID.getClassifications().get(0).getName());
- assertEquals(response.get(0).getName(), classificationByAssetGUID.getClassifications().get(0).getName());
- }
-
- @Test
- public void testSearchByType()
- throws org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase {
- SearchParameters searchParameters = mockSearchParams();
- List response = new ArrayList<>();
- response.add(mockTerm(FIRST_GUID));
-
- when(instanceHandler.getAssetCatalogHandler(USER,
- SERVER_NAME,
- "searchByType"))
- .thenReturn(assetCatalogHandler);
-
- when(assetCatalogHandler
- .searchByType(USER, SEARCH_CRITERIA, searchParameters))
- .thenReturn(response);
-
- AssetListResponse assetResponse = assetCatalogRESTService.searchByType(SERVER_NAME,
- USER,
- SEARCH_CRITERIA,
- searchParameters);
-
- assertEquals(response.get(0).getGuid(), assetResponse.getElementsList().get(0).getGuid());
- }
-
- @Test
- public void testBuildContext() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- Elements response = mockTerm(FIRST_GUID);
-
- when(instanceHandler.getAssetCatalogHandler(USER,
- SERVER_NAME,
- "buildContext"))
- .thenReturn(assetCatalogHandler);
-
- when(assetCatalogHandler
- .buildContextByType(USER, FIRST_GUID, ASSET_TYPE))
- .thenReturn(response);
-
- AssetResponse assetResponse = assetCatalogRESTService.buildContext(SERVER_NAME,
- USER,
- FIRST_GUID,
- ASSET_TYPE);
-
- assertEquals(response.getGuid(), assetResponse.getAsset().getGuid());
- }
-
- private Elements mockTerm(String guid) {
- Elements elements = new Elements();
- elements.setGuid(guid);
- return elements;
- }
-
- private SearchParameters mockSearchParams() {
- SearchParameters searchParameters = new SearchParameters();
- searchParameters.setPageSize(10);
- searchParameters.setFrom(0);
- return searchParameters;
- }
-
- private Classification mockClassification(String classificationName) {
- Classification classification = new Classification();
- classification.setName(classificationName);
- return classification;
- }
-
- private AssetCatalogBean mockAssetDescription(String guid) {
- AssetCatalogBean assetCatalogBean = new AssetCatalogBean();
- assetCatalogBean.setGuid(guid);
- Type type = new Type();
- type.setName(ASSET_TYPE);
- assetCatalogBean.setType(type);
- assetCatalogBean.setRelationships(Collections.singletonList(mockRelationshipResponse()));
- return assetCatalogBean;
- }
-
- private Relationship mockRelationshipResponse() {
- Relationship relationshipsResponse = new Relationship();
-
- Type type = new Type();
- type.setName(RELATIONSHIP_TYPE);
- relationshipsResponse.setType(type);
- relationshipsResponse.setGuid(RELATIONSHIP_TYPE_GUID);
- relationshipsResponse.setFromEntity(mockElement(FIRST_GUID));
- relationshipsResponse.setToEntity(mockElement(SECOND_GUID));
- return relationshipsResponse;
- }
-
- private Element mockElement(String guid) {
- Element asset = new Element();
- asset.setGuid(guid);
- return asset;
- }
-
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/README.md b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/README.md
deleted file mode 100644
index 6daf99cbcf3..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/README.md
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-# Asset Catalog Open Metadata Access Service (OMAS) with Spring
-
-The Asset Catalog OMAS spring module uses Spring Framework to create the
-server-side support for the REST services.
-There are the following Spring resources defined:
-
-* AssetCatalogEntityResource - facilitates the searching for assets, provides details about specific assets, build the context for schema element/glossary term/assets based on its identifier
-
-* AssetCatalogRelationshipResource - supports the services that retrieve the details about a specific relationship.
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/build.gradle b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/build.gradle
deleted file mode 100644
index 75937798dd9..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/build.gradle
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * SPDX-License-Identifier: Apache-2.0
- * Copyright Contributors to the ODPi Egeria project.
- */
-
-
-dependencies {
- implementation project(':open-metadata-implementation:access-services:asset-catalog:asset-catalog-api')
- implementation project(':open-metadata-implementation:access-services:asset-catalog:omas-asset-catalog-server')
- implementation project(':open-metadata-implementation:repository-services:repository-services-apis')
- implementation project(':open-metadata-implementation:common-services:ffdc-services')
- implementation 'org.springframework:spring-web'
- implementation 'org.springframework:spring-core'
- implementation 'jakarta.validation:jakarta.validation-api:'
- implementation 'io.swagger.core.v3:swagger-annotations'
- testImplementation 'org.mockito:mockito-core'
- testImplementation 'org.mockito:mockito-junit-jupiter'
- testImplementation 'org.junit.jupiter:junit-jupiter-api'
- compileOnly 'com.fasterxml.jackson.core:jackson-annotations'
- testCompileOnly 'com.fasterxml.jackson.core:jackson-annotations'
- implementation 'com.google.code.findbugs:jsr305'
-
-
-}
-
-description = 'Asset Catalog OMAS with Spring'
-
-java {
- withJavadocJar()
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogEntityResource.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogEntityResource.java
deleted file mode 100644
index 19e9fa27eb0..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogEntityResource.java
+++ /dev/null
@@ -1,251 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.server.spring;
-
-import io.swagger.v3.oas.annotations.ExternalDocumentation;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import jakarta.validation.constraints.NotBlank;
-import jakarta.validation.constraints.NotNull;
-import jakarta.validation.constraints.PositiveOrZero;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.body.SearchParameters;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.*;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.service.AssetCatalogRESTService;
-import org.odpi.openmetadata.commonservices.ffdc.rest.ConnectionResponse;
-import org.springframework.http.MediaType;
-import org.springframework.lang.Nullable;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
-
-
-/**
- * The AssetCatalogEntityResource provides the server-side implementation of the
- * Asset Catalog Open Metadata Assess Service (OMAS).
- * This interface facilitates the searching for assets, provides details about specific assets.
- */
-@RestController
-@RequestMapping("/servers/{serverName}/open-metadata/access-services/asset-catalog/users/{userId}")
-
-@Tag(name="Metadata Access Server: Asset Catalog OMAS", description="The Asset Catalog OMAS provides services to search for data assets including data stores, event feeds, APIs, data sets.",
- externalDocs=@ExternalDocumentation(description="Further Information",
- url="https://egeria-project.org/services/omas/asset-catalog/overview/"))
-@Deprecated
-public class AssetCatalogEntityResource {
-
- private final AssetCatalogRESTService assetService = new AssetCatalogRESTService();
-
- /**
- * Fetch asset's header, classification and properties
- *
- * @param serverName unique identifier for requested server
- * @param userId the unique identifier for the user
- * @param assetGUID the unique identifier for the asset
- * @param assetType the type of the asset
- * @return the asset with its header and the list of associated classifications and specific properties
- */
- @GetMapping(path = "/asset-details/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "getAssetDetail", description = "Returns the asset",
- externalDocs = @ExternalDocumentation(description = "Asset", url = "https://egeria-project.org/concepts/asset"))
- public AssetCatalogResponse getAssetDetail(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @PathVariable("assetGUID") @NotBlank String assetGUID,
- @RequestParam(name = "assetType", required = false) @NotNull String assetType) {
- return assetService.getAssetDetailsByGUID(serverName, userId, assetGUID, assetType);
- }
-
- /**
- * Fetch asset's header, classification, properties and relationships
- *
- * @param serverName unique identifier for requested server.
- * @param userId the unique identifier for the user
- * @param assetGUID the unique identifier for the asset
- * @param assetType the asset type
- * @return the asset with its header and the list of associated classifications and relationship
- */
- @GetMapping(path = "/asset-universe/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "getAssetUniverse", description = "Returns the asset universe, which means the asset details and the relationships it has",
- externalDocs = @ExternalDocumentation(description = "Metadata Relationships",
- url = "https://egeria-project.org/patterns/metadata-manager/categories-of-metadata/?h=relationships#metadata-relationships-and-classifications"))
- public AssetCatalogResponse getAssetUniverse(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @PathVariable("assetGUID") @NotBlank String assetGUID,
- @RequestParam(name = "assetType", required = false) @NotNull String assetType) {
- return assetService.getAssetUniverseByGUID(serverName, userId, assetGUID, assetType);
- }
-
- /**
- * Fetch the relationships for a specific asset
- *
- * @param serverName unique identifier for requested server
- * @param userId the unique identifier for the user
- * @param assetGUID the unique identifier for the asset
- * @param assetType the type of the asset
- * @param relationshipType the type of the relationship
- * @param from offset
- * @param pageSize limit the number of the assets returned
- * @return list of relationships for the given asset
- */
- @GetMapping(path = "/asset-relationships/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "getAssetRelationships", description = "Returns the asset relationships",
- externalDocs = @ExternalDocumentation(description = "Metadata Relationships",
- url = "https://egeria-project.org/patterns/metadata-manager/categories-of-metadata/?h=relationships#metadata-relationships-and-classifications"))
- public RelationshipListResponse getAssetRelationships(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @PathVariable("assetGUID") @NotBlank String assetGUID,
- @RequestParam(name = "assetType", required = false) String assetType,
- @RequestParam(name = "relationshipType", required = false) String relationshipType,
- @RequestParam(name = "from", required = false, defaultValue = "0") @PositiveOrZero Integer from,
- @RequestParam(name = "pageSize", required = false, defaultValue = "100") @PositiveOrZero Integer pageSize) {
- return assetService.getAssetRelationships(serverName, userId, assetGUID, assetType, relationshipType, from, pageSize);
- }
-
- /**
- * Fetch the classification for a specific asset
- *
- * @param serverName unique identifier for requested server.
- * @param userId the unique identifier for the user
- * @param assetGUID the unique identifier for the asset
- * @param assetType the type of the asset
- * @param classificationName the name of the classification
- * @return ClassificationsResponse the classification for the asset
- */
- @GetMapping(path = "/asset-classifications/{assetGUID}",
- produces = MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "getClassificationsForAsset", description = "Returns the classifications that exists on the asset",
- externalDocs = @ExternalDocumentation(description = "Metadata Classifications",
- url = "https://egeria-project.org/patterns/metadata-manager/categories-of-metadata/?h=relationships#metadata-relationships-and-classifications"))
- public ClassificationListResponse getClassificationsForAsset(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @PathVariable("assetGUID") @NotBlank String assetGUID,
- @RequestParam(name = "assetType", required = false) String assetType,
- @RequestParam(name = "classificationName", required = false) String classificationName) {
- return assetService.getClassificationByAssetGUID(serverName, userId, assetGUID, assetType, classificationName);
- }
-
- /**
- * Return a list of assets matching the search criteria without the full context
- *
- * @param serverName unique identifier for requested server.
- * @param userId the unique identifier for the user
- * @param searchCriteria a string expression of the characteristics of the required assets
- * @param searchParameters constrains to make the assets' search results more precise
- * @return list of found assets
- */
-
- @PostMapping(path = "/search", produces = MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "searchByType", description = "Returns a list of assets based on the given search criteria",
- externalDocs = @ExternalDocumentation(description = "Search by type Javadoc",
- url = "https://odpi.github.io/egeria/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRESTService.html#searchByType(java.lang.String,java.lang.String,java.lang.String,org.odpi.openmetadata.accessservices.assetcatalog.model.rest.body.SearchParameters)"))
- public AssetListResponse searchByType(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @RequestParam("searchCriteria") @NotBlank String searchCriteria,
- @RequestBody SearchParameters searchParameters) {
- return assetService.searchByType(serverName, userId, searchCriteria, searchParameters);
- }
-
- /**
- * Return a list of assets by asset type name without any additional search criteria
- * The list includes also subtypes
- *
- * @param serverName unique identifier for requested server.
- * @param userId the unique identifier for the user
- * @param typeName the assets type name to search for
- * @return list of assets by type name
- */
- @GetMapping(path = "/assets-by-type-name/{typeName}",
- produces = MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "getAssetsByTypeName", description = "Returns a list of assets based on the given search criteria, using the type name",
- externalDocs = @ExternalDocumentation(description = "Search by type name Javadoc",
- url = "https://odpi.github.io/egeria/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRESTService.html#searchByTypeName(java.lang.String,java.lang.String,java.lang.String)"))
- public AssetListResponse getAssetsByTypeName(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @PathVariable("typeName") @NotBlank String typeName) {
- return assetService.searchByTypeName(serverName, userId, typeName);
- }
-
- /**
- * Return a list of assets by asset type GUID without any additional search criteria
- * The list includes also subtypes
- * @param serverName unique identifier for requested server.
- * @param userId the unique identifier for the user
- * @param typeGUID the assets type GUID to search for
- * @return list of assets by type GUID
- */
- @GetMapping(path = "/assets-by-type-guid/{typeGUID}",
- produces = MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "getAssetsByTypeGUID", description = "Returns a list of assets based on the given search criteria, using the type GUID",
- externalDocs = @ExternalDocumentation(description = "Search by type GUID Javadoc",
- url = "https://odpi.github.io/egeria/org/odpi/openmetadata/accessservices/assetcatalog/service/AssetCatalogRESTService.html#searchByTypeGUID(java.lang.String,java.lang.String,java.lang.String)"))
-
- public AssetListResponse getAssetsByTypeGUID(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @PathVariable("typeGUID") @NotBlank String typeGUID) {
- return assetService.searchByTypeGUID(serverName, userId, typeGUID);
- }
-
- /**
- * Return the full context of an asset/glossary term based on its identifier.
- * The response contains the list of the connections assigned to the asset.
- *
- * @param serverName unique identifier for requested server.
- * @param userId the unique identifier for the user
- * @param assetGUID the global unique identifier of the asset
- * @param assetType the type of the asset
- * @return list of properties used to narrow the search
- */
- @GetMapping(path = "/asset-context/{assetGUID}",
- produces = MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "getAssetContext", description = "Returns the entities that are attached to the given one",
- externalDocs = @ExternalDocumentation(description = "Get attached entities Javadoc",
- url = "https://odpi.github.io/egeria/org/odpi/openmetadata/commonservices/generichandlers/OpenMetadataAPIGenericHandler.html#getAttachedFilteredEntities(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,boolean,java.util.Set,java.lang.String,int,boolean,boolean,int,boolean,boolean,java.util.Date,java.lang.String)"))
- public AssetResponse getAssetContext(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @PathVariable("assetGUID") @NotBlank String assetGUID,
- @RequestParam(name = "assetType", required = false) String assetType) {
- return assetService.buildContext(serverName, userId, assetGUID, assetType);
- }
-
- /**
- * Returns the list with supported types for search, including the sub-types supported
- *
- * @param serverName unique identifier for requested server
- * @param userId the unique identifier for the user
- * @param type the type
- * @return list of types and sub-types supported for search
- */
- @GetMapping(path = "/supportedTypes",
- produces = MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "getSupportedTypes", description = "Returns the Open Metadata Types that are supported by the Asset Catalog OMAS",
- externalDocs = @ExternalDocumentation(description = "The open metadata type system",
- url = "https://egeria-project.org/types/"))
- public AssetCatalogSupportedTypes getSupportedTypes(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @RequestParam(name = "type", required = false) @Nullable String type) {
- return assetService.getSupportedTypes(serverName, userId, type);
- }
-
- /**
- * Returns the out topic connection.
- *
- * @param serverName the server name
- * @param userId the user id
- * @param callerId the caller id
- * @return the out topic connection
- */
- @GetMapping(path = "/topics/out-topic-connection/{callerId}",
- produces = MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "getOutTopicConnection", description = "Returns the OutTopic connection",
- externalDocs = @ExternalDocumentation(description = "OMAS OutTopic",
- url = "https://egeria-project.org/concepts/out-topic/"))
- public ConnectionResponse getOutTopicConnection(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @PathVariable("callerId") String callerId) {
- return assetService.getOutTopicConnection(serverName, userId, callerId);
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogRelationshipResource.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogRelationshipResource.java
deleted file mode 100644
index d23373bd3e1..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogRelationshipResource.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.server.spring;
-
-import io.swagger.v3.oas.annotations.ExternalDocumentation;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.RelationshipResponse;
-import org.odpi.openmetadata.accessservices.assetcatalog.service.AssetCatalogRelationshipRESTService;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * The AssetCatalogRelationshipResource provides the server-side implementation of the Asset Catalog Open Metadata
- * Assess Service (OMAS). This interface facilitates the searching for asset's relationships, fetch the details about a specific relationship.
- */
-@RestController
-@RequestMapping("/servers/{serverName}/open-metadata/access-services/asset-catalog/users/{userId}")
-
-@Tag(name="Metadata Access Server: Asset Catalog OMAS", description="The Asset Catalog OMAS provides services to search for data assets including data stores, event feeds, APIs, data sets.",
- externalDocs=@ExternalDocumentation(description="Further Information",
- url="https://egeria-project.org/services/omas/asset-catalog/overview/"))
-@Deprecated
-public class AssetCatalogRelationshipResource {
-
- private final AssetCatalogRelationshipRESTService relationshipService = new AssetCatalogRelationshipRESTService();
-
- /**
- * Fetch relationship between entities details based on its unique identifier of the ends
- *
- * @param serverName unique identifier for requested server.
- * @param userId String unique identifier for the user
- * @param entity1GUID Entity guid of the first end of the relationship
- * @param entity2GUID Entity guid of the second end of the relationship
- * @param relationshipType Type of the relationship
- * @return relationships between entities
- */
- @GetMapping(path = "/relationship-between-entities/{entity1GUID}/{entity2GUID}",
- produces = org.springframework.http.MediaType.APPLICATION_JSON_VALUE)
- @Operation(summary = "getRelationshipBetweenEntities", description = "Returns the relationships between the 2 given entities",
- externalDocs = @ExternalDocumentation(description = "Metadata Relationships",
- url = "https://egeria-project.org/patterns/metadata-manager/categories-of-metadata/?h=relationships#metadata-relationships-and-classifications"))
- public RelationshipResponse getRelationshipBetweenEntities(@PathVariable("serverName") String serverName,
- @PathVariable("userId") String userId,
- @PathVariable("entity1GUID") String entity1GUID,
- @PathVariable("entity2GUID") String entity2GUID,
- @RequestParam(name = "relationshipType", required = false) String relationshipType) {
- return relationshipService.getRelationshipBetweenEntities(serverName, userId, entity1GUID, entity2GUID, relationshipType);
- }
-}
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/package-info.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/package-info.java
deleted file mode 100644
index 3802ed54fc7..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * This package provides the controllers for getting details about assets and relationships through Asset Catalog OMAS.
- */
-package org.odpi.openmetadata.accessservices.assetcatalog.server.spring;
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogEntityResourceTest.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogEntityResourceTest.java
deleted file mode 100644
index bb7e1156339..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogEntityResourceTest.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.server.spring;
-
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.InjectMocks;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-import org.mockito.junit.jupiter.MockitoSettings;
-import org.mockito.quality.Strictness;
-import org.odpi.openmetadata.accessservices.assetcatalog.model.rest.body.SearchParameters;
-import org.odpi.openmetadata.accessservices.assetcatalog.service.AssetCatalogRESTService;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder;
-
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-
-@ExtendWith(MockitoExtension.class)
-@MockitoSettings(strictness = Strictness.WARN)
-class AssetCatalogEntityResourceTest {
-
- private static final String USER = "user";
- private static final String SERVER_NAME = "serverName";
- private static final String ASSET_GUID = "b1c497ce.60641b50.0v9mgsb1m.9vbkmkr";
- private static final String ASSET_TYPE = "GlossaryTerm";
- private static final String SEMANTIC_ASSIGMENT = "SemanticAssigment";
- private static final Integer FROM = 0;
- private static final Integer PAGE_SIZE = 10;
- private static final String CONFIDENTIALITY = "Confidentiality";
-
- @Mock
- private AssetCatalogRESTService assetCatalogService;
-
- @InjectMocks
- private AssetCatalogEntityResource assetCatalogEntityResource;
-
- @Test
- void testGetAssetDetails() {
- assetCatalogEntityResource.getAssetDetail(SERVER_NAME, USER, ASSET_GUID, ASSET_TYPE);
-
- verify(assetCatalogService, times(1)).getAssetDetailsByGUID(SERVER_NAME, USER, ASSET_GUID, ASSET_TYPE);
- }
-
- @Test
- void testGetAssetRelationships() {
- assetCatalogEntityResource.getAssetRelationships(SERVER_NAME, USER, ASSET_GUID, ASSET_TYPE, SEMANTIC_ASSIGMENT, FROM, PAGE_SIZE);
-
- verify(assetCatalogService, times(1)).getAssetRelationships(SERVER_NAME, USER, ASSET_GUID, ASSET_TYPE, SEMANTIC_ASSIGMENT, FROM, PAGE_SIZE);
- }
-
- @Test
- void testGetAssetContext() {
- assetCatalogEntityResource.getAssetContext(SERVER_NAME, USER, ASSET_GUID, ASSET_TYPE);
-
- verify(assetCatalogService, times(1)).buildContext(SERVER_NAME, USER, ASSET_GUID, ASSET_TYPE);
- }
-
- @Test
- void testGetClassificationsForAsset() {
- assetCatalogEntityResource.getClassificationsForAsset(SERVER_NAME, USER, ASSET_GUID, ASSET_TYPE, CONFIDENTIALITY);
-
- verify(assetCatalogService, times(1)).getClassificationByAssetGUID(SERVER_NAME, USER, ASSET_GUID, ASSET_TYPE, CONFIDENTIALITY);
- }
-
- @Test
- void testSearchAssetsAndGlossaryTerms() {
- SearchParameters searchParameters = mockSearchParameters();
- assetCatalogEntityResource.searchByType(SERVER_NAME, USER, "employee", searchParameters);
-
- verify(assetCatalogService, times(1)).searchByType(SERVER_NAME, USER, "employee", searchParameters);
- }
-
- private SearchParameters mockSearchParameters() {
- SearchParameters searchParameters = new SearchParameters();
- searchParameters.setFrom(FROM);
- searchParameters.setPageSize(PAGE_SIZE);
- searchParameters.setSequencingOrder(SequencingOrder.LAST_UPDATE_RECENT);
- searchParameters.setLevel(1);
- return searchParameters;
- }
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogRelationshipResourceTest.java b/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogRelationshipResourceTest.java
deleted file mode 100644
index 5a5a0525769..00000000000
--- a/open-metadata-implementation/access-services/asset-catalog/omas-asset-catalog-spring/src/test/java/org/odpi/openmetadata/accessservices/assetcatalog/server/spring/AssetCatalogRelationshipResourceTest.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.assetcatalog.server.spring;
-
-
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.InjectMocks;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-import org.mockito.junit.jupiter.MockitoSettings;
-import org.mockito.quality.Strictness;
-import org.odpi.openmetadata.accessservices.assetcatalog.service.AssetCatalogRelationshipRESTService;
-
-import static org.mockito.Mockito.atLeastOnce;
-import static org.mockito.Mockito.verify;
-
-@ExtendWith(MockitoExtension.class)
-@MockitoSettings(strictness = Strictness.WARN)
-class AssetCatalogRelationshipResourceTest {
-
- private static final String USER = "user";
- private static final String SERVER_NAME = "serverName";
- private static final String FIST_END_GUID = "b1c497ce.60641b50.0v9mgsb1m.9vbkmkr";
- private static final String SECOND_END_GUID = "6662c0f2.e1b1ec6c.00263shmd.6u8o50l.dhhet6.5a7eo9o6q9j8vikjs6ds4";
- private static final String RELATIONSHIP_TYPE_NAME = "SemanticAssignment";
-
- @Mock
- private AssetCatalogRelationshipRESTService assetCatalogRelationshipService;
-
- @InjectMocks
- private AssetCatalogRelationshipResource assetCatalogRelationshipResource;
-
- @Test
- void testGetRelationshipBetweenEntities() {
- assetCatalogRelationshipResource.getRelationshipBetweenEntities(SERVER_NAME, USER,
- FIST_END_GUID,
- SECOND_END_GUID,
- RELATIONSHIP_TYPE_NAME);
-
- verify(assetCatalogRelationshipService, atLeastOnce()).getRelationshipBetweenEntities(SERVER_NAME,
- USER,
- FIST_END_GUID,
- SECOND_END_GUID,
- RELATIONSHIP_TYPE_NAME);
-
- }
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/README.md b/open-metadata-implementation/access-services/data-engine/README.md
deleted file mode 100644
index 79bb05f0ca7..00000000000
--- a/open-metadata-implementation/access-services/data-engine/README.md
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-![InDev](../../../images/egeria-content-status-in-development.png#pagewidth)
-
-# Data Engine Open Metadata Access Service (OMAS)
-
-The Data Engine OMAS provides APIs and events for data movement/processing engines to record the changes made to the data landscape.
-
-It provides the ability to register the data engine itself along with the lineage details of the ETL transformations.
-Data Engine OMAS APIs offer support for creating the corresponding open metadata types for assets and jobs.
-
-* [Documentation](https://egeria-project.org/services/omas/data-engine/overview)
-
-## Design Information
-
-The module structure for the Data Engine OMAS is as follows:
-
-* [data-engine-api](data-engine-api) supports the common Java classes that are used both by the client and the server.
-This includes the Java API, beans and REST API structures.
-* [data-engine-client](data-engine-client) supports the Java client library that allows applications and tools to call the remote REST APIs.
-* [data-engine-server](data-engine-server) supports the server side implementation of the access service.
- This includes the
- * interaction with the [administration services](../../admin-services) for
- registration, configuration, initialization and termination of the access service.
- * interaction with the [repository services](../../repository-services) to work with open metadata from the
- [cohort](https://egeria-project.org/concepts/cohort-member).
- * support for the access service's API and its related event management.
-* [data-engine-spring](data-engine-spring) supports the REST API using the [Spring](../../../developer-resources/Spring.md) libraries.
-
-
-## Digging Deeper
-
-* [User Documentation](docs/user)
-* [Design Documentation](docs/design)
-
-
-----
-Return to the [access-services](..) module.
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/README.md b/open-metadata-implementation/access-services/data-engine/data-engine-api/README.md
deleted file mode 100644
index f830993ffb2..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-# Data Engine Open Metadata Access Service (OMAS) API
-
-
-
-The Data Engine OMAS supports a REST API for requests for creating ETL jobs metadata.
-The Data Engine OMAS API provides the shared Java classes between the
-server and client.
-
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/build.gradle b/open-metadata-implementation/access-services/data-engine/data-engine-api/build.gradle
deleted file mode 100644
index 1d0415664b3..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/build.gradle
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * SPDX-License-Identifier: Apache-2.0
- * Copyright Contributors to the ODPi Egeria project.
- */
-
-plugins {
- id "io.freefair.lombok"
-}
-
-dependencies {
- compileOnly 'com.fasterxml.jackson.core:jackson-annotations'
- implementation project(':open-metadata-implementation:frameworks:open-connector-framework')
- implementation project(':open-metadata-implementation:frameworks:audit-log-framework')
- implementation project(':open-metadata-implementation:repository-services:repository-services-apis')
-}
-
-description = 'Data Engine OMAS API'
-
-java {
- withJavadocJar()
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataEngineEventHeader.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataEngineEventHeader.java
deleted file mode 100644
index b5e2bb7736b..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataEngineEventHeader.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DataEngineEventHeader provides a common base for all events from the Data Engine access service.
- * It implements Serializable and a version Id.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME,
- property = "class")
-@JsonSubTypes({
- @JsonSubTypes.Type(value = DataEngineRegistrationEvent.class, name = "DataEngineRegistrationEvent"),
- @JsonSubTypes.Type(value = DataFlowsEvent.class, name = "DataFlowsEvent"),
- @JsonSubTypes.Type(value = PortImplementationEvent.class, name = "PortImplementationEvent"),
- @JsonSubTypes.Type(value = ProcessEvent.class, name = "ProcessEvent"),
- @JsonSubTypes.Type(value = ProcessListEvent.class, name = "ProcessListEvent"),
- @JsonSubTypes.Type(value = SchemaTypeEvent.class, name = "SchemaTypeEvent"),
- @JsonSubTypes.Type(value = ProcessHierarchyEvent.class, name = "ProcessHierarchyEvent"),
- @JsonSubTypes.Type(value = DeleteEvent.class, name = "DeleteEvent"),
- @JsonSubTypes.Type(value = DatabaseEvent.class, name = "DatabaseEvent"),
- @JsonSubTypes.Type(value = DatabaseSchemaEvent.class, name = "DatabaseSchemaEvent"),
- @JsonSubTypes.Type(value = RelationalTableEvent.class, name = "RelationalTableEvent"),
- @JsonSubTypes.Type(value = DataFileEvent.class, name = "DataFileEvent"),
- @JsonSubTypes.Type(value = TopicEvent.class, name = "TopicEvent"),
- @JsonSubTypes.Type(value = EventTypeEvent.class, name = "EventTypeEvent"),
- @JsonSubTypes.Type(value = ProcessingStateEvent.class, name = "ProcessingStateEvent")
-})
-@Getter
-@Setter
-@EqualsAndHashCode
-@ToString
-@NoArgsConstructor
-public abstract class DataEngineEventHeader implements Serializable {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /* different data engine event types */
- /**
- * The Data Engine event type
- * -- GETTER --
- * Gets the Data Engine event type
- * @return the Data Engine event type
- * -- SETTER --
- * Sets the Data Engine event type
- * @param dataEngineEventType the Data Engine event type
- */
- private DataEngineEventType dataEngineEventType;
-
- /**
- * The external source type unique name
- * -- GETTER --
- * Gets the external source type unique name
- * @return the external source type unique name
- * -- SETTER --
- * Sets the external source type unique name
- * @param externalSourceName the external source type unique name
- */
- private String externalSourceName;
-
- /**
- * Producer user ID
- * -- GETTER --
- * Gets user ID
- * @return the user ID
- * -- SETTER --
- * Sets the user ID
- * @param userId the user ID
- */
- private String userId;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataEngineEventType.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataEngineEventType.java
deleted file mode 100644
index 24ecc34d0e6..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataEngineEventType.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.AccessLevel;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DataEngineEventType describes the different types of events can be consumed by the Data Engine OMAS.
- * Events are limited to assets that are in the zones listed in the supportedZones property
- * passed to the Data Engine OMAS at start up (a null value here means all zones).
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@ToString
-@Getter
-public enum DataEngineEventType implements Serializable {
-
- UNKNOWN_DATA_ENGINE_EVENT(0, "Unknown Data Engine Job Event", "An event that is not recognized by the local server."),
- DATA_ENGINE_REGISTRATION_EVENT(1, "DataEngineRegistrationEvent", "An event that register a data engine as external source."),
- DATA_FLOWS_EVENT(2, "DataFlowsEvent", "An event that adds or update data flows."),
- PORT_IMPLEMENTATION_EVENT(4, "PortImplementationEvent", "An event that creates or updates port implementations."),
- SCHEMA_TYPE_EVENT(5, "SchemaTypeEvent", "An event that creates or updates schema types."),
- PROCESS_HIERARCHY_EVENT(6, "ProcessHierarchyEvent", "An event to setup a process hierarchy."),
- DELETE_DATA_ENGINE_EVENT(7, "DeleteDataEngineEvent", "An event that deletes an external data engine."),
- DELETE_SCHEMA_TYPE_EVENT(8, "DeleteSchemaTypeEvent", "An event that deletes a schema type."),
- DELETE_PORT_IMPLEMENTATION_EVENT(9, "DeletePortImplementationEvent", "An event that deletes a port implementation."),
- DATABASE_EVENT(11, "DatabaseEvent", "An event that creates or updates databases."),
- DATABASE_SCHEMA_EVENT(12, "DatabaseSchemaEvent", "An event that creates or updates database schemas."),
- RELATIONAL_TABLE_EVENT(13, "RelationalTableEvent", "An event that creates or updates relational tables."),
- DATA_FILE_EVENT(14, "DataFileEvent", "An event that creates or updates data files."),
- DELETE_DATABASE_EVENT(15, "DeleteDatabaseEvent", "An event that deletes a database."),
- DELETE_DATABASE_SCHEMA_EVENT(16, "DeleteDatabaseSchemaEvent", "An event that deletes a database schema."),
- DELETE_RELATIONAL_TABLE_EVENT(17, "DeleteRelationalTableEvent", "An event that deletes a relational table."),
- DELETE_DATA_FILE_EVENT(18, "DeleteDataFileEvent", "An event that deletes a data file."),
- DELETE_FOLDER_EVENT(19, "DeleteFolderEvent", "An event that deletes a folder."),
- DELETE_CONNECTION_EVENT(20, "DeleteConnectionEvent", "An event that deletes a connection."),
- DELETE_ENDPOINT_EVENT(21, "DeleteEndpointEvent", "An event that deletes an endpoint."),
- PROCESS_EVENT(22, "ProcessEvent", "An event that creates or updates a process."),
- DELETE_PROCESS_EVENT(23, "DeleteProcessEvent", "An event that deletes a process."),
- TOPIC_EVENT(24, "TopicEvent", "An event that creates or updates topics."),
- EVENT_TYPE_EVENT(25, "EventTypeEvent", "An event that creates or updates event types."),
- DELETE_TOPIC_EVENT(26, "DeleteTopicEvent", "An event that deletes a topic."),
- DELETE_EVENT_TYPE_EVENT(27, "DeleteEventTypeEvent", "An event that deletes an event type."),
- PROCESSING_STATE_TYPE_EVENT(28, "ProcessingStateEvent", "An event that creates or updates the processing state classification of an engine.");
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The int identifier used for indexing based on the enum
- * -- GETTER --
- * Return the int identifier used for indexing based on the enum.
- *
- * @return eventTypeCode identifier code
- */
- private final int eventTypeCode;
-
- /**
- * The string name used for messages that include the enum
- * -- GETTER --
- * Return the string name used for messages that include the enum.
- *
- * @return event type name
- */
- private final String eventTypeName;
-
- /**
- * The default description for the enum value - used when natural resource
- * -- GETTER --
- * Return the default description for the enum value - used when natural resource
- * bundle is not available.
- *
- * @return default description
- */
- private final String eventTypeDescription;
-
- /**
- * Sets up the specific values for this instance of the enum.
- *
- * @param eventTypeCode int identifier used for indexing based on the enum.
- * @param eventTypeName string name used for messages that include the enum.
- * @param eventTypeDescription default description for the enum value - used when natural resource
- * bundle is not available.
- */
- DataEngineEventType(int eventTypeCode, String eventTypeName, String eventTypeDescription) {
- this.eventTypeCode = eventTypeCode;
- this.eventTypeName = eventTypeName;
- this.eventTypeDescription = eventTypeDescription;
- }
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataEngineRegistrationEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataEngineRegistrationEvent.java
deleted file mode 100644
index 57be0d3dc69..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataEngineRegistrationEvent.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.Engine;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The Data engine registration event for registering external source as engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class DataEngineRegistrationEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * Engine
- * -- GETTER --
- * Gets the engine
- * @return the engine
- * -- SETTER --
- * Sets the engine
- * @param engine the engine
- */
- private Engine engine;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataFileEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataFileEvent.java
deleted file mode 100644
index 27cfa40320d..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataFileEvent.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFile;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The data file event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DataFileEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The data file to be created
- * -- GETTER --
- * Return the data file bean
- *
- * @return the data file
- * -- SETTER --
- * Set up the data file bean
- * @param dataFile the data file
- */
- @JsonProperty("file")
- private DataFile dataFile;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataFlowsEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataFlowsEvent.java
deleted file mode 100644
index fb5913881be..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DataFlowsEvent.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFlow;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The Data Flows event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class DataFlowsEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The data flows
- * -- GETTER --
- * Return the data flows
- * @return the data flows
- * -- SETTER --
- * Set up the data flows
- * @param dataFlows the data flows
- */
- private List dataFlows;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DatabaseEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DatabaseEvent.java
deleted file mode 100644
index 730e5e271d3..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DatabaseEvent.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.Database;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The database schema event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DatabaseEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
-
- /**
- * The database to be created
- * -- GETTER --
- * Return the database bean
- *
- * @return the database
- * -- SETTER --
- * Set up the database bean
- * @param database the database
- */
- private Database database;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DatabaseSchemaEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DatabaseSchemaEvent.java
deleted file mode 100644
index bf1d0887b32..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DatabaseSchemaEvent.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.DatabaseSchema;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The database schema event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DatabaseSchemaEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The database schema to be created
- * -- GETTER --
- * Return the database schema bean
- *
- * @return the database schema
- * -- SETTER --
- * Set up the database schema bean
- * @param databaseSchema the database schema
- */
- private DatabaseSchema databaseSchema;
-
- /**
- * The database qualified name to which the database schema will be linked, if it exists
- * -- GETTER --
- * Return the database qualified name to which the database schema will be linked, if it exists
- *
- * @return the database qualified name
- * -- SETTER --
- * Set up the database qualified name to which the database schema will be linked, if it exists
- * @param databaseQualifiedName the database qualified name
- */
- private String databaseQualifiedName;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DeleteEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DeleteEvent.java
deleted file mode 100644
index c0e8d3394a9..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/DeleteEvent.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The delete event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DeleteEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The qualified name of the entity
- * -- GETTER --
- * Return the entity qualified name
- * @return String - qualified name of the entity
- * -- SETTER --
- * Set up the qualified name of the entity
- * @param qualifiedName of the entity
- */
- private String qualifiedName;
-
- /**
- * The unique identifier of the entity
- * -- GETTER --
- * Return the entity unique identifier
- * @return String - unique identifier of the entity
- * -- SETTER --
- * Set up the unique identifier of the entity
- * @param guid of the entity
- */
- private String guid;
-
- /**
- * The delete semantic
- * -- GETTER --
- * Return the delete semantic
- * @return String - unique identifier of the entity
- * -- SETTER --
- * Set up the delete semantic
- * @param deleteSemantic of the entity
- */
- private DeleteSemantic deleteSemantic = DeleteSemantic.SOFT;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/EventTypeEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/EventTypeEvent.java
deleted file mode 100644
index 8027d7f6860..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/EventTypeEvent.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.EventType;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The event type event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class EventTypeEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The event type to be created
- * -- GETTER --
- * Return the event type bean
- *
- * @return the event type
- * -- SETTER --
- * Set up the event type bean
- * @param eventType the event type
- */
- private EventType eventType;
-
- /**
- * The topic qualified name to which the event type will be linked
- * -- GETTER --
- * Return the topic qualified name to which the event type will be linked
- *
- * @return the topic qualified name
- * -- SETTER --
- * Set up the topic qualified name to which the event type will be linked
- * @param topicQualifiedName the topic qualified name
- */
- private String topicQualifiedName;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/FindEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/FindEvent.java
deleted file mode 100644
index a558d0d88bf..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/FindEvent.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.rest.FindRequestBody;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The data file event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class FindEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The find request body
- * -- GETTER --
- * Return the find request body
- *
- * @return the find request body
- * -- SETTER --
- * Set up the find request body
- * @param findRequestBody the find request body
- */
- @JsonProperty("findRequestBody")
- private FindRequestBody findRequestBody;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/PortImplementationEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/PortImplementationEvent.java
deleted file mode 100644
index 8668f1c2fec..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/PortImplementationEvent.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.PortImplementation;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The port implementation event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class PortImplementationEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The process qualified name
- * -- GETTER --
- * Returns the process qualified name
- * @return the process qualified name
- * -- SETTER --
- * Sets up the process qualified name
- * @param processQualifiedName the process qualified name
- */
- private String processQualifiedName;
-
- /**
- * The port implementation
- * -- GETTER --
- * Returns the port implementation
- * @return the port implementation
- * -- SETTER --
- * Sets up the port implementation
- * @param portImplementation the port implementation
- */
- private PortImplementation portImplementation;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessEvent.java
deleted file mode 100644
index ac4be65a58e..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessEvent.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.Process;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The processes event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class ProcessEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The process
- * -- GETTER --
- * Returns the process
- *
- * @return the process
- * -- SETTER --
- * Sets up the process
- * @param process the process
- */
- private Process process;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessHierarchyEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessHierarchyEvent.java
deleted file mode 100644
index 8cc152c5547..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessHierarchyEvent.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.ProcessHierarchy;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The process hierarchy event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class ProcessHierarchyEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The process hierarchy
- * -- GETTER --
- * Returns the process hierarchy
- * @return the process hierarchy
- * -- SETTER --
- * Sets up the process hierarchy
- * @param processHierarchy the process hierarchy
- */
- private ProcessHierarchy processHierarchy;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessListEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessListEvent.java
deleted file mode 100644
index 84d04b564c8..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessListEvent.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The process list event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class ProcessListEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The failed GUIDs
- * -- GETTER --
- * Returns the failed GUIDs
- * @return the failed GUIDs
- * -- SETTER --
- * Sets up the failed GUIDs
- * @param failedGUIDs the failed GUIDs
- */
- private List failedGUIDs;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessingStateEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessingStateEvent.java
deleted file mode 100644
index e37c1e63793..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/ProcessingStateEvent.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.ProcessingState;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-/**
- * The processing state event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class ProcessingStateEvent extends DataEngineEventHeader {
-
- /**
- * Serial version ID
- * -- GETTER --
- * Gets the serial version ID
- * @return the serial version ID
- * -- SETTER --
- * Sets the serial version ID
- * @param serialVersionUID the serial version ID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The processing state.
- * -- GETTER --
- * Return the processing state
- *
- * @return processing state
- * -- SETTER --
- * Set up the processing state
- * @param processingState processing state
- */
- private ProcessingState processingState;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/RelationalTableEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/RelationalTableEvent.java
deleted file mode 100644
index ce3f9a95faa..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/RelationalTableEvent.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.RelationalTable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The relational table event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class RelationalTableEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The relational table to be created
- * -- GETTER --
- * Return the relational table bean
- *
- * @return the relational table
- * -- SETTER --
- * Set up the relational table bean
- * @param relationalTable the relational table
- */
- @JsonProperty("table")
- private RelationalTable relationalTable;
-
- /**
- * The qualified name of the database schema
- * -- GETTER --
- * Return the database schema qualified name
- *
- * @return String - qualified name of the database schema
- * -- SETTER --
- * Set up the qualified name of the database schema
- * @param databaseSchemaQualifiedName of the database schema
- */
- private String databaseSchemaQualifiedName;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/SchemaTypeEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/SchemaTypeEvent.java
deleted file mode 100644
index 8967a8d19c6..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/SchemaTypeEvent.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.SchemaType;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The Schema type event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class SchemaTypeEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The port qualified name
- * -- GETTER --
- * Returns the port qualified name
- * @return the port qualified name
- * -- SETTER --
- * Sets up the port qualified name
- * @param portQualifiedName the port qualified name
- */
- private String portQualifiedName;
-
- /**
- * The schema type
- * -- GETTER --
- * Returns the schema type
- * @return the schema type
- * -- SETTER --
- * Sets up the schema type
- * @param schemaType the schema type
- */
- @JsonProperty("schema")
- private SchemaType schemaType;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/TopicEvent.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/TopicEvent.java
deleted file mode 100644
index a470c47fa23..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/TopicEvent.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.event;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.Topic;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The topic event of Data Engine OMAS.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class TopicEvent extends DataEngineEventHeader {
-
- /**
- * Serial version UID
- * -- GETTER --
- * Gets the serial version UID
- * @return the serial version UID
- * -- SETTER --
- * Sets the serial version UID
- * @param serialVersionUID the serial version UID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * The topic to be created
- * -- GETTER --
- * Return the topic bean
- *
- * @return the topic
- * -- SETTER --
- * Set up the topic bean
- * @param topic the topic
- */
- private Topic topic;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/package-info.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/package-info.java
deleted file mode 100644
index 7a86164fac3..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/event/package-info.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-/**
- * Definitions of the different types of events that the Data Engine OMAS can consume.
- */
-package org.odpi.openmetadata.accessservices.dataengine.event;
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/ffdc/DataEngineAuditCode.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/ffdc/DataEngineAuditCode.java
deleted file mode 100644
index 4dd9c542d13..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/ffdc/DataEngineAuditCode.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.ffdc;
-
-import lombok.Getter;
-import lombok.ToString;
-import org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageDefinition;
-import org.odpi.openmetadata.repositoryservices.auditlog.OMRSAuditLogRecordSeverity;
-
-/**
- * The DataEngineAuditCode is used to define the message content for the OMRS Audit Log.
- *
- * The 5 fields in the enum are:
- *
- * - Log Message Identifier - to uniquely identify the message
- * - Severity - is this an event, decision, action, error or exception
- * - Log Message Text - includes placeholder to allow additional values to be captured
- * - Additional Information - further parameters and data relating to the audit message (optional)
- * - SystemAction - describes the result of the situation
- * - UserAction - describes how a user should correct the situation
- *
- */
-@ToString
-public enum DataEngineAuditCode {
- /**
- * OMAS-DATA-ENGINE-0001 The Data Engine Open Metadata Access Service (OMAS) is initializing a new server instance
- */
- SERVICE_INITIALIZING("OMAS-DATA-ENGINE-0001",
- OMRSAuditLogRecordSeverity.STARTUP,
- "The Data Engine Open Metadata Access Service (OMAS) is initializing a new server instance",
- "The local server has started up a new instance of the Data Engine OMAS.",
- Constants.NO_ACTION_IS_REQUIRED),
-
- /**
- * OMAS-DATA-ENGINE-0002 The Data Engine Open Metadata Access Service (OMAS) has initialized a new instance for server
- */
- SERVICE_INITIALIZED("OMAS-DATA-ENGINE-0002",
- OMRSAuditLogRecordSeverity.STARTUP,
- "The Data Engine Open Metadata Access Service (OMAS) has initialized a new instance for server {0}",
- "The Data Engine OMAS has completed initialization of a new instance.",
- Constants.NO_ACTION_IS_REQUIRED),
-
- /**
- * OMAS-DATA-ENGINE-0003 The Data Engine Open Metadata Access Service (OMAS) is shutting down its instance for server
- */
- SERVICE_SHUTDOWN("OMAS-DATA-ENGINE-0003",
- OMRSAuditLogRecordSeverity.SHUTDOWN,
- "The Data Engine Open Metadata Access Service (OMAS) is shutting down its instance for server {0}",
- "The local server has requested shut down of an Data Engine OMAS instance.",
- Constants.NO_ACTION_IS_REQUIRED),
- /**
- * OMAS-DATA-ENGINE-0004 The Data Engine Open Metadata Access Service (OMAS) is unable to initialize a new instance
- */
- SERVICE_INSTANCE_FAILURE("OMAS-DATA-ENGINE-0004",
- OMRSAuditLogRecordSeverity.EXCEPTION,
- "The Data Engine Open Metadata Access Service (OMAS) is unable to initialize a new instance; error " +
- "message is {0}",
- "The access service detected an error during the start up of a specific server instance. " +
- "Its services are not available for the server.",
- "Review the error message and any other reported failures to determine the cause of the problem. " +
- " Once this is resolved, restart the server."),
- /**
- * OMAS-DATA-ENGINE-0005 The Data Engine Open Metadata Access Service (OMAS) is unable to initialize a new instance
- */
- ERROR_INITIALIZING_TOPIC_CONNECTION("OMAS-DATA-ENGINE-0005",
- OMRSAuditLogRecordSeverity.EXCEPTION,
- "The Data Engine Open Metadata Access Service (OMAS) is unable to initialize a new instance; error " +
- "message is {0}",
- "The access service detected an error during the start up of a specific server instance. " +
- "Its services are not available for the server.",
- "Review the error message and any other reported failures to determine the cause of the problem. " +
- " Once this is resolved, restart the server."),
- /**
- * OMAS-DATA-ENGINE-0006 The Data Engine Open Metadata Access Service (OMAS) is unable to process an event on its in topic
- */
- PROCESS_EVENT_EXCEPTION("OMAS- DATA-ENGINE-0006",
- OMRSAuditLogRecordSeverity.EXCEPTION,
- "The Data Engine Open Metadata Access Service (OMAS) is unable to process an event on its in topic {0}; exception {1} returned " +
- "error message: {2}",
- "The access service detected an error during the start up of the out topic. Its services are not available for the server.",
- "Review the error message and any other reported failures to determine the cause of the problem. Check the status of the event " +
- "bus. Once this is resolved, restart the server."),
- /**
- * OMAS-DATA-ENGINE-0007 The Data Engine Open Metadata Access Service (OMAS) is unable to parse an event
- */
- PARSE_EVENT_EXCEPTION("OMAS- DATA-ENGINE-0007",
- OMRSAuditLogRecordSeverity.EXCEPTION,
- "The data engine event {0} could not be parsed. Error: {1}",
- "The system is unable to process the event.",
- "Verify the topic configuration or the event schema."),
- /**
- * OMAS-DATA-ENGINE-0008 The Data Engine Open Metadata Access Service (OMAS) client has sent an event
- */
- IN_TOPIC_EVENT_SENT("OMAS-DATA-ENGINE-0008",
- OMRSAuditLogRecordSeverity.EVENT,
- "The Data Engine Open Metadata Access Service (OMAS) client has sent event of type: {0}",
- "The access service client sends out event notification produced by external source like data engine system.",
- "This event contains external metadata changes that need to be processed by the access service.");
-
- /**
- * A message definition object for logging
- * -- GETTER --
- * Retrieves a message definition object for logging. This method is used when there are no message inserts.
- *
- * @return message definition object
- */
- private final AuditLogMessageDefinition messageDefinition;
-
- /**
- * The constructor for DataEngineAuditCode expects to be passed one of the enumeration rows defined in
- * DataEngineAuditCode above. For example:
- *
- * DataEngineAuditCode auditCode = DataEngineAuditCode.SERVICE_INITIALIZING;
- *
- * This will expand out to the 5 parameters shown below.
- *
- * @param messageId - unique identifier for the message
- * @param severity - severity of the message
- * @param message - text for the message
- * @param systemAction - description of the action taken by the system when the condition happened
- * @param userAction - instructions for resolving the situation, if any
- */
- DataEngineAuditCode(String messageId, OMRSAuditLogRecordSeverity severity, String message, String systemAction,
- String userAction) {
- messageDefinition = new AuditLogMessageDefinition(messageId, severity, message, systemAction, userAction);
- }
-
- /**
- * Retrieve a message definition object for logging. This method is used when there are values to be inserted into the message.
- *
- * @param params array of parameters (all strings). They are inserted into the message according to the numbering in the message text.
- * @return message definition object.
- */
- public AuditLogMessageDefinition getMessageDefinition(String... params) {
- messageDefinition.setMessageParameters(params);
- return messageDefinition;
- }
-
- private static class Constants {
- public static final String NO_ACTION_IS_REQUIRED = "No action is required. This is part of the normal operation of the service.";
- }
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/ffdc/DataEngineErrorCode.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/ffdc/DataEngineErrorCode.java
deleted file mode 100644
index 9d1a8521417..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/ffdc/DataEngineErrorCode.java
+++ /dev/null
@@ -1,188 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.ffdc;
-
-
-import org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition;
-import org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageSet;
-
-/**
- * The DataEngineErrorCode is used to define first failure data capture (FFDC) for errors that occur when working with
- * the Data Engine OMAS Services. It is used in conjunction with both Checked and Runtime (unchecked) exceptions.
- *
- * The 5 fields in the enum are:
- *
- * - HTTP Error Code - for translating between REST and JAVA - Typically the numbers used are:
- *
- * - 500 - internal error
- * - 400 - invalid parameters
- * - 404 - not found
- * - 409 - data conflict errors - eg item already defined
- *
- * - Error Message Identifier - to uniquely identify the message
- * - Error Message Text - includes placeholder to allow additional values to be captured
- * - SystemAction - describes the result of the error
- * - UserAction - describes how a consumer should correct the error
- *
- */
-
-public enum DataEngineErrorCode implements ExceptionMessageSet
-{
- /**
- * OMAS-DATA-ENGINE-404-001 The open metadata repository services are not initialized for server {0}
- */
- OMRS_NOT_INITIALIZED(404, "OMAS-DATA-ENGINE-404-001 ",
- "The open metadata repository services are not initialized for server {0}",
- "The system is unable to connect to the open metadata property server.",
- "Check that the server initialized correctly. " +
- "Correct any errors discovered and retry the request when the open metadata services are available."),
- /**
- * OMAS-DATA-ENGINE-400-001 Referenceable with qualifiedName {0} was not found
- */
- REFERENCEABLE_NOT_FOUND(400, "OMAS-DATA-ENGINE-400-001",
- "Referenceable with qualifiedName {0} was not found",
- "The system is unable to create a new DataFlow relation.",
- "Correct the code in the caller to provide the correct referenceable qualified name."),
- /**
- * OMAS-DATA-ENGINE-400-002 Unable to send or receive events for source {0} because the connector to the OMRS Topic failed to initialize
- */
- NULL_TOPIC_CONNECTOR(400, "OMAS-DATA-ENGINE-400-002",
- "Unable to send or receive events for source {0} because the connector to the OMRS Topic failed to initialize",
- "The local server will not connect to the cohort.",
- "The connection to the connector is configured in the server configuration. " +
- "Review previous error messages to determine the precise error in the " +
- "start up configuration. " +
- "Correct the configuration and reconnect the server to the cohort. "),
- /**
- * OMAS-DATA-ENGINE-400-003 Process with qualifiedName {0} was not found
- */
- PROCESS_NOT_FOUND(400, "OMAS-DATA-ENGINE-400-003",
- "Process with qualifiedName {0} was not found",
- "The system is unable to create a new ProcessHierarchy relation.",
- "Correct the code in the caller to provide the correct port qualified name."),
- /**
- * OMAS-DATA-ENGINE-400-004 Database Schema with qualifiedName {0} was not found
- */
- DATABASE_SCHEMA_NOT_FOUND(400, "OMAS-DATA-ENGINE-400-004",
- "Database Schema with qualifiedName {0} was not found",
- "The system is unable to create a new table attached to a database schema",
- "Correct the code in the caller to provide the correct database schema qualified name."),
- /**
- * OMAS-DATA-ENGINE-500-001 An unexpected exception occurred when sending an event through connector {0} to the Data Engine OMAS out topic
- */
- UNABLE_TO_SEND_EVENT(500, "OMAS-DATA-ENGINE-500-001",
- "An unexpected exception occurred when sending an event through connector {0} to the Data Engine OMAS out topic. The failing " +
- "event was {1}, the exception was {2} with message {2}",
- "The system has issued a call to an open metadata access service input topic using event message broker",
- "Look for errors in the remote server's audit log and console to understand and correct the source of the error."),
- /**
- * OMAS-DATA-ENGINE-400-005 Entity with qualifiedName {0} was not deleted
- */
- ENTITY_NOT_DELETED(400, "OMAS-DATA-ENGINE-400-005",
- "Entity with qualifiedName {0} was not deleted",
- "The system is unable to delete the entity with the provided qualifiedName or guid.",
- "Correct the code in the caller to provide the correct database qualified name."),
-
- /**
- * OMAS-DATA-ENGINE-500-002 Method {0} is not implemented
- */
- METHOD_NOT_IMPLEMENTED(501, "OMAS-DATA-ENGINE-500-002",
- "Method {0} is not implemented",
- "The system performs no action as the method is not implemented.",
- "No action suggested."),
- /**
- * OMAS-DATA-ENGINE-400-006 Topic with qualifiedName {0} was not found
- */
- TOPIC_NOT_FOUND(400, "OMAS-DATA-ENGINE-400-006",
- "Topic with qualifiedName {0} was not found",
- "The system is unable to create a new event type attached to a topic",
- "Correct the code in the caller to provide the correct topic qualified name."),
- /**
- * OMAS-DATA-ENGINE-400-007 Engine with qualifiedName {0} was not found
- */
- ENGINE_NOT_FOUND(400, "OMAS-DATA-ENGINE-400-007",
- "Engine with qualifiedName {0} was not found",
- "The system is unable to find the searched Engine",
- "Correct the code in the caller to provide the correct Engine qualified name.");
-
- private final int httpErrorCode;
- private final String errorMessageId;
- private final String errorMessage;
- private final String systemAction;
- private final String userAction;
-
-
- /**
- * The constructor expects to be passed one of the enumeration rows defined above.
- *
- * @param httpErrorCode error code to use over REST calls
- * @param errorMessageId unique id for the message
- * @param errorMessage text for the message
- * @param systemAction description of the action taken by the system when the error condition happened
- * @param userAction instructions for resolving the error
- */
- DataEngineErrorCode(int httpErrorCode, String errorMessageId, String errorMessage, String systemAction, String userAction)
- {
- this.httpErrorCode = httpErrorCode;
- this.errorMessageId = errorMessageId;
- this.errorMessage = errorMessage;
- this.systemAction = systemAction;
- this.userAction = userAction;
- }
-
-
- /**
- * Retrieve a message definition object for an exception. This method is used when there are no message inserts.
- *
- * @return message definition object.
- */
- @Override
- public ExceptionMessageDefinition getMessageDefinition()
- {
- return new ExceptionMessageDefinition(httpErrorCode,
- errorMessageId,
- errorMessage,
- systemAction,
- userAction);
- }
-
-
- /**
- * Retrieve a message definition object for an exception. This method is used when there are values to be inserted into the message.
- *
- * @param params array of parameters (all strings). They are inserted into the message according to the numbering in the message text.
- * @return message definition object.
- */
- @Override
- public ExceptionMessageDefinition getMessageDefinition(String... params)
- {
- ExceptionMessageDefinition messageDefinition = new ExceptionMessageDefinition(httpErrorCode,
- errorMessageId,
- errorMessage,
- systemAction,
- userAction);
-
- messageDefinition.setMessageParameters(params);
-
- return messageDefinition;
- }
-
-
- /**
- * JSON-style toString
- *
- * @return string of property names and values for this enum
- */
- @Override
- public String toString()
- {
- return "ErrorCode{" +
- "httpErrorCode=" + httpErrorCode +
- ", errorMessageId='" + errorMessageId + '\'' +
- ", errorMessage='" + errorMessage + '\'' +
- ", systemAction='" + systemAction + '\'' +
- ", userAction='" + userAction + '\'' +
- '}';
- }
-}
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/ffdc/package-info.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/ffdc/package-info.java
deleted file mode 100644
index 42dfc7d7b1f..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/ffdc/package-info.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-/**
- * This package provides the first failure data capture support for the Data Engine OMAS module.
- * This includes an error code enum and an audit code enum.
- */
-package org.odpi.openmetadata.accessservices.dataengine.ffdc;
-
-/*
- This package provides the first failure data capture support for the Data Engine OMAS module.
- This includes an error code enum and an audit code enum.
-
- The error code enum (DataEngineErrorCode) has an entry for each unique situation
- where an exception is returned. Each entry defines:
-
-
- - A unique id for the error
- - An HTTP error code for rest calls
- - A unique message Id
- - Message text with place holders for specific values
- - A description of the cause of the error and system action as a result.
- - A description of how to correct the error (if known)
-
-
- Each exception (whether a checked or runtime exception) has two constructors.
- The first constructor is used when a new error has been detected.
- The second constructor is used when another exception has been caught.
- This caught exception is passed on the constructor so it is effectively
- embedded in the OMAS exception.
-
- Both constructors take the values from the error code enum to define the cause and resolution.
- */
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Asset.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Asset.java
deleted file mode 100644
index 561531945a7..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Asset.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.AccessLevel;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.List;
-import java.util.Map;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * Asset is a java bean used to create assets associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class Asset extends Referenceable {
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The stored display name property for the asset
- * -- SETTER --
- * Sets up the stored display name property for the asset.
- * @param displayName name
- * -- GETTER --
- * Returns the stored display name property for the asset.
- * If no display name is available then null is returned.
- * @return name
- */
- private String displayName;
-
- /**
- * The stored description property associated with the asset
- * -- SETTER --
- * Set up the stored description property associated with the asset.
- * @param description String text
- * -- GETTER --
- * Returns the stored description property for the asset.
- * If no description is provided then null is returned.
- * @return description
- */
- private String description;
- /**
- * The name of the owner for this asset
- * -- SETTER --
- * Set up the name of the owner for this asset.
- * @param owner String name
- * -- GETTER --
- * Returns the name of the owner for this asset.
- * @return owner
- */
- private String owner;
-
- /**
- * The owner type for this asset
- * -- SETTER --
- * Set up the owner type for this asset.
- * @param ownerType AssetOwnerType enum
- * -- GETTER --
- * Return the type of owner stored in the owner property.
- * @return owner type
- */
- private OwnerType ownerType;
-
- /**
- * The names of the zones that this asset is a member of
- * -- SETTER--
- * Set up the names of the zones that this asset is a member of.
- * @param zoneMembership list of zone names
- * -- GETTER --
- * Return the names of the zones that this asset is a member of.
- * @return list of zone names
- */
- private List zoneMembership;
-
- /**
- * The unique identifier for the organization that originated this asset
- * -- SETTER --
- * Set up the unique identifier for the organization that originated this asset.
- * @param originOrganizationGUID string guid
- * -- GETTER --
- * Return the unique identifier for the organization that originated this asset.
- * @return string guid
- */
- private String originOrganizationGUID;
-
- /**
- * The unique identifier of the business capability that originated this asset
- * -- SETTER --
- * Set up the unique identifier of the business capability that originated this asset.
- * @param originBusinessCapabilityGUID string guid
- * -- GETTER --
- * Return the unique identifier of the business capability that originated this asset.
- * @return string guid
- */
- private String originBusinessCapabilityGUID;
-
- /**
- * The properties that characterize where this asset is from
- * -- SETTER --
- * Set up the properties that characterize where this asset is from.
- * @param otherOriginValues map of name value pairs, all strings
- * -- GETTER --
- * Return the properties that characterize where this asset is from.
- * @return map of name value pairs, all strings
- */
- private Map otherOriginValues;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Attribute.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Attribute.java
deleted file mode 100644
index 93b709ddd2b..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Attribute.java
+++ /dev/null
@@ -1,286 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * Attribute is a java bean used to create schema attributes associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class Attribute extends Referenceable {
-
- /**
- * The simple name of the schema element
- * -- GETTER --
- * Return the simple name of the schema element.
- * @return displayName string name
- * -- SETTER --
- * Set up the simple name of the schema element.
- * @param displayName String display name
- */
- private String displayName;
-
- /**
- * The stored description property for the schema element
- * -- GETTER --
- * Returns the stored description property for the schema element.
- * @return description string description
- * -- SETTER --
- * Set up the stored description property for the schema element.
- * @param description string description
- */
- private String description;
-
- /**
- * Indicates if the schema element is deprecated
- * -- GETTER --
- * Returns true if the schema element deprecated
- * @return isDeprecated boolean flag
- * -- SETTER --
- * Set whether the schema element deprecated or not. Default is false.
- * @param isDeprecated boolean flag
- */
- private boolean isDeprecated;
-
- /**
- * The position of this schema attribute in its parent schema
- * -- GETTER --
- * Return the position of this schema attribute in its parent schema.
- * @return position int position in schema - 0 means first
- * -- SETTER --
- * Set up the position of this schema attribute in its parent schema.
- * @param position int position in schema - 0 means first
- */
- private int position;
-
- /**
- * This minimum number of instances allowed for this attribute
- * -- GETTER --
- * Return this minimum number of instances allowed for this attribute.
- * @return minCardinality int
- * -- SETTER --
- * Set up the minimum number of instances allowed for this attribute.
- * @param minCardinality int
- */
- private int minCardinality;
-
- /**
- * The maximum number of instances allowed for this attribute
- * -- GETTER --
- * Return the maximum number of instances allowed for this attribute.
- * @return maxCardinality int (-1 means infinite)
- * -- SETTER --
- * Set up the maximum number of instances allowed for this attribute.
- * @param maxCardinality int (-1 means infinite)
- */
- private int maxCardinality;
-
- /**
- * Indicates whether the same value can be used by more than one instance of this attribute
- * -- GETTER --
- * Return whether the same value can be used by more than one instance of this attribute.
- * @return allowsDuplicateValues boolean flag
- * -- SETTER --
- * Set up whether the same value can be used by more than one instance of this attribute.
- * @param allowsDuplicateValues boolean flag
- */
- private boolean allowsDuplicateValues;
-
- /**
- * Indicates whether the attribute instances are arranged in an order
- * -- GETTER --
- * Return whether the attribute instances are arranged in an order.
- * @return orderedValues boolean flag
- * -- SETTER --
- * Set up whether the attribute instances are arranged in an order.
- * @param orderedValues boolean flag
- */
- private boolean orderedValues;
-
- /**
- * Default value override
- * -- GETTER --
- * Return any default value for this attribute that would override the default defined in the
- * schema element for this attribute's type (note only used is type is primitive).
- * @return String default value override
- * -- SETTER --
- * Set up any default value for this attribute that would override the default defined in the
- * schema element for this attribute's type (note only used is type is primitive).
- * @param defaultValueOverride String default value override
- */
- private String defaultValueOverride;
-
- /**
- * The order that the attribute instances are arranged in
- * -- GETTER --
- * Return the order that the attribute instances are arranged in - if any.
- * @return DataItemSortOrder enum
- * -- SETTER --
- * Set up the order that the attribute instances are arranged in - if any.
- * @param sortOrder DataItemSortOrder enum
- */
- private DataItemSortOrder sortOrder;
-
- /**
- * The minimum length of the data
- * -- GETTER --
- * Return the minimum length of the data.
- * @return int
- * -- SETTER --
- * Set up the minimum length of the data.
- * @param minimumLength int
- */
- private int minimumLength;
-
- /**
- * The length of the data field
- * -- GETTER --
- * Return the length of the data field.
- * @return int
- * -- SETTER --
- * Set up the length of the data field.
- * @param length int
- */
- private int length;
-
- /**
- * The number of significant digits to the right of decimal point
- * -- GETTER --
- * Return the number of significant digits to the right of decimal point.
- * @return int
- * -- SETTER --
- * Set up the number of significant digits to the right of decimal point.
- * @param precision int
- */
- private int precision;
-
- /**
- * Indicates whether the field is nullable or not
- * -- GETTER --
- * Return whether the field is nullable or not.
- * @return boolean
- * -- SETTER --
- * Set up whether the field is nullable or not.
- * @param isNullable boolean
- */
- private boolean isNullable;
-
- /**
- * The name of the Java class to use to represent this type
- * -- GETTER --
- * Return the name of the Java class to use to represent this type.
- * @return fully qualified Java class name
- * -- SETTER --
- * Set up the name of the Java class to use to represent this type.
- * @param nativeClass fully qualified Java class name
- */
- private String nativeClass;
-
- /**
- * A list of alternative names for the attribute
- * -- GETTER --
- * Return a list of alternative names for the attribute.
- * @return list of names
- * -- SETTER --
- * Set up a list of alternative names for the attribute.
- * @param aliases list of names
- */
- private List aliases;
-
- /**
- * The data type for this element
- * -- GETTER --
- * Return the data type for this element. Null means unknown data type.
- * @return string data type name
- * -- SETTER --
- * Set up the data type for this element. Null means unknown data type.
- * @param dataType data type name
- */
- private String dataType;
-
- /**
- * The default value for the element
- * -- GETTER --
- * Return the default value for the element. Null means no default value set up.
- * @return string containing default value
- * -- SETTER --
- * Set up the default value for the element. Null means no default value set up.
- * @param defaultValue String containing default value
- */
- private String defaultValue;
-
- /**
- * A fixed literal value - an alternative to default value
- * -- GETTER --
- * Return a fixed literal value - an alternative to default value.
- * @return string value
- * -- SETTER --
- * If the column contains a fixed literal value, set this value here - an alternative to default value.
- * @param fixedValue string
- */
- private String fixedValue;
-
- /**
- * The unique identifier of this column's type
- * -- GETTER --
- * Return the unique identifier of this column's type.
- * @return unique identifier (guid) of the external schema type
- * -- SETTER --
- * If the type of this column is represented by an external (standard type) put its value here. No need to set
- * dataType, FixedType or defaultType
- * @param externalTypeGUID unique identifier (guid) of the external schema type
- */
- private String externalTypeGUID;
-
- /**
- * The set of valid values for this column
- * -- GETTER --
- * Return the set of valid values for this column.
- * @return unique identifier (guid) of the valid values set
- * -- SETTER --
- * If the type is controlled by a fixed set of values, set up the unique identifier of the valid values set
- * that lists the valid values.
- * @param validValuesSetGUID unique identifier (guid) of the valid values set
- */
- private String validValuesSetGUID;
-
- /**
- * The name of the type for this schema element
- * -- GETTER --
- * Return name of the type of this schema element
- * @return name of the type
- * -- SETTER --
- * Set the name of the type for this schema element
- * @param typeName the name of the type of data
- */
- private String typeName;
-
- /**
- * Unique identifier of the type for this schema element
- * -- GETTER --
- * Return identifier of the type of this schema element
- * @return identifier of the type for this schema element
- * -- SETTER --
- * Set the value for the type identifier
- * @param typeGuid unique identifier (guid) of the schema element
- */
- private String typeGuid;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/CSVFile.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/CSVFile.java
deleted file mode 100644
index de0b96b1ab4..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/CSVFile.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * CSVFile is a java bean used to create CSVFiles associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class CSVFile extends DataFile {
-
- /**
- * The delimited character
- * -- GETTER --
- * Get delimited character
- * @return delimiter character
- * -- SETTER --
- * Set delimited character
- * @param delimiterCharacter delimiter character
- */
- protected String delimiterCharacter;
-
- /**
- * The quote character
- * -- GETTER --
- * Get quote character
- * @return quote character
- * -- SETTER --
- * Set quote character
- * @param quoteCharacter quote character
- */
- protected String quoteCharacter;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Collection.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Collection.java
deleted file mode 100644
index 75329a80eb0..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Collection.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * Collection is a java bean used to create collections associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@JsonTypeInfo(use = JsonTypeInfo.Id.NONE)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class Collection extends Referenceable {
-
- /**
- * The name of the collection
- * -- GETTER --
- * Return the name of the collection.
- *
- * @return name string name
- * -- SETTER --
- * Set up the name of the collection.
- * @param name String name
- */
- private String name;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Connection.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Connection.java
deleted file mode 100644
index 27839fe008a..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Connection.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.Map;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-/**
- * Connection is a java bean used to create connections associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class Connection extends Referenceable {
-
- /**
- * The clear password
- * -- GETTER --
- * Get clear password
- * @return clear password
- * -- SETTER --
- * Set clear password
- * @param clearPassword clear password
- */
- private String clearPassword;
-
- /**
- * The configuration properties
- * -- GETTER --
- * Get configuration properties
- * @return configuration properties
- * -- SETTER --
- * Set configuration properties
- * @param configurationProperties configuration properties
- */
- private Map configurationProperties;
-
- /**
- * The description
- * -- GETTER --
- * Get description
- * @return description
- * -- SETTER --
- * Set description
- * @param description description
- */
- private String description;
-
- /**
- * The display name
- * -- GETTER --
- * Get display name
- * @return display name
- * -- SETTER --
- * Set display name
- * @param displayName display name
- */
- private String displayName;
-
- /**
- * The encrypted password
- * -- GETTER --
- * Get encrypted password
- * @return encrypted password
- * -- SETTER --
- * Set encrypted password
- * @param encryptedPassword encrypted password
- */
- private String encryptedPassword;
-
- /**
- * The secured properties
- * -- GETTER --
- * Get secured properties
- * @return secured properties
- * -- SETTER --
- * Set secured properties
- * @param securedProperties secured properties
- */
- private Map securedProperties;
-
- /**
- * The user id
- * -- GETTER --
- * Get user id
- * @return user id
- * -- SETTER --
- * Set user id
- * @param userId user ID
- */
- private String userId;
-
- /**
- * The connector type
- * -- GETTER --
- * Get connector type
- * @return connector type
- * -- SETTER --
- * Set connector type
- * @param connectorType connector type
- */
- private ConnectorType connectorType;
-
- /**
- * The endpoint
- * -- GETTER --
- * Get endpoint
- * @return endpoint
- * -- SETTER --
- * Set endpoint
- * @param endpoint the endpoint
- */
- private Endpoint endpoint;
-
- /**
- * The asset summary
- * -- GETTER --
- * Get asset summary
- * @return asset summary
- * -- SETTER --
- * Set asset summary
- * @param assetSummary the asset summary
- */
- private String assetSummary;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ConnectorType.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ConnectorType.java
deleted file mode 100644
index a10f86e0a98..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ConnectorType.java
+++ /dev/null
@@ -1,194 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.AccessLevel;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-/**
- * ConnectorType is a java bean used to create connector types associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class ConnectorType extends Referenceable {
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * --SETTER--
- * Set up the display name for UIs and reports.
- * @param displayName String name
- * --GETTER--
- * Returns the stored display name property for the connector type.
- * If no display name is available then null is returned.
- * @return displayName
- */
- private String displayName;
-
- /**
- * --SETTER--
- * Set up description of the element.
- * @param description String
- * --GETTER--
- * Returns the stored description property for the connector type.
- * If no description is available then null is returned.
- * @return description
- */
- private String description;
-
- /**
- * --SETTER--
- * Set up the type of asset that the connector implementation supports.
- * @param supportedAssetTypeName string name
- * --GETTER--
- * Return the type of asset that the connector implementation supports.
- * @return string name
- */
- private String supportedAssetTypeName;
-
- /**
- * --SETTER--
- * Set up the format of the data that the connector supports - null for "any".
- * @param expectedDataFormat string name
- * --GETTER--
- * Return the format of the data that the connector supports - null for "any".
- * @return string name
- */
- private String expectedDataFormat;
-
- /**
- * --SETTER--
- * The name of the connector provider class name.
- * @param connectorProviderClassName String class name
- * --GETTER--
- * Returns the stored connectorProviderClassName property for the connector type.
- * If no connectorProviderClassName is available then null is returned.
- * @return connectorProviderClassName class name (including package name)
- */
- private String connectorProviderClassName;
-
- /**
- * --SETTER--
- * Set up name of the connector framework that the connector implements - default Open Connector Framework (OCF).
- * @param connectorFrameworkName string name
- * --GETTER--
- * Return name of the connector framework that the connector implements - default Open Connector Framework (OCF).
- * @return string name
- */
- private String connectorFrameworkName;
-
- /**
- * --SETTER--
- * Set up the language that the connector is implemented in - default Java.
- * @param connectorInterfaceLanguage string name
- * --GETTER--
- * Return the language that the connector is implemented in - default Java.
- * @return string name
- */
- private String connectorInterfaceLanguage;
-
- /**
- * --SETTER--
- * Set up list of interfaces that the connector supports.
- * @param connectorInterfaces list of names
- * --GETTER--
- * Return list of interfaces that the connector supports.
- * @return list of names
- */
- private List connectorInterfaces;
-
- /**
- * --SETTER--
- * Set up the name of the organization that supplies the target technology that the connector implementation connects to.
- * @param targetTechnologySource list of names
- * --GETTER--
- * Return the name of the organization that supplies the target technology that the connector implementation connects to.
- * @return string name
- */
- private String targetTechnologySource;
-
- /**
- * --SETTER--
- * Set up the name of the target technology that the connector implementation connects to.
- * @param targetTechnologyName string name
- * --GETTER--
- * Return the name of the target technology that the connector implementation connects to.
- * @return string name
- */
- private String targetTechnologyName;
-
- /**
- * --SETTER--
- * Set up the names of the interfaces in the target technology that the connector calls.
- * @param targetTechnologyInterfaces list of interface names
- * --GETTER--
- * Return the names of the interfaces in the target technology that the connector calls.
- * @return list of interface names
- */
- private List targetTechnologyInterfaces;
-
- /**
- * --SETTER--
- * Set up the versions of the target technology that the connector supports.
- * @param targetTechnologyVersions list of version identifiers
- * --GETTER--
- * Return the versions of the target technology that the connector supports.
- * @return list of version identifiers
- */
- private List targetTechnologyVersions;
-
-
- /**
- * --SETTER--
- * Set up the list of property names that this connector/connector provider implementation looks for
- * in the Connection object's additionalProperties.
- * @param recognizedAdditionalProperties list of property names
- * --GETTER--
- * Return the list of property names that this connector/connector provider implementation looks for
- * in the Connection object's additionalProperties.
- * @return list of property names
- */
- private List recognizedAdditionalProperties;
-
- /**
- * --SETTER--
- * Set up the list of property names that this connector/connector provider implementation looks for
- * in the Connection object's configurationProperties.
- * @param recognizedConfigurationProperties list of property names
- * --GETTER--
- * Return the list of property names that this connector/connector provider implementation looks for
- * in the Connection object's configurationProperties.
- * @return list of property names
- */
- private List recognizedConfigurationProperties;
-
- /**
- * --SETTER--
- * Set up the list of property names that this connector/connector provider implementation looks for
- * in the Connection object's securedProperties.
- * @param recognizedSecuredProperties list of property names
- * --GETTER--
- * Return the list of property names that this connector/connector provider implementation looks for
- * in the Connection object's securedProperties.
- * @return list of property names
- */
- private List recognizedSecuredProperties;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataFile.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataFile.java
deleted file mode 100644
index 80a9b1a6dab..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataFile.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DataFile is a java bean used to create DataFiles associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "fileType")
-@JsonSubTypes({ @JsonSubTypes.Type(value = DataFile.class, name = "DataFile"),
- @JsonSubTypes.Type(value = CSVFile.class, name = "CSVFile")})
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DataFile extends DataStore {
-
- /**
- * The file type
- * -- GETTER --
- * Gets file type
- * @return type
- * -- SETTER --
- * Sets the file type
- * @param fileType type
- */
- private String fileType;
-
- /**
- * The file schema
- * -- GETTER --
- * Gets the file schema
- * @return file schema
- * -- SETTER --
- * Sets the file schema
- * @param schema schema
- */
- private SchemaType schema;
-
- /**
- * The file columns
- * -- GETTER --
- * Gets the file columns
- * @return columns
- * -- SETTER --
- * Sets the file columns
- * @param columns columns
- */
- private List columns;
-
- /**
- * The network address
- * -- GETTER --
- * Gets the network address
- * @return columns
- * -- SETTER --
- * Sets the network address. Needed to create Endpoint, which in turn is internally generated along with Connection,
- * not provided by user
- * @param networkAddress network address
- */
- // Needed to create Endpoint, which in turn is internally generated along with Connection, not provided by user
- private String networkAddress;
-
- /**
- * The Endpoint protocol
- * -- GETTER --
- * Get an Endpoint protocol
- * @return network address
- * -- SETTER --
- * Sets the protocol. Needed to create Endpoint, which in turn is internally generated along with Connection,
- * not provided by user
- * @param protocol protocol
- */
- private String protocol;
-
- /**
- * Determines if the file is incomplete
- * -- GETTER --
- * Return if the file is incomplete
- *
- * @return if the file is incomplete
- * -- SETTER --
- * Sets up if the file is incomplete
- * @param incomplete if the file is incomplete
- */
- @JsonProperty("incomplete")
- private boolean incomplete;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataFlow.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataFlow.java
deleted file mode 100644
index 3036bb23b82..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataFlow.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DataFlow is a java bean used to create data flow relationships.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode
-@ToString
-public class DataFlow implements Serializable {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * The data supplier
- * -- GETTER --
- * Gets data supplier.
- * @return the data supplier
- * -- SETTER --
- * Sets data supplier
- * @param dataSupplier the data supplier
- */
- private String dataSupplier;
-
- /**
- * The data consumer
- * -- GETTER --
- * Gets data consumer
- * @return the data consumer
- * -- SETTER --
- * Sets data consumer
- * @param dataConsumer the data consumer
- */
- private String dataConsumer;
-
- private String formula;
-
- private String description;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataItemSortOrder.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataItemSortOrder.java
deleted file mode 100644
index e3970d3e76b..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataItemSortOrder.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.AccessLevel;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DataItemSortOrder is used for schema attributes that may have multiple instances.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@ToString
-public enum DataItemSortOrder implements Serializable {
-
- /**
- * The sort order is not specified
- */
- UNKNOWN(0, 99, "", "The sort order is not specified."),
- /**
- * The attribute instances are organized so that the smallest/lowest value is first and the rest of the instances follow in ascending order.
- */
- ASCENDING(1, 0, "Ascending", "The attribute instances are organized so that the " +
- "smallest/lowest value is first and the rest of the instances follow in " +
- "ascending order."),
- /**
- * The attribute instances are organized so that the smallest/lowest value is first and the rest of the instances follow in descending order.
- */
- DESCENDING(2, 1, "Descending", "The attribute instances are organized so that the " +
- "largest/highest value is first and the rest of the instances follow in " +
- "descending order."),
- /**
- * TThe instances of the schema attribute may appear in any order.
- */
- UNSORTED(3, 99, "Unsorted", "The instances of the schema attribute may appear in any order.");
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- private static final String ENUM_TYPE_GUID = "aaa4df8f-1aca-4de8-9abd-1ef2aadba300";
-
- private static final String ENUM_TYPE_NAME = "DataItemSortOrder";
-
- /**
- * The code for this enum that comes from the Open Metadata Type that this enum represents
- * -- GETTER --
- * Return the code for this enum that comes from the Open Metadata Type that this enum represents.
- *
- * @return int code number
- */
- @Getter
- private final int openTypeOrdinal;
-
- /**
- * The code for this enum used for indexing based on the enum value
- * -- GETTER --
- * Return the code for this enum used for indexing based on the enum value.
- *
- * @return int code number
- */
- @Getter
- private final int ordinal;
-
- /**
- * The default name for this enum type
- * -- GETTER --
- * Return the default name for this enum type.
- *
- * @return String name
- */
- @Getter
- private final String name;
-
- /**
- * The default description for this enum
- * -- GETTER --
- * Return the default description for this enum.
- *
- * @return String description
- */
- @Getter
- private final String description;
-
- /**
- * Constructor to set up the instance of this enum.
- *
- * @param ordinal code number
- * @param openTypeOrdinal code number from the equivalent Enum Type
- * @param name default name
- * @param description default description
- */
- DataItemSortOrder(int ordinal, int openTypeOrdinal, String name, String description) {
- this.ordinal = ordinal;
- this.openTypeOrdinal = openTypeOrdinal;
- this.name = name;
- this.description = description;
- }
-
- /**
- * Return the unique identifier for the open metadata enum type that this enum class represents.
- *
- * @return string guid
- */
- public String getOpenTypeGUID() {
- return ENUM_TYPE_GUID;
- }
-
-
- /**
- * Return the unique name for the open metadata enum type that this enum class represents.
- *
- * @return string name
- */
- public String getOpenTypeName() {
- return ENUM_TYPE_NAME;
- }
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataStore.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataStore.java
deleted file mode 100644
index 91d891f25b2..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DataStore.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.Collections;
-import java.util.Date;
-import java.util.Map;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DataStore is a java bean used to create DataStore associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DataStore extends Asset {
-
- /**
- * The fully qualified physical location of the data store
- * -- GETTER --
- * Return the fully qualified physical location of the data store. This should be suitable for the
- * network address of the Endpoint.
- * @return string name
- * -- SETTER --
- * Set up the fully qualified physical location of the data store. This should be suitable for the
- * network address of the Endpoint.
- * @param pathName string name
- */
- private String pathName;
-
- /**
- * The time that the data store was created
- * -- GETTER --
- * Return the time that the data store was created.
- * @return create time
- * -- SETTER --
- * Set up the time that the data store was created.
- * @param createTime date
- */
- private Date createTime;
-
- /**
- * The last known time the data store was modified
- * -- GETTER --
- * Return the last known time the data store was modified.
- * @return modified time
- * -- SETTER --
- * Setup the last known time the data store was modified.
- * @param modifiedTime date
- */
- private Date modifiedTime;
-
- /**
- * The name of the encoding style used in the data store
- * -- GETTER --
- * Return the name of the encoding style used in the data store.
- * @return the encoding style used in the data store
- * -- SETTER --
- * Set up the name of the encoding style used in the data store.
- * @param encodingType string name
- */
- private String encodingType;
-
- /**
- * The name of the natural language used for text strings within the data store
- * -- GETTER --
- * Return the name of the natural language used for text strings within the data store.
- * @return encodingLanguage string language name
- * -- SETTER --
- * Set up the name of the natural language used for text strings within the data store.
- * @param encodingLanguage string language name
- */
- private String encodingLanguage;
-
- /**
- * The description of the encoding used in the data store
- * -- GETTER --
- * Return the description of the encoding used in the data store.
- * @return encodingDescription string text
- * -- SETTER --
- * Set up the description of the encoding used in the data store.
- * @param encodingDescription string text
- */
- private String encodingDescription;
-
- /**
- * The additional properties associated with the encoding process
- * -- GETTER --
- * Return the additional properties associated with the encoding process
- * @return additional properties associated with the encoding process
- * -- SETTER --
- * Set up the additional properties associated with the encoding process.
- * @param encodingProperties map of name-value pairs
- */
- private Map encodingProperties;
-
- /**
- * Return the additional properties associated with the encoding process.
- * @return map of name-value pairs
- */
- public Map getEncodingProperties() {
- if (encodingProperties == null || encodingProperties.isEmpty()) {
- return Collections.emptyMap();
- }
- return encodingProperties;
- }
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Database.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Database.java
deleted file mode 100644
index 2676d7e9c4e..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Database.java
+++ /dev/null
@@ -1,135 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * Database is a java bean used to create Databases associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class Database extends DataStore {
-
- /**
- * The description of the database type
- * -- GETTER --
- * Return a description of the database type.
- * @return string type name
- * -- SETTER --
- * Set up a description of the database type.
- * @param databaseType string type name
- */
- private String databaseType;
-
- /**
- * The version of the database
- * -- GETTER --
- * Return the version of the database - often this is related to the version of its schemas.
- * @return version name
- * -- SETTER --
- * Set up the version of the database - often this is related to the version of its schemas.
- * @param databaseVersion version name
- */
- private String databaseVersion;
-
- /**
- * The name of this database instance
- * -- GETTER --
- * Return the name of this database instance - useful if the same schemas are deployed to multiple database instances.
- * @return instance name
- * -- SETTER --
- * Set up the name of this database instance - useful if the same schemas are deployed to multiple database instances.
- * @param databaseInstance instance name
- */
- private String databaseInstance;
-
- /**
- * The source (typically connection name) of the database information
- * -- GETTER --
- * Return the source (typically connection name) of the database information.
- * @return source name
- * -- SETTER --
- * Set up the source (typically connection name) of the database information.
- * @param databaseImportedFrom source name
- */
- private String databaseImportedFrom;
-
- /**
- * The database schema
- * -- GETTER --
- * Get database schema
- * @return the database schema for the database
- * -- SETTER --
- * Set up the database schema for the database
- * @param databaseSchema DatabaseSchema object
- */
- @JsonProperty("schema")
- private DatabaseSchema databaseSchema;
-
- /**
- * The relational tables inside the database
- * -- GETTER --
- * Gets the relational tables inside the database.
- * @return the relational tables inside the database
- * -- SETTER --
- * Sets up relational tables inside the database.
- * @param tables relational tables inside the database
- */
- List tables;
-
- /**
- * The Endpoint protocol
- * -- GETTER --
- * Get an Endpoint protocol
- * @return network address
- * -- SETTER --
- * Sets the protocol. Needed to create Endpoint, which in turn is internally generated along with Connection,
- * not provided by user
- * @param protocol protocol
- */
- // Needed to create Endpoint, which in turn is internally generated along with Connection, not provided by user
- private String protocol;
-
- /**
- * The Endpoint network address
- * -- GETTER --
- * Get an Endpoint network address
- * @return network address
- * -- SETTER --
- * Sets the network address. Needed to create Endpoint, which in turn is internally generated along with Connection,
- * not provided by user
- * @param networkAddress network address
- */
- private String networkAddress;
-
- /**
- * Determines if the database is incomplete
- * -- GETTER --
- * Return if the database is incomplete
- *
- * @return if the database is incomplete
- * -- SETTER --
- * Sets up if the database is incomplete
- * @param incomplete if the database is incomplete
- */
- @JsonProperty("incomplete")
- private boolean incomplete;
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DatabaseSchema.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DatabaseSchema.java
deleted file mode 100644
index d092a2c7db4..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DatabaseSchema.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DatabaseSchema is a java bean used to create DatabaseSchemas associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@EqualsAndHashCode(callSuper = true)
-@Getter
-@Setter
-@ToString(callSuper = true)
-public class DatabaseSchema extends Asset {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * Determines if the database schema is incomplete
- * -- GETTER --
- * Return if the database schema is incomplete
- *
- * @return if the database schema is incomplete
- * -- SETTER --
- * Sets up if the database schema is incomplete
- * @param incomplete if the database schema is incomplete
- */
- @JsonProperty("incomplete")
- private boolean incomplete;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DeleteSemantic.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DeleteSemantic.java
deleted file mode 100644
index 0d2ed7dac11..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/DeleteSemantic.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.AccessLevel;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DeleteSemantic defines the different types of delete for an entity
- *
- * - HARD - Hard-delete strategy. Process and related metadata associated is deleted by purging it from the metadata repository. Deletion
- * happens cascading down to data flows.
- * - SOFT - Soft-delete strategy. Process (and related metadata) will be not removed physically but flagged as 'inactive' or temporary deleted
- * from repository (deleteEntity); Process (and related metadata) can be restored in case it is needed (restoreEntity).
- * - MEMENTO - Using Memento classification. Similarly to soft delete, process asset is classified as memento asset using memento
- * classification.
- *
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@ToString
-public enum DeleteSemantic implements Serializable {
- SOFT(0, "SOFT", "Soft delete"),
- HARD(1, "HARD", "Hard delete"),
- MEMENTO(1, "MEMENTO", "Memento");
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * Return the numeric representation of the delete semantic
- * -- GETTER --
- * Return the numeric representation of the delete semantic
- *
- * @return String - numeric representation of the delete semantic
- */
- private int ordinal;
-
- /**
- * Return the name of the delete semantic
- * -- GETTER --
- * Return the name of the delete semantic
- *
- * @return String - name of the delete semantic
- */
- private String name;
-
- /**
- * Return the description of the delete semantic
- * -- GETTER --
- * Return the description of the delete semantic
- *
- * @return String - description of the delete semantic
- */
- private String description;
-
-
- /**
- * Default constructor for the enumeration.
- *
- * @param ordinal numerical representation of the enumeration
- * @param name default string name of the instance provenance type
- * @param description default string description of the instance provenance type
- */
- DeleteSemantic(int ordinal, String name, String description) {
- this.ordinal = ordinal;
- this.name = name;
- this.description = description;
- }
-}
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Endpoint.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Endpoint.java
deleted file mode 100644
index 2e27f0197ca..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Endpoint.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-/**
- * The Endpoint describes the network information necessary for a connector to connect to the server
- * where the Asset is accessible from.
- */
-public class Endpoint extends Referenceable {
-
- /**
- * The description of the endpoint
- * -- GETTER --
- * Return the description of the endpoint.
- * @return description
- * -- SETTER --
- * Set up the description of the endpoint.
- * @param description description
- */
- private String description;
-
- /**
- * The display name of the endpoint
- * -- GETTER --
- * Return the display name of the endpoint.
- * @return display name
- * -- SETTER --
- * Set up the display name of the endpoint.
- * @param displayName display name
- */
- private String displayName;
-
- /**
- * The encryption method of the endpoint
- * -- GETTER --
- * Returns the stored encryption method property for the endpoint. This is allowing the information
- * needed to work with a specific encryption mechanism used by the endpoint to be defined.
- * If no encryption method property is available (typically because this is an unencrypted endpoint)
- * then null is returned.
- * @return encryption method
- * -- SETTER --
- * Set up the encryption method of the endpoint.
- * @param encryptionMethod encryption method
- */
- private String encryptionMethod;
-
- /**
- * The name of the endpoint
- * -- GETTER --
- * Return the name of the endpoint.
- * @return name
- * -- SETTER --
- * Set up the name of the endpoint.
- * @param name name
- */
- private String name;
-
- /**
- * The network address of the endpoint
- * -- GETTER --
- * Returns the network address property for the endpoint.
- * @return name
- * -- SETTER --
- * Set up the network address of the endpoint.
- * @param networkAddress network address
- */
- private String networkAddress;
-
- /**
- * The protocol of the endpoint
- * -- GETTER --
- * Returns the protocol for the endpoint.
- * @return name
- * -- SETTER --
- * Set up the protocol of the endpoint.
- * @param protocol protocol
- */
- private String protocol;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Engine.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Engine.java
deleted file mode 100644
index 76902b59de1..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Engine.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.AccessLevel;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-import java.util.Map;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * Engine is a java bean used to create the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@EqualsAndHashCode
-@ToString
-@Getter
-@Setter
-public class Engine implements Serializable {
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The qualified name
- * -- GETTER --
- * Gets qualified name.
- * @return the qualified name
- * -- SETTER --
- * Sets qualified name.
- * @param qualifiedName the qualified name
- */
- private String qualifiedName;
-
- /**
- * The display name
- * -- GETTER --
- * Gets display name.
- * @return the display name
- * -- SETTER --
- * Sets display name.
- * @param name the display name
- */
- @JsonProperty("displayName")
- private String name;
-
- /**
- * The description
- * -- GETTER --
- * Gets description.
- * @return the description
- * -- SETTER --
- * Sets description.
- * @param description the description
- */
- private String description;
-
- /**
- * The engine type
- * -- GETTER --
- * Gets engine type.
- * @return the engine type
- * -- SETTER --
- * Sets engine type.
- * @param engineType the engine type
- */
- private String engineType;
-
- /**
- * The engine version
- * -- GETTER --
- * Gets engine version.
- * @return the engine version
- * -- SETTER --
- * Sets engine version.
- * @param engineVersion the engine version
- */
- private String engineVersion;
-
- /**
- * The patch level
- * -- GETTER --
- * Gets patch level.
- * @return the patch level
- * -- SETTER --
- * Sets patch level.
- * @param patchLevel the patch level
- */
- private String patchLevel;
-
- /**
- * The source
- * -- GETTER --
- * Gets source.
- * @return the source
- * -- SETTER --
- * Sets source.
- * @param source the source
- */
- private String source;
-
- /**
- * Additional properties
- * -- GETTER --
- * Gets the additional properties
- * @return the additional properties
- * -- SETTER --
- * Sets the additional properties.
- * @param additionalProperties the additional properties
- */
- private Map additionalProperties;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/EventType.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/EventType.java
deleted file mode 100644
index d7270f25895..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/EventType.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.AccessLevel;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The EventType type
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-@Getter
-@Setter
-public class EventType extends SchemaType {
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The attribute list
- * -- GETTER --
- * Gets attribute list.
- * @return the attribute list
- * -- SETTER --
- * Sets attribute list.
- * @param attributeList the attribute list
- */
- @JsonProperty("eventSchemaAttributes")
- private List attributeList;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/FileFolder.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/FileFolder.java
deleted file mode 100644
index ab5354314a0..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/FileFolder.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.ToString;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * FileFolder is a java bean used to create FileFolders associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class FileFolder extends DataStore {
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Identifiers.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Identifiers.java
deleted file mode 100644
index 7cc3fb71c52..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Identifiers.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode
-@NoArgsConstructor
-@ToString
-public class Identifiers {
-
- /**
- * The qualifiedName of the entity
- * -- GETTER --
- * Return the entity qualifiedName
- *
- * @return String - qualifiedName of the entity
- * -- SETTER --
- * Set up the qualifiedName of the entity
- * @param qualifiedName of the entity
- */
- private String qualifiedName;
-
-}
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/OwnerType.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/OwnerType.java
deleted file mode 100644
index 8c813f722f3..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/OwnerType.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.AccessLevel;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * AssetOwnerType defines the identifier used in an Asset's owner property.
- *
- * - User Identifier - The owner's user id is stored in the owner property.
- * - Profile - The owner's profile unique identifier (guid) is stored in the owner property.
- * - Other - A different identifier for the owner outside of the scope of open metadata has been used.
- *
- * Being able to use a profile guid in this field allows for Assets to be owned by Teams and Engines as well
- * as people.
- */
-@JsonAutoDetect(getterVisibility=PUBLIC_ONLY, setterVisibility=PUBLIC_ONLY, fieldVisibility=NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown=true)
-@Getter
-@ToString
-public enum OwnerType implements Serializable {
- /**
- * The owner's user id is stored in the owner property.
- */
- USER_ID(0, 0, "UserId", "The owner's user id is stored in the owner property."),
- /**
- * The owner's profile unique identifier (guid) is stored in the owner property.
- */
- PROFILE_ID(1, 1, "ProfileId", "The owner's profile unique identifier (guid) is stored in the owner property."),
- /**
- * A different identifier for the owner outside of the scope of open metadata has been used.
- */
- OTHER(99, 99, "Other", "A different identifier for the owner outside of the scope of open metadata has been used.");
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- private static final String ENUM_TYPE_GUID = "9548390c-69f5-4dc6-950d-6feeee257b56";
-
- private static final String ENUM_TYPE_NAME = "AssetOwnerType";
-
- /**
- * The code for this enum that comes from the Open Metadata Type that this enum represents
- * -- GETTER --
- * Return the code for this enum that comes from the Open Metadata Type that this enum represents.
- * @return openTypeOrdinal int code number
- */
- private final int openTypeOrdinal;
-
- /**
- * The numeric representation of the enumeration
- * -- GETTER --
- * Return the numeric representation of the enumeration.
- * @return int ordinal
- */
- private final int ordinal;
-
- /**
- * The default name of the enumeration
- * -- GETTER --
- * Return the default name of the enumeration.
- * @return String name
- */
- private final String name;
-
- /**
- * The default description of the enumeration
- * -- GETTER --
- * Return the default description of the enumeration.
- * @return String description
- */
- private final String description;
-
- /**
- * Constructor to set up the instance of this enum.
- *
- * @param ordinal code number
- * @param openTypeOrdinal code number from the equivalent Enum Type
- * @param name default name
- * @param description default description
- */
- OwnerType(int ordinal, int openTypeOrdinal, String name, String description) {
- this.ordinal = ordinal;
- this.openTypeOrdinal = openTypeOrdinal;
- this.name = name;
- this.description = description;
- }
-
- /**
- * Return the unique identifier for the open metadata enum type that this enum class represents.
- *
- * @return string guid
- */
- public String getOpenTypeGUID() { return ENUM_TYPE_GUID; }
-
-
- /**
- * Return the unique name for the open metadata enum type that this enum class represents.
- *
- * @return string name
- */
- public String getOpenTypeName() { return ENUM_TYPE_NAME; }
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ParentProcess.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ParentProcess.java
deleted file mode 100644
index f6a3ebadf8b..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ParentProcess.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DataFlow is a java bean used to create process hierarchies relationships.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode
-@ToString
-public class ParentProcess implements Serializable {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * The qualified name
- * -- GETTER --
- * Gets qualified name.
- * @return the qualified name
- * -- SETTER --
- * Sets qualified name.
- * @param qualifiedName the qualified name
- */
- private String qualifiedName;
-
- /**
- * The process containment type
- * -- GETTER --
- * Gets process containment type.
- * @return the process containment type
- * -- SETTER --
- * Sets process containment type.
- * @param processContainmentType the process containment type
- */
- @JsonProperty("containmentType")
- private ProcessContainmentType processContainmentType;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Port.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Port.java
deleted file mode 100644
index 66b24225407..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Port.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import lombok.AccessLevel;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The type Port.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@JsonSubTypes({
- @JsonSubTypes.Type(value = PortImplementation.class, name = "PortImplementation")
-})
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class Port extends Referenceable {
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The display name
- * -- GETTER --
- * Gets display name.
- * @return the display name
- * -- SETTER --
- * Sets display name.
- * @param displayName the display name
- */
- private String displayName;
-
- /**
- * The port type
- * --GETTER --
- * Gets port type.
- * @return the port type
- * -- SETTER --
- * Sets port type.
- * @param portType the port type
- */
- @JsonProperty("type")
- private PortType portType;
-
- /**
- * The update semantic
- * -- SETTER --
- * Sets update semantic.
- * @param updateSemantic the update semantic
- */
- private UpdateSemantic updateSemantic;
-
- /**
- * Gets update semantic.
- * @return the update semantic
- */
- public UpdateSemantic getUpdateSemantic() {
- if (updateSemantic == null) {
- return UpdateSemantic.REPLACE;
- }
-
- return updateSemantic;
- }
-
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/PortImplementation.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/PortImplementation.java
deleted file mode 100644
index bb9b9fa0a86..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/PortImplementation.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.AccessLevel;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * PortImplementation is a java bean used to create PortImplementations associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class PortImplementation extends Port {
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The schema type
- * -- GETTER --
- * Gets schema type.
- * @return the schema type
- * -- SETTER --
- * Sets schema type.
- * @param schemaType the schema type
- */
- @JsonProperty("schema")
- @Getter
- @Setter
- private SchemaType schemaType;
-
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/PortType.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/PortType.java
deleted file mode 100644
index e10fb6161a7..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/PortType.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.AccessLevel;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * PortType defines the different port types used for open metadata. It is used in a port implementation
- * definition.
- *
- * - INPUT_PORT - Input Port.
- * - OUTPUT_PORT - Output Port.
- * - INOUT_PORT - Input Output Port.
- * - OUTIN_PORT - Output Input Port.
- * - OTHER - None of the above.
- *
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@ToString
-@Getter
-public enum PortType implements Serializable {
- /**
- * Input Port
- */
- INPUT_PORT(0, "INPUT_PORT", "Input Port."),
- /**
- * Output Port
- */
- OUTPUT_PORT(1, "OUTPUT_PORT", "Output Port."),
- /**
- * IInput Output Port
- */
- INOUT_PORT(2, "INOUT_PORT", "Input Output Port."),
- /**
- * Output Input Port
- */
- OUTIN_PORT(3, "OUTIN_PORT", "Output Input Port."),
- /**
- * None of the above
- */
- OTHER(99, "OTHER", "None of the above.");
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The numeric representation of the instance provenance type
- * -- GETTER --
- * Return the numeric representation of the instance provenance type.
- * @return int ordinal
- */
- private final int ordinal;
-
- /**
- * The default name of the instance provenance type
- * -- GETTER --
- * Return the default name of the instance provenance type.
- * @return String name
- */
- private final String name;
-
- /**
- * The default description of the instance provenance type
- * -- GETTER --
- * Return the default description of the instance provenance type.
- * @return String description
- */
- private final String description;
-
- /**
- * Default constructor for the enumeration.
- *
- * @param ordinal numerical representation of the enumeration
- * @param name default string name of the instance provenance type
- * @param description default string description of the instance provenance type
- */
- PortType(int ordinal, String name, String description) {
- this.ordinal = ordinal;
- this.name = name;
- this.description = description;
- }
-
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Process.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Process.java
deleted file mode 100644
index 341b9bf89d5..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Process.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * Process is a java bean used to create Processes associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-@NoArgsConstructor
-public class Process extends Asset {
-
- /**
- * The process name
- * -- GETTER --
- * Gets the process name.
- * @return the name
- * -- SETTER --
- * Sets up the process name.
- * @param name string name
- */
- private String name;
-
- /**
- * The description of the processing performed by this process
- * -- GETTER --
- * Return the description of the processing performed by this process.
- * @return string description
- * -- SETTER --
- * Set up the description of the processing performed by this process.
- * @param formula string description
- */
- private String formula;
-
- /**
- * The name of the programming language that this process is implemented in
- * -- GETTER --
- * Return the name of the programming language that this process is implemented in.
- * @return string name
- * -- SETTER --
- * Set up the name of the programming language that this process is implemented in.
- * @param implementationLanguage string name
- */
- private String implementationLanguage;
-
- /**
- * The port implementations
- * -- GETTER --
- * Gets port implementations.
- * @return the port implementations
- * -- SETTER --
- * Sets port implementations.
- * @param portImplementations the port implementations
- */
- private List portImplementations;
-
- /**
- * The data flows
- * -- GETTER --
- * Gets data flows
- * @return the data flows
- * -- SETTER --
- * Sets data flows.
- * @param dataFlows the data flows
- */
- private List dataFlows;
-
- /**
- * The collection to which the process belongs
- * -- GETTER --
- * Retrieves the collection to which the process belongs
- * @return collection the collection to which it belongs
- * -- SETTER --
- * Sets the collection.
- * @param collection the collection to which the process belongs
- */
- private Collection collection;
-
- /**
- * The update semantic
- * -- SETTER --
- * Sets update semantic.
- * @param updateSemantic the update semantic
- */
- private UpdateSemantic updateSemantic;
-
- /**
- * The parent processes
- * -- GETTER --
- * Gets parent processes.
- * @return the parent processes
- * -- SETTER --
- * Sets parent processes.
- * @param parentProcesses the parent processes
- */
- private List parentProcesses;
-
- /**
- * Gets update semantic.
- * @return the update semantic
- */
- public UpdateSemantic getUpdateSemantic() {
- if (updateSemantic == null) {
- return UpdateSemantic.REPLACE;
- }
- return updateSemantic;
- }
-
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ProcessContainmentType.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ProcessContainmentType.java
deleted file mode 100644
index 9083d3d6def..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ProcessContainmentType.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.AccessLevel;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * ProcessContainmentType describes the type of containment that exists between two processes.
- *
- * - OWNED - The parent process owns the child process in the relationship
- * - APPEND - The child process is simply used by the parent
- * - OTHER - None of the above.
- *
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@ToString
-@Getter
-public enum ProcessContainmentType {
- /**
- * The parent process owns the child process in the relationship, such that if the parent is removed the child should also be removed.
- * A child can have at most one such parent
- */
- OWNED(0, "OWNED", "The parent process owns the child process in the relationship, such that if the parent is removed the child should also be " +
- "removed. A child can have at most one such parent."),
- /**
- * The child process is simply used by the parent. A child process can have many such relationships to parents
- */
- APPEND(1, "APPEND", "The child process is simply used by the parent. A child process can have many such relationships to parents."),
- /**
- * None of the above
- */
- OTHER(99, "OTHER", "None of the above.");
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The numeric representation of the instance provenance type
- * -- GETTER --
- * Return the numeric representation of the instance provenance type.
- *
- * @return int ordinal
- */
- private final int ordinal;
-
- /**
- * The default name of the instance provenance type
- * -- GETTER --
- * Return the default name of the instance provenance type.
- *
- * @return String name
- */
- private final String name;
-
- /**
- * The default description of the instance provenance type
- * -- GETTER --
- * Return the default description of the instance provenance type.
- *
- * @return String description
- */
- private final String description;
-
- /**
- * Default constructor for the enumeration.
- *
- * @param ordinal numerical representation of the enumeration
- * @param name default string name of the instance provenance type
- * @param description default string description of the instance provenance type
- */
- ProcessContainmentType(int ordinal, String name, String description) {
- this.ordinal = ordinal;
- this.name = name;
- this.description = description;
- }
-
-}
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ProcessHierarchy.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ProcessHierarchy.java
deleted file mode 100644
index 32fbb1ddbd7..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ProcessHierarchy.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-/**
- * ProcessHierarchy is a java bean used to create ProcessHierarchy relationships.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode
-@ToString
-public class ProcessHierarchy implements Serializable {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * The parent process
- * -- GETTER --
- * Gets parent process.
- * @return the parent process
- * -- SETTER --
- * Sets parent process.
- * @param parentProcess the parent process
- */
- private String parentProcess;
-
- /**
- * The child process
- * -- GETTER --
- * Gets child process.
- * @return the child process
- * -- SETTER --
- * Sets child process.
- * @param childProcess the child process
- */
- private String childProcess;
-
- /**
- * The process containment type
- * -- GETTER --
- * Gets process containment type.
- * @return the process containment type
- * -- SETTER --
- * Sets process containment type.
- * @param processContainmentType the process containment type
- */
- @JsonProperty("containmentType")
- private ProcessContainmentType processContainmentType;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ProcessingState.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ProcessingState.java
deleted file mode 100644
index ce5511a0c6f..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ProcessingState.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.AccessLevel;
-import lombok.AllArgsConstructor;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.Map;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * The ProcessingState classification
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-@Getter
-@Setter
-@AllArgsConstructor
-@NoArgsConstructor
-public class ProcessingState extends Referenceable {
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The Sync Dates map of critical elements and sync status
- * -- GETTER --
- * Gets sync states map.
- *
- * @return sync states map
- * -- SETTER --
- * Sets sync states map.
- * @param syncDatesByKey the sync states map
- */
- @JsonProperty("syncDatesByKey")
- private Map syncDatesByKey;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Referenceable.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Referenceable.java
deleted file mode 100644
index de94ab9d008..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Referenceable.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import lombok.AccessLevel;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-import java.util.Map;
-
-/**
- * Process is a base java bean used to create Referenceables associated with the external data engine.
- */
-@EqualsAndHashCode
-@ToString
-@Getter
-@Setter
-public class Referenceable implements Serializable {
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The stored qualified name property for the metadata entity
- * -- GETTER --
- * Returns the stored qualified name property for the metadata entity.
- * If no qualified name is available then the empty string is returned.
- * @return qualified name
- * -- SETTER --
- * Set up the fully qualified name.
- * @param qualifiedName String name
- */
- private String qualifiedName;
-
- /**
- * A copy of the additional properties
- * -- GETTER --
- * Return a copy of the additional properties. Null means no additional properties are available.
- *
- * @return AdditionalProperties
- * -- SETTER --
- * Set up additional properties.
- * @param additionalProperties Additional properties object
- */
- private Map additionalProperties;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/RelationalColumn.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/RelationalColumn.java
deleted file mode 100644
index 8b24eccca25..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/RelationalColumn.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * RelationalColumn is a java bean used to create RelationalColumn associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@EqualsAndHashCode(callSuper = true)
-@ToString
-@Getter
-@Setter
-public class RelationalColumn extends Attribute {
-
- /**
- * The name of the formula
- * -- GETTER --
- * Returns the formula.
- * @return name
- * -- SETTER --
- * Sets up the formula.
- * @param formula formula
- */
- private String formula;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/RelationalTable.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/RelationalTable.java
deleted file mode 100644
index 835939caf1c..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/RelationalTable.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.AccessLevel;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * RelationalTable is a java bean used to create RelationalTable associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@EqualsAndHashCode(callSuper = true)
-@ToString
-@Getter
-@Setter
-public class RelationalTable extends Referenceable {
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The display name of the relational table
- * -- GETTER --
- * Returns the display name of the relational table.
- * @return display name
- * -- SETTER --
- * Sets up the display name of the relational table.
- * @param displayName display name
- */
- private String displayName;
-
- /**
- * The type of the relational table
- * -- GETTER --
- * Returns the type of the relational table.
- * @return type
- * -- SETTER --
- * Sets up the type of the relational table.
- * @param type type
- */
- private String type;
-
- /**
- * The list of aliases of the relational table
- * -- GETTER --
- * Returns list of aliases of the relational table.
- * @return aliases
- * -- SETTER --
- * Sets up the list of aliases of the relational table.
- * @param aliases aliases
- */
- private List aliases;
-
- /**
- * Determines if the relational table if deprecated
- * -- GETTER --
- * Returns if the relational table if deprecated.
- * @return if the relational table if deprecated
- * -- SETTER --
- * Sets up the value that determines if the relational table if deprecated.
- * @param isDeprecated value saying if the relational table if deprecated
- */
- private boolean isDeprecated;
-
- /**
- * The description of the relational table
- * -- GETTER --
- * Returns the description of the relational table.
- * @return description
- * -- SETTER --
- * Sets up the description of the relational table.
- * @param description description
- */
- private String description;
-
- /**
- * The list of columns of the relational table
- * -- GETTER --
- * Returns list of columns of the relational table.
- * @return columns
- * -- SETTER --
- * Sets up the list of columns of the relational table.
- * @param columns columns
- */
- private List columns;
-
- /**
- * Determines if the table is incomplete
- * -- GETTER --
- * Return if the table is incomplete
- *
- * @return if the table is incomplete
- * -- SETTER --
- * Sets up if the table is incomplete
- * @param incomplete if the table is incomplete
- */
- @JsonProperty("incomplete")
- private boolean incomplete;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/SchemaType.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/SchemaType.java
deleted file mode 100644
index 0fd05aba169..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/SchemaType.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.AccessLevel;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * SchemaType is a java bean used to create SchemaTypes associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@EqualsAndHashCode(callSuper = true)
-@ToString
-@Getter
-@Setter
-public class SchemaType extends Referenceable {
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The display name
- * -- GETTER --
- * Gets display name.
- * @return the display name
- * -- SETTER --
- * Sets display name.
- * @param displayName the display name
- */
- private String displayName;
-
- /**
- * The author
- * -- GETTER --
- * Gets author.
- * @return the author
- * -- SETTER --
- * Sets author.
- * @param author the author
- */
- private String author;
-
- /**
- * The usage
- * -- GETTER --
- * Gets usage.
- * @return the usage
- * -- SETTER --
- * Sets usage.
- * @param usage the usage
- */
- private String usage;
-
- /**
- * The encoding standard
- * -- GETTER --
- * Gets encoding standard.
- * @return the encoding standard
- * -- SETTER --
- * Sets encoding standard.
- * @param encodingStandard the encoding standard
- */
- private String encodingStandard;
-
- /**
- * The version number
- * -- GETTER --
- * Gets version number.
- * @return the version number
- * -- SETTER --
- * Sets version number.
- * @param versionNumber the version number
- */
- private String versionNumber;
-
- /**
- * The type
- * -- GETTER --
- * Gets type.
- * @return the type
- * -- SETTER --
- * Sets type.
- * @param type the type
- */
- private String type;
-
- /**
- * Determines if the schema type is deprecated
- * -- GETTER --
- * Returns if the schema type is deprecated.
- * @return if the schema type is deprecated
- * -- SETTER --
- * Sets up the value that determines if the schema type is deprecated.
- * @param isDeprecated value saying if the schema type is deprecated
- */
- private boolean isDeprecated;
-
- /**
- * The stored description property associated with the schema type
- * -- SETTER --
- * Set up the stored description property associated with the schema type.
- * @param description String text
- * -- GETTER --
- * Returns the stored description property for the schema type.
- * If no description is provided then null is returned.
- * @return description
- */
- private String description;
-
- /**
- * The he name of the namespace that this schema type belongs to
- * -- SETTER --
- * Set up the namespace that this schema type belongs to.
- * @param namespace String text
- * -- GETTER --
- * Returns the namespace that this schema type belongs to
- * If no namespace is provided then null is returned.
- * @return namespace
- */
- private String namespace;
-
- /**
- * The attribute list
- * -- GETTER --
- * Gets attribute list.
- * @return the attribute list
- * -- SETTER --
- * Sets attribute list.
- * @param attributeList the attribute list
- */
- @JsonProperty("columns")
- private List attributeList;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Topic.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Topic.java
deleted file mode 100644
index 64c6c4329c6..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/Topic.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-/**
- * Topic is a java bean used to create Topics associated with the external data engine.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class Topic extends Asset {
-
- /**
- * The description of the topic type
- * -- GETTER --
- * Return a description of the topic type.
- * @return string type name
- * -- SETTER --
- * Set up a description of the topic type.
- * @param topicType string type name
- */
- private String topicType;
-
- /**
- * The list of event types
- * -- GETTER --
- * Gets event type list.
- * @return the event type list
- * -- SETTER --
- * Sets event type list.
- * @param eventTypes the event type list
- */
- @JsonProperty("eventTypes")
- private List eventTypes;
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/UpdateSemantic.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/UpdateSemantic.java
deleted file mode 100644
index 7092a7ee81e..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/UpdateSemantic.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.model;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.AccessLevel;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * UpdateSemantic defines the different types of update for a process
- *
- * - REPLACE - entities found is in the process payload will be updated or added, existing entities not included will
- * be removed
- * - APPEND - entities found is in the process payload will be updated or added, existing entities not included will
- * be ignored
- *
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@ToString
-@Getter
-public enum UpdateSemantic implements Serializable {
- /**
- * Replace with new entities
- */
- REPLACE(0, "REPLACE", "Replace with new entities"),
- /**
- * Append new entities
- */
- APPEND(1, "APPEND", "Append new entities");
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The numeric representation of the instance provenance type
- * -- GETTER --
- * Return the numeric representation of the instance provenance type.
- *
- * @return int ordinal
- */
- private final int ordinal;
-
- /**
- * The default name of the instance provenance type
- * -- GETTER --
- * Return the default name of the instance provenance type.
- *
- * @return String name
- */
- private final String name;
-
- /**
- * The default description of the instance provenance type
- * -- GETTER --
- * Return the default description of the instance provenance type.
- *
- * @return String description
- */
- private final String description;
-
-
- /**
- * Default constructor for the enumeration.
- *
- * @param ordinal numerical representation of the enumeration
- * @param name default string name of the instance provenance type
- * @param description default string description of the instance provenance type
- */
- UpdateSemantic(int ordinal, String name, String description) {
- this.ordinal = ordinal;
- this.name = name;
- this.description = description;
- }
-
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/package-info.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/package-info.java
deleted file mode 100644
index ea314a450cc..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * These beans describe the core properties that are passed to the server to up metadata.
- */
-package org.odpi.openmetadata.accessservices.dataengine.model;
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataEngineOMASAPIRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataEngineOMASAPIRequestBody.java
deleted file mode 100644
index bd1ec0333f2..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataEngineOMASAPIRequestBody.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import lombok.AccessLevel;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DataEngineOMASAPIRequestBody provides a common header for Data Engine OMAS request bodies for its REST API.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@JsonSubTypes(
- {
- @JsonSubTypes.Type(value = DataEngineRegistrationRequestBody.class, name = "dataEngine"),
- @JsonSubTypes.Type(value = PortImplementationRequestBody.class, name = "port"),
- @JsonSubTypes.Type(value = ProcessRequestBody.class, name = "process"),
- @JsonSubTypes.Type(value = SchemaTypeRequestBody.class, name = "schema"),
- @JsonSubTypes.Type(value = DatabaseRequestBody.class, name = "database"),
- @JsonSubTypes.Type(value = DatabaseRequestBody.class, name = "table"),
- @JsonSubTypes.Type(value = DataFileRequestBody.class, name = "dataFile")
- })
-@EqualsAndHashCode
-@ToString(callSuper = true)
-@NoArgsConstructor
-@Getter
-@Setter
-public abstract class DataEngineOMASAPIRequestBody implements Serializable {
-
- @Getter(AccessLevel.NONE)
- @Setter(AccessLevel.NONE)
- private static final long serialVersionUID = 1L;
-
- /**
- * The unique name of the external source
- * -- GETTER --
- * Gets the external source name
- * @return the external source name
- * -- SETTER --
- * Sets the external source name
- * @param externalSourceName the external source name
- */
- private String externalSourceName;
-
-}
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataEngineRegistrationRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataEngineRegistrationRequestBody.java
deleted file mode 100644
index f9ce57f223a..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataEngineRegistrationRequestBody.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.Engine;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DataEngineRegistrationRequestBody describes the request body used to create/update engines.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DataEngineRegistrationRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * Engine
- * -- GETTER --
- * Gets the engine
- * @return the engine
- * -- SETTER --
- * Sets the engine
- * @param engine the engine
- */
- @JsonProperty("dataEngine")
- private Engine engine;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataFileRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataFileRequestBody.java
deleted file mode 100644
index 9a216d4d1fa..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataFileRequestBody.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFile;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-/**
- * DataFileRequestBody describes the request body used to create/update data files.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DataFileRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The data file to be created
- * -- GETTER --
- * Return the data file bean
- *
- * @return the data file
- * -- SETTER --
- * Set up the data file bean
- * @param dataFile the data file
- */
- @JsonProperty("file")
- private DataFile dataFile;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataFlowsRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataFlowsRequestBody.java
deleted file mode 100644
index 72946ff5c6f..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DataFlowsRequestBody.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFlow;
-
-import java.util.List;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DataFlowsRequestBody describes the request body used to create data flow relationships
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DataFlowsRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The data flows
- * -- GETTER --
- * Return the data flows
- * @return the data flows
- * -- SETTER --
- * Set up the data flows
- * @param dataFlows the data flows
- */
- private List dataFlows;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DatabaseRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DatabaseRequestBody.java
deleted file mode 100644
index e490be0c9fe..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DatabaseRequestBody.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.Database;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DatabaseRequestBody describes the request body used to create/update databases.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DatabaseRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The database to be created
- * -- GETTER --
- * Return the database bean
- *
- * @return the database
- * -- SETTER --
- * Set up the database bean
- * @param database the database
- */
- @JsonProperty("database")
- private Database database;
-}
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DatabaseSchemaRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DatabaseSchemaRequestBody.java
deleted file mode 100644
index e3c9bfdc1b3..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DatabaseSchemaRequestBody.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.DatabaseSchema;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * DatabaseSchemaRequestBody describes the request body used to create/update database schemas.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DatabaseSchemaRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The database schema to be created
- * -- GETTER --
- * Return the database schema bean
- *
- * @return the database schema
- * -- SETTER --
- * Set up the database schema bean
- * @param databaseSchema the database schema
- */
- @JsonProperty("databaseSchema")
- private DatabaseSchema databaseSchema;
-
- /**
- * The database qualified name to which the database schema will be linked, if it exists
- * -- GETTER --
- * Return the database qualified name to which the database schema will be linked, if it exists
- *
- * @return the database qualified name
- * -- SETTER --
- * Set up the database qualified name to which the database schema will be linked, if it exists
- * @param databaseQualifiedName the database qualified name
- */
- @JsonProperty("databaseQualifiedName")
- private String databaseQualifiedName;
-
-}
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DeleteRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DeleteRequestBody.java
deleted file mode 100644
index 57e9ce7437c..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/DeleteRequestBody.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-/**
- * DeleteRequestBody describes the request body used to delete an entity.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class DeleteRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The unique identifier of the entity
- * -- GETTER --
- * Return the entity unique identifier
- *
- * @return String - unique identifier of the entity
- * -- SETTER --
- * Set up the unique identifier of the entity
- * @param guid of the entity
- */
- private String guid;
-
- /**
- * The qualified name of the entity
- * -- GETTER --
- * Return the entity qualified name
- *
- * @return String - qualified name of the entity
- * -- SETTER --
- * Set up the qualified name of the entity
- * @param qualifiedName of the entity
- */
- private String qualifiedName;
-
- /**
- * The delete semantic
- * -- GETTER --
- * Return the delete semantic
- *
- * @return String - unique identifier of the entity
- * -- SETTER --
- * Set up the delete semantic
- * @param deleteSemantic of the entity
- */
- private DeleteSemantic deleteSemantic = DeleteSemantic.SOFT;
-}
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/EventTypeRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/EventTypeRequestBody.java
deleted file mode 100644
index 7afd5eb7a13..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/EventTypeRequestBody.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.EventType;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * EventTypeRequestBody describes the request body used to create/update event types.
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class EventTypeRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The event type to be created
- * -- GETTER --
- * Return the event type bean
- *
- * @return the event type
- * -- SETTER --
- * Set up the event type bean
- * @param eventType the event type
- */
- @JsonProperty("eventType")
- private EventType eventType;
-
- /**
- * The qualified name of the topic
- * -- GETTER --
- * Return the topic qualified name
- *
- * @return String - qualified name of the topic
- * -- SETTER --
- * Set up the qualified name of the topic
- * @param topicQualifiedName of the topic
- */
- private String topicQualifiedName;
-}
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/FindRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/FindRequestBody.java
deleted file mode 100644
index 04dbb90a3fc..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/FindRequestBody.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.Identifiers;
-
-import java.io.Serializable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * FindRequestBody describes the request body used to search for an entity
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode
-@NoArgsConstructor
-@ToString
-public class FindRequestBody implements Serializable {
-
- /**
- * The identifiers name of the entity
- * -- GETTER --
- * Return the entity identifiers
- *
- * @return String - identifiers of the entity
- * -- SETTER --
- * Set up the identifiers of the entity
- * @param identifiers of the entity
- */
- private Identifiers identifiers;
-
- /**
- * The externalSourceName of the entity
- * -- GETTER --
- * Return the entity externalSourceName
- *
- * @return String - externalSourceName of the entity
- * -- SETTER --
- * Set up the externalSourceName of the entity
- * @param externalSourceName of the entity
- */
- private String externalSourceName;
-
- /**
- * The type of the entity
- * -- GETTER --
- * Return the entity type
- *
- * @return String - type of the entity
- * -- SETTER --
- * Set up the type of the entity
- * @param type of the entity
- */
- private String type;
-
-}
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/PortImplementationRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/PortImplementationRequestBody.java
deleted file mode 100644
index 0121171b6dc..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/PortImplementationRequestBody.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.PortImplementation;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * PortImplementationRequestBody describes the request body used to create/update port implementations
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class PortImplementationRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The process qualified name
- * -- GETTER --
- * Returns the process qualified name
- * @return the process qualified name
- * -- SETTER --
- * Sets up the process qualified name
- * @param processQualifiedName the process qualified name
- */
- private String processQualifiedName;
-
- /**
- * The port implementation
- * -- GETTER --
- * Returns the port implementation
- * @return the port implementation
- * -- SETTER --
- * Sets up the port implementation
- * @param portImplementation the port implementation
- */
- private PortImplementation portImplementation;
-
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/ProcessHierarchyRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/ProcessHierarchyRequestBody.java
deleted file mode 100644
index 1b1cd2cb583..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/ProcessHierarchyRequestBody.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.ProcessHierarchy;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * ProcessHierarchyRequestBody describes the request body used to create process hierarchy relationships
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class ProcessHierarchyRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The process hierarchy
- * -- GETTER --
- * Returns the process hierarchy
- * @return the process hierarchy
- * -- SETTER --
- * Sets up the process hierarchy
- * @param processHierarchy the process hierarchy
- */
- private ProcessHierarchy processHierarchy;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/ProcessRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/ProcessRequestBody.java
deleted file mode 100644
index ca8dab9ca4a..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/ProcessRequestBody.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.Process;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * ProcessRequestBody describes the request body used to create/update processes
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class ProcessRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The process
- * -- GETTER --
- * Returns the process
- *
- * @return the process
- * -- SETTER --
- * Sets up the process
- * @param process the process
- */
- private Process process;
-}
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/ProcessingStateRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/ProcessingStateRequestBody.java
deleted file mode 100644
index 1c4005ad5c7..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/ProcessingStateRequestBody.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.AllArgsConstructor;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.ProcessingState;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * ProcessingStateRequestBody describes the request body used to create processing state classifications
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-@NoArgsConstructor
-@AllArgsConstructor
-public class ProcessingStateRequestBody extends DataEngineOMASAPIRequestBody
-{
- private static final long serialVersionUID = 1L;
-
- /**
- * The sync state to be created
- * -- GETTER --
- * Return the sync state bean
- *
- * @return the sync state
- * -- SETTER --
- * Set up the sync state bean
- * @param processingState the sync state
- */
- @JsonProperty("processingState")
- private ProcessingState processingState;
-}
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/RelationalTableRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/RelationalTableRequestBody.java
deleted file mode 100644
index 96b44be36fa..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/RelationalTableRequestBody.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.RelationalTable;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * RelationalTableRequestBody describes the request body used to create/update relational tables
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class RelationalTableRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The relational table to be created
- * -- GETTER --
- * Return the relational table bean
- *
- * @return the relational table
- * -- SETTER --
- * Set up the relational table bean
- * @param relationalTable the relational table
- */
- @JsonProperty("table")
- private RelationalTable relationalTable;
-
- /**
- * The qualified name of the database schema
- * -- GETTER --
- * Return the database schema qualified name
- *
- * @return String - qualified name of the database schema
- * -- SETTER --
- * Set up the qualified name of the database schema
- * @param databaseSchemaQualifiedName of the database schema
- */
- private String databaseSchemaQualifiedName;
-}
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/SchemaTypeRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/SchemaTypeRequestBody.java
deleted file mode 100644
index 3380c7f52a3..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/SchemaTypeRequestBody.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.SchemaType;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-
-/**
- * SchemaTypeRequestBody describes the request body used to create/update schema types
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class SchemaTypeRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The schema type
- * -- GETTER --
- * Returns the schema type
- * @return the schema type
- * -- SETTER --
- * Sets up the schema type
- * @param schemaType the schema type
- */
- @JsonProperty("schema")
- private SchemaType schemaType;
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/TopicRequestBody.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/TopicRequestBody.java
deleted file mode 100644
index 742a305e91c..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/TopicRequestBody.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.odpi.openmetadata.accessservices.dataengine.model.Topic;
-
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
-/**
- * TopicRequestBody describes the request body used to create/update topics
- */
-@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE)
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonIgnoreProperties(ignoreUnknown = true)
-@Getter
-@Setter
-@EqualsAndHashCode(callSuper = true)
-@ToString
-public class TopicRequestBody extends DataEngineOMASAPIRequestBody {
-
- /**
- * The topic to be created
- * -- GETTER --
- * Return the topic bean
- *
- * @return the topic
- * -- SETTER --
- * Set up the topic bean
- * @param topic the topic
- */
- @JsonProperty("topic")
- private Topic topic;
-
-}
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/package-info.java b/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/package-info.java
deleted file mode 100644
index 05a291c8dbd..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-api/src/main/java/org/odpi/openmetadata/accessservices/dataengine/rest/package-info.java
+++ /dev/null
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * This package defines the beans used to build the REST request and response payloads.
- *
- * REST APIs can pass parameters in their URLs (called path variables) as well has having a RequestBody bean
- * for additional, more complex, or optional parameters. Responses are returned in response beans.
- *
- * The response beans encode the return type of the method as well as any exceptions and associated messages.
- */
-package org.odpi.openmetadata.accessservices.dataengine.rest;
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/README.md b/open-metadata-implementation/access-services/data-engine/data-engine-client/README.md
deleted file mode 100644
index 8bec332adef..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-# Data Engine Open Metadata Access Service (OMAS) Client
-
-The Data Engine OMAS client
-package provides language-specific client packages to make it easier
-for data tools and applications to call the Data Engine interfaces.
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/build.gradle b/open-metadata-implementation/access-services/data-engine/data-engine-client/build.gradle
deleted file mode 100644
index 789e44e17c2..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/build.gradle
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * SPDX-License-Identifier: Apache-2.0
- * Copyright Contributors to the ODPi Egeria project.
- */
-
-plugins {
-}
-
-dependencies {
- implementation project(':open-metadata-implementation:framework-services:ocf-metadata-management:ocf-metadata-api')
- implementation project(':open-metadata-implementation:framework-services:ocf-metadata-management:ocf-metadata-client')
- implementation project(':open-metadata-implementation:framework-services:gaf-metadata-management:gaf-metadata-api')
- implementation project(':open-metadata-implementation:framework-services:gaf-metadata-management:gaf-metadata-client')
- implementation project(':open-metadata-implementation:framework-services:oif-metadata-management:oif-metadata-api')
- implementation project(':open-metadata-implementation:framework-services:oif-metadata-management:oif-metadata-client')
- implementation project(':open-metadata-implementation:repository-services:repository-services-apis')
- implementation project(':open-metadata-implementation:frameworks:audit-log-framework')
- implementation project(':open-metadata-implementation:frameworks:governance-action-framework')
- implementation project(':open-metadata-implementation:frameworks:open-connector-framework')
- implementation project(':open-metadata-implementation:frameworks:open-integration-framework')
- implementation project(':open-metadata-implementation:common-services:ffdc-services')
- implementation project(':open-metadata-implementation:access-services:data-engine:data-engine-api')
- implementation project(':open-metadata-implementation:access-services:data-engine:data-engine-topic-connectors')
-
- implementation project(':open-metadata-implementation:adapters:open-connectors:rest-client-connectors:rest-client-connectors-api')
- implementation project(':open-metadata-implementation:repository-services:repository-services-apis')
-
- implementation 'org.springframework:spring-core'
- implementation 'org.apache.commons:commons-collections4'
- compileOnly 'com.fasterxml.jackson.core:jackson-annotations'
- implementation 'org.springframework:spring-core'
- testImplementation 'org.mockito:mockito-core'
- testImplementation 'junit:junit'
- testCompileOnly 'com.fasterxml.jackson.core:jackson-annotations'
-
-}
-
-description = 'Data Engine OMAS Client'
-
-java {
- withJavadocJar()
-}
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/docs/user/java-client/README.md b/open-metadata-implementation/access-services/data-engine/data-engine-client/docs/user/java-client/README.md
deleted file mode 100644
index 8791dec87bd..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/docs/user/java-client/README.md
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-# Data Engine Open Metadata Access Service (OMAS) Client
-
-
-The Data Engine OMAS client interface supports the creation of process, ports, schema types and corresponding relationships.
-
-Different implementations available:
-
-* `DataEngineRESTClient` - Default client implementation interacting via HTTP transport mechanism and default OCF REST client.
-* `DataEngineRESTConfigurationClient` - An extension to the REST interface that can be used as helper to automate configuration of the event based client by retrieving connection details used to build the client topic connector.
-* `DataEngineEventClient` - Client implementation interacting via Events transport mechanism. It is using `DataEngineInTopicClientConnector` that produces events to the input topic of Data Engine access service.
-
-
-HTTP based REST clients can be constructed in following way:
-
-* No authentication embedded in the HTTP request - for test systems.
-* Basic authentication using a userId and password embedded in the HTTP request.
-
-Both constructors take the [URL root for the server platform](https://egeria-project.org/concepts/platform-url-root/)
-where the Data Engine OMAS is running and its [server name](https://egeria-project.org/concepts/server-name/).
-
-Here is a code example with the user id and password specified:
-
-```java
-DataEngineClient client = new DataEngineRESTClient ("cocoMDS1",
- "https://localhost:9444",
- "cocoUI",
- "cocoUIPassword");
-
-```
-This client is set up to call the `cocoMDS1` server running on the `https://localhost:9444`
-OMAG Server Platform. The userId and password is for the application
-where the client is running. The userId of the real end user is passed
-on each request.
-
-Similarly, extended REST configuration client can help retrieving additional configuration details from the remote server can be constructed in following way:
-
-```java
-DataEngineRESTConfigurationClient client = new DataEngineRESTConfigurationClient("remoteServerName",
- "https://localhost:9444",
- "remoteUserName",
- "remoteUserPassword");
-ConnectionResponse connectionResponse = client.getInTopicConnection("remoteServerName","remoteUserName");
-```
-
-Event based client can be constructed by injecting instance of the DataEngineInTopicClientConnector.
-In the example below we can create the connector with remote configuration retrieved previously and pass it to the event based client:
-
-```java
-
-DataEngineInTopicClientConnector topicConnector = (DataEngineInTopicClientConnector) connectorBroker.getConnector(connectionResponse.getConnection());
-
-DataEngineClient client = new DataEngineEventClient(dataEngineInTopicClientConnector);
-```
-
-## Client operations
-
-Once you have an instance of the client, you can use it to create, update or delete the open metadata entities for the ETL jobs.
-
-* Create/Update/Delete a schema type
-* Create/Update/Delete a port implementation, with a schema type and the corresponding PortSchema relationship
-* Create/Update/Delete a process, with a corresponding port implementations involved in a transformation
-* Create/Update/Delete a database, with a connection, endpoint, connector type and corresponding schema type attached
-* Create/Update/Delete a database schema
-* Create/Update/Delete a relational table with columns
-* Create/Update/Delete a data file with columns, endpoint, connection, connector type and corresponding schema type attached
-* Create/Update/Delete a topic with event types and event schema attributes
-
-> Note: The equivalent REST interfaces are documented in the
-[data-engine-server](../../../../data-engine-server/README.md)
-module.
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/ConnectedAssetClient.java b/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/ConnectedAssetClient.java
deleted file mode 100644
index 7bda46a5ea8..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/ConnectedAssetClient.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.client;
-
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.ConnectedAssetClientBase;
-
-/**
- * ConnectedAssetClient manages the retrieval of connections, and the creation of resource connectors used to access the
- * content of data sources and services.
- */
-public class ConnectedAssetClient extends ConnectedAssetClientBase
-{
- private final static String serviceURLMarker = "community-profile";
-
- /**
- * Create a new client with no authentication embedded in the HTTP request.
- *
- * @param serverName name of the server to connect to
- * @param serverPlatformURLRoot the network address of the server running the OMAS REST services
- *
- * @throws InvalidParameterException there is a problem creating the client-side components to issue any
- * REST API calls.
- */
- public ConnectedAssetClient(String serverName,
- String serverPlatformURLRoot) throws InvalidParameterException
- {
- super(serverName, serverPlatformURLRoot, serviceURLMarker);
- }
-
-
- /**
- * Create a new client that passes userId and password in each HTTP request. This is the
- * userId/password of the calling server. The end user's userId is sent on each request.
- *
- * @param serverName name of the server to connect to
- * @param serverPlatformURLRoot the network address of the server running the OMAS REST services
- * @param serverUserId caller's userId embedded in all HTTP requests
- * @param serverPassword caller's userId embedded in all HTTP requests
- *
- * @throws InvalidParameterException there is a problem creating the client-side components to issue any
- * REST API calls.
- */
- public ConnectedAssetClient(String serverName,
- String serverPlatformURLRoot,
- String serverUserId,
- String serverPassword) throws InvalidParameterException
- {
- super(serverName, serverPlatformURLRoot, serviceURLMarker, serverUserId, serverPassword);
- }
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineClient.java b/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineClient.java
deleted file mode 100644
index 61fd1469829..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineClient.java
+++ /dev/null
@@ -1,521 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.client;
-
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFile;
-import org.odpi.openmetadata.accessservices.dataengine.model.Database;
-import org.odpi.openmetadata.accessservices.dataengine.model.DatabaseSchema;
-import org.odpi.openmetadata.accessservices.dataengine.model.EventType;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFlow;
-import org.odpi.openmetadata.accessservices.dataengine.model.PortImplementation;
-import org.odpi.openmetadata.accessservices.dataengine.model.Process;
-import org.odpi.openmetadata.accessservices.dataengine.model.ProcessHierarchy;
-import org.odpi.openmetadata.accessservices.dataengine.model.RelationalTable;
-import org.odpi.openmetadata.accessservices.dataengine.model.SchemaType;
-import org.odpi.openmetadata.accessservices.dataengine.model.Engine;
-import org.odpi.openmetadata.accessservices.dataengine.model.Topic;
-import org.odpi.openmetadata.accessservices.dataengine.rest.FindRequestBody;
-import org.odpi.openmetadata.commonservices.ffdc.rest.GUIDListResponse;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException;
-
-import java.util.List;
-import java.util.Map;
-
-/**
- * DataEngineClient provides the client-side interface for a data engine tool to create processes with ports,
- * schemas and relationships.
- */
-public interface DataEngineClient {
- /**
- * Create or update the process, with all the ports, schema types and corresponding relationships including
- * the process hierarchy relationship.
- *
- * @param userId the name of the calling user
- * @param process the process
- *
- * @return unique identifier of the process in the repository
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- String createOrUpdateProcess(String userId, Process process) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Delete a process
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the process to be deleted
- * @param guid the unique identifier of the process to be deleted
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteProcess(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
-
- /**
- * Create or update the engine entity
- *
- * @param userId the name of the calling user
- * @param engine the engine bean
- *
- * @return unique identifier of the server in the repository
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- String createExternalDataEngine(String userId, Engine engine) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- ConnectorCheckedException;
-
- /**
- * Delete the external data engine
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the external data engine
- * @param guid the unique identifier of the external data engine
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteExternalDataEngine(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- ConnectorCheckedException;
-
- /**
- * Create or update the schema type entity, with the corresponding schema attributes and relationships
- *
- * @param userId the name of the calling user
- * @param schemaType the schema type bean
- *
- * @return unique identifier of the schema type in the repository
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- String createOrUpdateSchemaType(String userId, SchemaType schemaType) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Delete the schema type
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the schema type
- * @param guid the unique identifier of the schema type
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteSchemaType(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Create or update the port implementation entity,with the corresponding schema type and port schema relationship. It attaches the port
- * implementation to the provided process
- *
- * @param userId the name of the calling user
- * @param portImplementation the port implementation bean
- * @param processQualifiedName the process qualified name
- *
- * @return unique identifier of the port implementation in the repository
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException internal problem with the connector
- */
- String createOrUpdatePortImplementation(String userId, PortImplementation portImplementation, String processQualifiedName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- ConnectorCheckedException;
-
- /**
- * Delete the port implementation
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of port implementation
- * @param guid the unique identifier of the port implementation
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deletePortImplementation(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
- /**
- * Add a ProcessHierarchy relationship to a process
- *
- * @param userId the name of the calling user
- * @param processHierarchy the process hierarchy bean
- *
- * @return the unique identifier (guid) of the child of the process hierarchy that was updated
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException internal problem with the connector
- */
- String addProcessHierarchy(String userId, ProcessHierarchy processHierarchy) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- ConnectorCheckedException;
-
- /**
- * Add data flow relationships between entities
- *
- * @param userId the name of the calling user
- * @param dataFlows list of data flows
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException internal problem with the connector
- */
- void addDataFlows(String userId, List dataFlows) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- ConnectorCheckedException;
-
- /**
- * Sets external source system name using the data engine client
- *
- * @param externalSourceName Source system name
- */
- void setExternalSourceName(String externalSourceName);
-
- /**
- * Returns the name of the source system using data engine client
- *
- * @return Source system name
- */
- String getExternalSourceName();
-
- /**
- * Create or update the database entity
- *
- * @param userId the name of the calling user
- * @param database the database bean
- *
- * @return unique identifier of database in the repository
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException internal problem with the connector
- */
- String upsertDatabase(String userId, Database database) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- ConnectorCheckedException;
-
- /**
- * Create or update the database schema entity
- *
- * @param userId the name of the calling user
- * @param databaseSchema the database schema bean
- * @param databaseQualifiedName the qualified name of the database, in case it is known
- *
- * @return unique identifier of database schema in the repository
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException internal problem with the connector
- */
- String upsertDatabaseSchema(String userId, DatabaseSchema databaseSchema, String databaseQualifiedName) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- ConnectorCheckedException;
-
- /**
- * Create or update the relational table entity
- *
- * @param userId the name of the calling user
- * @param relationalTable the relational table bean
- * @param databaseSchemaQualifiedName the qualified name of the database schema to which it will be related
- *
- * @return unique identifier of the relational table in the repository
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException internal problem with the connector
- */
- String upsertRelationalTable(String userId, RelationalTable relationalTable, String databaseSchemaQualifiedName)
- throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException, ConnectorCheckedException;
-
- /**
- * Create or update the data file entity
- *
- * @param userId the name of the calling user
- * @param dataFile the data file bean
- *
- * @return unique identifier of the relational table in the repository
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException internal problem with the connector
- */
- String upsertDataFile(String userId, DataFile dataFile) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- ConnectorCheckedException;
-
- /**
- * Delete the database
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the database
- * @param guid the unique identifier of the database
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteDatabase(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Delete the database schema
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the database schema
- * @param guid the unique identifier of the database schema
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteDatabaseSchema(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Delete the relational table
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the relational table
- * @param guid the unique identifier of the relational table
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteRelationalTable(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Delete the data file
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the data file
- * @param guid the unique identifier of the data file
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteDataFile(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Delete the folder
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the data file
- * @param guid the unique identifier of the folder
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteFolder(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Delete the connection
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the connection
- * @param guid the unique identifier of the connection
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteConnection(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Delete the endpoint
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the endpoint
- * @param guid the unique identifier of the endpoint
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteEndpoint(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Find an entity
- *
- * @param userId the name of the calling user
- * @param findRequestBody request body
- *
- * @return list of found entities
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- * @throws FunctionNotSupportedException this request is not supported in the target repositories
- */
- GUIDListResponse find(String userId, FindRequestBody findRequestBody) throws ConnectorCheckedException,
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- FunctionNotSupportedException;
-
- /**
- * Create or update the topic entity
- *
- * @param userId the name of the calling user
- * @param topic the topic bean
- *
- * @return unique identifier of topic in the repository
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException internal problem with the connector
- */
- String upsertTopic(String userId, Topic topic) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- ConnectorCheckedException;
-
- /**
- * Create or update the event type entity
- *
- * @param userId the name of the calling user
- * @param eventType the event type bean
- * @param topicQualifiedName the qualified name of the topic
- *
- * @return unique identifier of event type in the repository
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException internal problem with the connector
- */
- String upsertEventType(String userId, EventType eventType, String topicQualifiedName) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException,
- ConnectorCheckedException;
-
- /**
- * Delete the topic
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the topic
- * @param guid the unique identifier of the topic
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteTopic(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Delete the event type
- *
- * @param userId the name of the calling user
- * @param qualifiedName the qualified name of the event type
- * @param guid the unique identifier of the event type
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws UserNotAuthorizedException user not authorized to issue this request
- * @throws PropertyServerException problem accessing the property server
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- void deleteEventType(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException,
- ConnectorCheckedException;
-
- /**
- * Create or update the engine's processing state classification with the provided properties
- * @param userId the name of the calling user
- * @param properties properties of the processing state
- */
- void upsertProcessingState(String userId, Map properties) throws PropertyServerException,
- InvalidParameterException, UserNotAuthorizedException, ConnectorCheckedException;
-
- /**
- * Get the engine's processing state classification's properties
- *
- * @param userId the name of the calling user
- */
- public Map getProcessingState(String userId) throws PropertyServerException;
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineEventClient.java b/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineEventClient.java
deleted file mode 100644
index 6de282eb15e..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineEventClient.java
+++ /dev/null
@@ -1,515 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.client;
-
-import org.odpi.openmetadata.accessservices.dataengine.connectors.intopic.DataEngineInTopicClientConnector;
-import org.odpi.openmetadata.accessservices.dataengine.event.DataEngineEventType;
-import org.odpi.openmetadata.accessservices.dataengine.event.DataEngineRegistrationEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.DataFileEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.DataFlowsEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.DatabaseEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.DatabaseSchemaEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.DeleteEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.EventTypeEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.PortImplementationEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.ProcessEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.ProcessHierarchyEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.ProcessingStateEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.RelationalTableEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.SchemaTypeEvent;
-import org.odpi.openmetadata.accessservices.dataengine.event.TopicEvent;
-import org.odpi.openmetadata.accessservices.dataengine.ffdc.DataEngineErrorCode;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFile;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFlow;
-import org.odpi.openmetadata.accessservices.dataengine.model.Database;
-import org.odpi.openmetadata.accessservices.dataengine.model.DatabaseSchema;
-import org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic;
-import org.odpi.openmetadata.accessservices.dataengine.model.Engine;
-import org.odpi.openmetadata.accessservices.dataengine.model.EventType;
-import org.odpi.openmetadata.accessservices.dataengine.model.PortImplementation;
-import org.odpi.openmetadata.accessservices.dataengine.model.Process;
-import org.odpi.openmetadata.accessservices.dataengine.model.ProcessHierarchy;
-import org.odpi.openmetadata.accessservices.dataengine.model.ProcessingState;
-import org.odpi.openmetadata.accessservices.dataengine.model.RelationalTable;
-import org.odpi.openmetadata.accessservices.dataengine.model.SchemaType;
-import org.odpi.openmetadata.accessservices.dataengine.model.Topic;
-import org.odpi.openmetadata.accessservices.dataengine.rest.FindRequestBody;
-import org.odpi.openmetadata.commonservices.ffdc.rest.GUIDListResponse;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException;
-
-import java.util.List;
-import java.util.Map;
-
-
-/***
- * DataEngineEventClient implements Data Engine client side events interface using provided topic connector.
- * For more information see {@link DataEngineClient} interface definition.
- */
-public class DataEngineEventClient implements DataEngineClient {
-
- private final DataEngineInTopicClientConnector topicConnector;
- private String externalSource;
- private DeleteSemantic deleteSemantic = DeleteSemantic.SOFT;
-
- /**
- * Constructor to create DataEngineEventClient with unauthenticated access to the server
- *
- * @param dataEngineInTopicClientConnector topic connector used to publish to InTopic
- */
- public DataEngineEventClient(DataEngineInTopicClientConnector dataEngineInTopicClientConnector) {
- this.topicConnector = dataEngineInTopicClientConnector;
- }
-
- /**
- * Gets the {@link org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic}
- *
- * @return deleteSemantic used by the client for deletes
- */
- public DeleteSemantic getDeleteSemantic() {
- return deleteSemantic;
- }
-
- /**
- * Sets the {@link org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic} for the client
- */
- public void setDeleteSemantic(DeleteSemantic deleteSemantic) {
- this.deleteSemantic = deleteSemantic;
- }
-
- @Override
- public String createOrUpdateProcess(String userId, Process process) throws InvalidParameterException, ConnectorCheckedException {
- ProcessEvent event = new ProcessEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.PROCESS_EVENT);
- event.setProcess(process);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- @Override
- public void deleteProcess(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = new DeleteEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.DELETE_PROCESS_EVENT);
- event.setQualifiedName(qualifiedName);
- event.setGuid(guid);
- event.setDeleteSemantic(deleteSemantic);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- @Override
- public String createExternalDataEngine(String userId, Engine engine) throws InvalidParameterException,
- ConnectorCheckedException {
- DataEngineRegistrationEvent event = new DataEngineRegistrationEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.DATA_ENGINE_REGISTRATION_EVENT);
- event.setEngine(engine);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteExternalDataEngine(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_DATA_ENGINE_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- @Override
- public String createOrUpdateSchemaType(String userId, SchemaType schemaType) throws InvalidParameterException, ConnectorCheckedException {
- SchemaTypeEvent event = new SchemaTypeEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.SCHEMA_TYPE_EVENT);
- event.setSchemaType(schemaType);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteSchemaType(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_SCHEMA_TYPE_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- @Override
- public String createOrUpdatePortImplementation(String userId, PortImplementation portImplementation, String processQualifiedName) throws
- InvalidParameterException,
- ConnectorCheckedException {
- PortImplementationEvent event = new PortImplementationEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.PORT_IMPLEMENTATION_EVENT);
- event.setPortImplementation(portImplementation);
- event.setProcessQualifiedName(processQualifiedName);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deletePortImplementation(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_PORT_IMPLEMENTATION_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- @Override
- public String addProcessHierarchy(String userId, ProcessHierarchy processHierarchy) throws InvalidParameterException, ConnectorCheckedException {
-
- ProcessHierarchyEvent event = new ProcessHierarchyEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.PROCESS_HIERARCHY_EVENT);
- event.setProcessHierarchy(processHierarchy);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- /**
- * {@inheritDoc}
- *
- * @throws InvalidParameterException the bean properties are invalid
- * @throws ConnectorCheckedException problem with the underlying connector (if used)
- */
- @Override
- public void addDataFlows(String userId, List dataFlows) throws InvalidParameterException, ConnectorCheckedException {
-
- DataFlowsEvent event = new DataFlowsEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.DATA_FLOWS_EVENT);
- event.setDataFlows(dataFlows);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * Sets external source system name using the data engine client
- *
- * @param externalSourceName Source system name
- */
- @Override
- public void setExternalSourceName(String externalSourceName) {
- this.externalSource = externalSourceName;
- }
-
- /**
- * Returns the name of the source system using data engine client
- *
- * @return Source system name
- */
- @Override
- public String getExternalSourceName() {
- return this.externalSource;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertDatabase(String userId, Database database) throws InvalidParameterException, ConnectorCheckedException {
- DatabaseEvent event = new DatabaseEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.DATABASE_EVENT);
- event.setDatabase(database);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertDatabaseSchema(String userId, DatabaseSchema databaseSchema, String databaseQualifiedName) throws InvalidParameterException,
- ConnectorCheckedException {
- DatabaseSchemaEvent event = new DatabaseSchemaEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.DATABASE_SCHEMA_EVENT);
- event.setDatabaseSchema(databaseSchema);
- event.setDatabaseQualifiedName(databaseQualifiedName);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertRelationalTable(String userId, RelationalTable relationalTable, String databaseSchemaQualifiedName) throws
- InvalidParameterException,
- ConnectorCheckedException {
- RelationalTableEvent event = new RelationalTableEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.RELATIONAL_TABLE_EVENT);
- event.setRelationalTable(relationalTable);
- event.setDatabaseSchemaQualifiedName(databaseSchemaQualifiedName);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertDataFile(String userId, DataFile dataFile) throws InvalidParameterException, ConnectorCheckedException {
- DataFileEvent event = new DataFileEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.DATA_FILE_EVENT);
- event.setDataFile(dataFile);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteDatabase(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_DATABASE_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteDatabaseSchema(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_DATABASE_SCHEMA_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteRelationalTable(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_RELATIONAL_TABLE_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteDataFile(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_DATA_FILE_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteFolder(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_FOLDER_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteConnection(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_CONNECTION_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteEndpoint(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_ENDPOINT_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public GUIDListResponse find(String userId, FindRequestBody findRequestBody) throws FunctionNotSupportedException {
- String methodName = "find";
-
- throw new FunctionNotSupportedException(DataEngineErrorCode.METHOD_NOT_IMPLEMENTED.getMessageDefinition(methodName),
- this.getClass().getName(), methodName);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertTopic(String userId, Topic topic) throws InvalidParameterException, ConnectorCheckedException {
- TopicEvent event = new TopicEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.TOPIC_EVENT);
- event.setTopic(topic);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertEventType(String userId, EventType eventType, String topicQualifiedName) throws InvalidParameterException,
- ConnectorCheckedException {
- EventTypeEvent event = new EventTypeEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.EVENT_TYPE_EVENT);
- event.setTopicQualifiedName(topicQualifiedName);
- event.setEventType(eventType);
-
- topicConnector.sendEvent(event);
-
- //async interaction
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteTopic(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_TOPIC_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteEventType(String userId, String qualifiedName, String guid) throws InvalidParameterException, ConnectorCheckedException {
- DeleteEvent event = getDeleteEvent(userId, qualifiedName, guid);
- event.setDataEngineEventType(DataEngineEventType.DELETE_EVENT_TYPE_EVENT);
-
- topicConnector.sendEvent(event);
- }
-
- @Override
- public void upsertProcessingState(String userId, Map properties) throws InvalidParameterException, ConnectorCheckedException {
-
- ProcessingState processingState = new ProcessingState(properties);
-
- ProcessingStateEvent event = new ProcessingStateEvent();
-
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setDataEngineEventType(DataEngineEventType.PROCESSING_STATE_TYPE_EVENT);
- event.setProcessingState(processingState);
-
- topicConnector.sendEvent(event);
- }
-
- @Override
- public Map getProcessingState(String userId) {
- //async interaction
- return null;
- }
-
- private DeleteEvent getDeleteEvent(String userId, String qualifiedName, String guid) {
- DeleteEvent event = new DeleteEvent();
- event.setUserId(userId);
- event.setExternalSourceName(externalSource);
- event.setQualifiedName(qualifiedName);
- event.setGuid(guid);
- event.setDeleteSemantic(deleteSemantic);
- return event;
- }
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineRESTClient.java b/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineRESTClient.java
deleted file mode 100644
index fc000d437ea..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineRESTClient.java
+++ /dev/null
@@ -1,602 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.client;
-
-import org.apache.commons.collections4.MapUtils;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFile;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFlow;
-import org.odpi.openmetadata.accessservices.dataengine.model.Database;
-import org.odpi.openmetadata.accessservices.dataengine.model.DatabaseSchema;
-import org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic;
-import org.odpi.openmetadata.accessservices.dataengine.model.EventType;
-import org.odpi.openmetadata.accessservices.dataengine.model.PortImplementation;
-import org.odpi.openmetadata.accessservices.dataengine.model.Process;
-import org.odpi.openmetadata.accessservices.dataengine.model.ProcessHierarchy;
-import org.odpi.openmetadata.accessservices.dataengine.model.ProcessingState;
-import org.odpi.openmetadata.accessservices.dataengine.model.RelationalTable;
-import org.odpi.openmetadata.accessservices.dataengine.model.SchemaType;
-import org.odpi.openmetadata.accessservices.dataengine.model.Engine;
-import org.odpi.openmetadata.accessservices.dataengine.model.Topic;
-import org.odpi.openmetadata.accessservices.dataengine.rest.DataEngineOMASAPIRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.DataEngineRegistrationRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.DataFileRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.DatabaseRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.DatabaseSchemaRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.DeleteRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.EventTypeRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.FindRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.DataFlowsRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.PortImplementationRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.ProcessHierarchyRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.ProcessRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.ProcessingStateRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.RelationalTableRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.SchemaTypeRequestBody;
-import org.odpi.openmetadata.accessservices.dataengine.rest.TopicRequestBody;
-import org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler;
-import org.odpi.openmetadata.commonservices.ffdc.rest.GUIDListResponse;
-import org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse;
-import org.odpi.openmetadata.commonservices.ffdc.rest.PropertiesResponse;
-import org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse;
-import org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.OCFRESTClient;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-
-/**
- * The Data Engine Open Metadata Access Service (OMAS) provides an interface for data engine tools to create
- * processes with ports, schemas and relationships. See interface definition for more explanation.
- */
-public class DataEngineRESTClient extends OCFRESTClient implements DataEngineClient {
- private static final String DATA_ENGINE_PATH = "/servers/{0}/open-metadata/access-services/data-engine/users/{1}/";
- private static final String PROCESS_URL_TEMPLATE = DATA_ENGINE_PATH + "processes";
- private static final String DATA_ENGINE_REGISTRATION_URL_TEMPLATE = DATA_ENGINE_PATH + "registration";
- private static final String SCHEMA_TYPE_URL_TEMPLATE = DATA_ENGINE_PATH + "schema-types";
- private static final String PORT_IMPLEMENTATION_URL_TEMPLATE = DATA_ENGINE_PATH + "port-implementations";
- private static final String PROCESS_HIERARCHY_URL_TEMPLATE = DATA_ENGINE_PATH + "process-hierarchies";
- private static final String DATA_FLOWS_URL_TEMPLATE = DATA_ENGINE_PATH + "data-flows";
- private static final String DATABASE_URL_TEMPLATE = DATA_ENGINE_PATH + "databases";
- private static final String DATABASE_SCHEMA_URL_TEMPLATE = DATA_ENGINE_PATH + "database-schemas";
- private static final String RELATIONAL_TABLE_URL_TEMPLATE = DATA_ENGINE_PATH + "relational-tables";
- private static final String DATA_FILE_URL_TEMPLATE = DATA_ENGINE_PATH + "data-files";
- private static final String FOLDER_URL_TEMPLATE = DATA_ENGINE_PATH + "folders";
- private static final String CONNECTION_URL_TEMPLATE = DATA_ENGINE_PATH + "connections";
- private static final String ENDPOINT_URL_TEMPLATE = DATA_ENGINE_PATH + "endpoints";
- private static final String FIND_URL_TEMPLATE = DATA_ENGINE_PATH + "find";
- private static final String TOPIC_URL_TEMPLATE = DATA_ENGINE_PATH + "topics";
- private static final String EVENT_TYPE_URL_TEMPLATE = DATA_ENGINE_PATH + "event-types";
- private static final String PROCESSING_STATE_URL_TEMPLATE = DATA_ENGINE_PATH + "processing-state";
-
- private static final String PROCESS_METHOD_NAME = "createOrUpdateProcess";
- private static final String PROCESS_DELETE_METHOD_NAME = "deleteProcess";
- private static final String EXTERNAL_DATA_ENGINE_METHOD_NAME = "createExternalDataEngine";
- private static final String EXTERNAL_DATA_ENGINE_DELETE_METHOD_NAME = "deleteExternalDataEngine";
- private static final String SCHEMA_TYPE_METHOD_NAME = "createOrUpdateSchemaType";
- private static final String SCHEMA_TYPE_DELETE_METHOD_NAME = "deleteSchemaType";
- private static final String PORT_IMPLEMENTATION_METHOD_NAME = "createOrUpdatePortImplementation";
- private static final String PORT_IMPLEMENTATION_DELETE_METHOD_NAME = "deletePortImplementation";
- private static final String PROCESS_HIERARCHY_METHOD_NAME = "createOrUpdateProcessHierarchy";
- private static final String DATA_FLOWS_METHOD_NAME = "addDataFlows";
- private static final String DATABASE_METHOD_NAME = "upsertDatabase";
- private static final String DATABASE_SCHEMA_METHOD_NAME = "upsertDatabaseSchema";
- private static final String RELATIONAL_TABLE_METHOD_NAME = "upsertRelationalTable";
- private static final String DATA_FILE_METHOD_NAME = "upsertDataFile";
- private static final String DATABASE_DELETE_METHOD_NAME = "deleteDatabase";
- private static final String DATABASE_SCHEMA_DELETE_METHOD_NAME = "deleteDatabaseSchema";
- private static final String RELATIONAL_TABLE_DELETE_METHOD_NAME = "deleteRelationalTable";
- private static final String DATA_FILE_DELETE_METHOD_NAME = "deleteDataFile";
- private static final String FOLDER_DELETE_METHOD_NAME = "deleteFolder";
- private static final String CONNECTION_DELETE_METHOD_NAME = "deleteConnection";
- private static final String ENDPOINT_DELETE_METHOD_NAME = "deleteEndpoint";
- private static final String FIND_METHOD_NAME = "find";
- private static final String TOPIC_METHOD_NAME = "upsertTopic";
- private static final String EVENT_TYPE_METHOD_NAME = "upsertEventType";
- private static final String TOPIC_DELETE_METHOD_NAME = "deleteTopic";
- private static final String EVENT_TYPE_DELETE_METHOD_NAME = "deleteEventType";
-
- private final String serverPlatformRootURL;
- private String externalSourceName;
- private DeleteSemantic deleteSemantic = DeleteSemantic.SOFT;
- private final InvalidParameterHandler invalidParameterHandler = new InvalidParameterHandler();
-
- /**
- * Create a new client without authentication.
- *
- * @param serverName name of the server to connect to
- * @param serverPlatformRootURL the network address of the server running the OMAS REST services
- *
- * @throws InvalidParameterException null URL or server name
- */
- public DataEngineRESTClient(String serverName, String serverPlatformRootURL) throws InvalidParameterException {
- super(serverName, serverPlatformRootURL);
-
- this.serverName = serverName;
- this.serverPlatformRootURL = serverPlatformRootURL;
- }
-
- /**
- * Create a new client that passes userId and password in each HTTP request. This is the
- * userId/password of the calling server. The end user's userId is sent on each request.
- *
- * @param serverName name of the server to connect to
- * @param serverPlatformRootURL the network address of the server running the OMAS REST services
- * @param userId caller's userId embedded in all HTTP requests
- * @param password caller's userId embedded in all HTTP requests
- *
- * @throws InvalidParameterException null URL or server name
- */
- public DataEngineRESTClient(String serverName, String serverPlatformRootURL, String userId, String password) throws InvalidParameterException {
- super(serverName, serverPlatformRootURL, userId, password);
-
- this.serverName = serverName;
- this.serverPlatformRootURL = serverPlatformRootURL;
- }
-
- public String getExternalSourceName() {
- return externalSourceName;
- }
-
- public void setExternalSourceName(String externalSourceName) {
- this.externalSourceName = externalSourceName;
- }
-
- /**
- * Gets the {@link org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic}
- *
- * @return deleteSemantic used by the client for deletes
- */
- public DeleteSemantic getDeleteSemantic() {
- return deleteSemantic;
- }
-
- /**
- * Sets the {@link org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic} for the client
- */
- public void setDeleteSemantic(DeleteSemantic deleteSemantic) {
- this.deleteSemantic = deleteSemantic;
- }
-
- @Override
- public String createOrUpdateProcess(String userId, Process process) throws InvalidParameterException, PropertyServerException,
- UserNotAuthorizedException {
- invalidParameterHandler.validateUserId(userId, PROCESS_METHOD_NAME);
-
- ProcessRequestBody requestBody = new ProcessRequestBody();
- requestBody.setProcess(process);
- requestBody.setExternalSourceName(externalSourceName);
-
- return callGUIDPostRESTCall(userId, PROCESS_METHOD_NAME, PROCESS_URL_TEMPLATE, requestBody);
- }
-
- @Override
- public void deleteProcess(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, PROCESS_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = new DeleteRequestBody();
- requestBody.setQualifiedName(qualifiedName);
- requestBody.setGuid(guid);
- requestBody.setExternalSourceName(externalSourceName);
- requestBody.setDeleteSemantic(deleteSemantic);
-
- callVoidDeleteRESTCall(userId, PROCESS_DELETE_METHOD_NAME, PROCESS_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String createExternalDataEngine(String userId, Engine engine) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
-
- invalidParameterHandler.validateUserId(userId, EXTERNAL_DATA_ENGINE_METHOD_NAME);
-
- DataEngineRegistrationRequestBody requestBody = new DataEngineRegistrationRequestBody();
- requestBody.setEngine(engine);
-
- return callGUIDPostRESTCall(userId, EXTERNAL_DATA_ENGINE_METHOD_NAME, DATA_ENGINE_REGISTRATION_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteExternalDataEngine(String userId, String qualifiedName, String guid) throws InvalidParameterException,
- PropertyServerException {
- invalidParameterHandler.validateUserId(userId, EXTERNAL_DATA_ENGINE_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, EXTERNAL_DATA_ENGINE_DELETE_METHOD_NAME, DATA_ENGINE_REGISTRATION_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String createOrUpdateSchemaType(String userId, SchemaType schemaType) throws InvalidParameterException,
- PropertyServerException,
- UserNotAuthorizedException {
-
- invalidParameterHandler.validateUserId(userId, SCHEMA_TYPE_METHOD_NAME);
-
- SchemaTypeRequestBody requestBody = new SchemaTypeRequestBody();
- requestBody.setSchemaType(schemaType);
- requestBody.setExternalSourceName(externalSourceName);
-
- return callGUIDPostRESTCall(userId, SCHEMA_TYPE_METHOD_NAME, SCHEMA_TYPE_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteSchemaType(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, SCHEMA_TYPE_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, SCHEMA_TYPE_DELETE_METHOD_NAME, SCHEMA_TYPE_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String createOrUpdatePortImplementation(String userId, PortImplementation portImplementation, String processQualifiedName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- invalidParameterHandler.validateUserId(userId, PORT_IMPLEMENTATION_METHOD_NAME);
-
- PortImplementationRequestBody requestBody = new PortImplementationRequestBody();
- requestBody.setPortImplementation(portImplementation);
- requestBody.setProcessQualifiedName(processQualifiedName);
- requestBody.setExternalSourceName(externalSourceName);
-
- return callGUIDPostRESTCall(userId, PORT_IMPLEMENTATION_METHOD_NAME, PORT_IMPLEMENTATION_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deletePortImplementation(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, PORT_IMPLEMENTATION_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, PORT_IMPLEMENTATION_DELETE_METHOD_NAME, PORT_IMPLEMENTATION_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String addProcessHierarchy(String userId, ProcessHierarchy processHierarchy) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- final String methodName = PROCESS_HIERARCHY_METHOD_NAME;
-
- invalidParameterHandler.validateUserId(userId, methodName);
-
- ProcessHierarchyRequestBody requestBody = new ProcessHierarchyRequestBody();
- requestBody.setProcessHierarchy(processHierarchy);
- requestBody.setExternalSourceName(externalSourceName);
-
- return callGUIDPostRESTCall(userId, methodName, PROCESS_HIERARCHY_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void addDataFlows(String userId, List dataFlows) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- final String methodName = DATA_FLOWS_METHOD_NAME;
-
- invalidParameterHandler.validateUserId(userId, methodName);
-
- DataFlowsRequestBody requestBody = new DataFlowsRequestBody();
- requestBody.setDataFlows(dataFlows);
- requestBody.setExternalSourceName(externalSourceName);
-
- callVoidPostRESTCall(userId, methodName, DATA_FLOWS_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertDatabase(String userId, Database database) throws InvalidParameterException,
- UserNotAuthorizedException, PropertyServerException {
- final String methodName = DATABASE_METHOD_NAME;
-
- invalidParameterHandler.validateUserId(userId, methodName);
-
- DatabaseRequestBody requestBody = new DatabaseRequestBody();
- requestBody.setDatabase(database);
- requestBody.setExternalSourceName(externalSourceName);
-
- return callGUIDPostRESTCall(userId, methodName, DATABASE_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertDatabaseSchema(String userId, DatabaseSchema databaseSchema, String databaseQualifiedName) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- final String methodName = DATABASE_SCHEMA_METHOD_NAME;
-
- invalidParameterHandler.validateUserId(userId, methodName);
-
- DatabaseSchemaRequestBody requestBody = new DatabaseSchemaRequestBody();
- requestBody.setDatabaseSchema(databaseSchema);
- requestBody.setDatabaseQualifiedName(databaseQualifiedName);
- requestBody.setExternalSourceName(externalSourceName);
-
- return callGUIDPostRESTCall(userId, methodName, DATABASE_SCHEMA_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertRelationalTable(String userId, RelationalTable relationalTable, String databaseSchemaQualifiedName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- final String methodName = RELATIONAL_TABLE_METHOD_NAME;
-
- invalidParameterHandler.validateUserId(userId, methodName);
-
- RelationalTableRequestBody requestBody = new RelationalTableRequestBody();
- requestBody.setRelationalTable(relationalTable);
- requestBody.setDatabaseSchemaQualifiedName(databaseSchemaQualifiedName);
- requestBody.setExternalSourceName(externalSourceName);
-
- return callGUIDPostRESTCall(userId, methodName, RELATIONAL_TABLE_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertDataFile(String userId, DataFile dataFile) throws InvalidParameterException,
- UserNotAuthorizedException, PropertyServerException {
- final String methodName = DATA_FILE_METHOD_NAME;
-
- invalidParameterHandler.validateUserId(userId, methodName);
-
- DataFileRequestBody requestBody = new DataFileRequestBody();
- requestBody.setDataFile(dataFile);
- requestBody.setExternalSourceName(externalSourceName);
-
- return callGUIDPostRESTCall(userId, methodName, DATA_FILE_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteDatabase(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, DATABASE_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, DATABASE_DELETE_METHOD_NAME, DATABASE_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteDatabaseSchema(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, DATABASE_SCHEMA_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, DATABASE_SCHEMA_DELETE_METHOD_NAME, DATABASE_SCHEMA_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteRelationalTable(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, RELATIONAL_TABLE_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, RELATIONAL_TABLE_DELETE_METHOD_NAME, RELATIONAL_TABLE_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteDataFile(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, DATA_FILE_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, DATA_FILE_DELETE_METHOD_NAME, DATA_FILE_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteFolder(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, FOLDER_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, FOLDER_DELETE_METHOD_NAME, FOLDER_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteConnection(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, CONNECTION_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, CONNECTION_DELETE_METHOD_NAME, CONNECTION_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteEndpoint(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, ENDPOINT_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, ENDPOINT_DELETE_METHOD_NAME, ENDPOINT_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public GUIDListResponse find(String userId, FindRequestBody findRequestBody) throws ConnectorCheckedException, InvalidParameterException,
- UserNotAuthorizedException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, FIND_METHOD_NAME);
-
- return callGUIDListPostRESTCall(FIND_METHOD_NAME, serverPlatformRootURL + FIND_URL_TEMPLATE, findRequestBody, serverName, userId);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertTopic(String userId, Topic topic) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException {
- final String methodName = TOPIC_METHOD_NAME;
-
- invalidParameterHandler.validateUserId(userId, methodName);
-
- TopicRequestBody requestBody = new TopicRequestBody();
- requestBody.setTopic(topic);
- requestBody.setExternalSourceName(externalSourceName);
-
- return callGUIDPostRESTCall(userId, methodName, TOPIC_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String upsertEventType(String userId, EventType eventType, String topicQualifiedName) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- final String methodName = EVENT_TYPE_METHOD_NAME;
-
- invalidParameterHandler.validateUserId(userId, methodName);
-
- EventTypeRequestBody requestBody = new EventTypeRequestBody();
- requestBody.setEventType(eventType);
- requestBody.setExternalSourceName(externalSourceName);
- requestBody.setTopicQualifiedName(topicQualifiedName);
-
- return callGUIDPostRESTCall(userId, methodName, EVENT_TYPE_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteTopic(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, TOPIC_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, TOPIC_DELETE_METHOD_NAME, TOPIC_URL_TEMPLATE, requestBody);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void deleteEventType(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException {
- invalidParameterHandler.validateUserId(userId, EVENT_TYPE_DELETE_METHOD_NAME);
-
- DeleteRequestBody requestBody = getDeleteRequestBody(qualifiedName, guid);
-
- callVoidDeleteRESTCall(userId, EVENT_TYPE_DELETE_METHOD_NAME, EVENT_TYPE_URL_TEMPLATE, requestBody);
- }
-
- @Override
- public void upsertProcessingState(String userId, Map properties) throws PropertyServerException,
- InvalidParameterException, UserNotAuthorizedException {
- String methodName = "upsertProcessingState";
-
- ProcessingState processingState = new ProcessingState(properties);
-
- ProcessingStateRequestBody requestBody = new ProcessingStateRequestBody(processingState);
- requestBody.setExternalSourceName(externalSourceName);
-
- callVoidPostRESTCall(userId, methodName, PROCESSING_STATE_URL_TEMPLATE, requestBody);
- }
-
- @Override
- public Map getProcessingState(String userId) throws PropertyServerException {
- String methodName = "getProcessingState";
-
- PropertiesResponse restResult = this.callGetRESTCall(methodName, PropertiesResponse.class,
- serverPlatformRootURL + PROCESSING_STATE_URL_TEMPLATE, serverName, userId, externalSourceName);
-
- if(restResult == null || MapUtils.isEmpty(restResult.getProperties())) {
- return Collections.emptyMap();
- }
- return restResult.getProperties().entrySet()
- .stream()
- .collect(Collectors.toMap(Map.Entry::getKey, e -> (Long) e.getValue()));
- }
-
- private void callVoidPostRESTCall(String userId, String methodName, String urlTemplate, DataEngineOMASAPIRequestBody requestBody,
- Object... params) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException {
- super.callVoidPostRESTCall(methodName, serverPlatformRootURL + urlTemplate, requestBody, serverName, userId, params);
- }
-
- private String callGUIDPostRESTCall(String userId, String methodName, String urlTemplate, DataEngineOMASAPIRequestBody requestBody,
- Object... params) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException {
- GUIDResponse restResult = super.callGUIDPostRESTCall(methodName, serverPlatformRootURL + urlTemplate, requestBody, serverName,
- userId, params);
-
- exceptionHandler.detectAndThrowInvalidParameterException(restResult);
- exceptionHandler.detectAndThrowUserNotAuthorizedException(restResult);
- exceptionHandler.detectAndThrowPropertyServerException(restResult);
-
- return restResult.getGUID();
- }
-
- private void callVoidDeleteRESTCall(String userId, String methodName, String urlTemplate, DataEngineOMASAPIRequestBody requestBody,
- Object... params) throws PropertyServerException {
- super.callDeleteRESTCall(methodName, VoidResponse.class, serverPlatformRootURL + urlTemplate, requestBody, serverName, userId, params);
- }
-
- private DeleteRequestBody getDeleteRequestBody(String qualifiedName, String guid) {
- DeleteRequestBody requestBody = new DeleteRequestBody();
- requestBody.setQualifiedName(qualifiedName);
- requestBody.setGuid(guid);
- requestBody.setExternalSourceName(externalSourceName);
- requestBody.setDeleteSemantic(deleteSemantic);
-
- return requestBody;
- }
-}
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineRESTConfigurationClient.java b/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineRESTConfigurationClient.java
deleted file mode 100644
index 221a02c35d2..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineRESTConfigurationClient.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.client;
-
-
-import org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler;
-import org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.ConnectionResponse;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-
-/**
- * DataEngineRESTConfigurationClient provides an extension to the client-side REST interface for obtaining Data Engine access service configuration
- * specifics.
- */
-public class DataEngineRESTConfigurationClient extends DataEngineRESTClient {
-
- private static final String IN_TOPIC_CONNECTION_PATH =
- "/servers/{0}/open-metadata/access-services/data-engine/users/{1}/topics/in-topic-connection";
- private final InvalidParameterHandler invalidParameterHandler = new InvalidParameterHandler();
-
- /**
- * Create DataEngineRESTConfigurationClient with unauthenticated access to the DE OMAS server.
- *
- * @param serverName the server name
- * @param serverPlatformRootURL the network address of the server running the OMAS REST services
- *
- * @throws InvalidParameterException null URL or server name
- */
- public DataEngineRESTConfigurationClient(String serverName, String serverPlatformRootURL) throws InvalidParameterException {
- super(serverName, serverPlatformRootURL);
-
- this.serverName = serverName;
- this.serverPlatformURLRoot = serverPlatformRootURL;
- }
-
- /**
- * Instantiates a new Data Engine REST configuration client.
- * @param serverName name of the server to connect to
- * @param serverPlatformRootURL the network address of the server running the OMAS REST services
- * @param userId caller's userId embedded in all HTTP requests
- * @param password caller's userId embedded in all HTTP requests
- *
- * @throws InvalidParameterException null URL or server name
- */
- public DataEngineRESTConfigurationClient(String serverName, String serverPlatformRootURL, String userId, String password) throws
- InvalidParameterException {
- super(serverName, serverPlatformRootURL, userId, password);
-
- this.serverName = serverName;
- this.serverPlatformURLRoot = serverPlatformRootURL;
- }
-
- /**
- * Retrieve input topic connection details from remote DE OMAS instance.
- *
- * @param serverName name of the server hosting DE access service
- * @param userId user accessing the server hosting DE access service
- *
- * @return ConnectionResponse OCF object
- *
- * @throws InvalidParameterException input parameter(s) invalid
- * @throws PropertyServerException something went wrong with the REST call stack
- * @throws UserNotAuthorizedException user is not authorized
- */
- public ConnectionResponse getInTopicConnection(String serverName, String userId) throws InvalidParameterException, PropertyServerException,
- UserNotAuthorizedException {
-
- String methodName = "getInTopicConnection";
-
- invalidParameterHandler.validateUserId(serverName, methodName);
- invalidParameterHandler.validateUserId(userId, methodName);
-
- return callOCFConnectionGetRESTCall(methodName, serverPlatformURLRoot + IN_TOPIC_CONNECTION_PATH, serverName, userId);
- }
-
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/OpenMetadataStoreClient.java b/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/OpenMetadataStoreClient.java
deleted file mode 100644
index 05d04375dcb..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/OpenMetadataStoreClient.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.client;
-
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworkservices.gaf.client.*;
-
-/**
- * OpenMetadataClientBase provides an interface to the open metadata store. This is part of the Governance Action Framework (GAF)
- * and provides a comprehensive interface for working with all types of metadata, subject to the user's (and this OMAS's) security permissions.
- * The interface supports search, maintenance of metadata elements, classifications and relationships plus the ability to raise incident reports
- * and todos along with the ability to work with metadata valid values and translations.
- */
-public class OpenMetadataStoreClient extends OpenMetadataClientBase
-{
- private final static String serviceURLMarker = "data-engine";
-
- /**
- * Create a new client with no authentication embedded in the HTTP request.
- *
- * @param serverName name of the server to connect to
- * @param serverPlatformURLRoot the network address of the server running the OMAS REST services
- * @param maxPageSize maximum value allowed for page size
- *
- * @throws InvalidParameterException there is a problem creating the client-side components to issue any
- * REST API calls.
- */
- public OpenMetadataStoreClient(String serverName,
- String serverPlatformURLRoot,
- int maxPageSize) throws InvalidParameterException
- {
- super(serviceURLMarker, serverName, serverPlatformURLRoot, maxPageSize);
- }
-
-
- /**
- * Create a new client that passes userId and password in each HTTP request. This is the
- * userId/password of the calling server. The end user's userId is sent on each request.
- *
- * @param serverName name of the server to connect to
- * @param serverPlatformURLRoot the network address of the server running the OMAS REST services
- * @param serverUserId caller's userId embedded in all HTTP requests
- * @param serverPassword caller's password embedded in all HTTP requests
- * @param maxPageSize maximum value allowed for page size
- *
- * @throws InvalidParameterException there is a problem creating the client-side components to issue any
- * REST API calls.
- */
- public OpenMetadataStoreClient(String serverName,
- String serverPlatformURLRoot,
- String serverUserId,
- String serverPassword,
- int maxPageSize) throws InvalidParameterException
- {
- super(serviceURLMarker, serverName, serverPlatformURLRoot, serverUserId, serverPassword, maxPageSize);
- }
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/package-info.java b/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/package-info.java
deleted file mode 100644
index 6d3876cb9c9..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/main/java/org/odpi/openmetadata/accessservices/dataengine/client/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-
-/**
- * These are the Java clients for the Data Engine OMAS that can be used either by integration services or external engines that are
- * using Egeria directly as their metadata management services.
- */
-package org.odpi.openmetadata.accessservices.dataengine.client;
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/test/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineRESTClientTest.java b/open-metadata-implementation/access-services/data-engine/data-engine-client/src/test/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineRESTClientTest.java
deleted file mode 100644
index 17637fe2d05..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-client/src/test/java/org/odpi/openmetadata/accessservices/dataengine/client/DataEngineRESTClientTest.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.client;
-
-import org.junit.Before;
-import org.junit.Test;
-import org.mockito.Mock;
-import org.mockito.MockitoAnnotations;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFile;
-import org.odpi.openmetadata.accessservices.dataengine.model.Database;
-import org.odpi.openmetadata.accessservices.dataengine.model.DatabaseSchema;
-import org.odpi.openmetadata.accessservices.dataengine.model.RelationalTable;
-import org.odpi.openmetadata.adapters.connectors.restclients.RESTClientConnector;
-import org.odpi.openmetadata.adapters.connectors.restclients.ffdc.exceptions.RESTServerException;
-import org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse;
-import org.odpi.openmetadata.commonservices.ffdc.rest.PropertiesResponse;
-import org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-import org.springframework.util.ReflectionUtils;
-
-import java.lang.reflect.Field;
-import java.util.HashMap;
-import java.util.Map;
-
-import static org.junit.Assert.assertEquals;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.anyString;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-public class DataEngineRESTClientTest {
-
- private static final String SERVER_URL = "https://localhost:9444";
- private static final String SERVER_NAME = "TestServer";
- private static final String USER_ID = "zebra91";
- private static final String GUID = "guid";
- private static final String EXTERNAL_SOURCE_NAME = "externalSourceName";
- private static final String QUALIFIED_NAME = "qualifiedName";
-
- @Mock
- private RESTClientConnector connector;
-
- private DataEngineRESTClient dataEngineRESTClient;
-
- @Before
- public void before() throws InvalidParameterException {
- MockitoAnnotations.openMocks(this);
-
- dataEngineRESTClient = new DataEngineRESTClient(SERVER_NAME, SERVER_URL);
-
- Field connectorField = ReflectionUtils.findField(DataEngineRESTClient.class, "clientConnector");
- if (connectorField != null) {
- connectorField.setAccessible(true);
- ReflectionUtils.setField(connectorField, dataEngineRESTClient, connector);
- connectorField.setAccessible(false);
- }
-
- dataEngineRESTClient.setExternalSourceName(EXTERNAL_SOURCE_NAME);
- }
-
- @Test
- public void upsertDatabase() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, RESTServerException {
- GUIDResponse response = mockGUIDResponse();
- Database database = new Database();
-
- when(connector.callPostRESTCall(eq("upsertDatabase"), eq(GUIDResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.upsertDatabase(USER_ID, database);
- assertEquals(GUID, response.getGUID());
- }
-
- @Test
- public void upsertDatabaseSchema() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, RESTServerException {
- GUIDResponse response = mockGUIDResponse();
- DatabaseSchema databaseSchema = new DatabaseSchema();
-
- when(connector.callPostRESTCall(eq("upsertDatabaseSchema"), eq(GUIDResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.upsertDatabaseSchema(USER_ID, databaseSchema, null);
- assertEquals(GUID, response.getGUID());
- }
-
- @Test
- public void upsertRelationalTable() throws RESTServerException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- GUIDResponse response = mockGUIDResponse();
- RelationalTable relationalTable = new RelationalTable();
-
- when(connector.callPostRESTCall(eq("upsertRelationalTable"), eq(GUIDResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.upsertRelationalTable(USER_ID, relationalTable, "databaseQualifiedName");
- assertEquals(GUID, response.getGUID());
- }
-
- @Test
- public void upsertDataFile() throws RESTServerException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- GUIDResponse response = mockGUIDResponse();
- DataFile dataFile = new DataFile();
-
- when(connector.callPostRESTCall(eq("upsertDataFile"), eq(GUIDResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.upsertDataFile(USER_ID, dataFile);
- assertEquals(GUID, response.getGUID());
- }
-
- @Test
- public void deleteDatabase() throws RESTServerException, InvalidParameterException, PropertyServerException {
- VoidResponse response = mockVoidResponse();
-
- when(connector.callDeleteRESTCall(eq("deleteDatabase"), eq(VoidResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.deleteDatabase(USER_ID, QUALIFIED_NAME, null);
-
- verify(connector, times(1)).callDeleteRESTCall(eq("deleteDatabase"), eq(VoidResponse.class), anyString(), any(), any());
- }
-
- @Test
- public void deleteDatabaseSchema() throws RESTServerException, InvalidParameterException, PropertyServerException {
- VoidResponse response = mockVoidResponse();
-
- when(connector.callDeleteRESTCall(eq("deleteDatabaseSchema"), eq(VoidResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.deleteDatabaseSchema(USER_ID, QUALIFIED_NAME, null);
-
- verify(connector, times(1)).callDeleteRESTCall(eq("deleteDatabaseSchema"),
- eq(VoidResponse.class), anyString(), any(), any());
- }
-
- @Test
- public void deleteRelationalTable() throws RESTServerException, InvalidParameterException, PropertyServerException {
- VoidResponse response = mockVoidResponse();
-
- when(connector.callDeleteRESTCall(eq("deleteRelationalTable"), eq(VoidResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.deleteRelationalTable(USER_ID, QUALIFIED_NAME, null);
-
- verify(connector, times(1)).callDeleteRESTCall(eq("deleteRelationalTable"), eq(VoidResponse.class), anyString(), any(), any());
- }
-
- @Test
- public void deleteDataFile() throws RESTServerException, InvalidParameterException, PropertyServerException {
- VoidResponse response = mockVoidResponse();
-
- when(connector.callDeleteRESTCall(eq("deleteDataFile"), eq(VoidResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.deleteDataFile(USER_ID, QUALIFIED_NAME, null);
-
- verify(connector, times(1)).callDeleteRESTCall(eq("deleteDataFile"), eq(VoidResponse.class), anyString(), any(), any());
- }
-
- @Test
- public void deleteFolder() throws RESTServerException, InvalidParameterException, PropertyServerException {
- VoidResponse response = mockVoidResponse();
-
- when(connector.callDeleteRESTCall(eq("deleteFolder"), eq(VoidResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.deleteFolder(USER_ID, QUALIFIED_NAME, null);
-
- verify(connector, times(1)).callDeleteRESTCall(eq("deleteFolder"), eq(VoidResponse.class), anyString(), any(), any());
- }
-
- @Test
- public void deleteConnection() throws RESTServerException, InvalidParameterException, PropertyServerException {
- VoidResponse response = mockVoidResponse();
-
- when(connector.callDeleteRESTCall(eq("deleteConnection"), eq(VoidResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.deleteConnection(USER_ID, QUALIFIED_NAME, null);
-
- verify(connector, times(1)).callDeleteRESTCall(eq("deleteConnection"), eq(VoidResponse.class), anyString(), any(), any());
- }
-
- @Test
- public void deleteEndpoint() throws RESTServerException, InvalidParameterException, PropertyServerException {
- VoidResponse response = mockVoidResponse();
-
- when(connector.callDeleteRESTCall(eq("deleteEndpoint"), eq(VoidResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.deleteEndpoint(USER_ID, QUALIFIED_NAME, null);
-
- verify(connector, times(1)).callDeleteRESTCall(eq("deleteEndpoint"), eq(VoidResponse.class), anyString(), any(), any());
- }
-
- @Test
- public void upsertProcessingState() throws RESTServerException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException {
- VoidResponse response = mockVoidResponse();
-
- when(connector.callPostRESTCall(eq("upsertProcessingState"), eq(VoidResponse.class), anyString(), any(), any()))
- .thenReturn(response);
- dataEngineRESTClient.upsertProcessingState(USER_ID, new HashMap<>());
-
- verify(connector, times(1)).callPostRESTCall(eq("upsertProcessingState"), eq(VoidResponse.class), anyString(), any(), any());
- }
-
-
- @Test
- public void getProcessingState() throws RESTServerException, PropertyServerException {
- Map properties = new HashMap<>();
- properties.put("key", 100L);
- PropertiesResponse response = new PropertiesResponse();
- response.setProperties(properties);
-
- when(connector.callGetRESTCall(eq("getProcessingState"), eq(PropertiesResponse.class), anyString(), any(), any(),
- any())).thenReturn(response);
- dataEngineRESTClient.getProcessingState(USER_ID);
-
- verify(connector, times(1)).callGetRESTCall(eq("getProcessingState"),
- eq(PropertiesResponse.class), anyString(), any(), any(), any());
- }
-
- private GUIDResponse mockGUIDResponse() {
- GUIDResponse response = new GUIDResponse();
- response.setGUID(GUID);
- return response;
- }
-
- private VoidResponse mockVoidResponse() {
- return new VoidResponse();
- }
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/README.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/README.md
deleted file mode 100644
index 1aaed187844..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/README.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-# Data Engine Open Metadata Access Service (OMAS) server-side implementation
-
-Data Engine OMAS server supports the server side implementation of the access service.This includes the
- * interaction with the [administration services](../../../admin-services) for
- registration, configuration, initialization and termination of the access service.
- * interaction with the [repository services](../../../repository-services) to work with open metadata from the
- [cohort](../../../repository-services/docs/open-metadata-repository-cohort.md).
- * support for the access service's API and its related event management.
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/build.gradle b/open-metadata-implementation/access-services/data-engine/data-engine-server/build.gradle
deleted file mode 100644
index 7c1789df55f..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/build.gradle
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * SPDX-License-Identifier: Apache-2.0
- * Copyright Contributors to the ODPi Egeria project.
- */
-
-plugins {
- id "io.freefair.lombok"
-}
-
-dependencies {
- implementation 'org.springframework:spring-core'
- implementation project(':open-metadata-implementation:repository-services:repository-services-apis')
- implementation project(':open-metadata-implementation:admin-services:admin-services-api')
- implementation project(':open-metadata-implementation:admin-services:admin-services-registration')
- implementation project(':open-metadata-implementation:common-services:metadata-security:metadata-security-server')
- implementation project(':open-metadata-implementation:common-services:metadata-security:metadata-security-apis')
- implementation project(':open-metadata-implementation:common-services:generic-handlers')
- implementation 'org.slf4j:slf4j-api'
- implementation 'org.codehaus.plexus:plexus-utils'
- implementation project(':open-metadata-implementation:access-services:data-engine:data-engine-api')
- implementation project(':open-metadata-implementation:common-services:multi-tenant')
- implementation project(':open-metadata-implementation:common-services:repository-handler')
- implementation project(':open-metadata-implementation:frameworks:open-metadata-framework')
- implementation project(':open-metadata-implementation:frameworks:open-connector-framework')
- implementation project(':open-metadata-implementation:frameworks:governance-action-framework')
- implementation project(':open-metadata-implementation:common-services:ffdc-services')
- implementation project(':open-metadata-implementation:framework-services:ocf-metadata-management:ocf-metadata-handlers')
- implementation project(':open-metadata-implementation:frameworks:audit-log-framework')
- implementation 'org.apache.commons:commons-collections4'
- implementation 'org.springframework:spring-web'
- implementation 'com.fasterxml.jackson.core:jackson-databind'
- implementation 'com.fasterxml.jackson.core:jackson-core'
- implementation 'org.apache.commons:commons-lang3'
- testImplementation 'org.testng:testng'
- testImplementation 'org.mockito:mockito-junit-jupiter'
- testImplementation 'org.junit.jupiter:junit-jupiter-api'
- testImplementation 'org.mockito:mockito-core'
- implementation project(':open-metadata-implementation:frameworks:audit-log-framework')
- implementation project(':open-metadata-implementation:framework-services:ocf-metadata-management:ocf-metadata-api')
- implementation project(':open-metadata-implementation:access-services:data-engine:data-engine-topic-connectors')
-}
-
-description = 'Data Engine OMAS Server-side'
-
-java {
- withJavadocJar()
-}
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/configuration/README.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/configuration/README.md
deleted file mode 100644
index 559bd0f23fa..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/configuration/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-# Configuring the Data Engine OMAS
-
-
-* [Configuring the Open Metadata Access Services](https://egeria-project.org/guides/admin/servers/configuring-the-access-services)
-* [Configuring the Egeria IBM Connectors](https://github.com/odpi/egeria-connector-ibm-information-server)
-* [Configuring the Open Metadata Archives that are loaded on Server Startup](https://egeria-project.org/guides/admin/servers/configuring-the-startup-archives) - use to load the connector types archive
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/add-data-flows.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/add-data-flows.md
deleted file mode 100644
index 3e0baecd47e..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/add-data-flows.md
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
-# Add data flows
-
-Add DataFlows between any Referenceable, based on the qualified names of existing entities.
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-process_endpoints.postman_collection.json)
-
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/data-flows
-
-{
- "dataFlows": [
- {
- "dataSupplier": "home/files/names.csv::Id::0",
- "dataConsumer": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Id"
- },
- {
- "dataSupplier": "home/files/names.csv::First::1",
- "dataConsumer": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=First"
- },
- {
- "dataSupplier": "home/files/names.csv::Last::2",
- "dataConsumer": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Last"
- },
- {
- "dataSupplier": "home/files/names.csv::Location::3",
- "dataConsumer": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Location"
- },
- {
- "dataSupplier": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Id",
- "dataConsumer": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=EMPID"
- },
- {
- "dataSupplier": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=First",
- "dataConsumer": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=FNAME"
- },
- {
- "dataSupplier": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Last",
- "dataConsumer": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=LNAME"
- },
- {
- "dataSupplier": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Location",
- "dataConsumer": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=LOCID"
- },
- {
- "dataSupplier": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=EMPID",
- "dataConsumer": "home/files/emplname.csv::EMPID::0"
- },
- {
- "dataSupplier": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=FNAME",
- "dataConsumer": "home/files/emplname.csv::FNAME::1"
- },
- {
- "dataSupplier": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=LNAME",
- "dataConsumer": "home/files/emplname.csv::LNAME::2"
- },
- {
- "dataSupplier": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=LOCID",
- "dataConsumer": "home/files/emplname.csv::LOCID::3"
- }
- ],
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before adding data flows
-`VoidReponse` with status and error message if failing.
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-data-file.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-data-file.md
deleted file mode 100644
index 714ad6ff4c3..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-data-file.md
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-# Create data file
-
-Create a data file, with the associated schema, columns, folder hierarchy and a connection. The schema is generated
-automatically, the columns according to the payload, the folder structure is based on the value of file.pathName and
-the connection, which also includes an endpoint, is based on the value of optional fields file.protocol and
-file.networkAddress. A connector type is linked to the connection indicating which implementation the connection uses.
-By default the connector type is a OCF one and it's chosen based on the file type. The data file can also be marked as incomplete,
-which means that it is missing data to be completely described.
-
-A csv file can be created by changing the value of field file.type from "DataFile" into "CSVFile"
-
-More examples with all available properties for a data file can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/data-files
-
-{
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform",
- "file" :{
- "type" : "DataFile",
- "qualifiedName" : "(file)=DATAFILE.DAT",
- "displayName" : "dataFile.dat",
- "incomplete" : false,
- "pathName" : "/home/files/dataFile.dat",
- "protocol" : "ftp",
- "networkAddress" : "localhost",
- "columns" : [
- {
- "qualifiedName" : "(file)=DATAFILE.DAT::(column)=COLUMN-A",
- "displayName" : "column-a"
- },
- {
- "qualifiedName" : "(file)=DATAFILE.DAT::(column)=COLUMN-B",
- "displayName" : "column-b"
- }
- ]
- }
-}
-```
-
-`externalSourceName` - qualifiedName of the external data engine tool.
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before creating any process
-`GUIDResponse` - response containing the data file GUID, with status and error message if failing
-`type` - type of file to be created, either a DataFile or a CSVFile
-`pathName` - file system location of the data file
-`protocol` - used when creating the connection, endpoint and the relationship to the proper connector type
-`networkAddress` - used to create connection, endpoint and the relationship to the proper connector type
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-database-schema.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-database-schema.md
deleted file mode 100644
index 73d12aa7d91..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-database-schema.md
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-# Create database schema
-
-Create a database schema, linking it to a given database, if any is provided. The database schema can also be marked as incomplete,
-which means that it is missing data to be completely described, like the database to which it is linked.
-
-More examples with all available properties for a database can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/database-schemas
-
-{
- "databaseQualifiedName": "(host)=HOST::(database)=MINIMAL",
- "databaseSchema": {
- "qualifiedName": "(host)=HOST::(database)=MINIMAL::(database_schema)=DB2INST1",
- "displayName": "DB2INST1",
- "description": "DB2INST1 database schema description",
- "owner": "Administrator IIS",
- "ownerType": "USER_ID",
- "zoneMembership": [
- "default"
- ]
- },
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform",
- "incomplete": false
-}
-```
-
-`databaseQualifiedName` - name of the database to which the database schema will be linked
-`externalSourceName` - qualifiedName of the external data engine tool.
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before creating any process or entity
-`incomplete` - determines if the database schema has all needed information to be described. If the value is `true`,
-then the database schema is not connected to a database
-
-`GUIDResponse` - response containing the database GUID, with status and error message if failing
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-database.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-database.md
deleted file mode 100644
index a95a757342a..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-database.md
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-# Create database
-
-Create a database and all the entities inside it, if any. These entities are a database schema and relational tables.
-If provided, the fields protocol and networkAddress will trigger the creation of a connection, an endpoint and a relationship
-to a proper connector type. A connector type is linked to the connection indicating which implementation the connection uses.
-By default, the connector type is a OCF one, but for the moment there is no current implementation for it.
-This means none of these three entities will be created (connection, connector type, endpoint).
-
-More examples with all available properties for a database can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/databases
-
-{
- "database": {
- "qualifiedName": "(host)=HOST::(database)=MINIMAL-basic",
- "displayName": "MINIMAL-basic",
- "protocol" : "ftp",
- "networkAddress" : "localhost",
- "schema": {
- "qualifiedName": "(host)=HOST::(database)=MINIMAL-basic::(database_schema)=DB2INST1",
- "displayName": "DB2INST1"
- }
- },
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-
-`externalSourceName` - qualifiedName of the external data engine tool.
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before creating any process
-`GUIDResponse` - response containing the database GUID, with status and error message if failing
-`protocol` - used to create connection, endpoint and the relationship to the proper connector type
-`networkAddress` - used to create connection, endpoint and the relationship to the proper connector type
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-event-type.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-event-type.md
deleted file mode 100644
index 32d7b65ae29..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-event-type.md
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-# Create an event type
-
-Create an event type, with the associated event schema attributes.
-More examples with all available properties for an event type can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-topics-lineage_examples.postman_collection.json)
-
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/event-types
-
-{
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform",
- "topicQualifiedName": "(topic)=test-topic",
- "eventType": {
- "qualifiedName": "(topic)=test-topic::(eventType)=test-event",
- "displayName": "test-event",
- "eventSchemaAttributes": [
- {
- "qualifiedName": "(topic)=test-topic::(eventType)=test-event::(eventAttribute)=event-attribute",
- "displayName": "event-attribute"
- }
- ]
- }
-}
-```
-
-`externalSourceName` - qualifiedName of the external data engine tool.
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before creating any process
-`GUIDResponse` - response containing the topic GUID, with status and error message if failing
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-port-implementation.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-port-implementation.md
deleted file mode 100644
index 971382190b7..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-port-implementation.md
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-# Create port implementation
-
-Create a PortImplementation, with associated SchemaType, PortSchema and ProcessPort relationships.
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-process_endpoints.postman_collection.json)
-
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/port-implementations
-
-{
- "processQualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns",
- "portImplementation": {
- "displayName": "NamesFileInputPort",
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputPort",
- "updateSemantic": "REPLACE",
- "type": "INPUT_PORT",
- "schema": {
- "displayName": "NamesFileInputSchema",
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema",
- "author": "Platform User",
- "columns": [
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Last",
- "displayName": "Last",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 0,
- "dataType": "VARCHAR"
- },
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=First",
- "displayName": "First",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 1,
- "dataType": "VARCHAR"
- },
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Id",
- "displayName": "Id",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 2,
- "dataType": "INTEGER"
- },
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Location",
- "displayName": "Location",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 3,
- "dataType": "INTEGER"
- }
- ]
- }
- },
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-
-`externalSourceName` - qualifiedName of the external data engine tool.
-`processQualifiedName` - qualifiedName of the process that the port will be attached to.
-
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before creating any port.
-`GUIDResponse` - response containing the port guid, with status and error message if failing.
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-process.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-process.md
deleted file mode 100644
index 04a6567fc25..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-process.md
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
-
-# Create a process
-
-Create a Process, with port implementations.
-For each port, it creates the associated schema type and columns.
-
-Check [create-port-implementation](create-port-implementation.md)
-and [create-schema-types](create-schema-type.md) for examples of the more granular payloads.
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-process_endpoints.postman_collection.json)
-
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/processes
-
-{
- "process":
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns",
- "displayName": "CopyColumns",
- "name": "CopyColumns",
- "description": "CopyColumns is (sub)process that describes the low level implementation activities performed by a platform or tool.",
- "owner": "Platform User",
- "portImplementations": [
- {
- "displayName": "NamesFileInputPort",
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputPort",
- "updateSemantic": "REPLACE",
- "type": "INPUT_PORT",
- "schema": {
- "displayName": "NamesFileInputSchema",
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema",
- "author": "Platform User",
- "columns": [
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Last",
- "displayName": "Last",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 0,
- "dataType": "VARCHAR"
- },
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=First",
- "displayName": "First",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 1,
- "dataType": "VARCHAR"
- },
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Id",
- "displayName": "Id",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 2,
- "dataType": "INTEGER"
- },
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=NamesFileInputSchema::(column)=Location",
- "displayName": "Location",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 3,
- "dataType": "INTEGER"
- }
- ]
- }
- },
- {
- "displayName": "EmplnameFileOutputPort",
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputPort",
- "updateSemantic": "REPLACE",
- "type": "OUTPUT_PORT",
- "schema": {
- "displayName": "EmplnameFileOutputSchema",
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema",
- "author": "Platform User",
- "columns": [
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=EMPID",
- "displayName": "EMPID",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 0
- },
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=FNAME",
- "displayName": "FNAME",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 0
- },
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=LOCID",
- "displayName": "LOCID",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 0
- },
- {
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns::(port)=EmplnameFileOutputSchema::(column)=LNAME",
- "displayName": "LNAME",
- "minCardinality": 0,
- "maxCardinality": 0,
- "allowsDuplicateValues": false,
- "orderedValues": false,
- "position": 0
- }
- ]
- }
- }
- ],
- "updateSemantic": "REPLACE"
- }
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-
-`externalSourceName` - qualifiedName of the external data engine tool.
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before creating any process.
-`GUIDResponse` - response containing the unique identifiers of the created process, with status and error message if failing.
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-relational-table.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-relational-table.md
deleted file mode 100644
index b1220f78847..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-relational-table.md
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-# Create relational table
-
-Create a relational table, with the associated schema type and relational columns, and attach it to a database.
-
-More examples with all available properties for a table can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/relational-tables
-
-{
- "databaseQualifiedName": "(host)=HOST::(database)=MINIMAL-basic",
- "table": {
- "qualifiedName": "(host)=HOST::(database)=MINIMAL-basic::(database_schema)=DB2INST1::(database_table)=EMPLNAME-basic",
- "displayName": "EMPLNAME-basic",
- "columns": [
- {
- "qualifiedName": "(host)=HOST::(database)=MINIMAL-basic::(database_schema)=DB2INST1::(database_table)=EMPLNAME-basic::(database_column)=EMPID",
- "displayName": "EMPID",
- "dataType": "INTEGER"
- },
- {
- "qualifiedName": "(host)=HOST::(database)=MINIMAL-basic::(database_schema)=DB2INST1::(database_table)=EMPLNAME-basic::(database_column)=FNAME",
- "displayName": "FNAME",
- "dataType": "STRING"
- },
- {
- "qualifiedName": "(host)=HOST::(database)=MINIMAL-basic::(database_schema)=DB2INST1::(database_table)=EMPLNAME-basic::(database_column)=LOCID",
- "displayName": "LOCID",
- "dataType": "INTEGER"
- },
- {
- "qualifiedName": "(host)=HOST::(database)=MINIMAL-basic::(database_schema)=DB2INST1::(database_table)=EMPLNAME-basic::(database_column)=SURNAME",
- "displayName": "SURNAME",
- "dataType": "STRING"
- }
- ]
- },
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-
-`databaseQualifiedName` - qualifiedName of the database.
-`externalSourceName` - qualifiedName of the external data engine tool.
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before creating any process.
-`GUIDResponse` - response containing the database GUID, with status and error message if failing.
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-schema-type.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-schema-type.md
deleted file mode 100644
index d2c794a292b..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-schema-type.md
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-# Create schema type
-
-Create a SchemaType with SchemaAttributes and relationships
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-process_endpoints.postman_collection.json)
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/schema-types/
-
-{
- "schema": {
- "qualifiedName": "extern:fr:6c18e03b7e4f44089462e858538bd5d2",
- "displayName": "EMPLOYEE",
- "columns": [
- {
- "qualifiedName": "source-schema-attribute-qualified-name",
- "displayName": "DEPT",
- "elementPosition": 0
- },
- {
- "qualifiedName": "(host_(engine))=engine::(data_connection)=EMPLOYEE_extern:fr:16feb06d8fde48eca2851815b6de99dd::(database_schema)=public::(database_table)=EMPLOYEE::(database_column)=EMPSTATUS",
- "displayName": "EMPSTATUS",
- "elementPosition": 0
- },
- {
- "qualifiedName": "(host_(engine))=engine::(data_connection)=EMPLOYEE_extern:fr:16feb06d8fde48eca2851815b6de99dd::(database_schema)=public::(database_table)=EMPLOYEE::(database_column)=FNAME",
- "displayName": "FNAME",
- "elementPosition": 0
- }
- ]
- },
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before creating any schema type.
-`GUIDResponse` - response containing the schema type guid, with status and error message if failing.
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-topic.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-topic.md
deleted file mode 100644
index de8071748f8..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/create-topic.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-# Create topic
-
-Create a topic, with the associated event types. For each event type it creates the associated event schema attributes
-More examples with all available properties for a topic can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-topics-lineage_examples.postman_collection.json)
-
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/topics
-
-{
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform",
- "topic": {
- "qualifiedName": "(topic)=test-topic",
- "displayName": "test-topic",
- "eventTypes": [
- {
- "qualifiedName": "(topic)=test-topic::(eventType)=test-event",
- "displayName": "test-event",
- "eventSchemaAttributes": [
- {
- "qualifiedName": "(topic)=test-topic::(eventType)=test-event::(eventAttribute)=event-attribute",
- "displayName": "event-attribute"
- }
- ]
- }
- ]
- }
-}
-```
-
-`externalSourceName` - qualifiedName of the external data engine tool.
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before creating any process
-`GUIDResponse` - response containing the topic GUID, with status and error message if failing
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-connection.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-connection.md
deleted file mode 100644
index 1766d5c1e6d..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-connection.md
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-# Delete connection
-
-Delete a connection
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/connections/
-
-{
- "guid": "connectionGUID",
- "qualifiedName": "Connection::ftp::localhost",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the connection to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the connection to be deleted
-Note that you must provide either the qualifiedName, or the guid of the connection
-`VoidRespone` - void response with status and error message if failing
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-data-file.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-data-file.md
deleted file mode 100644
index b3dd7d18510..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-data-file.md
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-# Delete data file
-
-Delete a DataFile with columns and relationships
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/data-files/
-
-{
- "guid": "dataFileGUID",
- "qualifiedName": "(host)=HOST::(data_file_folder)=/::(data_file_folder)=data::(data_file_folder)=files::(data_file_folder)=minimal::(data_file)=names.csv",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the data file to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the data files to be deleted
-Note that you must provide either the qualifiedName, or the guid of the data file
-`VoidRespone` - void response with status and error message if failing
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-database-schema.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-database-schema.md
deleted file mode 100644
index a6b1e93d9d1..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-database-schema.md
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-# Delete database schema
-
-Delete a Database Schema
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/database-schemas/
-
-{
- "guid": "databaseGUID",
- "qualifiedName": "(host)=HOST::(database)=MINIMAL::(database_schema)=DB2INST1",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the database schema to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the database schema to be deleted
-Note that you must provide either the qualifiedName, or the guid of the database schema
-`VoidRespone` - void response with status and error message if failing
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-database.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-database.md
deleted file mode 100644
index d61e3511a9e..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-database.md
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-# Delete database
-
-Delete a Database with tables
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/databases/
-
-{
- "guid": "databaseGUID",
- "qualifiedName": "(host)=HOST::(database)=MINIMAL",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the database to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the database to be deleted
-Note that you must provide either the qualifiedName, or the guid of the database
-`VoidRespone` - void response with status and error message if failing
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-endpoint.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-endpoint.md
deleted file mode 100644
index 011ebba70a1..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-endpoint.md
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-# Delete endpoint
-
-Delete an endpoint
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/endpoints/
-
-{
- "guid": "endpointGUID",
- "qualifiedName": "Endpoint::ftp::localhost",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the endpoint to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the endpoint to be deleted
-Note that you must provide either the qualifiedName, or the guid of the endpoint
-`VoidRespone` - void response with status and error message if failing
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-event-type.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-event-type.md
deleted file mode 100644
index dab1cef4af2..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-event-type.md
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-# Delete event type
-
-Delete an Event Type with event schema attributes
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-topics-lineage_examples.postman_collection.json)
-
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/event-types/
-
-{
- "guid": "eventTypeGUID",
- "qualifiedName": "(topic)=test-topic::(eventType)=test-event",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the event type to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the event type to be deleted
-Note that you must provide either the qualifiedName, or the guid of the event type
-`VoidRespone` - void response with status and error message if failing
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-port-implementation.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-port-implementation.md
deleted file mode 100644
index df7a04105d3..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-port-implementation.md
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-# Delete a port implementation
-
-Delete a Port Implementation, with the associated schema type and columns.
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-process_endpoints.postman_collection.json)
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/port-implementations
-
-{
- "guid": "portImplementationGUID",
- "qualifiedName": "portImplementationQualifiedName",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the port implementation to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the port implementation to be deleted
-Note that you must provide either the qualifiedName or the guid of the port implementation
-`VoidRespone` - void response with status and error message if failing
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-process.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-process.md
deleted file mode 100644
index e8272566dc8..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-process.md
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-# Delete processes
-
-Delete a Process, with the associated port implementations and data flows.
-For each port, it will delete the associated schema type and columns.
-
-Check [delete-port-implementation](delete-port-implementation.md)
-and [delete-schema-types](create-schema-type.md) for examples of the more granular payloads.
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-process_endpoints.postman_collection.json)
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/processes
-
-{
- "qualifiedName": "(process)=CopyColumsFlow::(process)=CopyColumns",
- "guid": "processGUID",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the process to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the process to be deleted
-Note that you must provide either the qualifiedName or the guid of the port implementation
-`VoidRespone` - void response with status and error message if failing
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-relational-table.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-relational-table.md
deleted file mode 100644
index 783679a2b2d..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-relational-table.md
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-# Delete relational table
-
-Delete a RelationalTable with columns and relationships
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/relational-tables/
-
-{
- "guid": "schemaGUID",
- "qualifiedName": "(host)=HOST::(database)=MINIMAL::(database_schema)=DB2INST1::(database_table)=EMPLNAME",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the schema type to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the relational table to be deleted
-Note that you must provide either the qualifiedNam,e or the guid of the relational table
-`VoidRespone` - void response with status and error message if failing
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-schema-type.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-schema-type.md
deleted file mode 100644
index c447153ccb4..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-schema-type.md
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-# Delete schema type
-
-Delete a SchemaType with columns and relationships
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-process_endpoints.postman_collection.json)
-
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/schema-types/
-
-{
- "guid": "schemaGUID",
- "qualifiedName": "schemaQualifiedName",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the schema type to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the schema type to be deleted
-Note that you must provide either the qualifiedName, or the guid of the schema type
-`VoidRespone` - void response with status and error message if failing
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-topic.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-topic.md
deleted file mode 100644
index 131396c3eb9..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/delete-topic.md
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-# Delete topic
-
-Delete a Topic with event types
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-topics-lineage_examples.postman_collection.json)
-
-```
-DELETE {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/topics/
-
-{
- "guid": "topicGUID",
- "qualifiedName": "(topic)=test-topic",
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform"
-}
-```
-`externalSourceName` - qualifiedName of the external data engine tool.
-`guid` - optional property describing the unique identifier of the topic to be deleted
-`qualifiedName` - optional property describing the qualifiedName of the topic to be deleted
-Note that you must provide either the qualifiedName, or the guid of the topic
-`VoidRespone` - void response with status and error message if failing
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/find-entity.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/find-entity.md
deleted file mode 100644
index f02d242b021..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/find-entity.md
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-# Find entity
-
-Find a Data Engine related entity, based on provided criteria
-
-More examples on finding an entity can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-asset_endpoints.postman_collection.json)
-
-
-```
-POST {{base-url}}/servers/{{server-id}}/open-metadata/access-services/data-engine/users/{{user-id}}/find
-{
- "identifiers" : {
- "qualifiedName": "(file)=CSVFILE.CSV"
- },
- "externalSourceName": "(organization)=Company::(project)=ExternalDataPlatform",
- "type": "Referenceable"
-}
-```
-
-`qualifiedName` - entity identifier (mandatory)
-`externalSourceName` - qualifiedName of the external data engine tool (optional)
- Note that you need to register the data engine tool with [register-data-engine-tool](register-data-engine-tool.md)
- before creating any process
-`type` - type of file to be search (optional - defaults to Referenceable)
-`GUIDListResponse` - response containing list of GUIDs, that match find criteria
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/lookup-registration.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/lookup-registration.md
deleted file mode 100644
index 734826aea8b..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/lookup-registration.md
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-# Lookup registration
-
-Lookup registration submitted by an external tool.
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-process_endpoints.postman_collection.json)
-
-```
-GET {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/software-server-capabilities/{engineQualifiedName}
-```
-
-`GUIDResponse` - response containing the external tool guid, with status and error message if failing.
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
-
-
-
-
-
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/register-data-engine-tool.md b/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/register-data-engine-tool.md
deleted file mode 100644
index 311cb35e927..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/docs/scenarios/register-data-engine-tool.md
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-# Register tool
-
-Register an external tool.
-
-More examples can be found in the
-[sample collection](../../../docs/samples/collections/DataEngine-process_endpoints.postman_collection.json)
-
-```
-POST {serverURLRoot}/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}/software-server-capabilities
-
-{
- "dataEngine":
- {
- "qualifiedName": "qualifiedName",
- "displayName": "DataStage",
- "description": "Data Stage",
- "engineType": "DataEngine",
- "engineVersion": "1",
- "enginePatchLevel": "1",
- "vendor": "ibm",
- "version": "123",
- "source": "source"
- }
-}
-```
-
-`GUIDResponse` - response containing the external tool guid, with status and error message if failing.
-
-
-----
-License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
-Copyright Contributors to the ODPi Egeria project.
\ No newline at end of file
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineAdmin.java b/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineAdmin.java
deleted file mode 100644
index b8adffb98cd..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineAdmin.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.server.admin;
-
-import org.odpi.openmetadata.accessservices.dataengine.connectors.intopic.DataEngineInTopicClientProvider;
-import org.odpi.openmetadata.accessservices.dataengine.ffdc.DataEngineAuditCode;
-import org.odpi.openmetadata.accessservices.dataengine.ffdc.DataEngineErrorCode;
-import org.odpi.openmetadata.accessservices.dataengine.server.listeners.DataEngineInTopicListener;
-import org.odpi.openmetadata.accessservices.dataengine.server.processors.DataEngineEventProcessor;
-import org.odpi.openmetadata.adminservices.configuration.properties.AccessServiceConfig;
-import org.odpi.openmetadata.adminservices.registration.AccessServiceAdmin;
-import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
-import org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException;
-import org.odpi.openmetadata.frameworks.auditlog.AuditLog;
-import org.odpi.openmetadata.frameworks.connectors.ConnectorBroker;
-import org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection;
-import org.odpi.openmetadata.repositoryservices.auditlog.OMRSAuditingComponent;
-import org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicConnector;
-import org.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicConnector;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.util.List;
-
-/**
- * DataEngineAdmin is the class that is called by the OMAG Server to initialize and terminate
- * the Data Engine OMAS. The initialization call provides this OMAS with resources from the
- * Open Metadata Repository Services.
- */
-public class DataEngineAdmin extends AccessServiceAdmin {
-
- private AuditLog auditLog;
- private DataEngineServicesInstance instance;
- private String serverName;
-
- private static final Logger log = LoggerFactory.getLogger(DataEngineAdmin.class);
-
- /**
- * Initialize the access service.
- *
- * @param accessServiceConfig - specific configuration properties for this access service.
- * @param enterpriseOMRSTopicConnector - connector for receiving OMRS Events from the cohorts
- * @param repositoryConnector - connector for querying the cohort repositories
- * @param auditLog - audit log component for logging messages.
- * @param serverUserName - user id to use on OMRS calls where there is no end user.
- */
- @Override
- public void initialize(AccessServiceConfig accessServiceConfig, OMRSTopicConnector enterpriseOMRSTopicConnector,
- OMRSRepositoryConnector repositoryConnector, AuditLog auditLog, String serverUserName) throws
- OMAGConfigurationErrorException {
- final String actionDescription = "initialize";
-
-
- auditLog.logMessage(actionDescription, DataEngineAuditCode.SERVICE_INITIALIZING.getMessageDefinition());
- try {
- this.auditLog = auditLog;
-
- List supportedZones = this.extractSupportedZones(accessServiceConfig.getAccessServiceOptions(),
- accessServiceConfig.getAccessServiceName(), auditLog);
- List defaultZones = this.extractDefaultZones(accessServiceConfig.getAccessServiceOptions(),
- accessServiceConfig.getAccessServiceName(), auditLog);
-
- instance = new DataEngineServicesInstance(repositoryConnector, supportedZones, defaultZones, auditLog, serverUserName,
- repositoryConnector.getMaxPageSize(), accessServiceConfig.getAccessServiceInTopic());
-
- serverName = instance.getServerName();
-
- if (accessServiceConfig.getAccessServiceInTopic() != null) {
- DataEngineEventProcessor dataEngineEventProcessor = new DataEngineEventProcessor(instance, auditLog);
- DataEngineInTopicListener dataEngineInTopicListener = new DataEngineInTopicListener(auditLog, dataEngineEventProcessor);
-
- OpenMetadataTopicConnector dataEngineInTopicConnector = initializeDataEngineTopicConnector(
- accessServiceConfig.getAccessServiceInTopic()); //TODO: Check if this should be moved / done form AccessServicesAdmin (?)
- if (dataEngineInTopicConnector != null) {
- dataEngineInTopicConnector.registerListener(dataEngineInTopicListener);
- dataEngineInTopicConnector.start();
- }
- }
-
- auditLog.logMessage(actionDescription, DataEngineAuditCode.SERVICE_INITIALIZED.getMessageDefinition(serverName));
- } catch (OMAGConfigurationErrorException e) {
- throw e;
- } catch (Exception error) {
- auditLog.logException(actionDescription, DataEngineAuditCode.SERVICE_INSTANCE_FAILURE.getMessageDefinition(error.getMessage(),
- serverName), error);
-
- super.throwUnexpectedInitializationException(actionDescription, AccessServiceDescription.DATA_ENGINE_OMAS.getAccessServiceFullName(),
- error);
- }
- }
-
- /**
- * Shutdown the access service.
- */
- @Override
- public void shutdown() {
-
- if (instance != null) {
- instance.shutdown();
- }
-
- if (auditLog != null) {
- final String actionDescription = "shutdown";
-
- auditLog.logMessage(actionDescription, DataEngineAuditCode.SERVICE_SHUTDOWN.getMessageDefinition(serverName));
- }
- }
-
- /**
- * Returns the connector created from topic connection properties
- *
- * @param topicConnection properties of the topic connection
- *
- * @return the connector created based on the topic connection properties
- */
- private OpenMetadataTopicConnector getTopicConnector(Connection topicConnection) throws
- OMAGConfigurationErrorException {
- try {
- ConnectorBroker connectorBroker = new ConnectorBroker(auditLog);
-
- OpenMetadataTopicConnector topicConnector = (OpenMetadataTopicConnector) connectorBroker.getConnector(topicConnection);
-
- topicConnector.setAuditLog(auditLog.createNewAuditLog(OMRSAuditingComponent.OPEN_METADATA_TOPIC_CONNECTOR));
-
- return topicConnector;
- } catch (Exception error) {
- String methodName = "getTopicConnector";
-
- OMAGConfigurationErrorException e = new OMAGConfigurationErrorException(DataEngineErrorCode.NULL_TOPIC_CONNECTOR.getMessageDefinition(),
- this.getClass().getName(), methodName);
- log.error("Exception in returning the topic connector for Data Engine: ", error);
-
- throw e;
- }
- }
-
- /**
- * Returns the topic created based on connection properties
- *
- * @param topicConnection properties of the topic
- *
- * @return the topic created based on the connection properties
- */
- private OpenMetadataTopicConnector initializeDataEngineTopicConnector(Connection topicConnection) throws OMAGConfigurationErrorException {
- final String actionDescription = "initialize";
- if (topicConnection != null) {
- try {
- return getTopicConnector(topicConnection);
- } catch (Exception e) {
- auditLog.logException(actionDescription, DataEngineAuditCode.ERROR_INITIALIZING_TOPIC_CONNECTION.getMessageDefinition(e.getMessage(),
- serverName), e);
- throw e;
- }
-
- }
- return null;
- }
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineInstanceHandler.java b/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineInstanceHandler.java
deleted file mode 100644
index 6de1b9f7780..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineInstanceHandler.java
+++ /dev/null
@@ -1,347 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.server.admin;
-
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineCollectionHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineCommonHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineConnectionAndEndpointHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineDataFileHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineEventTypeHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineFindHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineFolderHierarchyHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEnginePortHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineProcessHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineRegistrationHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineRelationalDataHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineSchemaTypeHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineTopicHandler;
-import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
-import org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstanceHandler;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
-import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
-import org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection;
-
-/**
- * DataEngineInstanceHandler retrieves information from the instance map for the access service instances.
- * The instance map is thread-safe. Instances are added and removed by the DataEngineAdmin class.
- */
-public class DataEngineInstanceHandler extends OMASServiceInstanceHandler {
-
- /**
- * Default constructor registers the access service
- */
- public DataEngineInstanceHandler() {
- super(AccessServiceDescription.DATA_ENGINE_OMAS.getAccessServiceName() + " OMAS");
-
- DataEngineRegistration.registerAccessService();
- }
-
- /**
- * Retrieve the process handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineProcessHandler getProcessHandler(String userId, String serverName, String serviceOperationName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId,
- serverName, serviceOperationName);
-
- return instance.getProcessHandler();
- }
-
-
- /**
- * Retrieve the collection handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineCollectionHandler getCollectionHandler(String userId, String serverName, String serviceOperationName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId, serverName, serviceOperationName);
-
- return instance.getDataEngineCollectionHandler();
- }
-
- /**
- * Retrieve the registration handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of called operation
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineRegistrationHandler getRegistrationHandler(String userId, String serverName, String serviceOperationName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId, serverName, serviceOperationName);
-
- return instance.getDataEngineRegistrationHandler();
- }
-
- /**
- * Retrieve the common handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of called operation
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineCommonHandler getCommonHandler(String userId, String serverName, String serviceOperationName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId, serverName, serviceOperationName);
-
- return instance.getDataEngineCommonHandler();
- }
-
- /**
- * Retrieve the data engine schema type handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineSchemaTypeHandler getDataEngineSchemaTypeHandler(String userId, String serverName, String serviceOperationName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId, serverName, serviceOperationName);
-
- return instance.getDataEngineSchemaTypeHandler();
- }
-
- /**
- * Retrieve the port handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEnginePortHandler getPortHandler(String userId, String serverName, String serviceOperationName) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId, serverName, serviceOperationName);
-
- return instance.getDataEnginePortHandler();
- }
-
- /**
- * Retrieve the port handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineRelationalDataHandler getRelationalDataHandler(String userId, String serverName, String serviceOperationName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId, serverName, serviceOperationName);
-
- return instance.getDataEngineRelationalDataHandler();
- }
-
- /**
- * Return the connection used in the client to create a connector to access events to the input topic.
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return connection object for client
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public Connection getInTopicConnection(String userId, String serverName, String serviceOperationName) throws InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId, serverName, serviceOperationName);
-
- if (instance != null) {
- return instance.getInTopicClientConnection(serverName);
- }
-
- return null;
- }
-
- /**
- * Retrieve the DataFile handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineDataFileHandler getDataFileHandler(String userId, String serverName, String serviceOperationName)
- throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException {
-
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId,
- serverName, serviceOperationName);
- return instance.getDataEngineDataFileHandler();
- }
-
- /**
- * Retrieve the folder hierarchy handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineFolderHierarchyHandler getFolderHierarchyHandler(String userId, String serverName, String serviceOperationName)
- throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException {
-
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId,
- serverName, serviceOperationName);
- return instance.getDataEngineFolderHierarchyHandler();
- }
-
- /**
- * Retrieve the connection and endpoint handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineConnectionAndEndpointHandler getConnectionAndEndpointHandler(String userId, String serverName, String serviceOperationName)
- throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException {
-
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId,
- serverName, serviceOperationName);
- return instance.getDataEngineConnectionAndEndpointHandler();
- }
-
- /**
- * Retrieve the find handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineFindHandler getFindHandler(String userId, String serverName, String serviceOperationName)
- throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException {
-
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId,
- serverName, serviceOperationName);
- return instance.getDataEngineFindHandler();
- }
-
- /**
- * Retrieve the topic handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineTopicHandler getTopicHandler(String userId, String serverName, String serviceOperationName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId, serverName, serviceOperationName);
- return instance.getDataEngineTopicHandler();
- }
-
- /**
- * Retrieve the event type handler for the access service
- *
- * @param userId calling user
- * @param serverName name of the server tied to the request
- * @param serviceOperationName name of the REST API call (typically the top-level methodName)
- *
- * @return handler for use by the requested instance
- *
- * @throws InvalidParameterException no available instance for the requested server
- * @throws UserNotAuthorizedException user does not have access to the requested server
- * @throws PropertyServerException the service name is not known - indicating a logic error
- */
- public DataEngineEventTypeHandler getEventTypeHandler(String userId, String serverName, String serviceOperationName) throws
- InvalidParameterException,
- UserNotAuthorizedException,
- PropertyServerException {
- DataEngineServicesInstance instance = (DataEngineServicesInstance) super.getServerServiceInstance(userId, serverName, serviceOperationName);
- return instance.getDataEngineEventTypeHandler();
- }
-}
-
-
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineRegistration.java b/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineRegistration.java
deleted file mode 100644
index db4873ff66e..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineRegistration.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.server.admin;
-
-import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceRegistrationEntry;
-import org.odpi.openmetadata.adminservices.registration.OMAGAccessServiceRegistration;
-import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
-import org.odpi.openmetadata.adminservices.configuration.registration.ServiceOperationalStatus;
-
-/**
- * DataEngineRegistration registers the access service with the OMAG Server administration services.
- * This registration must be driven once at server start up. The OMAG Server administration services
- * then use this registration information as confirmation that there is an implementation of this
- * access service in the server and it can be configured and used.
- */
-class DataEngineRegistration {
- private DataEngineRegistration() {
- }
-
- /**
- * Pass information about this access service to the OMAG Server administration services.
- */
- static void registerAccessService() {
- AccessServiceDescription myDescription = AccessServiceDescription.DATA_ENGINE_OMAS;
-
- AccessServiceRegistrationEntry myRegistration = new AccessServiceRegistrationEntry(myDescription,
- ServiceOperationalStatus.ENABLED,
- DataEngineAdmin.class.getName());
-
- OMAGAccessServiceRegistration.registerAccessService(myRegistration);
- }
-}
diff --git a/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineServicesInstance.java b/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineServicesInstance.java
deleted file mode 100644
index b4b20c88ede..00000000000
--- a/open-metadata-implementation/access-services/data-engine/data-engine-server/src/main/java/org/odpi/openmetadata/accessservices/dataengine/server/admin/DataEngineServicesInstance.java
+++ /dev/null
@@ -1,371 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/* Copyright Contributors to the ODPi Egeria project. */
-package org.odpi.openmetadata.accessservices.dataengine.server.admin;
-
-import lombok.AccessLevel;
-import lombok.Getter;
-import org.odpi.openmetadata.accessservices.dataengine.connectors.intopic.DataEngineInTopicClientProvider;
-import org.odpi.openmetadata.accessservices.dataengine.ffdc.DataEngineErrorCode;
-import org.odpi.openmetadata.accessservices.dataengine.model.Attribute;
-import org.odpi.openmetadata.accessservices.dataengine.model.Collection;
-import org.odpi.openmetadata.accessservices.dataengine.model.ConnectorType;
-import org.odpi.openmetadata.accessservices.dataengine.model.DataFile;
-import org.odpi.openmetadata.accessservices.dataengine.model.Database;
-import org.odpi.openmetadata.accessservices.dataengine.model.DatabaseSchema;
-import org.odpi.openmetadata.accessservices.dataengine.model.Endpoint;
-import org.odpi.openmetadata.accessservices.dataengine.model.Engine;
-import org.odpi.openmetadata.accessservices.dataengine.model.EventType;
-import org.odpi.openmetadata.accessservices.dataengine.model.FileFolder;
-import org.odpi.openmetadata.accessservices.dataengine.model.Port;
-import org.odpi.openmetadata.accessservices.dataengine.model.Process;
-import org.odpi.openmetadata.accessservices.dataengine.model.Referenceable;
-import org.odpi.openmetadata.accessservices.dataengine.model.RelationalColumn;
-import org.odpi.openmetadata.accessservices.dataengine.model.RelationalTable;
-import org.odpi.openmetadata.accessservices.dataengine.model.SchemaType;
-import org.odpi.openmetadata.accessservices.dataengine.model.Topic;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.CollectionConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.ConnectionConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.ConnectorTypeConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.DataFileConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.DatabaseColumnConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.DatabaseConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.DatabaseSchemaConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.DatabaseTableConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.EndpointConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.EventTypeConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.FileFolderConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.PortConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.ProcessConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.ReferenceableConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.SchemaAttributeConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.SchemaTypeConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.converters.TopicConverter;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineCollectionHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineCommonHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineConnectionAndEndpointHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineDataFileHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineEventTypeHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineFindHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineFolderHierarchyHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEnginePortHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineProcessHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineRegistrationHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineRelationalDataHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineSchemaAttributeHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineSchemaTypeHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineTopicHandler;
-import org.odpi.openmetadata.accessservices.dataengine.server.service.ClockService;
-import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
-import org.odpi.openmetadata.commonservices.generichandlers.AssetHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.ConnectionHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.ConnectorTypeHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.EndpointHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.EventTypeHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.PortHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.RelationalDataHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.SchemaAttributeHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.SchemaTypeHandler;
-import org.odpi.openmetadata.commonservices.generichandlers.SoftwareCapabilityHandler;
-import org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstance;
-import org.odpi.openmetadata.commonservices.multitenant.ffdc.exceptions.NewInstanceException;
-import org.odpi.openmetadata.frameworks.auditlog.AuditLog;
-import org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection;
-import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector;
-
-import java.time.Clock;
-import java.util.List;
-
-/**
- * DataEngineServicesInstance caches references to OMRS objects for a specific server.
- * It is also responsible for registering itself in the instance map.
- */
-public class DataEngineServicesInstance extends OMASServiceInstance {
-
- private static final AccessServiceDescription description = AccessServiceDescription.DATA_ENGINE_OMAS;
-
- /**
- * -- GETTER --
- * Returns the Data Engine process handler.
- * @return the Data Engine process handler
- */
- @Getter(AccessLevel.PACKAGE)
- private final DataEngineProcessHandler processHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine registration handler.
- * @return the Data Engine registration handler
- */
- @Getter(AccessLevel.PACKAGE)
- private final DataEngineRegistrationHandler dataEngineRegistrationHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine schema type handler.
- * @return the Data Engine schema type handler
- */
- @Getter(AccessLevel.PACKAGE)
- private final DataEngineSchemaTypeHandler dataEngineSchemaTypeHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine collection handler.
- * @return the Data Engine collection handler
- */
- @Getter
- private final DataEngineCollectionHandler dataEngineCollectionHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine port handler.
- * @return the Data Engine port handler
- */
- @Getter(AccessLevel.PACKAGE)
- private final DataEnginePortHandler dataEnginePortHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine relational data handler.
- * @return the Data Engine relational data handler
- */
- @Getter
- private final DataEngineRelationalDataHandler dataEngineRelationalDataHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine file handler.
- * @return the Data Engine file handler
- */
- @Getter
- private final DataEngineDataFileHandler dataEngineDataFileHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine common handler.
- * @return the Data Engine common handler
- */
- @Getter
- private final DataEngineCommonHandler dataEngineCommonHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine folder hierarchy handler.
- * @return the Data Engine folder hierarchy handler
- */
- @Getter
- private final DataEngineFolderHierarchyHandler dataEngineFolderHierarchyHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine connection and endpoint handler.
- * @return the Data Engine connection and endpoint handler
- */
- @Getter
- private final DataEngineConnectionAndEndpointHandler dataEngineConnectionAndEndpointHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine find handler.
- * @return the Data Engine find handler
- */
- @Getter
- private final DataEngineFindHandler dataEngineFindHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine topic handler.
- * @return the Data Engine topic handler
- */
- @Getter(AccessLevel.PACKAGE)
- private final DataEngineTopicHandler dataEngineTopicHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine event type handler.
- * @return the Data Engine event type handler
- */
- @Getter(AccessLevel.PACKAGE)
- private final DataEngineEventTypeHandler dataEngineEventTypeHandler;
-
- /**
- * -- GETTER --
- * Returns the Data Engine schema attribute handler.
- * @return the Data Engine schema attribute handler
- */
- @Getter(AccessLevel.PACKAGE)
- private final DataEngineSchemaAttributeHandler dataEngineSchemaAttributeHandler;
-
- /**
- * Sets up the local repository connector that will service the REST Calls
- *
- * @param repositoryConnector link to the repository responsible for servicing the REST calls
- * @param supportedZones list of zones that DataEngine is allowed to serve Assets from
- * @param defaultZones list of zones that DataEngine sets up in new Asset instances
- * @param auditLog logging destination
- * @param localServerUserId userId used for server initiated actions
- * @param maxPageSize max number of results to return on single request
- *
- * @throws NewInstanceException a problem occurred during initialization
- */
- DataEngineServicesInstance(OMRSRepositoryConnector repositoryConnector, List supportedZones, List defaultZones,
- AuditLog auditLog, String localServerUserId, int maxPageSize, Connection inTopicConnection) throws
- NewInstanceException {
-
-
- super(description.getAccessServiceFullName(), repositoryConnector, supportedZones, defaultZones, null, auditLog,
- localServerUserId, maxPageSize, DataEngineInTopicClientProvider.class.getName(), inTopicConnection,
- null, null);
-
- if (repositoryHandler == null) {
- final String methodName = "new ServiceInstance";
-
- throw new NewInstanceException(DataEngineErrorCode.OMRS_NOT_INITIALIZED.getMessageDefinition(methodName), this.getClass().getName(),
- methodName);
- }
-
- final AssetHandler assetHandler = new AssetHandler<>(new ProcessConverter<>(repositoryHelper, serviceName, serverName),
- Process.class, serviceName, serverName, invalidParameterHandler, repositoryHandler, repositoryHelper, localServerUserId,
- securityVerifier, supportedZones, defaultZones, publishZones, auditLog);
-
- final OpenMetadataAPIGenericHandler collectionOpenMetadataAPIGenericHandler =
- new OpenMetadataAPIGenericHandler<>(new CollectionConverter<>(repositoryHelper, serviceName, serverName), Collection.class,
- serviceName, serverName, invalidParameterHandler, repositoryHandler, repositoryHelper, localServerUserId,
- securityVerifier, supportedZones, defaultZones, publishZones, auditLog);
-
- final SchemaTypeHandler schemaTypeHandler = new SchemaTypeHandler<>(new SchemaTypeConverter<>(repositoryHelper, serviceName,
- serverName), SchemaType.class, serviceName, serverName, invalidParameterHandler, repositoryHandler, repositoryHelper,
- localServerUserId, securityVerifier, supportedZones, defaultZones, publishZones, auditLog);
-
- final SchemaAttributeHandler schemaAttributeHandler =
- new SchemaAttributeHandler<>(new SchemaAttributeConverter<>(repositoryHelper, serviceName, serverName),
- Attribute.class, new SchemaTypeConverter<>(repositoryHelper, serviceName, serverName),
- SchemaType.class, serviceName, serverName, invalidParameterHandler, repositoryHandler, repositoryHelper,
- localServerUserId, securityVerifier, supportedZones, defaultZones, publishZones, auditLog);
-
- final RelationalDataHandler relationalDataHandler =
- new RelationalDataHandler<>(new DatabaseConverter<>(repositoryHelper, serviceName, serverName),
- Database.class,
- new DatabaseSchemaConverter<>(repositoryHelper, serviceName, serverName),
- DatabaseSchema.class,
- new DatabaseTableConverter<>(repositoryHelper, serviceName, serverName),
- RelationalTable.class,
- new DatabaseTableConverter<>(repositoryHelper, serviceName, serverName),
- RelationalTable.class,
- new DatabaseColumnConverter<>(repositoryHelper, serviceName, serverName),
- RelationalColumn.class,
- new SchemaTypeConverter<>(repositoryHelper, serviceName, serverName),
- SchemaType.class,
- serviceName,
- serverName,
- invalidParameterHandler,
- repositoryHandler,
- repositoryHelper,
- localServerUserId,
- securityVerifier,
- supportedZones,
- defaultZones,
- publishZones,
- auditLog);
-
- AssetHandler databaseSchemaAssetHandler = new AssetHandler<>(new DatabaseSchemaConverter<>(repositoryHelper, serviceName,serverName),
- DatabaseSchema.class,
- serviceName,
- serverName,
- invalidParameterHandler,
- repositoryHandler,
- repositoryHelper,
- localServerUserId,
- securityVerifier,
- supportedZones,
- defaultZones,
- publishZones,
- auditLog);
-
- final PortHandler portHandler = new PortHandler<>(new PortConverter<>(repositoryHelper, serviceName, serverName), Port.class,
- serviceName, serverName, invalidParameterHandler, repositoryHandler, repositoryHelper, localServerUserId, securityVerifier,
- supportedZones, defaultZones, publishZones, auditLog);
-
- final SoftwareCapabilityHandler softwareServerCapabilityHandler =
- new SoftwareCapabilityHandler<>(new DatabaseTableConverter<>(repositoryHelper, serviceName, serverName),
- Engine.class, serviceName, serverName, invalidParameterHandler, repositoryHandler,
- repositoryHelper, localServerUserId, securityVerifier, supportedZones, defaultZones, publishZones, auditLog);
-
- final AssetHandler topicHandler = new AssetHandler<>(new TopicConverter<>(repositoryHelper, serviceName, serverName),
- Topic.class, serviceName, serverName, invalidParameterHandler, repositoryHandler, repositoryHelper, localServerUserId,
- securityVerifier, supportedZones, defaultZones, publishZones, auditLog);
-
- final EventTypeHandler eventTypeHandler = new EventTypeHandler<>(new EventTypeConverter<>(repositoryHelper, serviceName, serverName),
- EventType.class, serviceName, serverName, invalidParameterHandler, repositoryHandler, repositoryHelper, localServerUserId,
- securityVerifier, supportedZones, defaultZones, publishZones, auditLog);
-
- final OpenMetadataAPIGenericHandler referenceableHandler =
- new OpenMetadataAPIGenericHandler<>(new ReferenceableConverter<>(repositoryHelper, serviceName, serverName),
- Referenceable.class, serviceName, serverName, invalidParameterHandler, repositoryHandler,
- repositoryHelper, localServerUserId, securityVerifier, supportedZones, defaultZones, publishZones, auditLog);
-
- ClockService clockService = new ClockService(Clock.systemUTC());
- dataEngineRegistrationHandler = new DataEngineRegistrationHandler(serviceName, serverName, invalidParameterHandler,
- repositoryHelper, softwareServerCapabilityHandler, clockService);
-
- dataEngineCommonHandler = new DataEngineCommonHandler(serviceName, serverName, invalidParameterHandler,
- referenceableHandler, repositoryHelper, dataEngineRegistrationHandler, clockService);
-
- final ConnectionHandler connectionHandler =
- new ConnectionHandler<>(new ConnectionConverter<>(repositoryHelper, serviceName, serverName),
- org.odpi.openmetadata.accessservices.dataengine.model.Connection.class, serviceName, serverName,
- invalidParameterHandler, repositoryHandler, repositoryHelper, localServerUserId, securityVerifier,
- supportedZones, defaultZones, publishZones, auditLog);
- final EndpointHandler endpointHandler =
- new EndpointHandler<>(new EndpointConverter<>(repositoryHelper, serviceName, serverName),
- Endpoint.class, serviceName, serverName, invalidParameterHandler, repositoryHandler, repositoryHelper,
- localServerUserId, securityVerifier, supportedZones, defaultZones, publishZones, auditLog);
-
- ConnectorTypeHandler connectorTypeHandler = new ConnectorTypeHandler<>(
- new ConnectorTypeConverter<>(repositoryHelper, serviceName, serverName), ConnectorType.class,
- serviceName, serverName, invalidParameterHandler, repositoryHandler, repositoryHelper, localServerUserId,
- securityVerifier, supportedZones, defaultZones, publishZones, auditLog);
-
- dataEngineConnectionAndEndpointHandler =
- new DataEngineConnectionAndEndpointHandler(invalidParameterHandler, repositoryHelper, serviceName, serverName,
- dataEngineCommonHandler, connectionHandler, endpointHandler, connectorTypeHandler);
-
- processHandler = new DataEngineProcessHandler(serviceName, serverName, invalidParameterHandler, repositoryHelper,
- assetHandler, dataEngineRegistrationHandler, dataEngineCommonHandler);
-
- dataEngineSchemaAttributeHandler = new DataEngineSchemaAttributeHandler(serviceName, serverName, invalidParameterHandler,
- repositoryHelper, schemaAttributeHandler, dataEngineRegistrationHandler, dataEngineCommonHandler);
- dataEngineSchemaTypeHandler = new DataEngineSchemaTypeHandler(serviceName, serverName, invalidParameterHandler,
- repositoryHelper, schemaTypeHandler, dataEngineRegistrationHandler, dataEngineCommonHandler, dataEngineSchemaAttributeHandler);
-
- dataEngineCollectionHandler = new DataEngineCollectionHandler(serviceName, serverName, invalidParameterHandler,
- repositoryHelper, collectionOpenMetadataAPIGenericHandler, dataEngineRegistrationHandler, dataEngineCommonHandler);
-
- dataEnginePortHandler = new DataEnginePortHandler(serviceName, serverName, invalidParameterHandler, repositoryHelper,
- dataEngineCommonHandler, portHandler, dataEngineRegistrationHandler);
- dataEngineRelationalDataHandler = new DataEngineRelationalDataHandler(serviceName, serverName, invalidParameterHandler,
- relationalDataHandler, databaseSchemaAssetHandler, dataEngineRegistrationHandler, dataEngineCommonHandler,
- dataEngineConnectionAndEndpointHandler);
-
- final AssetHandler