2016-05-11 10:40:44 +02:00
|
|
|
Ext.namespace('Zarafa.plugins.mdm');
|
|
|
|
|
2017-04-20 13:49:55 +02:00
|
|
|
/**
|
|
|
|
* @class Zarafa.plugins.mdm.data.MDMDeviceRecordFields Array of {@link Ext.data.Field field} configurations for the
|
|
|
|
* {@link Zarafa.plugins.mdm.data.MDMDeviceRecord record} object.
|
|
|
|
* @private
|
|
|
|
*/
|
2016-05-11 10:40:44 +02:00
|
|
|
Zarafa.plugins.mdm.data.MDMDeviceRecordFields = [
|
|
|
|
{name: 'entryid', type: 'string'},
|
2016-12-06 06:52:40 +01:00
|
|
|
{name: 'devicetype', type: 'string'},
|
2016-05-11 10:40:44 +02:00
|
|
|
{name: 'deviceos', type: 'string'},
|
|
|
|
{name: 'devicefriendlyname', type: 'string'},
|
2016-12-06 06:52:40 +01:00
|
|
|
{name: 'useragent', type: 'string'},
|
|
|
|
{name: 'asversion', type: 'string'},
|
2016-05-11 10:40:44 +02:00
|
|
|
{name: 'firstsynctime', type: 'date', dateFormat: 'timestamp'},
|
2016-12-06 06:52:40 +01:00
|
|
|
{name: 'lastsynctime', type: 'date', dateFormat: 'timestamp'},
|
2016-05-11 10:40:44 +02:00
|
|
|
{name: 'lastupdatetime', type: 'date', dateFormat: 'timestamp'},
|
|
|
|
{name: 'wipestatus', type: 'string'},
|
2016-12-06 06:52:40 +01:00
|
|
|
{name: 'policyname', type: 'string'},
|
2017-04-20 13:49:55 +02:00
|
|
|
{name: 'sharedfolders', type: 'string'},
|
2016-12-06 06:52:40 +01:00
|
|
|
{name: 'shortfolderids', type: 'string'},
|
2017-04-20 13:49:55 +02:00
|
|
|
{name: 'synchronizedfolders', type: 'string', defaultValue:'0'},
|
|
|
|
{name: 'emailsfolder', type: 'string', defaultValue:'0'},
|
|
|
|
{name: 'contactsfolder', type: 'string', defaultValue:'0'},
|
|
|
|
{name: 'tasksfolder', type: 'string', defaultValue:'0'},
|
|
|
|
{name: 'calendarsfolder', type: 'string', defaultValue:'0'},
|
|
|
|
{name: 'notesfolder', type: 'string', defaultValue:'0'},
|
2016-12-06 06:52:40 +01:00
|
|
|
{name: 'koeversion', type: 'string'},
|
|
|
|
{name: 'koebuild', type: 'string'},
|
2017-04-20 13:49:55 +02:00
|
|
|
{name: 'koebuilddate', type: 'date', dateFormat: 'timestamp'},
|
|
|
|
{name: 'message_class', type: 'string', defaultValue:"IPM.MDM"}
|
2016-05-11 10:40:44 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
2017-04-20 13:49:55 +02:00
|
|
|
Zarafa.plugins.mdm.data.MDMDeviceRecord = Ext.extend(Zarafa.core.data.IPMRecord, {});
|
|
|
|
Zarafa.core.data.RecordFactory.addFieldToMessageClass('IPM.MDM', Zarafa.plugins.mdm.data.MDMDeviceRecordFields);
|
|
|
|
Zarafa.core.data.RecordFactory.setBaseClassToMessageClass('IPM.MDM', Zarafa.plugins.mdm.data.MDMDeviceRecord);
|
|
|
|
Zarafa.core.data.RecordFactory.setSubStoreToMessageClass('IPM.MDM', 'sharedfolders', Zarafa.plugins.mdm.data.MDMDeviceFolderStore);
|