Renamed prefix of scopes

revert-70aa11f8
Milan Perera 8 years ago
parent a829c384d3
commit d13dadff08

@ -57,7 +57,7 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "Get activities", name = "Get activities",
description = "Get activities", description = "Get activities",
key = "cdmf:get-activity", key = "perm:get-activity",
permissions = {"/device-mgt/devices/owning-device/view"} permissions = {"/device-mgt/devices/owning-device/view"}
) )
} }
@ -77,7 +77,7 @@ public interface ActivityInfoProviderService {
tags = "Activity Info Provider", tags = "Activity Info Provider",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:get-activity") @ExtensionProperty(name = Constants.SCOPE, value = "perm:get-activity")
}) })
} }
) )
@ -150,7 +150,7 @@ public interface ActivityInfoProviderService {
tags = "Activity Info Provider", tags = "Activity Info Provider",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:get-activity") @ExtensionProperty(name = Constants.SCOPE, value = "perm:get-activity")
}) })
} }
) )

@ -68,13 +68,13 @@ import javax.ws.rs.core.Response;
@Scope( @Scope(
name = "View configurations", name = "View configurations",
description = "", description = "",
key = "cdmf:view-configuration", key = "perm:view-configuration",
permissions = {"/device-mgt/platform-configurations/view"} permissions = {"/device-mgt/platform-configurations/view"}
), ),
@Scope( @Scope(
name = "Manage configurations", name = "Manage configurations",
description = "", description = "",
key = "cdmf:manage-configuration", key = "perm:manage-configuration",
permissions = {"/device-mgt/platform-configurations/manage"} permissions = {"/device-mgt/platform-configurations/manage"}
) )
} }
@ -92,7 +92,7 @@ public interface ConfigurationManagementService {
tags = "Configuration Management", tags = "Configuration Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:view-configuration") @ExtensionProperty(name = Constants.SCOPE, value = "perm:view-configuration")
}) })
} }
) )
@ -151,7 +151,7 @@ public interface ConfigurationManagementService {
tags = "Configuration Management", tags = "Configuration Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "cdmf:manage-configuration") @ExtensionProperty(name = Constants.SCOPE, value = "perm:manage-configuration")
}) })
} }
) )

Loading…
Cancel
Save