|
15 | 15 | import org.databunker.options.LegalBasisOptions; |
16 | 16 |
|
17 | 17 | import org.databunker.options.AgreementAcceptOptions; |
18 | | -import org.databunker.options.ConnectorOptions; |
19 | 18 | import org.databunker.options.TenantOptions; |
20 | 19 | import org.databunker.options.ProcessingActivityOptions; |
21 | 20 |
|
@@ -803,139 +802,6 @@ public Map<String, Object> unlinkProcessingActivityFromLegalBasis(String activit |
803 | 802 | return makeRequest("ProcessingActivityUnlinkLegalBasis", data, requestMetadata); |
804 | 803 | } |
805 | 804 |
|
806 | | - // Connector Management |
807 | | - public Map<String, Object> listSupportedConnectors(Map<String, Object> requestMetadata) throws IOException { |
808 | | - return makeRequest("ConnectorListSupportedConnectors", null, requestMetadata); |
809 | | - } |
810 | | - |
811 | | - public Map<String, Object> listConnectors(Map<String, Object> requestMetadata) throws IOException { |
812 | | - return makeRequest("ConnectorListConnectors", null, requestMetadata); |
813 | | - } |
814 | | - |
815 | | - /** |
816 | | - * Creates a connector with typed options |
817 | | - * |
818 | | - * @param options Typed options for connector creation |
819 | | - * @param requestMetadata Optional request metadata |
820 | | - * @return The created connector information |
821 | | - * @throws IOException If an I/O error occurs |
822 | | - */ |
823 | | - public Map<String, Object> createConnector(ConnectorOptions options, Map<String, Object> requestMetadata) throws IOException { |
824 | | - Map<String, Object> data = new HashMap<>(); |
825 | | - if (options != null) { |
826 | | - data.putAll(OptionsConverter.toMap(options)); |
827 | | - } |
828 | | - return makeRequest("ConnectorCreate", data, requestMetadata); |
829 | | - } |
830 | | - |
831 | | - /** |
832 | | - * Updates a connector with typed options |
833 | | - * |
834 | | - * @param connectorid Connector ID |
835 | | - * @param options Typed options for connector update |
836 | | - * @param requestMetadata Optional request metadata |
837 | | - * @return The updated connector information |
838 | | - * @throws IOException If an I/O error occurs |
839 | | - */ |
840 | | - public Map<String, Object> updateConnector(String connectorid, ConnectorOptions options, Map<String, Object> requestMetadata) throws IOException { |
841 | | - Map<String, Object> data = new HashMap<>(); |
842 | | - data.put("connectorid", Integer.parseInt(connectorid)); |
843 | | - if (options != null) { |
844 | | - data.putAll(OptionsConverter.toMap(options)); |
845 | | - } |
846 | | - return makeRequest("ConnectorUpdate", data, requestMetadata); |
847 | | - } |
848 | | - |
849 | | - /** |
850 | | - * Validates connector connectivity with typed options |
851 | | - * |
852 | | - * @param connectorref Connector reference (ID or name) |
853 | | - * @param options Typed options for connector validation (can be null) |
854 | | - * @param requestMetadata Optional request metadata |
855 | | - * @return The validation result |
856 | | - * @throws IOException If an I/O error occurs |
857 | | - */ |
858 | | - public Map<String, Object> validateConnectorConnectivity(String connectorref, ConnectorOptions options, Map<String, Object> requestMetadata) throws IOException { |
859 | | - Map<String, Object> data = new HashMap<>(); |
860 | | - if (options != null) { |
861 | | - data.putAll(OptionsConverter.toMap(options)); |
862 | | - } |
863 | | - if (connectorref.matches("\\d+")) { |
864 | | - data.put("connectorid", Integer.parseInt(connectorref)); |
865 | | - } else { |
866 | | - data.put("connectorname", connectorref); |
867 | | - } |
868 | | - return makeRequest("ConnectorValidateConnectivity", data, requestMetadata); |
869 | | - } |
870 | | - |
871 | | - public Map<String, Object> deleteConnector(String connectorref, Map<String, Object> requestMetadata) throws IOException { |
872 | | - Map<String, Object> data = new HashMap<>(); |
873 | | - if (connectorref.matches("\\d+")) { |
874 | | - data.put("connectorid", Integer.parseInt(connectorref)); |
875 | | - } else { |
876 | | - data.put("connectorname", connectorref); |
877 | | - } |
878 | | - return makeRequest("ConnectorDelete", data, requestMetadata); |
879 | | - } |
880 | | - |
881 | | - /** |
882 | | - * Gets table metadata with typed options |
883 | | - * |
884 | | - * @param connectorref Connector reference (ID or name) |
885 | | - * @param options Typed options for getting table metadata |
886 | | - * @param requestMetadata Optional request metadata |
887 | | - * @return The table metadata |
888 | | - * @throws IOException If an I/O error occurs |
889 | | - */ |
890 | | - public Map<String, Object> getTableMetadata(String connectorref, ConnectorOptions options, Map<String, Object> requestMetadata) throws IOException { |
891 | | - Map<String, Object> data = new HashMap<>(); |
892 | | - if (options != null) { |
893 | | - data.putAll(OptionsConverter.toMap(options)); |
894 | | - } |
895 | | - if (connectorref.matches("\\d+")) { |
896 | | - data.put("connectorid", Integer.parseInt(connectorref)); |
897 | | - } else { |
898 | | - data.put("connectorname", connectorref); |
899 | | - } |
900 | | - return makeRequest("ConnectorGetTableMetaData", data, requestMetadata); |
901 | | - } |
902 | | - |
903 | | - public Map<String, Object> connectorGetUserData(String mode, String identity, String connectorref, Map<String, Object> requestMetadata) throws IOException { |
904 | | - Map<String, Object> data = new HashMap<>(); |
905 | | - data.put("mode", mode); |
906 | | - data.put("identity", identity); |
907 | | - if (connectorref.matches("\\d+")) { |
908 | | - data.put("connectorid", Integer.parseInt(connectorref)); |
909 | | - } else { |
910 | | - data.put("connectorname", connectorref); |
911 | | - } |
912 | | - return makeRequest("ConnectorGetUserData", data, requestMetadata); |
913 | | - } |
914 | | - |
915 | | - public Map<String, Object> connectorGetUserExtraData(String mode, String identity, String connectorref, Map<String, Object> requestMetadata) throws IOException { |
916 | | - Map<String, Object> data = new HashMap<>(); |
917 | | - data.put("mode", mode); |
918 | | - data.put("identity", identity); |
919 | | - if (connectorref.matches("\\d+")) { |
920 | | - data.put("connectorid", Integer.parseInt(connectorref)); |
921 | | - } else { |
922 | | - data.put("connectorname", connectorref); |
923 | | - } |
924 | | - return makeRequest("ConnectorGetUserExtraData", data, requestMetadata); |
925 | | - } |
926 | | - |
927 | | - public Map<String, Object> connectorDeleteUser(String mode, String identity, String connectorref, Map<String, Object> requestMetadata) throws IOException { |
928 | | - Map<String, Object> data = new HashMap<>(); |
929 | | - data.put("mode", mode); |
930 | | - data.put("identity", identity); |
931 | | - if (connectorref.matches("\\d+")) { |
932 | | - data.put("connectorid", Integer.parseInt(connectorref)); |
933 | | - } else { |
934 | | - data.put("connectorname", connectorref); |
935 | | - } |
936 | | - return makeRequest("ConnectorDeleteUser", data, requestMetadata); |
937 | | - } |
938 | | - |
939 | 805 | // Group Management |
940 | 806 | /** |
941 | 807 | * Creates a group with typed options |
|
0 commit comments