org.gcube.opensearch.opensearchoperator.resource
Class ISResourceRepository
java.lang.Object
org.gcube.opensearch.opensearchoperator.resource.ISResourceRepository
- All Implemented Interfaces:
- ResourceRepository
public class ISResourceRepository
- extends java.lang.Object
- implements ResourceRepository
Class implementing the ResourceRepository interface that is used to retrieve OpenSearch resources
utilizing an InformationSystem. This repository uses an ISOpenSearchResourceCache to quickly return
cached OpenSearch resources and further populates this cache in the event of a cache miss
- Author:
- gerasimos.farantatos
Method Summary |
OpenSearchResource |
get(java.lang.String descriptionDocumentURL)
Retrieves an OpenSearchResource identified by the description document URL of the
OpenSearch provider associated with it |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISResourceRepository
public ISResourceRepository(ISOpenSearchResourceCache cache,
gr.uoa.di.madgik.environment.hint.EnvHintCollection envHints)
- Creates a new ISResourceRepository
- Parameters:
cache
- The cache to be used and further populated by the repositoryenvHints
- The environment hints that will be passed while querying the InformationSystem
get
public OpenSearchResource get(java.lang.String descriptionDocumentURL)
throws java.lang.Exception
- Retrieves an OpenSearchResource identified by the description document URL of the
OpenSearch provider associated with it
- Specified by:
get
in interface ResourceRepository
- Parameters:
descriptionDocumentURL
- The URL of the description document associated with the OpenSearch
provider associated with the OpenSearchResource to be retrieved
- Returns:
- The requested OpenSearch resource
- Throws:
java.lang.Exception
- See Also:
ResourceRepository.get(String)