KWA-MDM/js/data/MDMDeviceStore.js

34 lines
956 B
JavaScript
Raw Normal View History

2016-05-11 10:40:44 +02:00
Ext.namespace('Zarafa.plugins.mdm.data');
/**
* @class Zarafa.plugins.mdm.data.MDMDeviceStore
* @extends Zarafa.core.data.ListModuleStore
* @xtype mdm.devicestore
* Store specific for MDM Plugin which creates {@link Zarafa.plugins.mdm.MDMDeviceRecord record}.
*/
Zarafa.plugins.mdm.data.MDMDeviceStore = Ext.extend(Zarafa.core.data.ListModuleStore, {
/**
* @constructor
* @param config Configuration object
*/
constructor : function(config)
{
config = config || {};
Ext.applyIf(config, {
autoLoad : true,
remoteSort: false,
reader : new Zarafa.plugins.mdm.data.JsonCertificateReader(),
writer : new Zarafa.core.data.JsonWriter(),
proxy : new Zarafa.core.data.IPMProxy({
listModuleName: 'pluginmdmmodule',
itemModuleName: 'pluginmdmmodule'
})
});
Zarafa.plugins.mdm.data.MDMDeviceStore.superclass.constructor.call(this, config);
}
});
Ext.reg('mdm.devicestore', Zarafa.plugins.mdm.data.MDMDeviceStore);