src/it/ht/rcs/console/backup/rest/_Super_DBBackup.as
/**
* This is a generated class and is not intended for modification. To customize behavior
* of this service wrapper you may modify the generated sub-class of this class - DBBackup.as.
*/
package it.ht.rcs.console.backup.rest
{
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.HTTPServiceWrapper;
import it.ht.rcs.console.backup.model.BackupArchive;
import it.ht.rcs.console.backup.model.BackupJob;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.http.HTTPMultiService;
import mx.rpc.http.Operation;
import com.adobe.serializers.json.JSONSerializationFilter;
import com.adobe.serializers.xml.XMLSerializationFilter;
[ExcludeClass]
internal class _Super_DBBackup extends com.adobe.fiber.services.wrapper.HTTPServiceWrapper
{
private static var serializer0:JSONSerializationFilter = new JSONSerializationFilter();
private static var serializer1:XMLSerializationFilter = new XMLSerializationFilter();
// Constructor
public function _Super_DBBackup()
{
// initialize service control
_serviceControl = new mx.rpc.http.HTTPMultiService("https://localhost:4444");
var operations:Array = new Array();
var operation:mx.rpc.http.Operation;
var argsArray:Array;
operation = new mx.rpc.http.Operation(null, "all_job_");
operation.url = "/backupjob";
operation.method = "GET";
operation.serializationFilter = serializer0;
operation.resultElementType = it.ht.rcs.console.backup.model.BackupJob;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "all_archive_");
operation.url = "/backuparchive";
operation.method = "GET";
operation.serializationFilter = serializer0;
operation.resultElementType = it.ht.rcs.console.backup.model.BackupArchive;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "create_job_");
operation.url = "/backupjob";
operation.method = "POST";
operation.serializationFilter = serializer0;
operation.contentType = "application/xml";
operation.resultType = it.ht.rcs.console.backup.model.BackupJob;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "update_job_");
operation.url = "/backupjob/update";
operation.method = "POST";
operation.serializationFilter = serializer0;
operation.contentType = "application/xml";
operation.resultType = it.ht.rcs.console.backup.model.BackupJob;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "destroy_job_");
operation.url = "/backupjob/destroy";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "destroy_archive_");
operation.url = "/backuparchive/destroy";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "restore_archive_");
operation.url = "/backuparchive/restore";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "run_job_");
operation.url = "/backupjob/run";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
_serviceControl.operationList = operations;
preInitializeService();
model_internal::initialize();
}
//init initialization routine here, child class to override
protected function preInitializeService():void
{
}
/**
* This method is a generated wrapper used to call the 'all_job_' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
*
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
*
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
*/
public function all_job_() : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("all_job_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'all_archive_' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
*
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
*
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
*/
public function all_archive_() : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("all_archive_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'create_job_' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
*
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
*
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
*/
public function create_job_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("create_job_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'update_job_' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
*
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
*
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
*/
public function update_job_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("update_job_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'destroy_job_' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
*
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
*
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
*/
public function destroy_job_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("destroy_job_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'destroy_archive_' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
*
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
*
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
*/
public function destroy_archive_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("destroy_archive_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'restore_archive_' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
*
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
*
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
*/
public function restore_archive_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("restore_archive_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'run_job_' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
*
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
*
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
*/
public function run_job_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("run_job_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
}
}