fr.cnes.sitools.datasource.mongodb
Class MongoDBDataSourceAdministration

java.lang.Object
  extended by ExtendedWadlApplication
      extended by fr.cnes.sitools.common.application.SitoolsApplication
          extended by fr.cnes.sitools.datasource.mongodb.MongoDBDataSourceAdministration

public final class MongoDBDataSourceAdministration
extends SitoolsApplication

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

Author:
AKKA

Constructor Summary
MongoDBDataSourceAdministration(org.restlet.routing.Router parentRouter, org.restlet.Context context)
          Constructor with component to activate DataSources
 
Method Summary
 void attachDataSource(MongoDBDataSource ds)
          Create and attach a DBExplorerApplication according to the MongoDBDataSource definition
 org.restlet.Restlet createInboundRoot()
           
 void detachDataSource(SitoolsDataSourceModel ds)
          Detach the DBExplorerApplication corresponding to the MongoDBDataSource identifier
 void detachDataSourceDefinitif(SitoolsDataSourceModel ds)
          Remove DBExplorerApplication and MongoDBDataSource
 org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request, org.restlet.Response response)
           
 SitoolsStore<MongoDBDataSource> 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

MongoDBDataSourceAdministration

public MongoDBDataSourceAdministration(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(MongoDBDataSource ds)
Create and attach a DBExplorerApplication according to the MongoDBDataSource definition

Parameters:
ds - MongoDBDataSource

detachDataSource

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

Parameters:
ds - MongoDBDataSource

detachDataSourceDefinitif

public void detachDataSourceDefinitif(SitoolsDataSourceModel ds)
Remove DBExplorerApplication and MongoDBDataSource

Parameters:
ds - MongoDBDataSource object

getStore

public SitoolsStore<MongoDBDataSource> 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.