Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d264a9caba
@ -10,19 +10,12 @@ Ext.namespace('Zarafa.plugins.mdm.data');
|
|||||||
*/
|
*/
|
||||||
Zarafa.plugins.mdm.data.JsonDeviceFolderReader = Ext.extend(Zarafa.core.data.JsonReader, {
|
Zarafa.plugins.mdm.data.JsonDeviceFolderReader = Ext.extend(Zarafa.core.data.JsonReader, {
|
||||||
|
|
||||||
/**
|
|
||||||
* @cfg {Zarafa.core.data.RecordCustomObjectType} customObjectType The custom object type
|
|
||||||
* which represents the {@link Ext.data.Record records} which should be created using
|
|
||||||
* {@link Zarafa.core.data.RecordFactory#createRecordObjectByCustomType}.
|
|
||||||
*/
|
|
||||||
customObjectType: Zarafa.core.data.RecordCustomObjectType.MDM_Device_Folder,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} meta Metadata configuration options.
|
* @param {Object} meta Metadata configuration options.
|
||||||
* @param {Object} recordType (optional) Optional Record type matches the type
|
* @param {Object} recordType (optional) Optional Record type matches the type
|
||||||
* which must be read from response. If no type is given, it will use the
|
* which must be read from response. If no type is given, it will use the
|
||||||
* record type for the {@link Zarafa.core.data.RecordCustomObjectType#ZARAFA_RECIPIENT}.
|
* record type for the {@link Zarafa.core.data.RecordCustomObjectType#MDM_Device_Folder}.
|
||||||
*/
|
*/
|
||||||
constructor: function (meta, recordType)
|
constructor: function (meta, recordType)
|
||||||
{
|
{
|
||||||
@ -33,7 +26,7 @@ Zarafa.plugins.mdm.data.JsonDeviceFolderReader = Ext.extend(Zarafa.core.data.Jso
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!Ext.isDefined(recordType)) {
|
if (!Ext.isDefined(recordType)) {
|
||||||
recordType = Zarafa.core.data.RecordFactory.getRecordClassByCustomType(meta.customObjectType || this.customObjectType);
|
recordType = Zarafa.core.data.RecordFactory.getRecordClassByCustomType(meta.customObjectType);
|
||||||
}
|
}
|
||||||
|
|
||||||
Zarafa.plugins.mdm.data.JsonDeviceFolderReader.superclass.constructor.call(this, meta, recordType);
|
Zarafa.plugins.mdm.data.JsonDeviceFolderReader.superclass.constructor.call(this, meta, recordType);
|
||||||
|
@ -7,6 +7,14 @@ Ext.namespace('Zarafa.plugins.mdm.data');
|
|||||||
* Store specific for MDM Plugin which creates {@link Zarafa.plugins.mdm.MDMDeviceFolderStore record}.
|
* Store specific for MDM Plugin which creates {@link Zarafa.plugins.mdm.MDMDeviceFolderStore record}.
|
||||||
*/
|
*/
|
||||||
Zarafa.plugins.mdm.data.MDMDeviceFolderStore = Ext.extend(Zarafa.core.data.MAPISubStore, {
|
Zarafa.plugins.mdm.data.MDMDeviceFolderStore = Ext.extend(Zarafa.core.data.MAPISubStore, {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @cfg {Zarafa.core.data.RecordCustomObjectType} customObjectType The custom object type
|
||||||
|
* which represents the {@link Ext.data.Record records} which should be created using
|
||||||
|
* {@link Zarafa.core.data.RecordFactory#createRecordObjectByCustomType}.
|
||||||
|
*/
|
||||||
|
customObjectType: Zarafa.core.data.RecordCustomObjectType.MDM_Device_Folder,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param config Configuration object
|
* @param config Configuration object
|
||||||
@ -18,7 +26,9 @@ Zarafa.plugins.mdm.data.MDMDeviceFolderStore = Ext.extend(Zarafa.core.data.MAPIS
|
|||||||
Ext.applyIf(config, {
|
Ext.applyIf(config, {
|
||||||
autoLoad: true,
|
autoLoad: true,
|
||||||
remoteSort: false,
|
remoteSort: false,
|
||||||
reader: new Zarafa.plugins.mdm.data.JsonDeviceFolderReader(),
|
reader: new Zarafa.plugins.mdm.data.JsonDeviceFolderReader({
|
||||||
|
customObjectType: this.customObjectType
|
||||||
|
}),
|
||||||
writer: new Zarafa.plugins.mdm.data.MDMDeviceFolderWriter(),
|
writer: new Zarafa.plugins.mdm.data.MDMDeviceFolderWriter(),
|
||||||
proxy: new Zarafa.core.data.IPMProxy({
|
proxy: new Zarafa.core.data.IPMProxy({
|
||||||
listModuleName: 'pluginmdmmodule',
|
listModuleName: 'pluginmdmmodule',
|
||||||
|
Loading…
Reference in New Issue
Block a user