public class OperationUtils extends Object
| Constructor and Description |
|---|
OperationUtils() |
| Modifier and Type | Method and Description |
|---|---|
void |
dataWipe(Status status,
SyncmlDocument syncmlDocument,
org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier)
Update the status of the DataWipe operation.
|
void |
generateComplianceFeatureStatus(SyncmlDocument syncmlDocument)
Generate Compliance Features
|
List<Profile> |
generateDeviceOperationStatusObject(SyncmlDocument syncmlDocument)
Generate status of the features that have been activated on the device.
|
List<? extends org.wso2.carbon.device.mgt.common.operation.mgt.Operation> |
getPendingOperations(SyncmlDocument syncmlDocument)
Get pending operations.
|
void |
lockOperationUpdate(Status status,
SyncmlDocument syncmlDocument,
org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier)
Update Status of the lock operation.
|
void |
ring(Status status,
SyncmlDocument syncmlDocument,
org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier)
Update status of the ring operation.
|
org.wso2.carbon.policy.mgt.common.monitor.ComplianceFeature |
setComplianceFeatures(org.wso2.carbon.policy.mgt.common.ProfileFeature activeFeature,
Profile deviceFeature)
Set compliance of the feature according to the device status for the specific feature.
|
void |
updateDeviceOperations(Status status,
SyncmlDocument syncmlDocument,
org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier)
Update the operations using device status payload.
|
void |
updateOperations(String deviceId,
List<? extends org.wso2.carbon.device.mgt.common.operation.mgt.Operation> operations)
Update operation statuses
|
void |
UpdateUriOperations(SyncmlDocument syncmlDocument)
Update the completed/Error status of the operation which have the URI of the operation code in the syncml payload.
|
public void updateDeviceOperations(Status status, SyncmlDocument syncmlDocument, org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException, org.wso2.carbon.device.mgt.common.DeviceManagementException, org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException, WindowsOperationException
status - Client side status for the specific operationssyncmlDocument - syncml payload for operation status which parse through the syncml enginedeviceIdentifier - specific device identifier for each deviceorg.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExceptionorg.wso2.carbon.device.mgt.common.DeviceManagementExceptionorg.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementExceptionWindowsOperationExceptionpublic void updateOperations(String deviceId, List<? extends org.wso2.carbon.device.mgt.common.operation.mgt.Operation> operations) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
deviceId - specific device Idoperations - operation list to be updateorg.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExceptionpublic void lockOperationUpdate(Status status, SyncmlDocument syncmlDocument, org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException, org.wso2.carbon.device.mgt.common.DeviceManagementException, org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException
status - Status of the operation.syncmlDocument - parsed syncml payload.deviceIdentifier - Device Id.org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExceptionorg.wso2.carbon.device.mgt.common.DeviceManagementExceptionorg.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementExceptionpublic void ring(Status status, SyncmlDocument syncmlDocument, org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException, org.wso2.carbon.device.mgt.common.DeviceManagementException
status - Ring status of the device.syncmlDocument - Parsed syncml payload from the syncml engine.deviceIdentifier - specific device id to be update.org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExceptionorg.wso2.carbon.device.mgt.common.DeviceManagementExceptionpublic void dataWipe(Status status, SyncmlDocument syncmlDocument, org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException, org.wso2.carbon.device.mgt.common.DeviceManagementException
status - Status of the datawipe.syncmlDocument - Parsed syncml payload from the syncml engine.deviceIdentifier - specific device id to be wiped.org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExceptionorg.wso2.carbon.device.mgt.common.DeviceManagementExceptionpublic List<? extends org.wso2.carbon.device.mgt.common.operation.mgt.Operation> getPendingOperations(SyncmlDocument syncmlDocument) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException, org.wso2.carbon.device.mgt.common.DeviceManagementException, org.wso2.carbon.device.mgt.common.FeatureManagementException, org.wso2.carbon.policy.mgt.common.monitor.PolicyComplianceException, org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException, WindowsDeviceEnrolmentException, WindowsOperationException
syncmlDocument - SyncmlDocument object which creates from the syncml engine using syncml payloadorg.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExceptionorg.wso2.carbon.device.mgt.common.DeviceManagementExceptionorg.wso2.carbon.device.mgt.common.FeatureManagementExceptionorg.wso2.carbon.policy.mgt.common.monitor.PolicyComplianceExceptionorg.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementExceptionWindowsDeviceEnrolmentExceptionWindowsOperationExceptionpublic org.wso2.carbon.policy.mgt.common.monitor.ComplianceFeature setComplianceFeatures(org.wso2.carbon.policy.mgt.common.ProfileFeature activeFeature,
Profile deviceFeature)
activeFeature - deviceFeature - public void UpdateUriOperations(SyncmlDocument syncmlDocument) throws org.wso2.carbon.device.mgt.common.DeviceManagementException, org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException, org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException, WindowsOperationException
syncmlDocument - SyncmlDocument object generated from the the syncml engine.org.wso2.carbon.device.mgt.common.DeviceManagementExceptionorg.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementExceptionorg.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExceptionWindowsOperationExceptionpublic List<Profile> generateDeviceOperationStatusObject(SyncmlDocument syncmlDocument) throws org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException, WindowsOperationException
syncmlDocument - syncmlDocument object pasrsed from the syncml engine.org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementExceptionWindowsOperationExceptionpublic void generateComplianceFeatureStatus(SyncmlDocument syncmlDocument) throws org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException, org.wso2.carbon.device.mgt.common.FeatureManagementException, org.wso2.carbon.policy.mgt.common.monitor.PolicyComplianceException, WindowsDeviceEnrolmentException, WindowsOperationException
syncmlDocument - syncmlDocument object parsed from the syncml engine.org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementExceptionorg.wso2.carbon.device.mgt.common.FeatureManagementExceptionorg.wso2.carbon.policy.mgt.common.monitor.PolicyComplianceExceptionWindowsDeviceEnrolmentExceptionWindowsOperationExceptionCopyright © 2016 WSO2. All rights reserved.