2016-05-11 10:40:44 +02:00
|
|
|
Ext.namespace('Zarafa.plugins.mdm');
|
|
|
|
|
|
|
|
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'},
|
|
|
|
{name: 'totalfolders', type: 'string'},
|
|
|
|
{name: 'shortfolderids', type: 'string'},
|
|
|
|
{name: 'synchronizedfolders', type: 'string'},
|
2017-02-21 08:12:13 +01:00
|
|
|
{name: 'emailsfolder', type: 'string'},
|
|
|
|
{name: 'contactsfolder', type: 'string'},
|
|
|
|
{name: 'tasksfolder', type: 'string'},
|
|
|
|
{name: 'calendarsfolder', type: 'string'},
|
|
|
|
{name: 'notesfolder', type: 'string'},
|
2016-12-06 06:52:40 +01:00
|
|
|
{name: 'koeversion', type: 'string'},
|
|
|
|
{name: 'koebuild', type: 'string'},
|
|
|
|
{name: 'koebuilddate', type: 'date', dateFormat: 'timestamp'}
|
2016-05-11 10:40:44 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
Zarafa.plugins.mdm.data.MDMDeviceRecord = Ext.extend(Zarafa.core.data.IPMRecord, {});
|
|
|
|
Zarafa.core.data.RecordCustomObjectType.addProperty('ZARAFA_MDM');
|
|
|
|
Zarafa.core.data.RecordFactory.addFieldToCustomType(Zarafa.core.data.RecordCustomObjectType.ZARAFA_MDM, Zarafa.plugins.mdm.data.MDMDeviceRecordFields);
|
|
|
|
|
|
|
|
Zarafa.core.data.RecordFactory.addListenerToCustomType(Zarafa.core.data.RecordCustomObjectType.ZARAFA_MDM, 'createphantom', function(record)
|
|
|
|
{
|
|
|
|
// Phantom records must always be marked as opened (they contain the full set of data)
|
|
|
|
record.afterOpen();
|
|
|
|
});
|
|
|
|
|
|
|
|
Zarafa.core.data.RecordFactory.setBaseClassToCustomType(Zarafa.core.data.RecordCustomObjectType.ZARAFA_MDM, Zarafa.plugins.mdm.data.MDMDeviceRecord);
|