fr.cnes.sitools.datasource.jdbc
Class JDBCDataSourceAdministration

java.lang.Object
  extended by ExtendedWadlApplication
      extended by fr.cnes.sitools.common.application.SitoolsApplication
          extended by fr.cnes.sitools.datasource.jdbc.JDBCDataSourceAdministration

public final class JDBCDataSourceAdministration
extends SitoolsApplication

Application for managing JDBC Data Sources (JDBC at first time)

Author:
AKKA

Constructor Summary
JDBCDataSourceAdministration(org.restlet.routing.Router parentRouter, org.restlet.Context context)
          Constructor with component to activate DataSources
 
Method Summary
 void attachDataSource(JDBCDataSource ds)
          Create and attach a DBExplorerApplication according to the JDBCDataSource definition
 org.restlet.Restlet createInboundRoot()
           
 void detachDataSource(JDBCDataSource ds)
          Detach the DBExplorerApplication corresponding to the JDBCDataSource identifier
 void detachDataSourceDefinitif(JDBCDataSource ds)
          Remove DBExplorerApplication and JDBCDataSource
 org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request, org.restlet.Response response)
           
 SitoolsStore<JDBCDataSource> getStore()
          Gets the store value
 void sitoolsDescribe()
          Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method, but overriding, prevents the self-describing functionality.
 
Methods inherited from class fr.cnes.sitools.common.application.SitoolsApplication
addSecurity, addSecurity, addSecurityFilter, defaultDescribe, getAttachementRef, getAuthenticationRealm, getAuthorizer, getAuthorizer, getAuthorizer, getCategory, getId, getPublicBaseRef, getRepresentationInfoReferences, getSecure, getSettings, getSitoolsApplicationInfo, getType, getUserAuthorizer, isAuthorizationSecure, isUserAuthenticationNeeded, register, setAutoRegistration, setCategory, setId, setSitoolsApplicationInfo, setType, setUserAuthenticationNeeded, start, stop, unregister, wrapToResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCDataSourceAdministration

public JDBCDataSourceAdministration(org.restlet.routing.Router parentRouter,
                                    org.restlet.Context context)
Constructor with component to activate DataSources

Parameters:
parentRouter - for attaching DataSource explorer applications
context - RESTlet application context
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: SitoolsApplication
Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method, but overriding, prevents the self-describing functionality.

Specified by:
sitoolsDescribe in class SitoolsApplication

createInboundRoot

public org.restlet.Restlet createInboundRoot()

attachDataSource

public void attachDataSource(JDBCDataSource ds)
Create and attach a DBExplorerApplication according to the JDBCDataSource definition

Parameters:
ds - JDBCDataSource

detachDataSource

public void detachDataSource(JDBCDataSource ds)
Detach the DBExplorerApplication corresponding to the JDBCDataSource identifier

Parameters:
ds - JDBCDataSource

detachDataSourceDefinitif

public void detachDataSourceDefinitif(JDBCDataSource ds)
Remove DBExplorerApplication and JDBCDataSource

Parameters:
ds - JDBCDataSource object

getStore

public SitoolsStore<JDBCDataSource> getStore()
Gets the store value

Returns:
the store

getApplicationInfo

public org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request,
                                                               org.restlet.Response response)
Overrides:
getApplicationInfo in class SitoolsApplication


Copyright © 2010-2013 CNES. All Rights Reserved.