Install or update a connector - Fusion 5
pluginId
as in this example:
pluginId
is identical to an existing one, the old connector will be uninstalled and the new connector will be installed in its place. To get the list of existing plugin IDs, run: curl -u USERNAME:PASSWORD https://FUSION_HOST:FUSION_PORT/api/connectors/plugins
https://FUSION_HOST:FUSION_PORT/apps/connectors/plugins/
to verify the new connector is installed.
Develop a Custom Connector
ConnectorConfig
.@Property
are considered to be configuration properties.
For example, @Property() String name();
results in a String property called name
.
This property would then be present in the generated schema.Here is an example of the most basic configuration, along with required annotations:@RootSchema
is used by Fusion when showing the list of available connectors.
The ConnectorConfig
base interface represents common, top-level settings required by all connectors.
The type
parameter of the ConnectorConfig
class indicates the interface to use for custom properties.Once a connector configuration has been defined, it can be associated with the ConnectorPlugin
class.
From that point, the framework takes care of providing the configuration instances to your connector.
It also generates the schema, and sends it along to Fusion when it connects to Fusion.Schema metadata can be applied to properties using additional annotations. For example, applying limits to the min/max length of a string, or describing the types of items in an array.Nested schema metadata can also be applied to a single field by using “stacked” schema based annotations:$FUSION_HOME
is your Fusion installation directory and <version>
is your Fusion version number..zip
file. This zip
must contain only one connector plugin.Here is an example of how to start up using the web connector:$FUSION_HOME
is your Fusion installation directory and <version>
is your Fusion version number..zip
file. This zip
must contain only one connector plugin.Here is an example of how to start up using the web connector:$FUSION_HOME
is your Fusion installation directory and <version>
is your Fusion version number..zip
file. This zip
must contain only one connector plugin.Here is an example of how to start up using the web connector: