Refactored scope strings

revert-70aa11f8
Milan Perera 8 years ago
parent 157ef998a6
commit 637c014866

@ -40,7 +40,7 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "Sign CSR", name = "Sign CSR",
description = "Sign CSR", description = "Sign CSR",
key = "cdmf:sign-csr", key = "perm:sign-csr",
permissions = {"/device-mgt/certificates/manage"} permissions = {"/device-mgt/certificates/manage"}
) )
} }
@ -68,7 +68,7 @@ public interface CertificateMgtService {
tags = "Device Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = SCOPE, value = "cdmf:sign-csr") @ExtensionProperty(name = SCOPE, value = "perm:sign-csr")
}) })
} }
) )

@ -43,25 +43,25 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "Adding a new SSL certificate", name = "Adding a new SSL certificate",
description = "Adding a new SSL certificate", description = "Adding a new SSL certificate",
key = "cdmf:admin:certificates:add", key = "perm:admin:certificates:add",
permissions = {"/device-mgt/admin/certificates/add"} permissions = {"/device-mgt/admin/certificates/add"}
), ),
@Scope( @Scope(
name = "Getting Details of an SSL Certificate", name = "Getting Details of an SSL Certificate",
description = "Getting Details of an SSL Certificate", description = "Getting Details of an SSL Certificate",
key = "cdmf:admin:certificates:details", key = "perm:admin:certificates:details",
permissions = {"/device-mgt/admin/certificates/details"} permissions = {"/device-mgt/admin/certificates/details"}
), ),
@Scope( @Scope(
name = "Getting Details of Certificates", name = "Getting Details of Certificates",
description = "Getting Details of Certificates", description = "Getting Details of Certificates",
key = "cdmf:admin:certificates:view", key = "perm:admin:certificates:view",
permissions = {"/device-mgt/admin/certificates/view"} permissions = {"/device-mgt/admin/certificates/view"}
), ),
@Scope( @Scope(
name = "Deleting an SSL Certificate", name = "Deleting an SSL Certificate",
description = "Deleting an SSL Certificate", description = "Deleting an SSL Certificate",
key = "cdmf:admin:certificates:delete", key = "perm:admin:certificates:delete",
permissions = {"/device-mgt/admin/certificates/delete"} permissions = {"/device-mgt/admin/certificates/delete"}
) )
} }
@ -89,7 +89,7 @@ public interface CertificateManagementAdminService {
tags = "Certificate Management", tags = "Certificate Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = SCOPE, value = "cdmf:admin:certificates:add") @ExtensionProperty(name = SCOPE, value = "perm:admin:certificates:add")
}) })
} }
) )
@ -158,7 +158,7 @@ public interface CertificateManagementAdminService {
tags = "Certificate Management", tags = "Certificate Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = SCOPE, value = "cdmf:admin:certificates:details") @ExtensionProperty(name = SCOPE, value = "perm:admin:certificates:details")
}) })
} }
) )
@ -229,7 +229,7 @@ public interface CertificateManagementAdminService {
tags = "Certificate Management", tags = "Certificate Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = SCOPE, value = "cdmf:admin:certificates:view") @ExtensionProperty(name = SCOPE, value = "perm:admin:certificates:view")
}) })
} }
) )
@ -308,7 +308,7 @@ public interface CertificateManagementAdminService {
tags = "Certificate Management", tags = "Certificate Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = SCOPE, value = "cdmf:admin:certificates:delete") @ExtensionProperty(name = SCOPE, value = "perm:admin:certificates:delete")
}) })
} }
) )

@ -52,19 +52,19 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "Device Count Overview", name = "Device Count Overview",
description = "Device Count Overview", description = "Device Count Overview",
key = "cdmf:dashboard:count-overview", key = "perm:dashboard:count-overview",
permissions = {"/device-mgt/dashboard/view"} permissions = {"/device-mgt/dashboard/view"}
), ),
@Scope( @Scope(
name = "Device Counts by Potential Vulnerabilities", name = "Device Counts by Potential Vulnerabilities",
description = "Device Counts by Potential Vulnerabilities", description = "Device Counts by Potential Vulnerabilities",
key = "cdmf:dashboard:vulnerabilities", key = "perm:dashboard:vulnerabilities",
permissions = {"/device-mgt/dashboard/view"} permissions = {"/device-mgt/dashboard/view"}
), ),
@Scope( @Scope(
name = "Get the number of devices that have not complied to a policy", name = "Get the number of devices that have not complied to a policy",
description = "Get the number of devices that have not complied to a policy", description = "Get the number of devices that have not complied to a policy",
key = "cdmf:dashboard:non-compliant", key = "perm:dashboard:non-compliant",
permissions = {"/device-mgt/dashboard/view"} permissions = {"/device-mgt/dashboard/view"}
), ),
@Scope( @Scope(
@ -72,13 +72,13 @@ import javax.ws.rs.core.Response;
+ "potential vulnerability, platform, and ownership", + "potential vulnerability, platform, and ownership",
description = "Get the number of devices for a given device type, such as connectivity status, " description = "Get the number of devices for a given device type, such as connectivity status, "
+ "potential vulnerability, platform, and ownership", + "potential vulnerability, platform, and ownership",
key = "cdmf:dashboard:by-groups", key = "perm:dashboard:by-groups",
permissions = {"/device-mgt/dashboard/view"} permissions = {"/device-mgt/dashboard/view"}
), ),
@Scope( @Scope(
name = "Get the number of devices that have not complied to a given policy based on a particular", name = "Get the number of devices that have not complied to a given policy based on a particular",
description = "Get the number of devices that have not complied to a given policy based on a particular", description = "Get the number of devices that have not complied to a given policy based on a particular",
key = "cdmf:dashboard:device-counts", key = "perm:dashboard:device-counts",
permissions = {"/device-mgt/dashboard/view"} permissions = {"/device-mgt/dashboard/view"}
), ),
@Scope( @Scope(
@ -86,7 +86,7 @@ import javax.ws.rs.core.Response;
+ " device type.", + " device type.",
description = "Get the number of devices that have not complied to a given policy based on a " + description = "Get the number of devices that have not complied to a given policy based on a " +
"particular device type.", "particular device type.",
key = "cdmf:dashboard:filtered-count", key = "perm:dashboard:filtered-count",
permissions = {"/device-mgt/dashboard/view"} permissions = {"/device-mgt/dashboard/view"}
), ),
@Scope( @Scope(
@ -94,19 +94,19 @@ import javax.ws.rs.core.Response;
+ " number of devices registered with WSO2 EMM.\n", + " number of devices registered with WSO2 EMM.\n",
description = "Get the number of devices that have not complied to a given policy over the total" description = "Get the number of devices that have not complied to a given policy over the total"
+ " number of devices registered with WSO2 EMM.\n", + " number of devices registered with WSO2 EMM.\n",
key = "cdmf:dashboard:non-compliant-count", key = "perm:dashboard:non-compliant-count",
permissions = {"/device-mgt/dashboard/view"} permissions = {"/device-mgt/dashboard/view"}
), ),
@Scope( @Scope(
name = "Get device details of devices based on a particular device type.", name = "Get device details of devices based on a particular device type.",
description = "Get device details of devices based on a particular device type.", description = "Get device details of devices based on a particular device type.",
key = "cdmf:dashboard:details", key = "perm:dashboard:details",
permissions = {"/device-mgt/dashboard/view"} permissions = {"/device-mgt/dashboard/view"}
), ),
@Scope( @Scope(
name = "Get device details of non-compliant devices which do not comply to a given policy.", name = "Get device details of non-compliant devices which do not comply to a given policy.",
description = "Get device details of non-compliant devices which do not comply to a given policy.", description = "Get device details of non-compliant devices which do not comply to a given policy.",
key = "cdmf:dashboard:feature-non-compliant", key = "perm:dashboard:feature-non-compliant",
permissions = {"/device-mgt/dashboard/view"} permissions = {"/device-mgt/dashboard/view"}
) )
} }
@ -139,7 +139,7 @@ public interface Dashboard {
tags = "Dashboard", tags = "Dashboard",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:dashboard:count-overview") @ExtensionProperty(name = Constants.SCOPE, value = "perm:dashboard:count-overview")
}) })
} }
) )
@ -195,7 +195,7 @@ public interface Dashboard {
tags = "Dashboard", tags = "Dashboard",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:dashboard:vulnerabilities") @ExtensionProperty(name = Constants.SCOPE, value = "perm:dashboard:vulnerabilities")
}) })
} }
) )
@ -252,7 +252,7 @@ public interface Dashboard {
tags = "Dashboard", tags = "Dashboard",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:dashboard:non-compliant") @ExtensionProperty(name = Constants.SCOPE, value = "perm:dashboard:non-compliant")
}) })
} }
) )
@ -322,7 +322,7 @@ public interface Dashboard {
tags = "Dashboard", tags = "Dashboard",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:dashboard:by-groups") @ExtensionProperty(name = Constants.SCOPE, value = "perm:dashboard:by-groups")
}) })
} }
) )
@ -411,7 +411,7 @@ public interface Dashboard {
tags = "Dashboard", tags = "Dashboard",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:dashboard:device-counts") @ExtensionProperty(name = Constants.SCOPE, value = "perm:dashboard:device-counts")
}) })
} }
) )
@ -490,7 +490,7 @@ public interface Dashboard {
tags = "Dashboard", tags = "Dashboard",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:dashboard:filtered-count") @ExtensionProperty(name = Constants.SCOPE, value = "perm:dashboard:filtered-count")
}) })
} }
) )
@ -582,7 +582,7 @@ public interface Dashboard {
tags = "Dashboard", tags = "Dashboard",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:dashboard:non-compliant-count") @ExtensionProperty(name = Constants.SCOPE, value = "perm:dashboard:non-compliant-count")
}) })
} }
) )
@ -657,7 +657,7 @@ public interface Dashboard {
tags = "Dashboard", tags = "Dashboard",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:dashboard:details") @ExtensionProperty(name = Constants.SCOPE, value = "perm:dashboard:details")
}) })
} }
) )
@ -759,7 +759,7 @@ public interface Dashboard {
tags = "Dashboard", tags = "Dashboard",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:dashboard:feature-non-compliant") @ExtensionProperty(name = Constants.SCOPE, value = "perm:dashboard:feature-non-compliant")
}) })
} }
) )

@ -70,55 +70,55 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "Getting Details of Registered Devices", name = "Getting Details of Registered Devices",
description = "Getting Details of Registered Devices", description = "Getting Details of Registered Devices",
key = "cdmf:devices:view", key = "perm:devices:view",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
), ),
@Scope( @Scope(
name = "Getting Details of a Device", name = "Getting Details of a Device",
description = "Getting Details of a Device", description = "Getting Details of a Device",
key = "cdmf:devices:details", key = "perm:devices:details",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
), ),
@Scope( @Scope(
name = "Delete the device specified by device id", name = "Delete the device specified by device id",
description = "Delete the device specified by device id", description = "Delete the device specified by device id",
key = "cdmf:devices:delete", key = "perm:devices:delete",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
), ),
@Scope( @Scope(
name = "Getting Feature Details of a Device", name = "Getting Feature Details of a Device",
description = "Getting Feature Details of a Device", description = "Getting Feature Details of a Device",
key = "cdmf:devices:features", key = "perm:devices:features",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
), ),
@Scope( @Scope(
name = "Advanced Search for Devices", name = "Advanced Search for Devices",
description = "Advanced Search for Devices", description = "Advanced Search for Devices",
key = "cdmf:devices:search", key = "perm:devices:search",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
), ),
@Scope( @Scope(
name = "Getting Installed Application Details of a Device", name = "Getting Installed Application Details of a Device",
description = "Getting Installed Application Details of a Device", description = "Getting Installed Application Details of a Device",
key = "cdmf:devices:applications", key = "perm:devices:applications",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
), ),
@Scope( @Scope(
name = "Getting Device Operation Details", name = "Getting Device Operation Details",
description = "Getting Device Operation Details", description = "Getting Device Operation Details",
key = "cdmf:devices:operations", key = "perm:devices:operations",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
), ),
@Scope( @Scope(
name = "Get the details of the policy that is enforced on a device.", name = "Get the details of the policy that is enforced on a device.",
description = "Get the details of the policy that is enforced on a device.", description = "Get the details of the policy that is enforced on a device.",
key = "cdmf:devices:effective-policy", key = "perm:devices:effective-policy",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
), ),
@Scope( @Scope(
name = "Getting Policy Compliance Details of a Device", name = "Getting Policy Compliance Details of a Device",
description = "Getting Policy Compliance Details of a Device", description = "Getting Policy Compliance Details of a Device",
key = "cdmf:devices:compliance-data", key = "perm:devices:compliance-data",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
) )
} }
@ -139,7 +139,7 @@ public interface DeviceManagementService {
tags = "Device Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:devices:view") @ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:view")
}) })
} }
) )
@ -264,7 +264,7 @@ public interface DeviceManagementService {
tags = "Device Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:devices:details") @ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:details")
}) })
} }
) )
@ -342,7 +342,7 @@ public interface DeviceManagementService {
tags = "Device Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:devices:delete") @ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:delete")
}) })
} }
) )
@ -414,7 +414,7 @@ public interface DeviceManagementService {
tags = "Device Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:devices:features") @ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:features")
}) })
} }
) )
@ -503,7 +503,7 @@ public interface DeviceManagementService {
tags = "Device Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:devices:search") @ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:search")
}) })
} }
) )
@ -580,7 +580,7 @@ public interface DeviceManagementService {
tags = "Device Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:devices:applications") @ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:applications")
}) })
} }
@ -683,7 +683,7 @@ public interface DeviceManagementService {
tags = "Device Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:devices:operations") @ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:operations")
}) })
} }
) )
@ -794,7 +794,7 @@ public interface DeviceManagementService {
tags = "Device Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:devices:effective-policy") @ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:effective-policy")
}) })
} }
) )
@ -883,7 +883,7 @@ public interface DeviceManagementService {
tags = "Device Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:devices:compliance-data") @ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:compliance-data")
}) })
} }
) )

@ -60,13 +60,13 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "Getting the Supported Device Platforms", name = "Getting the Supported Device Platforms",
description = "Getting the Supported Device Platforms", description = "Getting the Supported Device Platforms",
key = "cdmf:device-types:types", key = "perm:device-types:types",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
), ),
@Scope( @Scope(
name = "Get Feature Details of a Device Type", name = "Get Feature Details of a Device Type",
description = "Get Feature Details of a Device Type", description = "Get Feature Details of a Device Type",
key = "cdmf:device-types:features", key = "perm:device-types:features",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
) )
} }
@ -87,7 +87,7 @@ public interface DeviceTypeManagementService {
tags = "Device Type Management", tags = "Device Type Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:device-types:types") @ExtensionProperty(name = Constants.SCOPE, value = "perm:device-types:types")
}) })
} }
) )
@ -149,7 +149,7 @@ public interface DeviceTypeManagementService {
tags = "Device Type Management", tags = "Device Type Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:device-types:features") @ExtensionProperty(name = Constants.SCOPE, value = "perm:device-types:features")
}) })
} }
) )

@ -81,85 +81,85 @@ import java.util.List;
@Scope( @Scope(
name = "Get the list of groups belongs to current user.", name = "Get the list of groups belongs to current user.",
description = "Get the list of groups belongs to current user.", description = "Get the list of groups belongs to current user.",
key = "cdmf:groups:groups", key = "perm:groups:groups",
permissions = {"/device-mgt/groups/view"} permissions = {"/device-mgt/groups/view"}
), ),
@Scope( @Scope(
name = "Get the count of groups belongs to current user.", name = "Get the count of groups belongs to current user.",
description = "Get the count of groups belongs to current user.", description = "Get the count of groups belongs to current user.",
key = "cdmf:groups:count", key = "perm:groups:count",
permissions = {"/device-mgt/groups/view"} permissions = {"/device-mgt/groups/view"}
), ),
@Scope( @Scope(
name = "Add new device group to the system.", name = "Add new device group to the system.",
description = "Add new device group to the system.", description = "Add new device group to the system.",
key = "cdmf:groups:add", key = "perm:groups:add",
permissions = {"/device-mgt/groups/add"} permissions = {"/device-mgt/groups/add"}
), ),
@Scope( @Scope(
name = "View group specified", name = "View group specified",
description = "View group specified", description = "View group specified",
key = "cdmf:groups:groups-view", key = "perm:groups:groups-view",
permissions = {"/device-mgt/groups/view"} permissions = {"/device-mgt/groups/view"}
), ),
@Scope( @Scope(
name = "Update a group", name = "Update a group",
description = "Update a group", description = "Update a group",
key = "cdmf:groups:update", key = "perm:groups:update",
permissions = {"/device-mgt/groups/update"} permissions = {"/device-mgt/groups/update"}
), ),
@Scope( @Scope(
name = "Delete a group", name = "Delete a group",
description = "Delete a group", description = "Delete a group",
key = "cdmf:groups:remove", key = "perm:groups:remove",
permissions = {"/device-mgt/groups/remove"} permissions = {"/device-mgt/groups/remove"}
), ),
@Scope( @Scope(
name = "Manage group sharing with a user", name = "Manage group sharing with a user",
description = "Manage group sharing with a user", description = "Manage group sharing with a user",
key = "cdmf:groups:share", key = "perm:groups:share",
permissions = {"/device-mgt/groups/share"} permissions = {"/device-mgt/groups/share"}
), ),
@Scope( @Scope(
name = "View list of roles of a device group", name = "View list of roles of a device group",
description = "View list of roles of a device group", description = "View list of roles of a device group",
key = "cdmf:groups:roles", key = "perm:groups:roles",
permissions = {"/device-mgt/groups/roles/view"} permissions = {"/device-mgt/groups/roles/view"}
), ),
@Scope( @Scope(
name = "View list of devices in the device group", name = "View list of devices in the device group",
description = "View list of devices in the device group", description = "View list of devices in the device group",
key = "cdmf:groups:devices", key = "perm:groups:devices",
permissions = {"/device-mgt/groups/devices/view"} permissions = {"/device-mgt/groups/devices/view"}
), ),
@Scope( @Scope(
name = "View list of device count in the device group", name = "View list of device count in the device group",
description = "View list of device count in the device group", description = "View list of device count in the device group",
key = "cdmf:groups:devices-count", key = "perm:groups:devices-count",
permissions = {"/device-mgt/groups/devices/view"} permissions = {"/device-mgt/groups/devices/view"}
), ),
@Scope( @Scope(
name = "Add devices to group", name = "Add devices to group",
description = "Add devices to group", description = "Add devices to group",
key = "cdmf:groups:devices-add", key = "perm:groups:devices-add",
permissions = {"/device-mgt/groups/devices/add"} permissions = {"/device-mgt/groups/devices/add"}
), ),
@Scope( @Scope(
name = "Remove devices from group", name = "Remove devices from group",
description = "Remove devices from group", description = "Remove devices from group",
key = "cdmf:groups:devices-remove", key = "perm:groups:devices-remove",
permissions = {"/device-mgt/groups/devices/remove"} permissions = {"/device-mgt/groups/devices/remove"}
), ),
@Scope( @Scope(
name = "Assign devices to groups", name = "Assign devices to groups",
description = "Assign devices to groups", description = "Assign devices to groups",
key = "cdmf:groups:assign", key = "perm:groups:assign",
permissions = {"/device-mgt/groups/devices/add"} permissions = {"/device-mgt/groups/devices/add"}
), ),
@Scope( @Scope(
name = "List of groups that have the device", name = "List of groups that have the device",
description = "List of groups that have the device", description = "List of groups that have the device",
key = "cdmf:groups:device", key = "perm:groups:device",
permissions = {"/device-mgt/groups/devices/view"} permissions = {"/device-mgt/groups/devices/view"}
) )
} }
@ -180,7 +180,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:groups") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:groups")
}) })
} }
) )
@ -243,7 +243,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:count") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:count")
}) })
} }
@ -291,7 +291,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:add") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:add")
}) })
} }
) )
@ -357,7 +357,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:groups-view") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:groups-view")
}) })
} }
) )
@ -410,7 +410,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:update") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:update")
}) })
} }
) )
@ -467,7 +467,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:remove") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:remove")
}) })
} }
) )
@ -519,7 +519,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:share") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:share")
}) })
} }
) )
@ -575,7 +575,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:roles") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:roles")
}) })
} }
) )
@ -627,7 +627,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:devices") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:devices")
}) })
} }
) )
@ -687,7 +687,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:devices-count") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:devices-count")
}) })
} }
) )
@ -739,7 +739,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:devices-add") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:devices-add")
}) })
} }
) )
@ -795,7 +795,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:devices-remove") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:devices-remove")
}) })
} }
) )
@ -851,7 +851,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:assign") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:assign")
}) })
} }
) )
@ -903,7 +903,7 @@ public interface GroupManagementService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:groups:device") @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:device")
}) })
} }
) )

@ -66,13 +66,13 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "Getting All Device Notification Details", name = "Getting All Device Notification Details",
description = "Getting All Device Notification Details", description = "Getting All Device Notification Details",
key = "cdmf:notifications:view", key = "perm:notifications:view",
permissions = {"/device-mgt/notifications/view"} permissions = {"/device-mgt/notifications/view"}
), ),
@Scope( @Scope(
name = "Updating the Device Notification Status", name = "Updating the Device Notification Status",
description = "Updating the Device Notification Status", description = "Updating the Device Notification Status",
key = "cdmf:notifications:mark-checked", key = "perm:notifications:mark-checked",
permissions = {"/device-mgt/notifications/view"} permissions = {"/device-mgt/notifications/view"}
) )
} }
@ -92,7 +92,7 @@ public interface NotificationManagementService {
tags = "Device Notification Management", tags = "Device Notification Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:notifications:view") @ExtensionProperty(name = Constants.SCOPE, value = "perm:notifications:view")
}) })
} }
) )
@ -181,7 +181,7 @@ public interface NotificationManagementService {
tags = "Device Notification Management", tags = "Device Notification Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:notifications:mark-checked") @ExtensionProperty(name = Constants.SCOPE, value = "perm:notifications:mark-checked")
}) })
} }
) )

@ -68,55 +68,55 @@ import java.util.List;
@Scope( @Scope(
name = "Adding a Policy", name = "Adding a Policy",
description = "Adding a Policy", description = "Adding a Policy",
key = "cdmf:policies:manage", key = "perm:policies:manage",
permissions = {"/device-mgt/policies/manage"} permissions = {"/device-mgt/policies/manage"}
), ),
@Scope( @Scope(
name = "Getting Details of Policies", name = "Getting Details of Policies",
description = "Getting Details of Policies", description = "Getting Details of Policies",
key = "cdmf:policies:get-details", key = "perm:policies:get-details",
permissions = {"/device-mgt/policies/view"} permissions = {"/device-mgt/policies/view"}
), ),
@Scope( @Scope(
name = "Getting Details of a Policy", name = "Getting Details of a Policy",
description = "Getting Details of a Policy", description = "Getting Details of a Policy",
key = "cdmf:policies:get-policy-details", key = "perm:policies:get-policy-details",
permissions = {"/device-mgt/policies/view"} permissions = {"/device-mgt/policies/view"}
), ),
@Scope( @Scope(
name = "Updating a Policy", name = "Updating a Policy",
description = "Updating a Policy", description = "Updating a Policy",
key = "cdmf:policies:update", key = "perm:policies:update",
permissions = {"/device-mgt/policies/manage"} permissions = {"/device-mgt/policies/manage"}
), ),
@Scope( @Scope(
name = "Removing Multiple Policies", name = "Removing Multiple Policies",
description = "Removing Multiple Policies", description = "Removing Multiple Policies",
key = "cdmf:policies:remove", key = "perm:policies:remove",
permissions = {"/device-mgt/policies/manage"} permissions = {"/device-mgt/policies/manage"}
), ),
@Scope( @Scope(
name = "Activating Policies", name = "Activating Policies",
description = "Activating Policies", description = "Activating Policies",
key = "cdmf:policies:activate", key = "perm:policies:activate",
permissions = {"/device-mgt/policies/manage"} permissions = {"/device-mgt/policies/manage"}
), ),
@Scope( @Scope(
name = "Deactivating Policies", name = "Deactivating Policies",
description = "Deactivating Policies", description = "Deactivating Policies",
key = "cdmf:policies:deactivate", key = "perm:policies:deactivate",
permissions = {"/device-mgt/policies/manage"} permissions = {"/device-mgt/policies/manage"}
), ),
@Scope( @Scope(
name = "Applying Changes on Policies", name = "Applying Changes on Policies",
description = "Applying Changes on Policies", description = "Applying Changes on Policies",
key = "cdmf:policies:changes", key = "perm:policies:changes",
permissions = {"/device-mgt/policies/manage"} permissions = {"/device-mgt/policies/manage"}
), ),
@Scope( @Scope(
name = "Updating the Policy Priorities", name = "Updating the Policy Priorities",
description = "Updating the Policy Priorities", description = "Updating the Policy Priorities",
key = "cdmf:policies:priorities", key = "perm:policies:priorities",
permissions = {"/device-mgt/policies/manage"} permissions = {"/device-mgt/policies/manage"}
) )
} }
@ -138,7 +138,7 @@ public interface PolicyManagementService {
tags = "Device Policy Management", tags = "Device Policy Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:policies:manage") @ExtensionProperty(name = Constants.SCOPE, value = "perm:policies:manage")
}) })
} }
) )
@ -206,7 +206,7 @@ public interface PolicyManagementService {
tags = "Device Policy Management", tags = "Device Policy Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:policies:get-details") @ExtensionProperty(name = Constants.SCOPE, value = "perm:policies:get-details")
}) })
} }
) )
@ -281,7 +281,7 @@ public interface PolicyManagementService {
tags = "Device Policy Management", tags = "Device Policy Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:policies:get-policy-details") @ExtensionProperty(name = Constants.SCOPE, value = "perm:policies:get-policy-details")
}) })
} }
) )
@ -349,7 +349,7 @@ public interface PolicyManagementService {
tags = "Device Policy Management", tags = "Device Policy Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:policies:update") @ExtensionProperty(name = Constants.SCOPE, value = "perm:policies:update")
}) })
} }
) )
@ -417,7 +417,7 @@ public interface PolicyManagementService {
tags = "Device Policy Management", tags = "Device Policy Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:policies:remove") @ExtensionProperty(name = Constants.SCOPE, value = "perm:policies:remove")
}) })
} }
) )
@ -463,7 +463,7 @@ public interface PolicyManagementService {
tags = "Device Policy Management", tags = "Device Policy Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:policies:activate") @ExtensionProperty(name = Constants.SCOPE, value = "perm:policies:activate")
}) })
} }
) )
@ -504,7 +504,7 @@ public interface PolicyManagementService {
tags = "Device Policy Management", tags = "Device Policy Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:policies:deactivate") @ExtensionProperty(name = Constants.SCOPE, value = "perm:policies:deactivate")
}) })
} }
) )
@ -550,7 +550,7 @@ public interface PolicyManagementService {
tags = "Device Policy Management", tags = "Device Policy Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:policies:changes") @ExtensionProperty(name = Constants.SCOPE, value = "perm:policies:changes")
}) })
} }
) )
@ -578,7 +578,7 @@ public interface PolicyManagementService {
tags = "Device Policy Management", tags = "Device Policy Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:policies:priorities") @ExtensionProperty(name = Constants.SCOPE, value = "perm:policies:priorities")
}) })
} }
) )

@ -62,49 +62,49 @@ import java.util.List;
@Scope( @Scope(
name = "Getting the List of Roles", name = "Getting the List of Roles",
description = "Getting the List of Roles", description = "Getting the List of Roles",
key = "cdmf:roles:view", key = "perm:roles:view",
permissions = {"/device-mgt/roles/view"} permissions = {"/device-mgt/roles/view"}
), ),
@Scope( @Scope(
name = "Getting Permission Details of a Role", name = "Getting Permission Details of a Role",
description = "Getting Permission Details of a Role", description = "Getting Permission Details of a Role",
key = "cdmf:roles:permissions", key = "perm:roles:permissions",
permissions = {"/device-mgt/roles/view"} permissions = {"/device-mgt/roles/view"}
), ),
@Scope( @Scope(
name = "Getting the List of Roles", name = "Getting the List of Roles",
description = "Getting the List of Roles", description = "Getting the List of Roles",
key = "cdmf:roles:details", key = "perm:roles:details",
permissions = {"/device-mgt/roles/view"} permissions = {"/device-mgt/roles/view"}
), ),
@Scope( @Scope(
name = "Adding a Role", name = "Adding a Role",
description = "Adding a Role", description = "Adding a Role",
key = "cdmf:roles:add", key = "perm:roles:add",
permissions = {"/device-mgt/roles/manage"} permissions = {"/device-mgt/roles/manage"}
), ),
@Scope( @Scope(
name = "Adding a combined Role", name = "Adding a combined Role",
description = "Adding a combined Role", description = "Adding a combined Role",
key = "cdmf:roles:create-combined-role", key = "perm:roles:create-combined-role",
permissions = {"/device-mgt/roles/manage"} permissions = {"/device-mgt/roles/manage"}
), ),
@Scope( @Scope(
name = "Updating Role Details", name = "Updating Role Details",
description = "Updating Role Details", description = "Updating Role Details",
key = "cdmf:roles:update", key = "perm:roles:update",
permissions = {"/device-mgt/roles/manage"} permissions = {"/device-mgt/roles/manage"}
), ),
@Scope( @Scope(
name = "Deleting a Role", name = "Deleting a Role",
description = "Deleting a Role", description = "Deleting a Role",
key = "cdmf:roles:delete", key = "perm:roles:delete",
permissions = {"/device-mgt/roles/manage"} permissions = {"/device-mgt/roles/manage"}
), ),
@Scope( @Scope(
name = "Adding Users to a Role", name = "Adding Users to a Role",
description = "Adding Users to a Role", description = "Adding Users to a Role",
key = "cdmf:roles:add-users", key = "perm:roles:add-users",
permissions = {"/device-mgt/roles/manage"} permissions = {"/device-mgt/roles/manage"}
) )
} }
@ -125,7 +125,7 @@ public interface RoleManagementService {
tags = "Role Management", tags = "Role Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:roles:view") @ExtensionProperty(name = Constants.SCOPE, value = "perm:roles:view")
}) })
} }
) )
@ -205,7 +205,7 @@ public interface RoleManagementService {
tags = "Role Management", tags = "Role Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:roles:permissions") @ExtensionProperty(name = Constants.SCOPE, value = "perm:roles:permissions")
}) })
} }
) )
@ -280,7 +280,7 @@ public interface RoleManagementService {
tags = "Role Management", tags = "Role Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:roles:details") @ExtensionProperty(name = Constants.SCOPE, value = "perm:roles:details")
}) })
} }
) )
@ -354,7 +354,7 @@ public interface RoleManagementService {
tags = "Role Management", tags = "Role Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:roles:add") @ExtensionProperty(name = Constants.SCOPE, value = "perm:roles:add")
}) })
} }
) )
@ -414,7 +414,7 @@ public interface RoleManagementService {
tags = "Role Management", tags = "Role Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:roles:create-combined-role") @ExtensionProperty(name = Constants.SCOPE, value = "perm:roles:create-combined-role")
}) })
} }
) )
@ -477,7 +477,7 @@ public interface RoleManagementService {
tags = "Role Management", tags = "Role Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:roles:update") @ExtensionProperty(name = Constants.SCOPE, value = "perm:roles:update")
}) })
} }
) )
@ -543,7 +543,7 @@ public interface RoleManagementService {
tags = "Role Management", tags = "Role Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:roles:delete") @ExtensionProperty(name = Constants.SCOPE, value = "perm:roles:delete")
}) })
} }
) )
@ -593,7 +593,7 @@ public interface RoleManagementService {
tags = "Role Management", tags = "Role Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:roles:add-users") @ExtensionProperty(name = Constants.SCOPE, value = "perm:roles:add-users")
}) })
} }
) )

@ -78,67 +78,67 @@ import java.util.List;
@Scope( @Scope(
name = "Adding a User", name = "Adding a User",
description = "Adding a User", description = "Adding a User",
key = "cdmf:users:add", key = "perm:users:add",
permissions = {"/device-mgt/users/manage"} permissions = {"/device-mgt/users/manage"}
), ),
@Scope( @Scope(
name = "Getting Details of a User", name = "Getting Details of a User",
description = "Getting Details of a User", description = "Getting Details of a User",
key = "cdmf:users:details", key = "perm:users:details",
permissions = {"/device-mgt/users/view"} permissions = {"/device-mgt/users/view"}
), ),
@Scope( @Scope(
name = "Updating Details of a User", name = "Updating Details of a User",
description = "Updating Details of a User", description = "Updating Details of a User",
key = "cdmf:users:update", key = "perm:users:update",
permissions = {"/device-mgt/users/manage"} permissions = {"/device-mgt/users/manage"}
), ),
@Scope( @Scope(
name = "Deleting a User", name = "Deleting a User",
description = "Deleting a User", description = "Deleting a User",
key = "cdmf:users:delete", key = "perm:users:delete",
permissions = {"/device-mgt/users/manage"} permissions = {"/device-mgt/users/manage"}
), ),
@Scope( @Scope(
name = "Getting the Role Details of a User", name = "Getting the Role Details of a User",
description = "Getting the Role Details of a User", description = "Getting the Role Details of a User",
key = "cdmf:users:roles", key = "perm:users:roles",
permissions = {"/device-mgt/users/view"} permissions = {"/device-mgt/users/view"}
), ),
@Scope( @Scope(
name = "Getting Details of Users", name = "Getting Details of Users",
description = "Getting Details of Users", description = "Getting Details of Users",
key = "cdmf:users:user-details", key = "perm:users:user-details",
permissions = {"/device-mgt/users/view"} permissions = {"/device-mgt/users/view"}
), ),
@Scope( @Scope(
name = "Getting the User Count", name = "Getting the User Count",
description = "Getting the User Count", description = "Getting the User Count",
key = "cdmf:users:count", key = "perm:users:count",
permissions = {"/device-mgt/users/view"} permissions = {"/device-mgt/users/view"}
), ),
@Scope( @Scope(
name = "Getting the User existence status", name = "Getting the User existence status",
description = "Getting the User existence status", description = "Getting the User existence status",
key = "cdmf:users:is-exist", key = "perm:users:is-exist",
permissions = {"/device-mgt/users/view"} permissions = {"/device-mgt/users/view"}
), ),
@Scope( @Scope(
name = "Searching for a User Name", name = "Searching for a User Name",
description = "Searching for a User Name", description = "Searching for a User Name",
key = "cdmf:users:search", key = "perm:users:search",
permissions = {"/device-mgt/users/view"} permissions = {"/device-mgt/users/view"}
), ),
@Scope( @Scope(
name = "Changing the User Password", name = "Changing the User Password",
description = "Adding a User", description = "Adding a User",
key = "cdmf:users:credentials", key = "perm:users:credentials",
permissions = {"/login"} permissions = {"/login"}
), ),
@Scope( @Scope(
name = "Sending Enrollment Invitations to Users", name = "Sending Enrollment Invitations to Users",
description = "Sending Enrollment Invitations to Users", description = "Sending Enrollment Invitations to Users",
key = "cdmf:users:send-invitation", key = "perm:users:send-invitation",
permissions = {"/device-mgt/users/manage"} permissions = {"/device-mgt/users/manage"}
) )
} }
@ -159,7 +159,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:add") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:add")
}) })
} }
) )
@ -219,7 +219,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:details") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:details")
}) })
} }
) )
@ -290,7 +290,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:update") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:update")
}) })
} }
) )
@ -355,7 +355,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:delete") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:delete")
}) })
} }
) )
@ -398,7 +398,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:roles") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:roles")
}) })
} }
) )
@ -460,7 +460,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:user-details") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:user-details")
}) })
} }
) )
@ -531,7 +531,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:count") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:count")
}) })
} }
) )
@ -566,7 +566,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:is-exist") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:is-exist")
}) })
} }
) )
@ -609,7 +609,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:search") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:search")
}) })
} }
) )
@ -686,7 +686,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:credentials") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:credentials")
}) })
} }
) )
@ -731,7 +731,7 @@ public interface UserManagementService {
tags = "User Management", tags = "User Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:users:send-invitation") @ExtensionProperty(name = Constants.SCOPE, value = "perm:users:send-invitation")
}) })
} }
) )

@ -66,13 +66,13 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "Installing an Application (Internal API)", name = "Installing an Application (Internal API)",
description = "Installing an Application (Internal API)", description = "Installing an Application (Internal API)",
key = "cdmf:applications:install", key = "perm:applications:install",
permissions = {"/device-mgt/applications/manage"} permissions = {"/device-mgt/applications/manage"}
), ),
@Scope( @Scope(
name = "Uninstalling an Application (Internal API)", name = "Uninstalling an Application (Internal API)",
description = "Uninstalling an Application (Internal API)", description = "Uninstalling an Application (Internal API)",
key = "cdmf:applications:uninstall", key = "perm:applications:uninstall",
permissions = {"/device-mgt/applications/manage"} permissions = {"/device-mgt/applications/manage"}
) )
} }
@ -93,7 +93,7 @@ public interface ApplicationManagementAdminService {
tags = "Application Management Administrative Service", tags = "Application Management Administrative Service",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:applications:install") @ExtensionProperty(name = Constants.SCOPE, value = "perm:applications:install")
}) })
} }
) )
@ -137,7 +137,7 @@ public interface ApplicationManagementAdminService {
tags = "Application Management Administrative Service", tags = "Application Management Administrative Service",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:applications:uninstall") @ExtensionProperty(name = Constants.SCOPE, value = "perm:applications:uninstall")
}) })
} }
) )

@ -66,7 +66,7 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "Getting Details of a Device", name = "Getting Details of a Device",
description = "Getting Details of a Device", description = "Getting Details of a Device",
key = "cdmf:admin:devices:view", key = "perm:admin:devices:view",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
) )
} }
@ -84,7 +84,7 @@ public interface DeviceManagementAdminService {
tags = "Device Management Administrative Service", tags = "Device Management Administrative Service",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:admin:devices:view") @ExtensionProperty(name = Constants.SCOPE, value = "perm:admin:devices:view")
}) })
} }
) )

@ -67,13 +67,13 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "View groups", name = "View groups",
description = "", description = "",
key = "cdmf:admin-groups:view", key = "perm:admin-groups:view",
permissions = {"/device-mgt/admin/groups/view"} permissions = {"/device-mgt/admin/groups/view"}
), ),
@Scope( @Scope(
name = "Count groups", name = "Count groups",
description = "", description = "",
key = "cdmf:admin-groups:count", key = "perm:admin-groups:count",
permissions = {"/device-mgt/admin/groups/view"} permissions = {"/device-mgt/admin/groups/view"}
) )
} }
@ -89,7 +89,7 @@ public interface GroupManagementAdminService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:admin-groups:view") @ExtensionProperty(name = Constants.SCOPE, value = "perm:admin-groups:view")
}) })
} }
) )
@ -152,7 +152,7 @@ public interface GroupManagementAdminService {
tags = "Device Group Management", tags = "Device Group Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:admin-groups:count") @ExtensionProperty(name = Constants.SCOPE, value = "perm:admin-groups:count")
}) })
} }
) )

@ -59,7 +59,7 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "View Users", name = "View Users",
description = "View Users", description = "View Users",
key = "cdmf:admin-users:view", key = "perm:admin-users:view",
permissions = {"/device-mgt/users/manage"} permissions = {"/device-mgt/users/manage"}
) )
} }
@ -84,7 +84,7 @@ public interface UserManagementAdminService {
tags = "User Management Administrative Service", tags = "User Management Administrative Service",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:admin-users:view") @ExtensionProperty(name = Constants.SCOPE, value = "perm:admin-users:view")
}) })
} }
) )

Loading…
Cancel
Save