mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
permission modifications
This commit is contained in:
parent
acc3875b51
commit
05f540abf1
@ -93,7 +93,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new lock operation.")
|
"Server error occurred while adding a new lock operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Lock Device", permission = "/device-mgt/devices/android/operations/lock")
|
@Permission(name = "Lock Device", permission = "/device-mgt/devices/owning/operations/android/lock")
|
||||||
Response configureDeviceLock(
|
Response configureDeviceLock(
|
||||||
@ApiParam(name = "deviceLockBeanWrapper",
|
@ApiParam(name = "deviceLockBeanWrapper",
|
||||||
value = "Device lock configurations with device IDs") DeviceLockBeanWrapper deviceLockBeanWrapper);
|
value = "Device lock configurations with device IDs") DeviceLockBeanWrapper deviceLockBeanWrapper);
|
||||||
@ -147,7 +147,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new un-lock operation.")
|
"Server error occurred while adding a new un-lock operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Unlock Device", permission = "/device-mgt/devices/android/operations/unlock")
|
@Permission(name = "Unlock Device", permission = "/device-mgt/devices/owning/operations/android/unlock")
|
||||||
Response configureDeviceUnlock(
|
Response configureDeviceUnlock(
|
||||||
@ApiParam(name = "deviceIDs", value = "DeviceIds to be enable device unlock operation")
|
@ApiParam(name = "deviceIDs", value = "DeviceIds to be enable device unlock operation")
|
||||||
List<String> deviceIDs);
|
List<String> deviceIDs);
|
||||||
@ -200,7 +200,7 @@ public interface DeviceManagementAdminService {
|
|||||||
code = 500,
|
code = 500,
|
||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new get-location operation.")})
|
"Server error occurred while adding a new get-location operation.")})
|
||||||
@Permission(name = "Get Device Location", permission = "/device-mgt/devices/android/operations/location")
|
@Permission(name = "Get Device Location", permission = "/device-mgt/devices/owning/operations/android/location")
|
||||||
Response getDeviceLocation(
|
Response getDeviceLocation(
|
||||||
@ApiParam(name = "deviceIDs", value = "DeviceIDs to be requested to get device location")
|
@ApiParam(name = "deviceIDs", value = "DeviceIDs to be requested to get device location")
|
||||||
List<String> deviceIDs);
|
List<String> deviceIDs);
|
||||||
@ -253,7 +253,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new clear password operation.")
|
"Server error occurred while adding a new clear password operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Clear Password of Device", permission = "/device-mgt/devices/android/operations/clear-password")
|
@Permission(name = "Clear Password of Device", permission = "/device-mgt/devices/owning/operations/android/clear-password")
|
||||||
Response removePassword(
|
Response removePassword(
|
||||||
@ApiParam(name = "deviceIDs",
|
@ApiParam(name = "deviceIDs",
|
||||||
value = "DeviceIds to be requested to remove password") List<String> deviceIDs);
|
value = "DeviceIds to be requested to remove password") List<String> deviceIDs);
|
||||||
@ -306,7 +306,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new control camera operation.")
|
"Server error occurred while adding a new control camera operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Manage Camera", permission = "/device-mgt/devices/android/operations/camera")
|
@Permission(name = "Manage Camera", permission = "/device-mgt/devices/owning/operations/android/camera")
|
||||||
Response configureCamera(
|
Response configureCamera(
|
||||||
@ApiParam(name = "cameraBeanWrapper", value = "Camera enable/disable configurations with device IDs")
|
@ApiParam(name = "cameraBeanWrapper", value = "Camera enable/disable configurations with device IDs")
|
||||||
CameraBeanWrapper cameraBeanWrapper);
|
CameraBeanWrapper cameraBeanWrapper);
|
||||||
@ -362,7 +362,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new device info operation.")
|
"Server error occurred while adding a new device info operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Get Device Information", permission = "/device-mgt/devices/android/operations/info")
|
@Permission(name = "Get Device Information", permission = "/device-mgt/devices/owning/operations/android/info")
|
||||||
Response getDeviceInformation(
|
Response getDeviceInformation(
|
||||||
@ApiParam(name = "deviceIds", value = "Device IDs to be requested to get device information")
|
@ApiParam(name = "deviceIds", value = "Device IDs to be requested to get device information")
|
||||||
List<String> deviceIDs);
|
List<String> deviceIDs);
|
||||||
@ -418,7 +418,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new device logcat operation.")
|
"Server error occurred while adding a new device logcat operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Get Logs", permission = "/device-mgt/devices/android/operations/logcat")
|
@Permission(name = "Get Logs", permission = "/device-mgt/devices/owning/operations/android/logcat")
|
||||||
Response getDeviceLogcat(
|
Response getDeviceLogcat(
|
||||||
@ApiParam(name = "deviceIds", value = "Device IDs to be requested to get device logcat")
|
@ApiParam(name = "deviceIds", value = "Device IDs to be requested to get device logcat")
|
||||||
List<String> deviceIDs);
|
List<String> deviceIDs);
|
||||||
@ -472,7 +472,7 @@ public interface DeviceManagementAdminService {
|
|||||||
code = 500,
|
code = 500,
|
||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a enterprise wipe operation.")})
|
"Server error occurred while adding a enterprise wipe operation.")})
|
||||||
@Permission(name = "Enterprise Wipe", permission = "/device-mgt/devices/android/operations/enterprise-wipe")
|
@Permission(name = "Enterprise Wipe", permission = "/device-mgt/devices/owning/operations/android/enterprise-wipe")
|
||||||
Response wipeDevice(@ApiParam(name = "deviceIDs", value = "Device IDs to be requested to do enterprise-wipe")
|
Response wipeDevice(@ApiParam(name = "deviceIDs", value = "Device IDs to be requested to do enterprise-wipe")
|
||||||
List<String> deviceIDs);
|
List<String> deviceIDs);
|
||||||
|
|
||||||
@ -524,7 +524,7 @@ public interface DeviceManagementAdminService {
|
|||||||
code = 500,
|
code = 500,
|
||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a device wipe operation.")})
|
"Server error occurred while adding a device wipe operation.")})
|
||||||
@Permission(name = "Factory Reset", permission = "/device-mgt/devices/android/operations/wipe")
|
@Permission(name = "Factory Reset", permission = "/device-mgt/devices/owning/operations/android/wipe")
|
||||||
Response wipeData(
|
Response wipeData(
|
||||||
@ApiParam(name = "wipeDataBeanWrapper", value = "Configurations and DeviceIds needed to do wipe-data")
|
@ApiParam(name = "wipeDataBeanWrapper", value = "Configurations and DeviceIds needed to do wipe-data")
|
||||||
WipeDataBeanWrapper wipeDataBeanWrapper);
|
WipeDataBeanWrapper wipeDataBeanWrapper);
|
||||||
@ -581,7 +581,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new get-applications operation.")
|
"Server error occurred while adding a new get-applications operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Get Installed Application", permission = "/device-mgt/devices/android/operations/applications")
|
@Permission(name = "Get Installed Application", permission = "/device-mgt/devices/owning/operations/android/applications")
|
||||||
Response getApplications(
|
Response getApplications(
|
||||||
@ApiParam(name = "deviceIDs", value = "Device Ids needed to get applications that are already installed")
|
@ApiParam(name = "deviceIDs", value = "Device Ids needed to get applications that are already installed")
|
||||||
List<String> deviceIDs);
|
List<String> deviceIDs);
|
||||||
@ -634,7 +634,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new device ring operation.")
|
"Server error occurred while adding a new device ring operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Ring Device", permission = "/device-mgt/devices/android/operations/ring")
|
@Permission(name = "Ring Device", permission = "/device-mgt/devices/owning/operations/android/ring")
|
||||||
Response ringDevice(
|
Response ringDevice(
|
||||||
@ApiParam(name = "deviceIDs", value = "Device Ids needed for ring")
|
@ApiParam(name = "deviceIDs", value = "Device Ids needed for ring")
|
||||||
List<String> deviceIDs);
|
List<String> deviceIDs);
|
||||||
@ -687,7 +687,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new device reboot operation.")
|
"Server error occurred while adding a new device reboot operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Reboot Device", permission = "/device-mgt/devices/android/operations/reboot")
|
@Permission(name = "Reboot Device", permission = "/device-mgt/devices/owning/operations/android/reboot")
|
||||||
Response rebootDevice(
|
Response rebootDevice(
|
||||||
@ApiParam(name = "deviceIDs", value = "Device Ids needed for reboot.")
|
@ApiParam(name = "deviceIDs", value = "Device Ids needed for reboot.")
|
||||||
List<String> deviceIDs);
|
List<String> deviceIDs);
|
||||||
@ -740,7 +740,7 @@ public interface DeviceManagementAdminService {
|
|||||||
"Server error occurred while adding a new device mute operation.")
|
"Server error occurred while adding a new device mute operation.")
|
||||||
})
|
})
|
||||||
@Path("/mute")
|
@Path("/mute")
|
||||||
@Permission(name = "Mute Device", permission = "/device-mgt/devices/android/operations/mute")
|
@Permission(name = "Mute Device", permission = "/device-mgt/devices/owning/operations/android/mute")
|
||||||
Response muteDevice(
|
Response muteDevice(
|
||||||
@ApiParam(name = "deviceIDs", value = "DeviceIDs need to be muted")
|
@ApiParam(name = "deviceIDs", value = "DeviceIDs need to be muted")
|
||||||
List<String> deviceIDs);
|
List<String> deviceIDs);
|
||||||
@ -796,7 +796,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new install-application operation.")
|
"Server error occurred while adding a new install-application operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Install Applications", permission = "/device-mgt/devices/android/operations/install-app")
|
@Permission(name = "Install Applications", permission = "/device-mgt/devices/owning/operations/android/install-app")
|
||||||
Response installApplication(
|
Response installApplication(
|
||||||
@ApiParam(name = "applicationInstallationBeanWrapper", value = "Properties of installed apps and device IDs")
|
@ApiParam(name = "applicationInstallationBeanWrapper", value = "Properties of installed apps and device IDs")
|
||||||
ApplicationInstallationBeanWrapper applicationInstallationBeanWrapper);
|
ApplicationInstallationBeanWrapper applicationInstallationBeanWrapper);
|
||||||
@ -852,7 +852,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new update-application operation.")
|
"Server error occurred while adding a new update-application operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Update installed applications", permission = "/device-mgt/devices/android/operations/update-app")
|
@Permission(name = "Update installed applications", permission = "/device-mgt/devices/owning/operations/android/update-app")
|
||||||
Response updateApplication(
|
Response updateApplication(
|
||||||
@ApiParam(name = "applicationUpdateBeanWrapper", value = "Properties of updated apps and device IDs")
|
@ApiParam(name = "applicationUpdateBeanWrapper", value = "Properties of updated apps and device IDs")
|
||||||
ApplicationUpdateBeanWrapper applicationUpdateBeanWrapper);
|
ApplicationUpdateBeanWrapper applicationUpdateBeanWrapper);
|
||||||
@ -905,7 +905,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new uninstall-application operation.")
|
"Server error occurred while adding a new uninstall-application operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Uninstall Applications", permission = "/device-mgt/devices/android/operations/uninstall-app")
|
@Permission(name = "Uninstall Applications", permission = "/device-mgt/devices/owning/operations/android/uninstall-app")
|
||||||
Response uninstallApplication(
|
Response uninstallApplication(
|
||||||
@ApiParam(name = "applicationUninstallationBeanWrapper",
|
@ApiParam(name = "applicationUninstallationBeanWrapper",
|
||||||
value = "applicationUninstallationConfigs and Device Ids")
|
value = "applicationUninstallationConfigs and Device Ids")
|
||||||
@ -960,7 +960,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new blacklist-applications operation.")
|
"Server error occurred while adding a new blacklist-applications operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Blacklist Applications", permission = "/device-mgt/devices/android/operations/blacklist-app")
|
@Permission(name = "Blacklist Applications", permission = "/device-mgt/devices/owning/operations/android/blacklist-app")
|
||||||
Response blacklistApplications(
|
Response blacklistApplications(
|
||||||
@ApiParam(name = "blacklistApplicationsBeanWrapper", value = "BlacklistApplications " +
|
@ApiParam(name = "blacklistApplicationsBeanWrapper", value = "BlacklistApplications " +
|
||||||
"Configuration and DeviceIds")
|
"Configuration and DeviceIds")
|
||||||
@ -1015,7 +1015,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new upgrade firmware operation.")
|
"Server error occurred while adding a new upgrade firmware operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Upgrade Firmware", permission = "/device-mgt/devices/android/operations/upgrade")
|
@Permission(name = "Upgrade Firmware", permission = "/device-mgt/devices/owning/operations/android/upgrade")
|
||||||
Response upgradeFirmware(
|
Response upgradeFirmware(
|
||||||
@ApiParam(name = "upgradeFirmwareBeanWrapper",
|
@ApiParam(name = "upgradeFirmwareBeanWrapper",
|
||||||
value = "Firmware upgrade configuration and DeviceIds")
|
value = "Firmware upgrade configuration and DeviceIds")
|
||||||
@ -1070,7 +1070,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new configure VPN operation.")
|
"Server error occurred while adding a new configure VPN operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Add VPN", permission = "/device-mgt/devices/android/operations/vpn")
|
@Permission(name = "Add VPN", permission = "/device-mgt/devices/owning/operations/android/vpn")
|
||||||
Response configureVPN(
|
Response configureVPN(
|
||||||
@ApiParam(name = "vpnBeanWrapper",
|
@ApiParam(name = "vpnBeanWrapper",
|
||||||
value = "VPN configuration and DeviceIds")
|
value = "VPN configuration and DeviceIds")
|
||||||
@ -1124,7 +1124,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new send notification operation.")
|
"Server error occurred while adding a new send notification operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Send Notifications", permission = "/device-mgt/devices/android/operations/notification")
|
@Permission(name = "Send Notifications", permission = "/device-mgt/devices/owning/operations/android/notification")
|
||||||
Response sendNotification(
|
Response sendNotification(
|
||||||
@ApiParam(name = "notificationBeanWrapper",
|
@ApiParam(name = "notificationBeanWrapper",
|
||||||
value = "Notification Configurations and device Ids")
|
value = "Notification Configurations and device Ids")
|
||||||
@ -1178,7 +1178,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new configure wifi operation.")
|
"Server error occurred while adding a new configure wifi operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Add Wifi Configuration", permission = "/device-mgt/devices/android/operations/wifi")
|
@Permission(name = "Add Wifi Configuration", permission = "/device-mgt/devices/owning/operations/android/wifi")
|
||||||
Response configureWifi(
|
Response configureWifi(
|
||||||
@ApiParam(name = "wifiBeanWrapper",
|
@ApiParam(name = "wifiBeanWrapper",
|
||||||
value = "WifiConfigurations and Device Ids") WifiBeanWrapper wifiBeanWrapper);
|
value = "WifiConfigurations and Device Ids") WifiBeanWrapper wifiBeanWrapper);
|
||||||
@ -1231,7 +1231,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new encrypt storage operation.")
|
"Server error occurred while adding a new encrypt storage operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Encrypt Device", permission = "/device-mgt/devices/android/operations/encrypt")
|
@Permission(name = "Encrypt Device", permission = "/device-mgt/devices/owning/operations/android/encrypt")
|
||||||
Response encryptStorage(
|
Response encryptStorage(
|
||||||
@ApiParam(name = "encryptionBeanWrapper",
|
@ApiParam(name = "encryptionBeanWrapper",
|
||||||
value = "Configurations and deviceIds need to be done data encryption")
|
value = "Configurations and deviceIds need to be done data encryption")
|
||||||
@ -1285,7 +1285,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new change lock code operation.")
|
"Server error occurred while adding a new change lock code operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Change Password of Device", permission = "/device-mgt/devices/android/operations/change-lock")
|
@Permission(name = "Change Password of Device", permission = "/device-mgt/devices/owning/operations/android/change-lock")
|
||||||
Response changeLockCode(
|
Response changeLockCode(
|
||||||
@ApiParam(name = "lockCodeBeanWrapper",
|
@ApiParam(name = "lockCodeBeanWrapper",
|
||||||
value = "Configurations and device Ids need to be done change lock code")
|
value = "Configurations and device Ids need to be done change lock code")
|
||||||
@ -1339,7 +1339,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new set password policy operation.")
|
"Server error occurred while adding a new set password policy operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Set Password Policy", permission = "/device-mgt/devices/android/operations/password-policy")
|
@Permission(name = "Set Password Policy", permission = "/device-mgt/devices/owning/operations/android/password-policy")
|
||||||
Response setPasswordPolicy(
|
Response setPasswordPolicy(
|
||||||
@ApiParam(name = "passwordPolicyBeanWrapper",
|
@ApiParam(name = "passwordPolicyBeanWrapper",
|
||||||
value = "Password Policy Configurations and Device Ids")
|
value = "Password Policy Configurations and Device Ids")
|
||||||
@ -1393,7 +1393,7 @@ public interface DeviceManagementAdminService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new set webclip operation.")
|
"Server error occurred while adding a new set webclip operation.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Add Webclips", permission = "/device-mgt/devices/android/operations/webclip")
|
@Permission(name = "Add Webclips", permission = "/device-mgt/devices/owning/operations/android/webclip")
|
||||||
Response setWebClip(
|
Response setWebClip(
|
||||||
@ApiParam(name = "webClipBeanWrapper",
|
@ApiParam(name = "webClipBeanWrapper",
|
||||||
value = "Configurations to need set web clip on device and device Ids")
|
value = "Configurations to need set web clip on device and device Ids")
|
||||||
|
|||||||
@ -88,7 +88,7 @@ public interface DeviceManagementService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while updating the application list.")
|
"Server error occurred while updating the application list.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/android/enroll")
|
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/enroll/android")
|
||||||
Response updateApplicationList(
|
Response updateApplicationList(
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "id",
|
name = "id",
|
||||||
@ -142,7 +142,7 @@ public interface DeviceManagementService {
|
|||||||
code = 500,
|
code = 500,
|
||||||
message = "Internal Server Error. \n Server error occurred while fetching policies.")
|
message = "Internal Server Error. \n Server error occurred while fetching policies.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/android/enroll")
|
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/enroll/android")
|
||||||
Response getPendingOperations(
|
Response getPendingOperations(
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "id",
|
name = "id",
|
||||||
@ -207,7 +207,7 @@ public interface DeviceManagementService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while adding a new policy.")
|
"Server error occurred while adding a new policy.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/android/enroll")
|
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/enroll/android")
|
||||||
Response enrollDevice(@ApiParam(name = "device", value = "Device Information to be enroll")
|
Response enrollDevice(@ApiParam(name = "device", value = "Device Information to be enroll")
|
||||||
@Valid AndroidDevice device);
|
@Valid AndroidDevice device);
|
||||||
|
|
||||||
@ -246,7 +246,7 @@ public interface DeviceManagementService {
|
|||||||
code = 500,
|
code = 500,
|
||||||
message = "Internal Server Error. \n Server error occurred while fetching the enrollment status of the Android device.")
|
message = "Internal Server Error. \n Server error occurred while fetching the enrollment status of the Android device.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/android/enroll")
|
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/enroll/android")
|
||||||
Response isEnrolled(
|
Response isEnrolled(
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "id",
|
name = "id",
|
||||||
@ -300,7 +300,7 @@ public interface DeviceManagementService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while updating the device enrollment.")
|
"Server error occurred while updating the device enrollment.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/android/enroll")
|
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/enroll/android")
|
||||||
Response modifyEnrollment(
|
Response modifyEnrollment(
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "id",
|
name = "id",
|
||||||
@ -330,7 +330,7 @@ public interface DeviceManagementService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while dis-enrolling the device.")
|
"Server error occurred while dis-enrolling the device.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/android/enroll")
|
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/enroll/android")
|
||||||
Response disEnrollDevice(
|
Response disEnrollDevice(
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "id",
|
name = "id",
|
||||||
|
|||||||
@ -180,7 +180,7 @@ public interface DeviceTypeConfigurationService {
|
|||||||
code = 500,
|
code = 500,
|
||||||
message = "Internal Server Error. \n Server error occurred while fetching Android license configuration.")
|
message = "Internal Server Error. \n Server error occurred while fetching Android license configuration.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/android/enroll")
|
@Permission(name = "Enroll Device", permission = "/device-mgt/devices/enroll/android")
|
||||||
Response getLicense(
|
Response getLicense(
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "If-Modified-Since",
|
name = "If-Modified-Since",
|
||||||
|
|||||||
@ -91,7 +91,7 @@ public interface EventReceiverService {
|
|||||||
message = "Internal Server Error. \n " +
|
message = "Internal Server Error. \n " +
|
||||||
"Server error occurred while publishing events.")
|
"Server error occurred while publishing events.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Publish Events to DAS", permission = "/device-mgt/devices/android/events/manage")
|
@Permission(name = "Publish Events to DAS", permission = "/device-mgt/devices/enroll/android")
|
||||||
Response publishEvents(
|
Response publishEvents(
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "eventBeanWrapper",
|
name = "eventBeanWrapper",
|
||||||
@ -141,7 +141,7 @@ public interface EventReceiverService {
|
|||||||
code = 500,
|
code = 500,
|
||||||
message = "Error occurred while getting published events for specific device.")
|
message = "Error occurred while getting published events for specific device.")
|
||||||
})
|
})
|
||||||
@Permission(name = "Publish Events to DAS", permission = "/device-mgt/devices/android/events/manage")
|
@Permission(name = "Publish Events to DAS", permission = "/device-mgt/devices/enroll/android")
|
||||||
Response retrieveAlerts(
|
Response retrieveAlerts(
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "id",
|
name = "id",
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
<Permission>
|
<Permission>
|
||||||
<name>Enroll</name>
|
<name>Enroll</name>
|
||||||
<path>/device-mgt/user/device/android/enroll</path>
|
<path>/device-mgt/user/device/enroll/android</path>
|
||||||
<url>/configuration/license</url>
|
<url>/configuration/license</url>
|
||||||
<method>GET</method>
|
<method>GET</method>
|
||||||
</Permission>
|
</Permission>
|
||||||
@ -66,42 +66,42 @@
|
|||||||
|
|
||||||
<Permission>
|
<Permission>
|
||||||
<name>Enroll</name>
|
<name>Enroll</name>
|
||||||
<path>/device-mgt/user/device/android/enroll</path>
|
<path>/device-mgt/user/device/enroll/android</path>
|
||||||
<url>/devices</url>
|
<url>/devices</url>
|
||||||
<method>POST</method>
|
<method>POST</method>
|
||||||
</Permission>
|
</Permission>
|
||||||
|
|
||||||
<Permission>
|
<Permission>
|
||||||
<name>Enroll</name>
|
<name>Enroll</name>
|
||||||
<path>/device-mgt/user/device/android/enroll</path>
|
<path>/device-mgt/user/device/enroll/android</path>
|
||||||
<url>/devices/*</url>
|
<url>/devices/*</url>
|
||||||
<method>DELETE</method>
|
<method>DELETE</method>
|
||||||
</Permission>
|
</Permission>
|
||||||
|
|
||||||
<Permission>
|
<Permission>
|
||||||
<name>Enroll</name>
|
<name>Enroll</name>
|
||||||
<path>/device-mgt/user/device/android/enroll</path>
|
<path>/device-mgt/user/device/enroll/android</path>
|
||||||
<url>/devices/*</url>
|
<url>/devices/*</url>
|
||||||
<method>PUT</method>
|
<method>PUT</method>
|
||||||
</Permission>
|
</Permission>
|
||||||
|
|
||||||
<Permission>
|
<Permission>
|
||||||
<name>Enroll</name>
|
<name>Enroll</name>
|
||||||
<path>/device-mgt/user/device/android/enroll</path>
|
<path>/device-mgt/user/device/enroll/android</path>
|
||||||
<url>/devices/*/applications</url>
|
<url>/devices/*/applications</url>
|
||||||
<method>PUT</method>
|
<method>PUT</method>
|
||||||
</Permission>
|
</Permission>
|
||||||
|
|
||||||
<Permission>
|
<Permission>
|
||||||
<name>Enroll</name>
|
<name>Enroll</name>
|
||||||
<path>/device-mgt/user/device/android/enroll</path>
|
<path>/device-mgt/user/device/enroll/android</path>
|
||||||
<url>/devices/*/pending-operations</url>
|
<url>/devices/*/pending-operations</url>
|
||||||
<method>PUT</method>
|
<method>PUT</method>
|
||||||
</Permission>
|
</Permission>
|
||||||
|
|
||||||
<Permission>
|
<Permission>
|
||||||
<name>Enroll</name>
|
<name>Enroll</name>
|
||||||
<path>/device-mgt/user/device/android/enroll</path>
|
<path>/device-mgt/user/device/enroll/android</path>
|
||||||
<url>/devices/*/status</url>
|
<url>/devices/*/status</url>
|
||||||
<method>GET</method>
|
<method>GET</method>
|
||||||
</Permission>
|
</Permission>
|
||||||
@ -112,7 +112,7 @@
|
|||||||
|
|
||||||
<Permission>
|
<Permission>
|
||||||
<name>Enroll</name>
|
<name>Enroll</name>
|
||||||
<path>/device-mgt/user/device/android/enroll</path>
|
<path>/device-mgt/user/device/enroll/android</path>
|
||||||
<url>/events/publish</url>
|
<url>/events/publish</url>
|
||||||
<method>POST</method>
|
<method>POST</method>
|
||||||
</Permission>
|
</Permission>
|
||||||
|
|||||||
@ -1,287 +1,305 @@
|
|||||||
{{#zone "content"}}
|
{{#zone "content"}}
|
||||||
<div class="row">
|
{{#if isAuthorized}}
|
||||||
<div class="col-md-12">
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
|
||||||
<div class="wr-steps hidden">
|
<div class="wr-steps hidden">
|
||||||
<div class="col-md-3 col-xs-3">
|
<div class="col-md-3 col-xs-3">
|
||||||
<div class="itm-wiz itm-wiz-current" data-step="policy-platform">
|
<div class="itm-wiz itm-wiz-current" data-step="policy-platform">
|
||||||
<div class="wiz-no">1</div>
|
<div class="wiz-no">1</div>
|
||||||
<div class="wiz-lbl hidden-xs"><span>Select a platform</span></div>
|
<div class="wiz-lbl hidden-xs"><span>Select a platform</span></div>
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
<br class="c-both"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3 col-xs-3">
|
<div class="col-md-3 col-xs-3">
|
||||||
<div class="itm-wiz" data-step="policy-profile">
|
<div class="itm-wiz" data-step="policy-profile">
|
||||||
<div class="wiz-no">2</div>
|
<div class="wiz-no">2</div>
|
||||||
<div class="wiz-lbl hidden-xs"><span>Configure profile</span></div>
|
<div class="wiz-lbl hidden-xs"><span>Configure profile</span></div>
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
<br class="c-both"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3 col-xs-3">
|
<div class="col-md-3 col-xs-3">
|
||||||
<div class="itm-wiz" data-step="policy-criteria">
|
<div class="itm-wiz" data-step="policy-criteria">
|
||||||
<div class="wiz-no">3</div>
|
<div class="wiz-no">3</div>
|
||||||
<div class="wiz-lbl hidden-xs"><span>Assign to groups</span></div>
|
<div class="wiz-lbl hidden-xs"><span>Assign to groups</span></div>
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
<br class="c-both"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3 col-xs-3">
|
<div class="col-md-3 col-xs-3">
|
||||||
<div class="itm-wiz" data-step="policy-naming">
|
<div class="itm-wiz" data-step="policy-naming">
|
||||||
<div class="wiz-no">4</div>
|
<div class="wiz-no">4</div>
|
||||||
<div class="wiz-lbl hidden-xs"><span>Publish to devices</span></div>
|
<div class="wiz-lbl hidden-xs"><span>Publish to devices</span></div>
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
<br class="c-both"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container col-centered policy-message hidden">
|
<div class="container col-centered policy-message hidden">
|
||||||
<div class="wr-form">
|
<div class="wr-form">
|
||||||
<h1 id="policy-message-page-wizard-title" class="page-sub-title">Policy creation is successful.</h1>
|
<h1 id="policy-message-page-wizard-title" class="page-sub-title">Policy creation is
|
||||||
<br>Please click <b>"Add Another Policy"</b>, if you wish to add another policy or click
|
successful.</h1>
|
||||||
<b>"View policy list"</b> to complete the process and go back to the policy list.
|
<br>Please click <b>"Add Another Policy"</b>, if you wish to add another policy or click
|
||||||
<hr>
|
<b>"View policy list"</b> to complete the process and go back to the policy list.
|
||||||
<button class="wr-btn wizard-stepper" data-current="policy-message" data-direct="/emm/policies/">
|
<hr>
|
||||||
View policy list
|
<button class="wr-btn wizard-stepper" data-current="policy-message"
|
||||||
</button>
|
data-direct="/emm/policies/">
|
||||||
<!--suppress HtmlUnknownTarget -->
|
View policy list
|
||||||
<a href="/emm/policy/add" class="cu-btn-inner">
|
</button>
|
||||||
|
<!--suppress HtmlUnknownTarget -->
|
||||||
|
<a href="/emm/policy/add" class="cu-btn-inner">
|
||||||
<span class="fw-stack">
|
<span class="fw-stack">
|
||||||
<i class="fw fw-ring fw-stack-2x"></i>
|
<i class="fw fw-ring fw-stack-2x"></i>
|
||||||
<i class="fw fw-add fw-stack-1x"></i>
|
<i class="fw fw-add fw-stack-1x"></i>
|
||||||
</span>
|
</span>
|
||||||
Add another policy
|
Add another policy
|
||||||
</a>
|
</a>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container col-centered wr-content policy-naming hidden">
|
|
||||||
<div class="wr-form">
|
|
||||||
<h1 id="policy-naming-page-wizard-title" class="page-sub-title">ADD POLICY</h1>
|
|
||||||
<hr>
|
|
||||||
<div id="policy-naming-wizard-steps" class="row wr-wizard"></div>
|
|
||||||
<hr>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<h4 class="hidden-xs">Step 4: Publish to devices</h4>
|
|
||||||
<br>
|
|
||||||
<div id="policy-naming-main-error-msg" class="alert alert-danger hidden" role="alert">
|
|
||||||
<i class="icon fw fw-error"></i><span></span>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
</div>
|
||||||
<label class="wr-input-label">Set a Name for your Policy *</label>
|
|
||||||
<br />
|
<div class="container col-centered wr-content policy-naming hidden">
|
||||||
<label class="wr-input-label">
|
<div class="wr-form">
|
||||||
(Policy name should be 1-to-30 characters long)
|
<h1 id="policy-naming-page-wizard-title" class="page-sub-title">ADD POLICY</h1>
|
||||||
</label>
|
<hr>
|
||||||
<div id="policyNameField" class="wr-input-control">
|
<div id="policy-naming-wizard-steps" class="row wr-wizard"></div>
|
||||||
<div class="cus-col-50 form-group wr-input-control">
|
<hr>
|
||||||
<!--suppress HtmlFormInputWithoutLabel -->
|
<div class="row">
|
||||||
<input id="policy-name-input" class="form-control" type="text" value="" />
|
<div class="col-lg-12">
|
||||||
<label class="error nameEmpty hidden" for="summary">Policy name is required &
|
<h4 class="hidden-xs">Step 4: Publish to devices</h4>
|
||||||
Should be be 1-to-30
|
<br>
|
||||||
characters long.</label>
|
<div id="policy-naming-main-error-msg" class="alert alert-danger hidden" role="alert">
|
||||||
</div>
|
<i class="icon fw fw-error"></i><span></span>
|
||||||
<br class="c-both" />
|
</div>
|
||||||
</div>
|
<div>
|
||||||
<label class="wr-input-label">
|
<label class="wr-input-label">Set a Name for your Policy *</label>
|
||||||
Add a description
|
<br/>
|
||||||
</label>
|
<label class="wr-input-label">
|
||||||
<div class="wr-input-control">
|
(Policy name should be 1-to-30 characters long)
|
||||||
<div class="cus-col-50">
|
</label>
|
||||||
|
<div id="policyNameField" class="wr-input-control">
|
||||||
|
<div class="cus-col-50 form-group wr-input-control">
|
||||||
|
<!--suppress HtmlFormInputWithoutLabel -->
|
||||||
|
<input id="policy-name-input" class="form-control" type="text" value=""/>
|
||||||
|
<label class="error nameEmpty hidden" for="summary">Policy name is required
|
||||||
|
&
|
||||||
|
Should be be 1-to-30
|
||||||
|
characters long.</label>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
<label class="wr-input-label">
|
||||||
|
Add a description
|
||||||
|
</label>
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<div class="cus-col-50">
|
||||||
<textarea id="policy-description-input" class="form-control" rows="10"
|
<textarea id="policy-description-input" class="form-control" rows="10"
|
||||||
placeholder="[ Summary about the policy ]"></textarea>
|
placeholder="[ Summary about the policy ]"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
<br class="c-both"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="wr-input-control wr-btn-grp">
|
|
||||||
<a href="javascript:void(0)" class="wr-btn wizard-stepper" data-is-back-btn="true"
|
|
||||||
data-current="policy-naming" data-next="policy-criteria">Back</a>
|
|
||||||
<a href="javascript:void(0)" class="wr-btn wizard-stepper"
|
|
||||||
data-current="policy-naming-publish" data-next="policy-message" data-validate="true">Publish
|
|
||||||
to
|
|
||||||
Devices</a>
|
|
||||||
<a href="javascript:void(0)" class="wr-btn wizard-stepper" data-current="policy-naming"
|
|
||||||
data-next="policy-message" data-validate="true">Save</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container col-centered wr-content policy-criteria hidden">
|
|
||||||
<div class="wr-form">
|
|
||||||
<h1 id="policy-criteria-page-wizard-title" class="page-sub-title">ADD POLICY</h1>
|
|
||||||
<hr>
|
|
||||||
<div id="policy-criteria-wizard-steps" class="row wr-wizard"></div>
|
|
||||||
<hr>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<h4 class="hidden-xs">Step 3: Assign to groups</h4>
|
|
||||||
<br>
|
|
||||||
<div id="policy-criteria-main-error-msg" class="alert alert-danger hidden" role="alert">
|
|
||||||
<i class="icon fw fw-error"></i><span></span>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<label class="wr-input-label">
|
|
||||||
Set device ownership type
|
|
||||||
</label>
|
|
||||||
<div class="wr-input-control">
|
|
||||||
<div class="cus-col-50">
|
|
||||||
<!--suppress HtmlFormInputWithoutLabel -->
|
|
||||||
<select id="ownership-input" class="form-control">
|
|
||||||
<option value="ANY" selected>ANY</option>
|
|
||||||
<option value="BYOD">BYOD (Bring Your Own Device)</option>
|
|
||||||
<option value="COPE">COPE (Corporate-Owned, Personally Enabled)</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<br class="c-both" />
|
|
||||||
</div>
|
|
||||||
<div class="wr-input-control">
|
|
||||||
<label class="wr-input-control radio light">
|
|
||||||
<input id="user-roles-radio-btn" type="radio" name="select-users-radio-btn"
|
|
||||||
class="select-users-radio" checked />
|
|
||||||
<span class="helper"> Set user role(s)</span>
|
|
||||||
</label>
|
|
||||||
<label class="wr-input-control radio light" rel="assetfilter">
|
|
||||||
<input id="users-radio-btn" type="radio" name="select-users-radio-btn"
|
|
||||||
class="select-users-radio" />
|
|
||||||
<span class="helper"> Set user(s)</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div id="user-roles-select-field" class="select-users">
|
|
||||||
<div class="wr-input-control">
|
|
||||||
<div class="cus-col-50">
|
|
||||||
<!--suppress HtmlFormInputWithoutLabel -->
|
|
||||||
<select id="user-roles-input" class="form-control select2"
|
|
||||||
multiple="multiple">
|
|
||||||
<option value="ANY" selected>ANY</option>
|
|
||||||
{{#each roles}}
|
|
||||||
<option>{{this}}</option>
|
|
||||||
{{/each}}
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
<div class="wr-input-control wr-btn-grp">
|
||||||
</div>
|
<a href="javascript:void(0)" class="wr-btn wizard-stepper" data-is-back-btn="true"
|
||||||
</div>
|
data-current="policy-naming" data-next="policy-criteria">Back</a>
|
||||||
<div id="users-select-field" class="select-users">
|
<a href="javascript:void(0)" class="wr-btn wizard-stepper"
|
||||||
<div class="wr-input-control">
|
data-current="policy-naming-publish" data-next="policy-message"
|
||||||
<div class="cus-col-50">
|
data-validate="true">Publish
|
||||||
<!--suppress HtmlFormInputWithoutLabel -->
|
to
|
||||||
<select id="users-input" class="form-control select2" multiple="multiple">
|
Devices</a>
|
||||||
</select>
|
<a href="javascript:void(0)" class="wr-btn wizard-stepper"
|
||||||
|
data-current="policy-naming"
|
||||||
|
data-next="policy-message" data-validate="true">Save</a>
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
</div>
|
||||||
<label class="wr-input-label" title="">
|
</div>
|
||||||
Set an action upon non-compliance
|
|
||||||
</label>
|
<div class="container col-centered wr-content policy-criteria hidden">
|
||||||
<div class="wr-input-control">
|
<div class="wr-form">
|
||||||
<div class="cus-col-50">
|
<h1 id="policy-criteria-page-wizard-title" class="page-sub-title">ADD POLICY</h1>
|
||||||
<!--suppress HtmlFormInputWithoutLabel -->
|
<hr>
|
||||||
<select id="action-input" class="form-control">
|
<div id="policy-criteria-wizard-steps" class="row wr-wizard"></div>
|
||||||
<option data-action="enforce" selected>Enforce</option>
|
<hr>
|
||||||
<option data-action="warn">Warn</option>
|
<div class="row">
|
||||||
<option data-action="monitor">Monitor</option>
|
<div class="col-lg-12">
|
||||||
</select>
|
<h4 class="hidden-xs">Step 3: Assign to groups</h4>
|
||||||
|
<br>
|
||||||
|
<div id="policy-criteria-main-error-msg" class="alert alert-danger hidden" role="alert">
|
||||||
|
<i class="icon fw fw-error"></i><span></span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="wr-input-label">
|
||||||
|
Set device ownership type
|
||||||
|
</label>
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<div class="cus-col-50">
|
||||||
|
<!--suppress HtmlFormInputWithoutLabel -->
|
||||||
|
<select id="ownership-input" class="form-control">
|
||||||
|
<option value="ANY" selected>ANY</option>
|
||||||
|
<option value="BYOD">BYOD (Bring Your Own Device)</option>
|
||||||
|
<option value="COPE">COPE (Corporate-Owned, Personally Enabled)</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
<div class="wr-input-control">
|
||||||
|
{{#if isAuthorizedViewRoles}}
|
||||||
|
<label class="wr-input-control radio light">
|
||||||
|
<input id="user-roles-radio-btn" type="radio"
|
||||||
|
name="select-users-radio-btn"
|
||||||
|
class="select-users-radio" checked/>
|
||||||
|
<span class="helper"> Set user role(s)</span>
|
||||||
|
</label>
|
||||||
|
{{/if}}
|
||||||
|
{{#if isAuthorizedViewUsers}}
|
||||||
|
<label class="wr-input-control radio light" rel="assetfilter">
|
||||||
|
<input id="users-radio-btn" type="radio" name="select-users-radio-btn"
|
||||||
|
class="select-users-radio"/>
|
||||||
|
<span class="helper"> Set user(s)</span>
|
||||||
|
</label>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{#if isAuthorizedViewRoles}}
|
||||||
|
<div id="user-roles-select-field" class="select-users">
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<div class="cus-col-50">
|
||||||
|
<!--suppress HtmlFormInputWithoutLabel -->
|
||||||
|
<select id="user-roles-input" class="form-control select2"
|
||||||
|
multiple="multiple">
|
||||||
|
<option value="ANY" selected>ANY</option>
|
||||||
|
{{#each roles}}
|
||||||
|
<option>{{this}}</option>
|
||||||
|
{{/each}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if isAuthorizedVieUsers}}
|
||||||
|
<div id="users-select-field" class="select-users">
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<div class="cus-col-50">
|
||||||
|
<!--suppress HtmlFormInputWithoutLabel -->
|
||||||
|
<select id="users-input" class="form-control select2"
|
||||||
|
multiple="multiple">
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
<br>
|
||||||
|
<label class="wr-input-label" title="">
|
||||||
|
Set an action upon non-compliance
|
||||||
|
</label>
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<div class="cus-col-50">
|
||||||
|
<!--suppress HtmlFormInputWithoutLabel -->
|
||||||
|
<select id="action-input" class="form-control">
|
||||||
|
<option data-action="enforce" selected>Enforce</option>
|
||||||
|
<option data-action="warn">Warn</option>
|
||||||
|
<option data-action="monitor">Monitor</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="wr-input-control wr-btn-grp">
|
||||||
|
<a href="javascript:void(0)" class="wr-btn wizard-stepper" data-is-back-btn="true"
|
||||||
|
data-current="policy-criteria" data-next="policy-profile">Back</a>
|
||||||
|
<a href="javascript:void(0)" class="wr-btn wizard-stepper"
|
||||||
|
data-current="policy-criteria" data-next="policy-naming" data-validate="true">Continue</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wr-input-control wr-btn-grp">
|
|
||||||
<a href="javascript:void(0)" class="wr-btn wizard-stepper" data-is-back-btn="true"
|
|
||||||
data-current="policy-criteria" data-next="policy-profile">Back</a>
|
|
||||||
<a href="javascript:void(0)" class="wr-btn wizard-stepper"
|
|
||||||
data-current="policy-criteria" data-next="policy-naming" data-validate="true">Continue</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container col-centered wr-content policy-profile hidden">
|
<div class="container col-centered wr-content policy-profile hidden">
|
||||||
<div class="wr-form">
|
<div class="wr-form">
|
||||||
<h1 id="policy-profile-page-wizard-title" class="page-sub-title">ADD POLICY</h1>
|
<h1 id="policy-profile-page-wizard-title" class="page-sub-title">ADD POLICY</h1>
|
||||||
<hr>
|
<hr>
|
||||||
<div id="policy-profile-wizard-steps" class="row wr-wizard"></div>
|
<div id="policy-profile-wizard-steps" class="row wr-wizard"></div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<h4 class="hidden-xs">Step 2: Configure profile</h4>
|
<h4 class="hidden-xs">Step 2: Configure profile</h4>
|
||||||
<br>
|
<br>
|
||||||
<div id="policy-profile-main-error-msg" class="alert alert-danger hidden" role="alert">
|
<div id="policy-profile-main-error-msg" class="alert alert-danger hidden" role="alert">
|
||||||
<i class="icon fw fw-error"></i><span></span>
|
<i class="icon fw fw-error"></i><span></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="wr-advance-operations">
|
<div class="wr-advance-operations">
|
||||||
<div class="wr-advance-operations-init">
|
<div class="wr-advance-operations-init">
|
||||||
<br>
|
<br>
|
||||||
<i class="fw fw-settings fw-spin fw-2x"></i>
|
<i class="fw fw-settings fw-spin fw-2x"></i>
|
||||||
Loading platform features . . .
|
Loading platform features . . .
|
||||||
<br><br>
|
<br><br>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wr-input-control wr-btn-grp">
|
<div class="wr-input-control wr-btn-grp">
|
||||||
<a href="javascript:void(0)" class="wr-btn wizard-stepper" data-is-back-btn="true"
|
<a href="javascript:void(0)" class="wr-btn wizard-stepper" data-is-back-btn="true"
|
||||||
data-current="policy-profile" data-next="policy-platform">Back</a>
|
data-current="policy-profile" data-next="policy-platform">Back</a>
|
||||||
<a href="javascript:void(0)" class="wr-btn wizard-stepper" data-current="policy-profile"
|
<a href="javascript:void(0)" class="wr-btn wizard-stepper"
|
||||||
data-next="policy-criteria" data-validate="true">Continue</a>
|
data-current="policy-profile"
|
||||||
</div>
|
data-next="policy-criteria" data-validate="true">Continue</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="loading-content" class="col-centered">
|
|
||||||
<br><br>
|
|
||||||
<i class="fw fw-settings fw-spin fw-2x"></i>
|
|
||||||
Loading policy creation wizard . . .
|
|
||||||
<br><br>
|
|
||||||
</div>
|
|
||||||
<div class="container col-centered wr-content policy-platform hidden">
|
|
||||||
<div class="wr-form">
|
|
||||||
<h1 id="policy-platform-page-wizard-title" class="page-sub-title">ADD POLICY</h1>
|
|
||||||
<hr>
|
|
||||||
<div id="policy-platform-wizard-steps" class="row wr-wizard"></div>
|
|
||||||
<hr>
|
|
||||||
<!--<div id="policy-platform-main-error-msg" class="alert alert-danger hidden" role="alert">-->
|
|
||||||
<!--<i class="icon fw fw-error"></i><span></span>-->
|
|
||||||
<!--</div>-->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<h4 class="hidden-xs"> Step 1: Select a platform</h4>
|
|
||||||
<br>
|
|
||||||
<div id="policy-platform-main-error-msg" class="alert alert-danger hidden" role="alert">
|
|
||||||
<i class="icon fw fw-error"></i><span></span>
|
|
||||||
</div>
|
|
||||||
<div class="row wr-tile-buttons-list">
|
|
||||||
<div class="wr-input-control">
|
|
||||||
<ul class="tile-buttons row">
|
|
||||||
{{#each types}}
|
|
||||||
<li class="col-xs-12 col-sm-12 col-md-4 col-lg-4"
|
|
||||||
style="margin-top: 5px; margin-bottom: 5px;">
|
|
||||||
<a href="javascript:void(0)"
|
|
||||||
class="{{name}}-platform wizard-stepper"
|
|
||||||
data-current="policy-platform"
|
|
||||||
data-next="policy-profile"
|
|
||||||
data-platform="{{name}}"
|
|
||||||
data-validate="false">
|
|
||||||
<!--<img src="{{icon}}" width="50px" height="50px" />-->
|
|
||||||
<i class="fw fw-{{deviceTypeIcon}}"></i>
|
|
||||||
<b>{{label}}</b>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div id="loading-content" class="col-centered">
|
||||||
</div>
|
<br><br>
|
||||||
</div>
|
<i class="fw fw-settings fw-spin fw-2x"></i>
|
||||||
<!-- content -->
|
Loading policy creation wizard . . .
|
||||||
|
<br><br>
|
||||||
|
</div>
|
||||||
|
<div class="container col-centered wr-content policy-platform hidden">
|
||||||
|
<div class="wr-form">
|
||||||
|
<h1 id="policy-platform-page-wizard-title" class="page-sub-title">ADD POLICY</h1>
|
||||||
|
<hr>
|
||||||
|
<div id="policy-platform-wizard-steps" class="row wr-wizard"></div>
|
||||||
|
<hr>
|
||||||
|
<!--<div id="policy-platform-main-error-msg" class="alert alert-danger hidden" role="alert">-->
|
||||||
|
<!--<i class="icon fw fw-error"></i><span></span>-->
|
||||||
|
<!--</div>-->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<h4 class="hidden-xs"> Step 1: Select a platform</h4>
|
||||||
|
<br>
|
||||||
|
<div id="policy-platform-main-error-msg" class="alert alert-danger hidden" role="alert">
|
||||||
|
<i class="icon fw fw-error"></i><span></span>
|
||||||
|
</div>
|
||||||
|
<div class="row wr-tile-buttons-list">
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<ul class="tile-buttons row">
|
||||||
|
{{#each types}}
|
||||||
|
<li class="col-xs-12 col-sm-12 col-md-4 col-lg-4"
|
||||||
|
style="margin-top: 5px; margin-bottom: 5px;">
|
||||||
|
<a href="javascript:void(0)"
|
||||||
|
class="{{name}}-platform wizard-stepper"
|
||||||
|
data-current="policy-platform"
|
||||||
|
data-next="policy-profile"
|
||||||
|
data-platform="{{name}}"
|
||||||
|
data-validate="false">
|
||||||
|
<!--<img src="{{icon}}" width="50px" height="50px" />-->
|
||||||
|
<i class="fw fw-{{deviceTypeIcon}}"></i>
|
||||||
|
<b>{{label}}</b>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- content -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
{{/zone}}
|
{{/zone}}
|
||||||
{{#zone "bottomJs"}}
|
{{#zone "bottomJs"}}
|
||||||
<!--suppress HtmlUnknownTarget -->
|
<!--suppress HtmlUnknownTarget -->
|
||||||
|
|||||||
@ -59,6 +59,9 @@ function onRequest() {
|
|||||||
if (result["status"] == "success") {
|
if (result["status"] == "success") {
|
||||||
viewModelData["roles"] = result["content"];
|
viewModelData["roles"] = result["content"];
|
||||||
}
|
}
|
||||||
|
viewModelData.isAuthorized = userModule.isAuthorized("/permission/admin/device-mgt/policies/manage");
|
||||||
|
viewModelData.isAuthorizedViewUsers = userModule.isAuthorized("/permission/admin/device-mgt/roles/view");
|
||||||
|
viewModelData.isAuthorizedViewRoles = userModule.isAuthorized("/permission/admin/device-mgt/users/view");
|
||||||
|
|
||||||
return viewModelData;
|
return viewModelData;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,222 +1,264 @@
|
|||||||
{{#zone "content"}}
|
{{#zone "content"}}
|
||||||
<div class="row">
|
{{#if isAuthorized}}
|
||||||
<div class="col-md-12">
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
|
||||||
<div class="wr-steps hidden">
|
<div class="wr-steps hidden">
|
||||||
<div class="col-md-3 col-xs-3">
|
<div class="col-md-3 col-xs-3">
|
||||||
<div class="itm-wiz itm-wiz-current" data-step="policy-profile"><div class="wiz-no">1</div><div class="wiz-lbl hidden-xs"><span>Edit current profile</span></div></div>
|
<div class="itm-wiz itm-wiz-current" data-step="policy-profile">
|
||||||
<br class="c-both" />
|
<div class="wiz-no">1</div>
|
||||||
</div>
|
<div class="wiz-lbl hidden-xs"><span>Edit current profile</span></div>
|
||||||
<div class="col-md-3 col-xs-3">
|
</div>
|
||||||
<div class="itm-wiz" data-step="policy-criteria"><div class="wiz-no">2</div><div class="wiz-lbl hidden-xs"><span>Edit assignment groups</span></div></div>
|
<br class="c-both"/>
|
||||||
<br class="c-both" />
|
</div>
|
||||||
</div>
|
<div class="col-md-3 col-xs-3">
|
||||||
<div class="col-md-3 col-xs-3">
|
<div class="itm-wiz" data-step="policy-criteria">
|
||||||
<div class="itm-wiz" data-step="policy-naming"><div class="wiz-no">3</div><div class="wiz-lbl hidden-xs"><span>Republish to devices</span></div></div>
|
<div class="wiz-no">2</div>
|
||||||
<br class="c-both" />
|
<div class="wiz-lbl hidden-xs"><span>Edit assignment groups</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 col-xs-3">
|
||||||
|
<div class="itm-wiz" data-step="policy-naming">
|
||||||
|
<div class="wiz-no">3</div>
|
||||||
|
<div class="wiz-lbl hidden-xs"><span>Republish to devices</span></div>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="container col-centered wr-content policy-message hidden">
|
<div class="container col-centered wr-content policy-message hidden">
|
||||||
<div class="wr-form">
|
<div class="wr-form">
|
||||||
<h1 id="policy-message-page-wizard-title" class="page-sub-title">Policy is successfully re-configured.</h1>
|
<h1 id="policy-message-page-wizard-title" class="page-sub-title">Policy is successfully
|
||||||
<br>Please click <b>"Add Another Policy"</b>, if you wish to add another policy or click
|
re-configured.</h1>
|
||||||
<b>"View policy list"</b> to complete the process and go back to the policy list.
|
<br>Please click <b>"Add Another Policy"</b>, if you wish to add another policy or click
|
||||||
<hr>
|
<b>"View policy list"</b> to complete the process and go back to the policy list.
|
||||||
<button class="wr-btn wizard-stepper" data-current="policy-message" data-direct="/emm/policies/">
|
<hr>
|
||||||
View policy list
|
<button class="wr-btn wizard-stepper" data-current="policy-message"
|
||||||
</button>
|
data-direct="/emm/policies/">
|
||||||
<a href="/emm/policies/add-policy" class="cu-btn-inner">
|
View policy list
|
||||||
|
</button>
|
||||||
|
<a href="/emm/policies/add-policy" class="cu-btn-inner">
|
||||||
<span class="fw-stack">
|
<span class="fw-stack">
|
||||||
<i class="fw fw-ring fw-stack-2x"></i>
|
<i class="fw fw-ring fw-stack-2x"></i>
|
||||||
<i class="fw fw-add fw-stack-1x"></i>
|
<i class="fw fw-add fw-stack-1x"></i>
|
||||||
</span>
|
</span>
|
||||||
Add another policy
|
Add another policy
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container col-centered wr-content policy-naming hidden">
|
|
||||||
<div class="wr-form">
|
|
||||||
<h1 id="policy-naming-page-wizard-title" class="page-sub-title">EDIT POLICY</h1>
|
|
||||||
<hr>
|
|
||||||
<div id="policy-naming-wizard-steps" class="row wr-wizard"></div>
|
|
||||||
<hr>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<h4 class="visible-xs">Step 3: Republish to devices</h4>
|
|
||||||
<br>
|
|
||||||
<div id="policy-naming-main-error-msg" class="alert alert-danger hidden" role="alert">
|
|
||||||
<i class="icon fw fw-error"></i><span></span>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<label class="wr-input-label">
|
|
||||||
Set a name * to your policy<br>
|
|
||||||
( should be 1-to-30 characters long )
|
|
||||||
</label>
|
|
||||||
<div id="policy-name-field" class="form-group wr-input-control">
|
|
||||||
<div class="cus-col-50">
|
|
||||||
<input id="policy-name-input" class="form-control" type="text" value="" placeholder="[ Required field ]"/>
|
|
||||||
</div>
|
|
||||||
<br class="c-both"/>
|
|
||||||
<span class=" nameError hidden glyphicon glyphicon-remove form-control-feedback"></span>
|
|
||||||
<label class="error nameEmpty hidden" for="summary">Policy name is required & Should be be 1-to-30 characters long.</label>
|
|
||||||
</div>
|
|
||||||
<label class="wr-input-label">
|
|
||||||
Add a description
|
|
||||||
</label>
|
|
||||||
<div class="wr-input-control">
|
|
||||||
<div class="cus-col-50">
|
|
||||||
<textarea id="policy-description-input" class="form-control" rows="10" placeholder="[ Optional field ]"></textarea>
|
|
||||||
</div>
|
|
||||||
<br class="c-both" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wr-input-control wr-btn-grp">
|
|
||||||
<a href="#" class="wr-btn wizard-stepper" data-is-back-btn="true" data-current="policy-naming" data-next="policy-criteria">
|
|
||||||
Back
|
|
||||||
</a>
|
</a>
|
||||||
<a href="#" class="wr-btn wizard-stepper" data-current="policy-naming-publish" data-next="policy-message" data-validate="true">
|
|
||||||
Save & Publish
|
|
||||||
</a>
|
|
||||||
<a href="#" class="wr-btn wizard-stepper" data-current="policy-naming" data-next="policy-message" data-validate="true">
|
|
||||||
Save
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container col-centered wr-content policy-criteria hidden">
|
<div class="container col-centered wr-content policy-naming hidden">
|
||||||
<div class="wr-form">
|
<div class="wr-form">
|
||||||
<h1 id="policy-criteria-page-wizard-title" class="page-sub-title">EDIT POLICY</h1>
|
<h1 id="policy-naming-page-wizard-title" class="page-sub-title">EDIT POLICY</h1>
|
||||||
<hr>
|
<hr>
|
||||||
<div id="policy-criteria-wizard-steps" class="row wr-wizard"></div>
|
<div id="policy-naming-wizard-steps" class="row wr-wizard"></div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<h4 class="visible-xs">Step 2: Edit assignment groups</h4>
|
<h4 class="visible-xs">Step 3: Republish to devices</h4>
|
||||||
<br>
|
<br>
|
||||||
<div id="policy-criteria-main-error-msg" class="alert alert-danger hidden" role="alert">
|
<div id="policy-naming-main-error-msg" class="alert alert-danger hidden" role="alert">
|
||||||
<i class="icon fw fw-error"></i><span></span>
|
<i class="icon fw fw-error"></i><span></span>
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<label class="wr-input-label">
|
|
||||||
Set device ownership type
|
|
||||||
</label>
|
|
||||||
<div class="wr-input-control">
|
|
||||||
<div class="cus-col-50">
|
|
||||||
<select id="ownership-input" class="form-control">
|
|
||||||
<option value="ANY" selected>ANY</option>
|
|
||||||
<option value="BYOD">BYOD (Bring Your Own Device) </option>
|
|
||||||
<option value="COPE">COPE (Corporate-Owned, Personally Enabled)</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<br class="c-both" />
|
|
||||||
</div>
|
|
||||||
<div class="wr-input-control">
|
|
||||||
<label class="wr-input-control radio light">
|
|
||||||
<input id="user-roles-radio-btn" type="radio" name="select-users-radio-btn" class="select-users-radio" checked/>
|
|
||||||
<span class="helper"> Set user role(s)</span>
|
|
||||||
</label>
|
|
||||||
<label class="wr-input-control radio light" rel="assetfilter">
|
|
||||||
<input id="users-radio-btn" type="radio" name="select-users-radio-btn" class="select-users-radio" />
|
|
||||||
<span class="helper"> Set user(s)</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div id="user-roles-select-field" class="select-users">
|
|
||||||
<div class="wr-input-control">
|
|
||||||
<div class="cus-col-50">
|
|
||||||
<select id="user-roles-input" class="form-control select2" multiple="multiple">
|
|
||||||
<option value="ANY" selected>ANY</option>
|
|
||||||
{{#each roles}}
|
|
||||||
<option>{{this}}</option>
|
|
||||||
{{/each}}
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
<div>
|
||||||
</div>
|
<label class="wr-input-label">
|
||||||
</div>
|
Set a name * to your policy<br>
|
||||||
<div id="users-select-field" class="select-users">
|
( should be 1-to-30 characters long )
|
||||||
<div class="wr-input-control">
|
</label>
|
||||||
<div class="cus-col-50">
|
<div id="policy-name-field" class="form-group wr-input-control">
|
||||||
<select id="users-input" class="form-control select2" multiple="multiple">
|
<div class="cus-col-50">
|
||||||
<option value="ANY" selected>ANY</option>
|
<input id="policy-name-input" class="form-control" type="text" value=""
|
||||||
{{#each users}}
|
placeholder="[ Required field ]"/>
|
||||||
<option>{{username}}</option>
|
</div>
|
||||||
{{/each}}
|
<br class="c-both"/>
|
||||||
</select>
|
<span class=" nameError hidden glyphicon glyphicon-remove form-control-feedback"></span>
|
||||||
|
<label class="error nameEmpty hidden" for="summary">Policy name is required &
|
||||||
|
Should be be 1-to-30 characters long.</label>
|
||||||
|
</div>
|
||||||
|
<label class="wr-input-label">
|
||||||
|
Add a description
|
||||||
|
</label>
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<div class="cus-col-50">
|
||||||
|
<textarea id="policy-description-input" class="form-control" rows="10"
|
||||||
|
placeholder="[ Optional field ]"></textarea>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="wr-input-control wr-btn-grp">
|
||||||
|
<a href="#" class="wr-btn wizard-stepper" data-is-back-btn="true"
|
||||||
|
data-current="policy-naming" data-next="policy-criteria">
|
||||||
|
Back
|
||||||
|
</a>
|
||||||
|
<a href="#" class="wr-btn wizard-stepper" data-current="policy-naming-publish"
|
||||||
|
data-next="policy-message" data-validate="true">
|
||||||
|
Save & Publish
|
||||||
|
</a>
|
||||||
|
<a href="#" class="wr-btn wizard-stepper" data-current="policy-naming"
|
||||||
|
data-next="policy-message" data-validate="true">
|
||||||
|
Save
|
||||||
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
</div>
|
||||||
<label class="wr-input-label" title="">
|
</div>
|
||||||
Set an action upon non-compliance
|
|
||||||
</label>
|
<div class="container col-centered wr-content policy-criteria hidden">
|
||||||
<div class="wr-input-control">
|
<div class="wr-form">
|
||||||
<div class="cus-col-50">
|
<h1 id="policy-criteria-page-wizard-title" class="page-sub-title">EDIT POLICY</h1>
|
||||||
<select id="action-input" class="form-control">
|
<hr>
|
||||||
<option value="enforce" data-action="enforce" selected>Enforce</option>
|
<div id="policy-criteria-wizard-steps" class="row wr-wizard"></div>
|
||||||
<option value="warn" data-action="warn">Warn</option>
|
<hr>
|
||||||
<option value="monitor" data-action="monitor">Monitor</option>
|
<div class="row">
|
||||||
</select>
|
<div class="col-lg-12">
|
||||||
|
<h4 class="visible-xs">Step 2: Edit assignment groups</h4>
|
||||||
|
<br>
|
||||||
|
<div id="policy-criteria-main-error-msg" class="alert alert-danger hidden" role="alert">
|
||||||
|
<i class="icon fw fw-error"></i><span></span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="wr-input-label">
|
||||||
|
Set device ownership type
|
||||||
|
</label>
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<div class="cus-col-50">
|
||||||
|
<select id="ownership-input" class="form-control">
|
||||||
|
<option value="ANY" selected>ANY</option>
|
||||||
|
<option value="BYOD">BYOD (Bring Your Own Device)</option>
|
||||||
|
<option value="COPE">COPE (Corporate-Owned, Personally Enabled)</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
<div class="wr-input-control">
|
||||||
|
{{#if isAuthorizedViewRoles}}
|
||||||
|
<label class="wr-input-control radio light">
|
||||||
|
<input id="user-roles-radio-btn" type="radio"
|
||||||
|
name="select-users-radio-btn" class="select-users-radio"
|
||||||
|
checked/>
|
||||||
|
<span class="helper"> Set user role(s)</span>
|
||||||
|
</label>
|
||||||
|
{{/if}}
|
||||||
|
{{#if isAuthorizedViewUsers}}
|
||||||
|
<label class="wr-input-control radio light" rel="assetfilter">
|
||||||
|
<input id="users-radio-btn" type="radio" name="select-users-radio-btn"
|
||||||
|
class="select-users-radio"/>
|
||||||
|
<span class="helper"> Set user(s)</span>
|
||||||
|
</label>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{#if isAuthorizedViewRoles}}
|
||||||
|
<div id="user-roles-select-field" class="select-users">
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<div class="cus-col-50">
|
||||||
|
<select id="user-roles-input" class="form-control select2"
|
||||||
|
multiple="multiple">
|
||||||
|
<option value="ANY" selected>ANY</option>
|
||||||
|
{{#each roles}}
|
||||||
|
<option>{{this}}</option>
|
||||||
|
{{/each}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if isAuthorizedViewUsers}}
|
||||||
|
<div id="users-select-field" class="select-users">
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<div class="cus-col-50">
|
||||||
|
<select id="users-input" class="form-control select2"
|
||||||
|
multiple="multiple">
|
||||||
|
<option value="ANY" selected>ANY</option>
|
||||||
|
{{#each users}}
|
||||||
|
<option>{{username}}</option>
|
||||||
|
{{/each}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}}
|
||||||
|
<br>
|
||||||
|
<label class="wr-input-label" title="">
|
||||||
|
Set an action upon non-compliance
|
||||||
|
</label>
|
||||||
|
<div class="wr-input-control">
|
||||||
|
<div class="cus-col-50">
|
||||||
|
<select id="action-input" class="form-control">
|
||||||
|
<option value="enforce" data-action="enforce" selected>Enforce</option>
|
||||||
|
<option value="warn" data-action="warn">Warn</option>
|
||||||
|
<option value="monitor" data-action="monitor">Monitor</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<br class="c-both"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="wr-input-control wr-btn-grp">
|
||||||
|
<a href="#" class="wr-btn wizard-stepper" data-is-back-btn="true"
|
||||||
|
data-current="policy-criteria" data-next="policy-profile">
|
||||||
|
Back
|
||||||
|
</a>
|
||||||
|
<a href="#" class="wr-btn wizard-stepper" data-current="policy-criteria"
|
||||||
|
data-next="policy-naming" data-validate="true">
|
||||||
|
Continue
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br class="c-both" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wr-input-control wr-btn-grp">
|
|
||||||
<a href="#" class="wr-btn wizard-stepper" data-is-back-btn="true" data-current="policy-criteria" data-next="policy-profile">
|
|
||||||
Back
|
|
||||||
</a>
|
|
||||||
<a href="#" class="wr-btn wizard-stepper" data-current="policy-criteria" data-next="policy-naming" data-validate="true">
|
|
||||||
Continue
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container col-centered wr-content policy-profile">
|
<div class="container col-centered wr-content policy-profile">
|
||||||
<div class="wr-form">
|
<div class="wr-form">
|
||||||
<h1 id="policy-profile-page-wizard-title" class="page-sub-title">EDIT POLICY</h1>
|
<h1 id="policy-profile-page-wizard-title" class="page-sub-title">EDIT POLICY</h1>
|
||||||
<hr>
|
<hr>
|
||||||
<div id="policy-profile-wizard-steps" class="row wr-wizard"></div>
|
<div id="policy-profile-wizard-steps" class="row wr-wizard"></div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<h4 class="visible-xs">Step 1: Edit current profile</h4>
|
<h4 class="visible-xs">Step 1: Edit current profile</h4>
|
||||||
<br>
|
<br>
|
||||||
<div id="policy-profile-main-error-msg" class="alert alert-danger hidden" role="alert">
|
<div id="policy-profile-main-error-msg" class="alert alert-danger hidden" role="alert">
|
||||||
<i class="icon fw fw-error"></i><span></span>
|
<i class="icon fw fw-error"></i><span></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="wr-advance-operations">
|
<div class="wr-advance-operations">
|
||||||
<div class="wr-advance-operations-init">
|
<div class="wr-advance-operations-init">
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<i class="fw fw-settings fw-spin fw-2x"></i>
|
<i class="fw fw-settings fw-spin fw-2x"></i>
|
||||||
Loading platform features . . .
|
Loading platform features . . .
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="wr-input-control wr-btn-grp">
|
||||||
|
<a href="#" class="wr-btn wizard-stepper" data-current="policy-profile"
|
||||||
|
data-next="policy-criteria" data-validate="true">
|
||||||
|
Continue
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wr-input-control wr-btn-grp">
|
|
||||||
<a href="#" class="wr-btn wizard-stepper" data-current="policy-profile" data-next="policy-criteria" data-validate="true">
|
|
||||||
Continue
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- content -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{{else}}
|
||||||
|
<h1 class="page-sub-title">
|
||||||
<!-- content -->
|
Permission Denied
|
||||||
|
</h1>
|
||||||
</div>
|
<br>
|
||||||
</div>
|
You not authorized to enter Policy Management Section.
|
||||||
|
<br>
|
||||||
|
{{/if}}
|
||||||
{{/zone}}
|
{{/zone}}
|
||||||
{{#zone "bottomJs"}}
|
{{#zone "bottomJs"}}
|
||||||
<!--suppress HtmlUnknownTarget -->
|
<!--suppress HtmlUnknownTarget -->
|
||||||
|
|||||||
@ -32,5 +32,9 @@ function onRequest(context) {
|
|||||||
context.users = usersResult.content;
|
context.users = usersResult.content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
context.isAuthorized = userModule.isAuthorized("/permission/admin/device-mgt/policies/manage");
|
||||||
|
context.isAuthorizedViewUsers = userModule.isAuthorized("/permission/admin/device-mgt/roles/view");
|
||||||
|
context.isAuthorizedViewRoles = userModule.isAuthorized("/permission/admin/device-mgt/users/view");
|
||||||
|
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user