fr.cnes.sitools.datasource.mongodb
Class ActivationDataSourceResource
java.lang.Object
  
ExtendedWadlServerResource
      
fr.cnes.sitools.common.resource.AbstractSitoolsResource
          
fr.cnes.sitools.common.SitoolsResource
              
fr.cnes.sitools.datasource.mongodb.AbstractDataSourceResource
                  
fr.cnes.sitools.datasource.mongodb.ActivationDataSourceResource
public final class ActivationDataSourceResource
- extends AbstractDataSourceResource
 
Actions on DataSource : testConnection activation / disable of the associated Application(s)
- Author:
 
  - jp.boignard (AKKA Technologies)
 
 
 
 
| 
Method Summary | 
 org.restlet.representation.Representation | 
action(org.restlet.representation.Representation representation,
       org.restlet.representation.Variant variant)
 
          PUT to activate DataSource | 
 void | 
describePut(org.restlet.ext.wadl.MethodInfo info,
            java.lang.String path)
 
          Describe the GET method | 
 void | 
sitoolsDescribe()
 
          Method implementation mandatory | 
 boolean | 
testDataSourceConnection(MongoDBDataSource ds,
                         java.util.List<java.lang.String> trace)
 
          Testing connections | 
 
 
| Methods inherited from class fr.cnes.sitools.common.SitoolsResource | 
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting, trace, trace | 
 
 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ActivationDataSourceResource
public ActivationDataSourceResource()
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 sentvariant - 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 informationpath - url attachment of the resource
 
 
testDataSourceConnection
public boolean testDataSourceConnection(MongoDBDataSource ds,
                                        java.util.List<java.lang.String> trace)
- Testing connections
- Parameters:
 ds - the DataSource to testtrace - a List of String to store the trace of the test. Can be null
- Returns:
 - Representation results of the connection test.
 
 
 
Copyright © 2010-2013 CNES. All Rights Reserved.