org.gcube.data.spd.plugin.fwk
Class AbstractPlugin

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

public abstract class AbstractPlugin
extends Object
implements PropertySupport, Searchable<ResultItem>


Constructor Summary
AbstractPlugin()
           
 
Method Summary
 boolean equals(Object obj)
           
 ClassificationCapability getClassificationInterface()
           
abstract  String getDescription()
           
 Class<ResultItem> getHandledClass()
           
 NamesMappingCapability getNamesMappingInterface()
           
 OccurrencesCapability getOccurrencesInterface()
           
abstract  RepositoryInfo getRepositoryInfo()
           
abstract  String getRepositoryName()
           
 Set<Capabilities> getSupportedCapabilities()
           
 Set<Properties> getSupportedProperties()
           
 Set<SearchTypes> getSupportedSearch()
           
 int hashCode()
           
 void initialize(org.gcube.common.core.resources.GCUBERuntimeResource resource)
           
 boolean isInitialized()
           
 boolean isUseCache()
           
abstract  void searchByCommonName(String word, ObjectWriter<ResultItem> writer, Property... properties)
           
abstract  void searchByScientificName(String word, ObjectWriter<ResultItem> writer, Property... properties)
           
 void setUseCache(boolean useCache)
           
 void shutdown()
           
 void update(org.gcube.common.core.resources.GCUBERuntimeResource resource)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPlugin

public AbstractPlugin()
Method Detail

initialize

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

update

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

shutdown

public void shutdown()
              throws Exception
Throws:
Exception

getClassificationInterface

public ClassificationCapability getClassificationInterface()

getNamesMappingInterface

public NamesMappingCapability getNamesMappingInterface()

getOccurrencesInterface

public OccurrencesCapability getOccurrencesInterface()

getSupportedProperties

public Set<Properties> getSupportedProperties()
Specified by:
getSupportedProperties in interface PropertySupport

getSupportedCapabilities

public Set<Capabilities> getSupportedCapabilities()

getSupportedSearch

public Set<SearchTypes> getSupportedSearch()

getRepositoryInfo

public abstract RepositoryInfo getRepositoryInfo()

getHandledClass

public Class<ResultItem> getHandledClass()
Specified by:
getHandledClass in interface Searchable<ResultItem>

searchByCommonName

public abstract void searchByCommonName(String word,
                                        ObjectWriter<ResultItem> writer,
                                        Property... properties)
Specified by:
searchByCommonName in interface Searchable<ResultItem>

searchByScientificName

public abstract void searchByScientificName(String word,
                                            ObjectWriter<ResultItem> writer,
                                            Property... properties)
Specified by:
searchByScientificName in interface Searchable<ResultItem>

getRepositoryName

public abstract String getRepositoryName()

getDescription

public abstract String getDescription()

isUseCache

public boolean isUseCache()

setUseCache

public void setUseCache(boolean useCache)

isInitialized

public boolean isInitialized()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.