org.camunda.bpm.cockpit.impl.plugin
Class CockpitPlugins

java.lang.Object
  extended by org.camunda.bpm.webapp.plugin.spi.impl.AbstractAppPlugin
      extended by org.camunda.bpm.cockpit.plugin.spi.impl.AbstractCockpitPlugin
          extended by org.camunda.bpm.cockpit.impl.plugin.CockpitPlugins
All Implemented Interfaces:
CockpitPlugin, AppPlugin

public class CockpitPlugins
extends AbstractCockpitPlugin

Author:
nico.rehwaldt

Field Summary
static String ID
           
 
Constructor Summary
CockpitPlugins()
           
 
Method Summary
 String getAssetDirectory()
          Returns a uri to a plugin resources directory.
 String getId()
          Returns the unique id of this plugin.
 List<String> getMappingFiles()
          Returns a list of mapping files that define the custom queries provided by this plugin.
 Set<Class<?>> getResourceClasses()
          Returns a set of JAX-RS resource classes that extend the rest API.
 
Methods inherited from class org.camunda.bpm.webapp.plugin.spi.impl.AbstractAppPlugin
getResourceOverrides
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.webapp.plugin.spi.AppPlugin
getResourceOverrides
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values
Constructor Detail

CockpitPlugins

public CockpitPlugins()
Method Detail

getMappingFiles

public List<String> getMappingFiles()
Description copied from interface: CockpitPlugin
Returns a list of mapping files that define the custom queries provided by this plugin.

The mapping files define additional MyBatis queries that can be executed by the plugin.

Inside the plugin the queries may be executed via the QueryService that may be obtained through Cockpit.getQueryService(java.lang.String).

Specified by:
getMappingFiles in interface CockpitPlugin
Overrides:
getMappingFiles in class AbstractCockpitPlugin
Returns:
the list of additional mapping files

getId

public String getId()
Description copied from interface: AppPlugin
Returns the unique id of this plugin.

Returns:

getResourceClasses

public Set<Class<?>> getResourceClasses()
Description copied from interface: AppPlugin
Returns a set of JAX-RS resource classes that extend the rest API.

Typically, a plugin publishes its API via a subclass of AbstractPluginRootResource.

Specified by:
getResourceClasses in interface AppPlugin
Overrides:
getResourceClasses in class AbstractAppPlugin
Returns:
the set of resource classes provided by this plugin

getAssetDirectory

public String getAssetDirectory()
Description copied from class: AbstractAppPlugin
Returns a uri to a plugin resources directory. The directory must be unique across all plugins.

This implementation assumes that the resources are provided in the directory plugin-webapp/PLUGIN_ID, absolute to the root directory.

Specified by:
getAssetDirectory in interface AppPlugin
Overrides:
getAssetDirectory in class AbstractAppPlugin
Returns:
the directory providing the plugins client side resources


Copyright © 2018 camunda services GmbH. All rights reserved.