fr.cnes.sitools.datasource.jdbc
Class ActivationDataSourceResource

java.lang.Object
  extended by ExtendedWadlServerResource
      extended by fr.cnes.sitools.common.resource.AbstractSitoolsResource
          extended by fr.cnes.sitools.common.SitoolsResource
              extended by fr.cnes.sitools.datasource.jdbc.AbstractDataSourceResource
                  extended by fr.cnes.sitools.datasource.jdbc.ActivationDataSourceResource

public final class ActivationDataSourceResource
extends AbstractDataSourceResource

Actions on DataSource : testConnection activation / disable of the associated Application(s)

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
ActivationDataSourceResource()
           
 
Method Summary
 org.restlet.representation.Representation action(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          PUT to activate DataSource
 java.lang.Boolean checkDataSourceConnection(JDBCDataSource ds)
          Testing connections
 void describePut(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
          Describe the GET method
 void sitoolsDescribe()
          Method implementation mandatory
 Response testDataSourceConnection(JDBCDataSource ds)
          Testing connections
 
Methods inherited from class fr.cnes.sitools.datasource.jdbc.AbstractDataSourceResource
getDatasourceId, getJDBCDataSourceAdministration, getObject, getRepresentation, getStore
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting
 
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource
getMediaType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationDataSourceResource

public ActivationDataSourceResource()
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: AbstractSitoolsResource
Method implementation mandatory

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

action

@Put
public org.restlet.representation.Representation action(org.restlet.representation.Representation representation,
                                                            org.restlet.representation.Variant variant)
PUT to activate DataSource

Parameters:
representation - the representation sent
variant - the variant sent
Returns:
Representation

describePut

public void describePut(org.restlet.ext.wadl.MethodInfo info,
                        java.lang.String path)
Describe the GET method

Parameters:
info - WADL method information
path - url attachment of the resource

testDataSourceConnection

public Response testDataSourceConnection(JDBCDataSource ds)
Testing connections

Parameters:
ds - the DataSource to test
Returns:
Representation results of the connection test.

checkDataSourceConnection

public java.lang.Boolean checkDataSourceConnection(JDBCDataSource ds)
Testing connections

Parameters:
ds - the datasource to test
Returns:
Boolean results of the connection test.


Copyright © 2010-2013 CNES. All Rights Reserved.