org.gcube.data.spd.obisplugin
Class ObisPlugin

java.lang.Object
  extended by org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin
      extended by org.gcube.data.spd.obisplugin.ObisPlugin
All Implemented Interfaces:
org.gcube.data.spd.stubs.pluginhelper.PropertySupport

public class ObisPlugin
extends org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected  Connection connection
           
protected static String ENTRY_POINT_NAME
           
 
Constructor Summary
ObisPlugin()
           
 
Method Summary
protected  String getCredits()
           
 String getDescription()
           
 org.gcube.data.spd.stubs.pluginhelper.capabilities.NamesMappingCapability getNamesMappingInterface()
          
 org.gcube.data.spd.stubs.pluginhelper.capabilities.OccurrencesCapability getOccurrencesInterface()
          
 String getRepositoryName()
           
 Set<org.gcube.data.spd.stubs.pluginhelper.Capabilities> getSupportedCapabilities()
           
 Set<org.gcube.data.spd.stubs.pluginhelper.Properties> getSupportedProperties()
          
 Set<org.gcube.data.spd.stubs.pluginhelper.SearchTypes> getSupportedSearch()
           
 void initialize(org.gcube.common.core.resources.GCUBERuntimeResource resource)
          
protected  void initializeConnection(String jdbcUrl, String username, String password)
           
 void searchByCommonName(String searchTerm, org.gcube.data.spd.stubs.pluginhelper.writers.ObjectWriter<org.gcube.data.spd.stubs.model.ResultItem> writer, org.gcube.data.spd.stubs.pluginhelper.Property... properties)
           
 void searchByScientificName(String searchTerm, org.gcube.data.spd.stubs.pluginhelper.writers.ObjectWriter<org.gcube.data.spd.stubs.model.ResultItem> writer, org.gcube.data.spd.stubs.pluginhelper.Property... properties)
           
 void shutdown()
          
 void update(org.gcube.common.core.resources.GCUBERuntimeResource resource)
          
 
Methods inherited from class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin
equals, getClassificationInterface, getSynonimsInterface, hashCode, isInitialized
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTRY_POINT_NAME

protected static final String ENTRY_POINT_NAME
See Also:
Constant Field Values

connection

protected Connection connection
Constructor Detail

ObisPlugin

public ObisPlugin()
Method Detail

getSupportedSearch

public Set<org.gcube.data.spd.stubs.pluginhelper.SearchTypes> getSupportedSearch()
Overrides:
getSupportedSearch in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin

getSupportedCapabilities

public Set<org.gcube.data.spd.stubs.pluginhelper.Capabilities> getSupportedCapabilities()
Overrides:
getSupportedCapabilities in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin

getRepositoryName

public String getRepositoryName()
Specified by:
getRepositoryName in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin

getDescription

public String getDescription()
Specified by:
getDescription in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin

initialize

public void initialize(org.gcube.common.core.resources.GCUBERuntimeResource resource)
                throws Exception

Overrides:
initialize in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin
Throws:
Exception

shutdown

public void shutdown()
              throws Exception

Overrides:
shutdown in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin
Throws:
Exception

getSupportedProperties

public Set<org.gcube.data.spd.stubs.pluginhelper.Properties> getSupportedProperties()

Specified by:
getSupportedProperties in interface org.gcube.data.spd.stubs.pluginhelper.PropertySupport
Overrides:
getSupportedProperties in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin

update

public void update(org.gcube.common.core.resources.GCUBERuntimeResource resource)
            throws Exception

Overrides:
update in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin
Throws:
Exception

initializeConnection

protected void initializeConnection(String jdbcUrl,
                                    String username,
                                    String password)
                             throws SQLException
Throws:
SQLException

searchByCommonName

public void searchByCommonName(String searchTerm,
                               org.gcube.data.spd.stubs.pluginhelper.writers.ObjectWriter<org.gcube.data.spd.stubs.model.ResultItem> writer,
                               org.gcube.data.spd.stubs.pluginhelper.Property... properties)
Specified by:
searchByCommonName in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin

searchByScientificName

public void searchByScientificName(String searchTerm,
                                   org.gcube.data.spd.stubs.pluginhelper.writers.ObjectWriter<org.gcube.data.spd.stubs.model.ResultItem> writer,
                                   org.gcube.data.spd.stubs.pluginhelper.Property... properties)
Specified by:
searchByScientificName in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin

getNamesMappingInterface

public org.gcube.data.spd.stubs.pluginhelper.capabilities.NamesMappingCapability getNamesMappingInterface()

Overrides:
getNamesMappingInterface in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin

getOccurrencesInterface

public org.gcube.data.spd.stubs.pluginhelper.capabilities.OccurrencesCapability getOccurrencesInterface()

Overrides:
getOccurrencesInterface in class org.gcube.data.spd.stubs.pluginhelper.AbstractPlugin

getCredits

protected String getCredits()


Copyright © 2012. All Rights Reserved.