568eb9170d
Added button in MDMDeviceGeneralTab Created MDMManageSharedFolderContentPanel and MDMManageSharedFolderPanel to show a dialog with multi select hierarchy Created substore sharedfolder Added proxy and response handler to handel device response Used message class instead of object type, Override hierarchy tree , hierarchy loader and folder node ui
42 lines
1.5 KiB
JavaScript
42 lines
1.5 KiB
JavaScript
Ext.namespace('Zarafa.plugins.mdm.data');
|
|
|
|
/**
|
|
* @class Zarafa.plugins.mdm.data.JsonDeviceFolderReader
|
|
* @extends Zarafa.core.data.JsonReader
|
|
*
|
|
* This extension of the {@link Zarafa.core.data.JsonReader} supports
|
|
* {@link Zarafa.plugins.mdm.data.MDMDeviceStore stores} which can hold different type of
|
|
* {@link Zarafa.plugins.mdm.data.MDMDeviceRecord records}.
|
|
*/
|
|
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
|
|
* @param {Object} meta Metadata configuration options.
|
|
* @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
|
|
* record type for the {@link Zarafa.core.data.RecordCustomObjectType#ZARAFA_RECIPIENT}.
|
|
*/
|
|
constructor: function (meta, recordType)
|
|
{
|
|
meta = Ext.applyIf(meta || {}, {
|
|
id: 'folderid',
|
|
idProperty: 'folderid',
|
|
dynamicRecord: false
|
|
});
|
|
|
|
if (!Ext.isDefined(recordType)) {
|
|
recordType = Zarafa.core.data.RecordFactory.getRecordClassByCustomType(meta.customObjectType || this.customObjectType);
|
|
}
|
|
|
|
Zarafa.plugins.mdm.data.JsonDeviceFolderReader.superclass.constructor.call(this, meta, recordType);
|
|
}
|
|
});
|