34 lines
1.4 KiB
JavaScript
34 lines
1.4 KiB
JavaScript
|
Ext.namespace('Zarafa.plugins.mdm');
|
||
|
|
||
|
Zarafa.plugins.mdm.data.MDMDeviceRecordFields = [
|
||
|
{name: 'entryid', type: 'string'},
|
||
|
{name: 'changed', type: 'boolean'},
|
||
|
{name: 'deviceos', type: 'string'},
|
||
|
{name: 'devicefriendlyname', type: 'string'},
|
||
|
{name: 'deviceinfo', type: 'string'},
|
||
|
{name: 'devicetype', type: 'string'},
|
||
|
{name: 'devicemodel', type: 'string'},
|
||
|
{name: 'domain', type: 'string'},
|
||
|
{name: 'hierarchyuuid', type: 'string'},
|
||
|
// ignoredmessages
|
||
|
{name: 'firstsynctime', type: 'date', dateFormat: 'timestamp'},
|
||
|
{name: 'lastupdatetime', type: 'date', dateFormat: 'timestamp'},
|
||
|
{name: 'wipestatus', type: 'string'},
|
||
|
{name: 'useragent', type: 'string'}
|
||
|
];
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
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);
|