public interface ConnectorDataStore
CamelConnectorCatalog
.Modifier and Type | Method and Description |
---|---|
void |
addConnector(ConnectorDto dto,
String connectorJson,
String connectorSchemaJson,
String componentSchemaJson)
Adds or updates the connector to the catalog
|
String |
componentSchemaJSon(ConnectorDto dto)
Returns the camel-component-schema json file for the given connector with the Maven coordinate
|
String |
connectorJSon(ConnectorDto dto)
Returns the camel-connector json file for the given connector with the Maven coordinate
|
String |
connectorSchemaJSon(ConnectorDto dto)
Returns the camel-connector-schema json file for the given connector with the Maven coordinate
|
List<ConnectorDto> |
findConnector(String filter,
boolean latestVersionOnly)
Find all the connectors that matches the maven coordinate, name, label or description from the catalog
|
boolean |
hasConnector(ConnectorDto dto)
Is the connector already registered in the catalog
|
void |
removeConnector(ConnectorDto dto)
Removes the connector from the catalog
|
void addConnector(ConnectorDto dto, String connectorJson, String connectorSchemaJson, String componentSchemaJson)
dto
- the connector dtoconnectorJson
- the camel-connector json fileconnectorSchemaJson
- the camel-connector-schema json filecomponentSchemaJson
- the camel-component-schema json fileboolean hasConnector(ConnectorDto dto)
dto
- the connector dtovoid removeConnector(ConnectorDto dto)
dto
- the connector dtoList<ConnectorDto> findConnector(String filter, boolean latestVersionOnly)
filter
- filter textlatestVersionOnly
- whether to include only latest version of the connectorsString connectorJSon(ConnectorDto dto)
dto
- the connector dtoString connectorSchemaJSon(ConnectorDto dto)
dto
- the connector dtoString componentSchemaJSon(ConnectorDto dto)
dto
- the connector dtoApache Camel