org.gcube.application.aquamaps.publisher.impl
Class PublisherImpl

java.lang.Object
  extended by org.gcube.application.aquamaps.publisher.Publisher
      extended by org.gcube.application.aquamaps.publisher.impl.PublisherImpl

public class PublisherImpl
extends Publisher


Field Summary
static File serverPathDir
           
static String webServerUrl
           
 
Constructor Summary
PublisherImpl()
           
 
Method Summary
<T extends Storable>
void
deleteById(Class<T> clazz, ObjectManager<T> manager, String id)
           
static PublisherImpl get()
           
<T extends CoverageDescriptor>
Future<T>
get(Class<T> clazz, ObjectManager<T> manager, CoverageDescriptor coverageDescriptor)
           
<T extends CoverageDescriptor>
Iterator<T>
getByCoverage(Class<T> clazz, CoverageDescriptor descriptor)
           
<T extends Storable>
T
getById(Class<T> clazz, String id)
           
 List<FileSet> getFileSetsBySpeciesIds(String speciesId)
           
 List<Layer> getLayersBySpeciesIds(String speciesId)
           
 File getServerPathDir()
           
 String getWebServerUrl()
           
 Iterator<WMSContext> getWMSContextByLayer(String layerId)
           
 ReportDescriptor initialize(PublisherConfiguration configuration)
           
 void shutdown()
           
<T extends Storable>
StoreResponse<T>
store(Class<T> clazz, ObjectManager<T> manager, StoreConfiguration config, CoverageDescriptor... descriptor)
           
 
Methods inherited from class org.gcube.application.aquamaps.publisher.Publisher
getPublisher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webServerUrl

public static String webServerUrl

serverPathDir

public static File serverPathDir
Constructor Detail

PublisherImpl

public PublisherImpl()
Method Detail

get

public static PublisherImpl get()

initialize

public ReportDescriptor initialize(PublisherConfiguration configuration)
                            throws Exception
Specified by:
initialize in class Publisher
Throws:
Exception

get

public <T extends CoverageDescriptor> Future<T> get(Class<T> clazz,
                                                    ObjectManager<T> manager,
                                                    CoverageDescriptor coverageDescriptor)
                                         throws Exception
Specified by:
get in class Publisher
Throws:
Exception

getByCoverage

public <T extends CoverageDescriptor> Iterator<T> getByCoverage(Class<T> clazz,
                                                                CoverageDescriptor descriptor)
                                                     throws Exception
Specified by:
getByCoverage in class Publisher
Throws:
Exception

getWMSContextByLayer

public Iterator<WMSContext> getWMSContextByLayer(String layerId)
                                          throws Exception
Specified by:
getWMSContextByLayer in class Publisher
Throws:
Exception

store

public <T extends Storable> StoreResponse<T> store(Class<T> clazz,
                                                   ObjectManager<T> manager,
                                                   StoreConfiguration config,
                                                   CoverageDescriptor... descriptor)
                                        throws Exception
Specified by:
store in class Publisher
Throws:
Exception

deleteById

public <T extends Storable> void deleteById(Class<T> clazz,
                                            ObjectManager<T> manager,
                                            String id)
                throws Exception
Specified by:
deleteById in class Publisher
Throws:
Exception

getById

public <T extends Storable> T getById(Class<T> clazz,
                                      String id)
                           throws Exception
Specified by:
getById in class Publisher
Throws:
Exception

getLayersBySpeciesIds

public List<Layer> getLayersBySpeciesIds(String speciesId)
                                  throws Exception
Specified by:
getLayersBySpeciesIds in class Publisher
Throws:
Exception

getFileSetsBySpeciesIds

public List<FileSet> getFileSetsBySpeciesIds(String speciesId)
                                      throws Exception
Specified by:
getFileSetsBySpeciesIds in class Publisher
Throws:
Exception

shutdown

public void shutdown()
              throws Exception
Specified by:
shutdown in class Publisher
Throws:
Exception

getWebServerUrl

public String getWebServerUrl()
Specified by:
getWebServerUrl in class Publisher

getServerPathDir

public File getServerPathDir()
Specified by:
getServerPathDir in class Publisher
Returns:
the serverPathDir


Copyright © 2013. All Rights Reserved.