Skip to content

Commit

Permalink
[ZEE-6628] Add connector main data type
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-guerre committed Jan 21, 2025
1 parent 42ca4fa commit f8b6c0c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/main/java/zeenea/connector/Connector.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,21 @@ public interface Connector extends ExtensionPoint {
*/
Connection newConnection(ConnectionConfiguration configuration)
throws InvalidConfigurationException;

/**
* Defines main item type returned by the connector
*
* <p>Possible values are:
* <p>- {@link ConnectorType#DATA_PRODUCT} for connectors that import data products
* <p>- {@link ConnectorType#DATA_PROCESS} for connectors that import data processes
* <p>- {@link ConnectorType#DATASET} for connectors that import datasets
* <p>- {@link ConnectorType#VISUALIZATION} for connectors that import visualization
*
* <p>Default value is {@link ConnectorType#DATASET}
* <p>Note that connectors can still generate and import other types of items to the platform.
* @return a connector type
*/
default ConnectorType getConnectorType() {
return ConnectorType.DATASET;
}
}
8 changes: 8 additions & 0 deletions src/main/java/zeenea/connector/ConnectorType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package zeenea.connector;

public enum ConnectorType {
DATASET,
VISUALIZATION,
DATA_PROCESS,
DATA_PRODUCT
}
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.2
2.3.0

0 comments on commit f8b6c0c

Please sign in to comment.