You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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. 

pom.xml
<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:

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;
	}
}

 

 

 

 

 

 

  • No labels