public class OperationHandler extends Object
Constructor and Description |
---|
OperationHandler() |
Modifier and Type | Method and Description |
---|---|
void |
dataWipe(StatusTag 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 |
ring(StatusTag status,
SyncmlDocument syncmlDocument,
org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier)
Update status of the ring operation.
|
org.wso2.carbon.device.mgt.common.policy.mgt.monitor.ComplianceFeature |
setComplianceFeatures(org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature activeFeature,
Profile deviceFeature)
Set compliance of the feature according to the device status for the specific feature.
|
void |
updateDeviceInfo(SyncmlDocument syncmlDocument) |
void |
updateDeviceInfoStatus(org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) |
void |
updateDeviceLocationStatus(SyncmlDocument syncmlDocument) |
void |
updateDeviceOperations(StatusTag status,
SyncmlDocument syncmlDocument,
org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier)
Update the operations using device status payload.
|
void |
updateLockOperation(StatusTag status,
SyncmlDocument syncmlDocument,
org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier)
Update Status of the lock operation.
|
static void |
updateStatus(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(StatusTag status, SyncmlDocument syncmlDocument, org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
status
- Client side status for the specific operations.syncmlDocument
- syncml payload for operation status which parse through the syncml engine.deviceIdentifier
- specific device identifier for each device.org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
public static void updateStatus(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 Id.operations
- operation list to be update.org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
public void updateLockOperation(StatusTag status, SyncmlDocument syncmlDocument, org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
status
- Status of the operation.syncmlDocument
- parsed syncml payload.deviceIdentifier
- Device Id.org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
public void ring(StatusTag status, SyncmlDocument syncmlDocument, org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
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.OperationManagementException
public void dataWipe(StatusTag status, SyncmlDocument syncmlDocument, org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
status
- Status of the data wipe.syncmlDocument
- Parsed syncml payload from the syncml engine.deviceIdentifier
- specific device id to be wiped.org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
public void updateDeviceInfoStatus(org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
public void updateDeviceLocationStatus(SyncmlDocument syncmlDocument) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
public List<? extends org.wso2.carbon.device.mgt.common.operation.mgt.Operation> getPendingOperations(SyncmlDocument syncmlDocument) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException, WindowsOperationException
syncmlDocument
- SyncmlDocument object which creates from the syncml engine using syncml payloadorg.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
WindowsOperationException
public org.wso2.carbon.device.mgt.common.policy.mgt.monitor.ComplianceFeature setComplianceFeatures(org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature activeFeature, Profile deviceFeature)
activeFeature
- Features to be applied on the device.deviceFeature
- Actual features applied on the device.public void UpdateUriOperations(SyncmlDocument syncmlDocument) throws 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.operation.mgt.OperationManagementException
WindowsOperationException
public List<Profile> generateDeviceOperationStatusObject(SyncmlDocument syncmlDocument) throws WindowsOperationException
syncmlDocument
- syncmlDocument object pasrsed from the syncml engine.WindowsOperationException
public void generateComplianceFeatureStatus(SyncmlDocument syncmlDocument) throws WindowsOperationException
syncmlDocument
- syncmlDocument object parsed from the syncml engine.WindowsOperationException
public void updateDeviceInfo(SyncmlDocument syncmlDocument) throws WindowsOperationException
WindowsOperationException
Copyright © 2017 WSO2. All rights reserved.