gr.uoa.di.madgik.rr.element.search.index
Class DataSourceService

java.lang.Object
  extended by gr.uoa.di.madgik.rr.element.RRElement
      extended by gr.uoa.di.madgik.rr.element.search.index.DataSourceService
All Implemented Interfaces:
gr.uoa.di.madgik.rr.element.IRRElement
Direct Known Subclasses:
FTIndexService, FWIndexService, GeoIndexService, OpenSearchDataSourceService

public abstract class DataSourceService
extends gr.uoa.di.madgik.rr.element.RRElement


Nested Class Summary
static class DataSourceService.Type
           
 
Field Summary
protected  gr.uoa.di.madgik.rr.RRContext context
           
protected  Set<DataSource> datasources
           
protected  HostingNode hostingNode
           
protected  DataSourceServiceDao item
           
 
Constructor Summary
protected DataSourceService(Class<? extends DataSourceServiceDao> type)
           
 
Method Summary
static void addSubType(DataSourceService.Type type, Class<? extends DataSourceService> service, Class<? extends DataSourceServiceDao> serviceDao)
           
static void clearSubTypes()
           
 String deepToString()
           
 void delete(boolean deleteDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 boolean equals(Object other)
           
protected  boolean exists(Class<? extends DataSourceServiceDao> type, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 boolean exists(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
static boolean exists(String id)
           
static boolean exists(String id, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
static List<DataSourceService> getAll(boolean loadDetails)
           
static List<DataSourceService> getAll(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
protected static List<DataSourceService> getAll(Class<? extends DataSourceServiceDao> type, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType, boolean loadDetails)
           
static Set<String> getAllIds()
           
static Set<String> getAllIds(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
static DataSourceService getById(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType, String id)
           
static DataSourceService getById(boolean loadDetails, String id)
           
 DataSource getDataSource(String id)
           
 Set<DataSource> getDataSources()
           
 String getEndpoint()
           
 String getFunctionality()
           
 String getHostingNode()
           
 String getID()
           
 gr.uoa.di.madgik.rr.RRContext getISContext()
           
 DataSourceServiceDao getItem()
           
 Set<String> getScopes()
           
 DataSourceService.Type getType()
           
 boolean isEqual(gr.uoa.di.madgik.rr.element.IRRElement target, boolean includeDetails)
           
 boolean load(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 boolean load(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType, boolean overridePrefetched)
           
 void setDirty()
           
 void setEndpoint(String endpoint)
           
 void setFunctionality(String functionality)
           
 void setHostingNode(String hostingNode)
           
 void setID(String id)
           
protected  void setType(DataSourceService.Type type)
           
 void store(boolean storeDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
static Set<Class<? extends DataSourceServiceDao>> subTypeItems()
           
static Set<Class<? extends DataSourceService>> subTypes()
           
 
Methods inherited from class gr.uoa.di.madgik.rr.element.RRElement
delete, delete, exists, exists, load, load, store, store
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

item

protected DataSourceServiceDao item

datasources

protected Set<DataSource> datasources

hostingNode

protected HostingNode hostingNode

context

protected gr.uoa.di.madgik.rr.RRContext context
Constructor Detail

DataSourceService

protected DataSourceService(Class<? extends DataSourceServiceDao> type)
                     throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
Method Detail

clearSubTypes

public static void clearSubTypes()

addSubType

public static void addSubType(DataSourceService.Type type,
                              Class<? extends DataSourceService> service,
                              Class<? extends DataSourceServiceDao> serviceDao)

subTypes

public static Set<Class<? extends DataSourceService>> subTypes()

subTypeItems

public static Set<Class<? extends DataSourceServiceDao>> subTypeItems()

getISContext

public gr.uoa.di.madgik.rr.RRContext getISContext()

getID

public String getID()

setID

public void setID(String id)

getType

public DataSourceService.Type getType()

setType

protected void setType(DataSourceService.Type type)

getScopes

public Set<String> getScopes()

getHostingNode

public String getHostingNode()

setHostingNode

public void setHostingNode(String hostingNode)

getEndpoint

public String getEndpoint()

setEndpoint

public void setEndpoint(String endpoint)

getDataSources

public Set<DataSource> getDataSources()

getFunctionality

public String getFunctionality()

setFunctionality

public void setFunctionality(String functionality)

getItem

public DataSourceServiceDao getItem()

setDirty

public void setDirty()

load

public boolean load(boolean loadDetails,
                    gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

load

public boolean load(boolean loadDetails,
                    gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
                    boolean overridePrefetched)
             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

store

public void store(boolean storeDetails,
                  gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

delete

public void delete(boolean deleteDetails,
                   gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
            throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

isEqual

public boolean isEqual(gr.uoa.di.madgik.rr.element.IRRElement target,
                       boolean includeDetails)
                throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

equals

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

getDataSource

public DataSource getDataSource(String id)

deepToString

public String deepToString()

exists

protected boolean exists(Class<? extends DataSourceServiceDao> type,
                         gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
                  throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

exists

public boolean exists(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
               throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getAll

protected static List<DataSourceService> getAll(Class<? extends DataSourceServiceDao> type,
                                                gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
                                                boolean loadDetails)
                                         throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getAll

public static List<DataSourceService> getAll(boolean loadDetails,
                                             gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
                                      throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getAll

public static List<DataSourceService> getAll(boolean loadDetails)
                                      throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

exists

public static boolean exists(String id,
                             gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
                      throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getAllIds

public static Set<String> getAllIds(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
                             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getAllIds

public static Set<String> getAllIds()
                             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

exists

public static boolean exists(String id)
                      throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getById

public static DataSourceService getById(boolean loadDetails,
                                        gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
                                        String id)
                                 throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getById

public static DataSourceService getById(boolean loadDetails,
                                        String id)
                                 throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException


Copyright © 2013. All Rights Reserved.