Page History
There are three different steps to create a custom connection.
- Create a connection
- Create a configuration widget for a connection
- Create an Aquima Connection Manager to customize the connectionmanagement.
In this tutorial you will learn how you can add the configuration of your custom plugin to the connection manager (see below).
For this tutorial I will add the CMIS-plugin configuration to the connection manager.
Start by adding a dependency to the plugin-dev-sdk. Do this by adding the codeblock displayed below to your pom file.
Code Block | ||||
---|---|---|---|---|
| ||||
<dependency>
<groupId>com.aquima</groupId>
<artifactId>plugin-dev-sdk</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency> |
Open your plugin-project in your IDE and create a class named "{plugin-name}PluginWidget" in a (to-be-created) subpackage of your plugin named "widget".
Add the annotation "@AquimaConnectionSettingsWidget" to your class and let your class extend the AbstractSettingsWidget. Let your IDE define all the imports and implement the methods/constructor. If done correctly your class should look like this:
Code Block | ||
---|---|---|
| ||
package com.aquima.plugin.cmis.widget;
import com.aquima.interactions.composer.model.Container;
import com.aquima.plugin.dev.widget.IWidgetContext;
import com.aquima.plugin.dev.widget.IWidgetEvent;
import com.aquima.plugin.dev.widget.IWidgetState;
import com.aquima.plugin.dev.widget.settings.AbstractSettingsWidget;
import com.aquima.plugin.dev.widget.settings.annotation.AquimaConnectionSettingsWidget;
@AquimaConnectionSettingsWidget
public class CmisPluginWidget extends AbstractSettingsWidget {
public CmisPluginWidget(String prefix) {
super(prefix);
// TODO Auto-generated constructor stub
}
@Override
public void handleEvent(IWidgetContext context, IWidgetState state,
IWidgetEvent event) {
// TODO Auto-generated method stub
}
@Override
public Container composeContainer(IWidgetContext context, IWidgetState state) {
// TODO Auto-generated method stub
return null;
}
@Override
public IWidgetState initializeState(IWidgetContext context) {
// TODO Auto-generated method stub
return null;
}
@Override
public String getDisplayName() {
// TODO Auto-generated method stub
return null;
}
} |
...