|
|
@ -81,11 +81,19 @@ public class OperationDAOUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
operation.setEnabled(dtoOperation.isEnabled());
|
|
|
|
operation.setEnabled(dtoOperation.isEnabled());
|
|
|
|
operation.setCode(dtoOperation.getCode());
|
|
|
|
operation.setCode(dtoOperation.getCode());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(dtoOperation.getType() != null) {
|
|
|
|
operation.setType(org.wso2.carbon.device.mgt.common.operation.mgt.Operation.Type.valueOf(dtoOperation
|
|
|
|
operation.setType(org.wso2.carbon.device.mgt.common.operation.mgt.Operation.Type.valueOf(dtoOperation
|
|
|
|
.getType().toString()));
|
|
|
|
.getType().toString()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
operation.setCreatedTimeStamp(dtoOperation.getCreatedTimeStamp());
|
|
|
|
operation.setCreatedTimeStamp(dtoOperation.getCreatedTimeStamp());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(dtoOperation.getStatus() != null) {
|
|
|
|
operation.setStatus(org.wso2.carbon.device.mgt.common.operation.mgt.Operation.Status.valueOf(dtoOperation
|
|
|
|
operation.setStatus(org.wso2.carbon.device.mgt.common.operation.mgt.Operation.Status.valueOf(dtoOperation
|
|
|
|
.getStatus().toString()));
|
|
|
|
.getStatus().toString()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
operation.setId(dtoOperation.getId());
|
|
|
|
operation.setId(dtoOperation.getId());
|
|
|
|
operation.setPayLoad(dtoOperation.getPayLoad());
|
|
|
|
operation.setPayLoad(dtoOperation.getPayLoad());
|
|
|
|
operation.setReceivedTimeStamp(dtoOperation.getReceivedTimeStamp());
|
|
|
|
operation.setReceivedTimeStamp(dtoOperation.getReceivedTimeStamp());
|
|
|
|