mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
adding Device-Info operation
This commit is contained in:
parent
84a6522cb8
commit
c52c292d15
@ -69,6 +69,7 @@ public class OperationReply {
|
|||||||
this.syncmlDocument = syncmlDocument;
|
this.syncmlDocument = syncmlDocument;
|
||||||
replySyncmlDocument = new SyncmlDocument();
|
replySyncmlDocument = new SyncmlDocument();
|
||||||
}
|
}
|
||||||
|
|
||||||
public OperationReply() {
|
public OperationReply() {
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -228,8 +229,8 @@ public class OperationReply {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void appendOperations(SyncmlBody syncmlBody) throws PolicyManagementException,
|
private void appendOperations(SyncmlBody syncmlBody) throws PolicyManagementException,
|
||||||
FeatureManagementException, JSONException,
|
FeatureManagementException, JSONException, SyncmlOperationException {
|
||||||
SyncmlOperationException {
|
|
||||||
GetTag getElement = new GetTag();
|
GetTag getElement = new GetTag();
|
||||||
List<ItemTag> getElements = new ArrayList<>();
|
List<ItemTag> getElements = new ArrayList<>();
|
||||||
List<ExecuteTag> executeElements = new ArrayList<>();
|
List<ExecuteTag> executeElements = new ArrayList<>();
|
||||||
@ -238,6 +239,7 @@ public class OperationReply {
|
|||||||
ReplaceTag replaceElement = new ReplaceTag();
|
ReplaceTag replaceElement = new ReplaceTag();
|
||||||
List<ItemTag> replaceItems = new ArrayList<>();
|
List<ItemTag> replaceItems = new ArrayList<>();
|
||||||
SequenceTag monitorSequence = new SequenceTag();
|
SequenceTag monitorSequence = new SequenceTag();
|
||||||
|
List<Operation> deviceInfoOperations;
|
||||||
|
|
||||||
if (operations != null) {
|
if (operations != null) {
|
||||||
for (Operation operation : operations) {
|
for (Operation operation : operations) {
|
||||||
@ -317,6 +319,14 @@ public class OperationReply {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (PluginConstants.OperationCodes.DEVICE_INFO.equals(operation.getCode())) {
|
||||||
|
HeartBeatDeviceInfo heartBeatDeviceInfo = new HeartBeatDeviceInfo();
|
||||||
|
deviceInfoOperations = heartBeatDeviceInfo.getDeviceInfo();
|
||||||
|
for (int x = 0; x > deviceInfoOperations.size(); x++) {
|
||||||
|
ItemTag deviceInfo = appendGetInfo(operation);
|
||||||
|
getElements.add(deviceInfo);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user