b1e0b39c8e
On server side prepare device information data from z-push webservice response. On client side prepare dialog to show addition device information on row double click.
38 lines
1.6 KiB
JavaScript
38 lines
1.6 KiB
JavaScript
Ext.namespace('Zarafa.plugins.mdm');
|
|
|
|
Zarafa.plugins.mdm.data.MDMDeviceRecordFields = [
|
|
{name: 'entryid', type: 'string'},
|
|
{name: 'devicetype', type: 'string'},
|
|
{name: 'deviceos', type: 'string'},
|
|
{name: 'devicefriendlyname', type: 'string'},
|
|
{name: 'useragent', type: 'string'},
|
|
{name: 'asversion', type: 'string'},
|
|
{name: 'firstsynctime', type: 'date', dateFormat: 'timestamp'},
|
|
{name: 'lastsynctime', type: 'date', dateFormat: 'timestamp'},
|
|
{name: 'lastupdatetime', type: 'date', dateFormat: 'timestamp'},
|
|
{name: 'wipestatus', type: 'string'},
|
|
{name: 'policyname', type: 'string'},
|
|
{name: 'totalfolders', type: 'string'},
|
|
{name: 'shortfolderids', type: 'string'},
|
|
{name: 'synchronizedfolders', type: 'string'},
|
|
{name: 'synchronizeddata', type: 'string'},
|
|
{name: 'koeversion', type: 'string'},
|
|
{name: 'koebuild', type: 'string'},
|
|
{name: 'koebuilddate', type: 'date', dateFormat: 'timestamp'}
|
|
];
|
|
|
|
/**
|
|
*
|
|
*/
|
|
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);
|