1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Ext.namespace('Zarafa.plugins.files.data');
/**
* @class Zarafa.plugins.files.data.FilesProxy
* @extends Zarafa.core.data.IPMProxy
*
* Special Proxy for the {@link Zarafa.plugins.files.data.FilesRecordStore FilesRecord Store}.
*/
Zarafa.plugins.files.data.FilesProxy = Ext.extend(Zarafa.core.data.IPMProxy, {
/**
* This will create a {@link Zarafa.core.data.ProxyResponseHandler ProxyResponseHandler} object
* which will be used by the {@link Zarafa.core.data.ResponseRouter ResponseRouter} when the
* response for the given request has returned.
*
* @param {String} modulename The modulename which is being accessed with this request
* @param {Zarafa.core.Actions} serverAction The action to perform on the server.
* @param {Ext.data.Api.action} action name of the action to perform.
* @param {Ext.data.Record[]} records list of records to operate on.
* @param {Object} parameters object containing user parameters such as range (pagination) information, sorting information, etc.
* @param {Ext.data.DataReader} reader data reader. Converts raw JavaScript objects (in our case) to instances of {@link Ext.data.Record}
* @param {Function} callback call back function to call when the request has finished successfully.
* @param {Object} scope scope for the call back function.
* @param {Object} args arguments object. This will be passed to the call back function on successful read.
* @return {Object} An instance of the {@link Zarafa.core.data.ProxyResponseHandler ProxyResponseHandler}
* which should be used for this request.
* @private
*/
getResponseHandlerForRequest : function(modulename, serverAction, action, records, parameters, reader, callback, scope, args)
{
return new Zarafa.plugins.files.data.ResponseHandler({
proxy: this,
action: action,
reader: reader,
sendRecords: records,
options: args,
callback: callback,
scope: scope
});
}
});
|