mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
fix compilation error
This commit is contained in:
parent
b5a1433709
commit
0dbd4bf2db
@ -642,6 +642,16 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is responsible to add operation on given devices.
|
||||
*
|
||||
* @param applicationDTO application.
|
||||
* @param deviceIdentifierList list of device identifiers.
|
||||
* @param deviceType device type
|
||||
* @param action action e.g :- INSTALL, UNINSTALL
|
||||
* @return {@link Activity}
|
||||
* @throws ApplicationManagementException if found an invalid device.
|
||||
*/
|
||||
private Activity addAppOperationOnDevices(ApplicationDTO applicationDTO,
|
||||
List<DeviceIdentifier> deviceIdentifierList, String deviceType, String action)
|
||||
throws ApplicationManagementException {
|
||||
@ -664,7 +674,6 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
||||
private Operation generateOperationPayloadByDeviceType(String deviceType, Application application, String action)
|
||||
throws ApplicationManagementException {
|
||||
try {
|
||||
//todo rethink and modify the {@link App} usage
|
||||
if (ApplicationType.CUSTOM.toString().equalsIgnoreCase(application.getType())) {
|
||||
ProfileOperation operation = new ProfileOperation();
|
||||
if (SubAction.INSTALL.toString().equalsIgnoreCase(action)) {
|
||||
@ -720,7 +729,7 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
||||
return MDMIOSOperationUtil.createInstallAppOperation(app);
|
||||
} else if (SubAction.UNINSTALL.toString().equalsIgnoreCase(action)) {
|
||||
app.setType(mobileAppType);
|
||||
app.setAppIdentifier(application.getPackageName());
|
||||
app.setIdentifier(application.getPackageName());
|
||||
return MDMIOSOperationUtil.createAppUninstallOperation(app);
|
||||
} else {
|
||||
String msg = "Invalid Action is found. Action: " + action;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user