org.gcube.data.spd.obisplugin
Class ObisPlugin

java.lang.Object
  extended by org.gcube.data.spd.plugin.fwk.AbstractPlugin
      extended by org.gcube.data.spd.obisplugin.ObisPlugin
All Implemented Interfaces:
org.gcube.data.spd.model.PropertySupport, org.gcube.data.spd.plugin.fwk.Searchable<org.gcube.data.spd.model.products.ResultItem>

public class ObisPlugin
extends org.gcube.data.spd.plugin.fwk.AbstractPlugin

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

Field Summary
protected static String DESCRIPTION
           
protected static String ENTRY_POINT_NAME
           
protected static String HOME_URL
           
protected  org.gcube.common.core.utils.logging.GCUBELog logger
           
protected static String LOGO_URL
           
protected  ObisNameMapping nameMapping
           
protected  ObisClassification obisClassification
           
protected  ObisOccurrencesInterface occurrencesInterface
           
protected static org.gcube.data.spd.model.RepositoryInfo REPOSITORY_INFO
           
protected static SimpleDateFormat sdf
           
protected  PluginSessionPool sessionPool
           
 
Constructor Summary
ObisPlugin()
           
 
Method Summary
 org.gcube.data.spd.plugin.fwk.capabilities.ClassificationCapability getClassificationInterface()
          
protected  DatabaseCredential getDatabaseCredentials(org.gcube.common.resources.gcore.ServiceEndpoint resource)
           
 String getDescription()
           
 org.gcube.data.spd.plugin.fwk.capabilities.MappingCapability getMappingInterface()
          
protected  String getObisCredits()
           
 org.gcube.data.spd.plugin.fwk.capabilities.OccurrencesCapability getOccurrencesInterface()
          
 org.gcube.data.spd.model.RepositoryInfo getRepositoryInfo()
          
 String getRepositoryName()
           
 PluginSessionPool getSessionPool()
           
 Set<org.gcube.data.spd.model.util.Capabilities> getSupportedCapabilities()
           
 Set<org.gcube.data.spd.model.Conditions> getSupportedProperties()
          
 void initialize(org.gcube.common.resources.gcore.ServiceEndpoint resource)
          
 void searchByScientificName(String searchTerm, org.gcube.data.spd.plugin.fwk.writers.ObjectWriter<org.gcube.data.spd.model.products.ResultItem> writer, org.gcube.data.spd.model.Condition... properties)
          
 void shutdown()
          
 void update(org.gcube.common.resources.gcore.ServiceEndpoint resource)
          
 
Methods inherited from class org.gcube.data.spd.plugin.fwk.AbstractPlugin
equals, getHandledClass, getSynonymCapability, getUnfoldInterface, hashCode, isInitialized, isRemote, isUseCache, setUseCache
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGO_URL

protected static final String LOGO_URL
See Also:
Constant Field Values

HOME_URL

protected static final String HOME_URL
See Also:
Constant Field Values

DESCRIPTION

protected static final String DESCRIPTION
See Also:
Constant Field Values

REPOSITORY_INFO

protected static final org.gcube.data.spd.model.RepositoryInfo REPOSITORY_INFO

ENTRY_POINT_NAME

protected static final String ENTRY_POINT_NAME
See Also:
Constant Field Values

logger

protected org.gcube.common.core.utils.logging.GCUBELog logger

sessionPool

protected PluginSessionPool sessionPool

nameMapping

protected ObisNameMapping nameMapping

occurrencesInterface

protected ObisOccurrencesInterface occurrencesInterface

obisClassification

protected ObisClassification obisClassification

sdf

protected static final SimpleDateFormat sdf
Constructor Detail

ObisPlugin

public ObisPlugin()
Method Detail

getSessionPool

public PluginSessionPool getSessionPool()
Returns:
the sessionPool

getSupportedCapabilities

public Set<org.gcube.data.spd.model.util.Capabilities> getSupportedCapabilities()
Overrides:
getSupportedCapabilities in class org.gcube.data.spd.plugin.fwk.AbstractPlugin

getRepositoryName

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

getDescription

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

initialize

public void initialize(org.gcube.common.resources.gcore.ServiceEndpoint resource)
                throws Exception

Overrides:
initialize in class org.gcube.data.spd.plugin.fwk.AbstractPlugin
Throws:
Exception

shutdown

public void shutdown()
              throws Exception

Overrides:
shutdown in class org.gcube.data.spd.plugin.fwk.AbstractPlugin
Throws:
Exception

getSupportedProperties

public Set<org.gcube.data.spd.model.Conditions> getSupportedProperties()

Specified by:
getSupportedProperties in interface org.gcube.data.spd.model.PropertySupport
Overrides:
getSupportedProperties in class org.gcube.data.spd.plugin.fwk.AbstractPlugin

update

public void update(org.gcube.common.resources.gcore.ServiceEndpoint resource)
            throws Exception

Overrides:
update in class org.gcube.data.spd.plugin.fwk.AbstractPlugin
Throws:
Exception

getDatabaseCredentials

protected DatabaseCredential getDatabaseCredentials(org.gcube.common.resources.gcore.ServiceEndpoint resource)
                                             throws Exception
Throws:
Exception

searchByScientificName

public void searchByScientificName(String searchTerm,
                                   org.gcube.data.spd.plugin.fwk.writers.ObjectWriter<org.gcube.data.spd.model.products.ResultItem> writer,
                                   org.gcube.data.spd.model.Condition... properties)

Specified by:
searchByScientificName in interface org.gcube.data.spd.plugin.fwk.Searchable<org.gcube.data.spd.model.products.ResultItem>
Specified by:
searchByScientificName in class org.gcube.data.spd.plugin.fwk.AbstractPlugin

getMappingInterface

public org.gcube.data.spd.plugin.fwk.capabilities.MappingCapability getMappingInterface()

Overrides:
getMappingInterface in class org.gcube.data.spd.plugin.fwk.AbstractPlugin

getOccurrencesInterface

public org.gcube.data.spd.plugin.fwk.capabilities.OccurrencesCapability getOccurrencesInterface()

Overrides:
getOccurrencesInterface in class org.gcube.data.spd.plugin.fwk.AbstractPlugin

getObisCredits

protected String getObisCredits()

getClassificationInterface

public org.gcube.data.spd.plugin.fwk.capabilities.ClassificationCapability getClassificationInterface()

Overrides:
getClassificationInterface in class org.gcube.data.spd.plugin.fwk.AbstractPlugin

getRepositoryInfo

public org.gcube.data.spd.model.RepositoryInfo getRepositoryInfo()

Specified by:
getRepositoryInfo in class org.gcube.data.spd.plugin.fwk.AbstractPlugin


Copyright © 2013. All Rights Reserved.