adding windows operation scope

merge-requests/1/head
Hasunie 8 years ago
parent 46d325d8c2
commit c162f379b4

@ -76,7 +76,7 @@ import java.util.List;
name = "Un-enroll Device", name = "Un-enroll Device",
description = "Unregister an Windows device", description = "Unregister an Windows device",
key = "perm:windows:disenroll", key = "perm:windows:disenroll",
permissions = {"/device-mgt/devices/disenroll/windows"} permissions = {"/device-mgt/devices/owning-device/operations/windows/disenroll"}
), ),
@Scope( @Scope(
name = "Factory Reset", name = "Factory Reset",

@ -3,79 +3,46 @@
"label": "Windows", "label": "Windows",
"category": "mobile", "category": "mobile",
"scopes" : [ "scopes" : [
"perm:windows:enroll" "perm:windows:enroll",
"perm:windows:lock-devices",
"perm:windows:ring",
"perm:windows:wipe",
"perm:windows:lock-reset",
"perm:windows:reboot",
"perm:windows:location",
"perm:windows:disenroll"
], ],
"analyticsEnabled": "false", "analyticsEnabled": "false",
"groupingEnabled": "false", "groupingEnabled": "false",
"features": { "features": {
"DEVICE_RING": { "DEVICE_RING": {
"icon": "fw-dial-up" "icon": "fw-dial-up",
"permission": "/device-mgt/devices/owning-device/operations/android/ring"
}, },
"DEVICE_LOCK": { "DEVICE_LOCK": {
"icon": "fw-lock" "icon": "fw-lock",
"permission": "/device-mgt/devices/owning-device/operations/windows/lock"
}, },
"DEVICE_LOCATION": { "DEVICE_LOCATION": {
"icon": "fw-map-location" "icon": "fw-map-location",
}, "permission": "/device-mgt/devices/owning-device/operations/windows/location"
"CLEAR_PASSWORD": {
"icon": "fw-clear"
}, },
"DEVICE_REBOOT": { "DEVICE_REBOOT": {
"icon": "fw-refresh" "icon": "fw-refresh",
}, "permission": "/device-mgt/devices/owning-device/operations/windows/reboot"
"UPGRADE_FIRMWARE": {
"icon": "fw-hardware",
"formParams": [
{
"type": "checkbox",
"id": "immediate",
"optional": true,
"label": "Instant Upgrade",
"helper": "Once enabled, device firmware upgrade process will start instantly."
},
{
"type": "text",
"id": "schedule",
"optional": false,
"label": "Enter the date and time to schedule firmware upgrade."
},
{
"type": "text",
"id": "server",
"optional": true,
"label": "Enter firmware upgrade server URL (ie. http://abc.com or http://abc.com/ota)"
}
]
},
"DEVICE_MUTE": {
"icon": "fw-mute"
},
"NOTIFICATION": {
"icon": "fw-message",
"formParams": [
{
"type": "text",
"id": "messageText",
"optional": false,
"label": "Title Here..."
},
{
"type": "text",
"id": "messageTitle",
"optional": false,
"label": "Message Here..."
}
]
}, },
"LOCK_RESET": { "LOCK_RESET": {
"icon": "fw-security" "icon": "fw-security",
"permission": "/device-mgt/devices/owning-device/operations/windows/lock-reset"
}, },
"DISENROLL": { "DISENROLL": {
"icon": "fw-block" "icon": "fw-block",
"permission": "/device-mgt/devices/owning-device/operations/windows/disenroll"
}, },
"WIPE_DATA": { "WIPE_DATA": {
"icon": "fw-delete" "icon": "fw-delete",
"permission": "/device-mgt/devices/owning-device/operations/windows/wipe"
} }
} }
} }

Loading…
Cancel
Save