|
|
|
@ -20,7 +20,7 @@ package org.wso2.carbon.mdm.services.android.services;
|
|
|
|
|
|
|
|
|
|
import io.swagger.annotations.*;
|
|
|
|
|
import org.wso2.carbon.apimgt.annotations.api.API;
|
|
|
|
|
import org.wso2.carbon.apimgt.annotations.api.Permission;
|
|
|
|
|
import org.wso2.carbon.apimgt.annotations.api.Scope;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.operation.mgt.Activity;
|
|
|
|
|
import org.wso2.carbon.mdm.services.android.bean.wrapper.*;
|
|
|
|
|
|
|
|
|
@ -91,7 +91,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new lock operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:lock", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:lock", name = "Lock device", description = "")
|
|
|
|
|
Response configureDeviceLock(
|
|
|
|
|
@ApiParam(name = "deviceLockBeanWrapper",
|
|
|
|
|
value = "Device lock configurations with device IDs") DeviceLockBeanWrapper deviceLockBeanWrapper);
|
|
|
|
@ -145,7 +145,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new un-lock operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:unlock", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:unlock", name = "Unlock device", description = "")
|
|
|
|
|
Response configureDeviceUnlock(
|
|
|
|
|
@ApiParam(name = "deviceIDs", value = "DeviceIds to be enable device unlock operation")
|
|
|
|
|
List<String> deviceIDs);
|
|
|
|
@ -198,7 +198,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
code = 500,
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new get-location operation.")})
|
|
|
|
|
@Permission(scope = "device:android:location", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:location", name = "Get device location", description = "")
|
|
|
|
|
Response getDeviceLocation(
|
|
|
|
|
@ApiParam(name = "deviceIDs", value = "DeviceIDs to be requested to get device location")
|
|
|
|
|
List<String> deviceIDs);
|
|
|
|
@ -251,7 +251,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new clear password operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:clear-password", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:clear-password", name = "Clear password of device", description = "")
|
|
|
|
|
Response removePassword(
|
|
|
|
|
@ApiParam(name = "deviceIDs",
|
|
|
|
|
value = "DeviceIds to be requested to remove password") List<String> deviceIDs);
|
|
|
|
@ -304,7 +304,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new control camera operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:camera", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:camera", name = "Enable/Disable camera", description = "")
|
|
|
|
|
Response configureCamera(
|
|
|
|
|
@ApiParam(name = "cameraBeanWrapper", value = "Camera enable/disable configurations with device IDs")
|
|
|
|
|
CameraBeanWrapper cameraBeanWrapper);
|
|
|
|
@ -360,7 +360,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new device info operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:info", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:info", name = "Get device information", description = "")
|
|
|
|
|
Response getDeviceInformation(
|
|
|
|
|
@ApiParam(name = "deviceIds", value = "Device IDs to be requested to get device information")
|
|
|
|
|
List<String> deviceIDs);
|
|
|
|
@ -469,7 +469,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
code = 500,
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a enterprise wipe operation.")})
|
|
|
|
|
@Permission(scope = "device:android:enterprise-wipe", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:enterprise-wipe", name = "Enterprise wipe", description = "")
|
|
|
|
|
Response wipeDevice(@ApiParam(name = "deviceIDs", value = "Device IDs to be requested to do enterprise-wipe")
|
|
|
|
|
List<String> deviceIDs);
|
|
|
|
|
|
|
|
|
@ -521,7 +521,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
code = 500,
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a device wipe operation.")})
|
|
|
|
|
@Permission(scope = "device:android:wipe", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:wipe", name = "Factory reset device", description = "")
|
|
|
|
|
Response wipeData(
|
|
|
|
|
@ApiParam(name = "wipeDataBeanWrapper", value = "Configurations and DeviceIds needed to do wipe-data")
|
|
|
|
|
WipeDataBeanWrapper wipeDataBeanWrapper);
|
|
|
|
@ -578,7 +578,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new get-applications operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:get-applications", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:applications", name = "Get installed applications", description = "")
|
|
|
|
|
Response getApplications(
|
|
|
|
|
@ApiParam(name = "deviceIDs", value = "Device Ids needed to get applications that are already installed")
|
|
|
|
|
List<String> deviceIDs);
|
|
|
|
@ -631,7 +631,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new device ring operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:ring", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:ring", name = "Ring device", description = "")
|
|
|
|
|
Response ringDevice(
|
|
|
|
|
@ApiParam(name = "deviceIDs", value = "Device Ids needed for ring")
|
|
|
|
|
List<String> deviceIDs);
|
|
|
|
@ -684,7 +684,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new device reboot operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:reboot", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:reboot", name = "Reboot device", description = "")
|
|
|
|
|
Response rebootDevice(
|
|
|
|
|
@ApiParam(name = "deviceIDs", value = "Device Ids needed for reboot.")
|
|
|
|
|
List<String> deviceIDs);
|
|
|
|
@ -737,7 +737,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
"Server error occurred while adding a new device mute operation.")
|
|
|
|
|
})
|
|
|
|
|
@Path("/mute")
|
|
|
|
|
@Permission(scope = "device:android:mute", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:mute", name = "Mute device", description = "")
|
|
|
|
|
Response muteDevice(
|
|
|
|
|
@ApiParam(name = "deviceIDs", value = "DeviceIDs need to be muted")
|
|
|
|
|
List<String> deviceIDs);
|
|
|
|
@ -793,7 +793,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new install-application operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:install-application", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:install-app", name = "Install applications", description = "")
|
|
|
|
|
Response installApplication(
|
|
|
|
|
@ApiParam(name = "applicationInstallationBeanWrapper", value = "Properties of installed apps and device IDs")
|
|
|
|
|
ApplicationInstallationBeanWrapper applicationInstallationBeanWrapper);
|
|
|
|
@ -849,7 +849,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new update-application operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:update-application", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:update-app", name = "Update installed applications", description = "")
|
|
|
|
|
Response updateApplication(
|
|
|
|
|
@ApiParam(name = "applicationUpdateBeanWrapper", value = "Properties of updated apps and device IDs")
|
|
|
|
|
ApplicationUpdateBeanWrapper applicationUpdateBeanWrapper);
|
|
|
|
@ -902,7 +902,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new uninstall-application operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:uninstall-application", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:uninstall-app", name = "Uninstall applications", description = "")
|
|
|
|
|
Response uninstallApplication(
|
|
|
|
|
@ApiParam(name = "applicationUninstallationBeanWrapper",
|
|
|
|
|
value = "applicationUninstallationConfigs and Device Ids")
|
|
|
|
@ -957,7 +957,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new blacklist-applications operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:blacklist-applications", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:blacklist-app", name = "Blacklist applications", description = "")
|
|
|
|
|
Response blacklistApplications(
|
|
|
|
|
@ApiParam(name = "blacklistApplicationsBeanWrapper", value = "BlacklistApplications " +
|
|
|
|
|
"Configuration and DeviceIds")
|
|
|
|
@ -1012,7 +1012,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new upgrade firmware operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:upgrade-firmware", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:upgrade", name = "Upgrade firmware", description = "")
|
|
|
|
|
Response upgradeFirmware(
|
|
|
|
|
@ApiParam(name = "upgradeFirmwareBeanWrapper",
|
|
|
|
|
value = "Firmware upgrade configuration and DeviceIds")
|
|
|
|
@ -1067,7 +1067,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new configure VPN operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:vpn", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:vpn", name = "Add VPN profiles", description = "")
|
|
|
|
|
Response configureVPN(
|
|
|
|
|
@ApiParam(name = "vpnBeanWrapper",
|
|
|
|
|
value = "VPN configuration and DeviceIds")
|
|
|
|
@ -1121,7 +1121,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new send notification operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:send-notification", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:notification", name = "Send notifications", description = "")
|
|
|
|
|
Response sendNotification(
|
|
|
|
|
@ApiParam(name = "notificationBeanWrapper",
|
|
|
|
|
value = "Notification Configurations and device Ids")
|
|
|
|
@ -1175,7 +1175,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new configure wifi operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:wifi", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:wifi", name = "Add WiFi configurations", description = "")
|
|
|
|
|
Response configureWifi(
|
|
|
|
|
@ApiParam(name = "wifiBeanWrapper",
|
|
|
|
|
value = "WifiConfigurations and Device Ids") WifiBeanWrapper wifiBeanWrapper);
|
|
|
|
@ -1228,7 +1228,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new encrypt storage operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:encrypt", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:encrypt", name = "Encrypt device", description = "")
|
|
|
|
|
Response encryptStorage(
|
|
|
|
|
@ApiParam(name = "encryptionBeanWrapper",
|
|
|
|
|
value = "Configurations and deviceIds need to be done data encryption")
|
|
|
|
@ -1282,7 +1282,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new change lock code operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:change-lock-code", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:change-lock", name = "Change password of device", description = "")
|
|
|
|
|
Response changeLockCode(
|
|
|
|
|
@ApiParam(name = "lockCodeBeanWrapper",
|
|
|
|
|
value = "Configurations and device Ids need to be done change lock code")
|
|
|
|
@ -1336,7 +1336,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new set password policy operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:set-password-policy", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:password-policy", name = "Set password policy", description = "")
|
|
|
|
|
Response setPasswordPolicy(
|
|
|
|
|
@ApiParam(name = "passwordPolicyBeanWrapper",
|
|
|
|
|
value = "Password Policy Configurations and Device Ids")
|
|
|
|
@ -1390,7 +1390,7 @@ public interface DeviceManagementAdminService {
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
"Server error occurred while adding a new set webclip operation.")
|
|
|
|
|
})
|
|
|
|
|
@Permission(scope = "device:android:webclip", roles = {"admin"})
|
|
|
|
|
@Scope(key = "device:android:operation:webclip", name = "Add webclips", description = "")
|
|
|
|
|
Response setWebClip(
|
|
|
|
|
@ApiParam(name = "webClipBeanWrapper",
|
|
|
|
|
value = "Configurations to need set web clip on device and device Ids")
|
|
|
|
|