org.gcube.opensearch.opensearchoperator.resource
Class ISResourceRepository

java.lang.Object
  extended by 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

Constructor Summary
ISResourceRepository(ISOpenSearchResourceCache cache, gr.uoa.di.madgik.environment.hint.EnvHintCollection envHints)
          Creates a new ISResourceRepository
 
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
 

Constructor Detail

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 repository
envHints - The environment hints that will be passed while querying the InformationSystem
Method Detail

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)