org.gcube.data.spd.plugin.fwk
Class AbstractPlugin
java.lang.Object
org.gcube.data.spd.plugin.fwk.AbstractPlugin
- All Implemented Interfaces:
- Searchable<ResultItem>, PropertySupport
public abstract class AbstractPlugin
- extends Object
- implements PropertySupport, Searchable<ResultItem>
AbstractPlugin
public AbstractPlugin()
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.