src/it/ht/rcs/console/entities/rest/_Super_DBEntity.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 - DBEntity.as.
*/
package it.ht.rcs.console.entities.rest
{
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.HTTPServiceWrapper;
import it.ht.rcs.console.entities.model.Contact;
import it.ht.rcs.console.entities.model.Entity;
import it.ht.rcs.console.entities.model.Flow;
import it.ht.rcs.console.entities.model.Place;
import it.ht.rcs.console.entities.model.PositionsFlow;
import it.ht.rcs.console.entities.model.Visit;
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_DBEntity 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_DBEntity()
{
// initialize service control
_serviceControl = new mx.rpc.http.HTTPMultiService("http://localhost:4444");
var operations:Array = new Array();
var operation:mx.rpc.http.Operation;
var argsArray:Array;
operation = new mx.rpc.http.Operation(null, "all_");
operation.url = "/entity";
operation.method = "GET";
operation.serializationFilter = serializer0;
operation.resultType = it.ht.rcs.console.entities.model.Entity;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "show_");
operation.url = "/entity/{id}";
operation.method = "GET";
argsArray = new Array("id");
operation.argumentNames = argsArray;
operation.serializationFilter = serializer0;
operation.properties = new Object();
operation.properties["urlParamNames"] = ["id"];
operation.resultType = it.ht.rcs.console.entities.model.Entity;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "update_");
operation.url = "/entity/update";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operation.resultType = it.ht.rcs.console.entities.model.Entity;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "destroy_");
operation.url = "/entity/destroy";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "create_");
operation.url = "/entity";
operation.method = "POST";
operation.serializationFilter = serializer0;
operation.contentType = "application/xml";
operation.resultType = it.ht.rcs.console.entities.model.Entity;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "delete_photo_");
operation.url = "/entity/del_photo";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "add_photo_from_grid_");
operation.url = "/entity/add_photo_from_grid";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "add_handle_");
operation.url = "/entity/add_handle";
operation.method = "POST";
operation.serializationFilter = serializer0;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "del_handle_");
operation.url = "/entity/del_handle";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "most_contacted_");
operation.url = "/entity/most_contacted";
operation.method = "POST";
operation.serializationFilter = serializer0;
operation.contentType = "application/xml";
operation.resultElementType = it.ht.rcs.console.entities.model.Contact;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "add_link_");
operation.url = "/entity/add_link";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "del_link_");
operation.url = "/entity/del_link";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "edit_link_");
operation.url = "/entity/edit_link";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "merge_");
operation.url = "/entity/merge";
operation.method = "POST";
operation.serializationFilter = serializer1;
operation.contentType = "application/xml";
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "most_visited_urls_");
operation.url = "/entity/most_visited_urls";
operation.method = "POST";
operation.serializationFilter = serializer0;
operation.contentType = "application/xml";
operation.resultElementType = it.ht.rcs.console.entities.model.Visit;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "most_visited_places_");
operation.url = "/entity/most_visited_places";
operation.method = "POST";
operation.serializationFilter = serializer0;
operation.contentType = "application/xml";
operation.resultElementType = it.ht.rcs.console.entities.model.Place;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "flow_");
operation.url = "/entity/flow";
operation.method = "POST";
operation.serializationFilter = serializer0;
operation.contentType = "application/xml";
operation.resultElementType = it.ht.rcs.console.entities.model.Flow;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "positions_");
operation.url = "/entity/positions";
operation.method = "POST";
operation.serializationFilter = serializer0;
operation.contentType = "application/xml";
operation.resultElementType = it.ht.rcs.console.entities.model.PositionsFlow;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "promote_to_target_");
operation.url = "/entity/promote_to_target";
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_' 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_() : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("all_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'show_' 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 show_(id:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("show_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(id) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'update_' 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_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("update_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'destroy_' 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_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("destroy_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'create_' 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_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("create_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'delete_photo_' 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 delete_photo_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("delete_photo_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'add_photo_from_grid_' 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 add_photo_from_grid_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("add_photo_from_grid_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'add_handle_' 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 add_handle_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("add_handle_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'del_handle_' 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 del_handle_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("del_handle_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'most_contacted_' 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 most_contacted_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("most_contacted_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'add_link_' 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 add_link_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("add_link_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'del_link_' 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 del_link_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("del_link_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'edit_link_' 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 edit_link_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("edit_link_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'merge_' 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 merge_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("merge_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'most_visited_urls_' 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 most_visited_urls_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("most_visited_urls_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'most_visited_places_' 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 most_visited_places_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("most_visited_places_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'flow_' 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 flow_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("flow_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'positions_' 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 positions_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("positions_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
/**
* This method is a generated wrapper used to call the 'promote_to_target_' 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 promote_to_target_(strXml:String) : mx.rpc.AsyncToken
{
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("promote_to_target_");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(strXml) ;
return _internal_token;
}
}
}