Fixed issues in scope based autorization implementation

revert-dabc3590
mharindu 9 years ago
parent f675468e44
commit 48613018ab

@ -899,7 +899,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(scope = "device:android:blacklist-application", roles = {"admin"}) @Permission(scope = "device:android:blacklist-applications", roles = {"admin"})
Response blacklistApplications( Response blacklistApplications(
@ApiParam(name = "blacklistApplicationsBeanWrapper", value = "BlacklistApplications " + @ApiParam(name = "blacklistApplicationsBeanWrapper", value = "BlacklistApplications " +
"Configuration and DeviceIds") "Configuration and DeviceIds")

@ -29,7 +29,7 @@ import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
@API(name = "Android Event Receiver", version = "1.0.0", @API(name = "Android Event Receiver", version = "1.0.0",
context = "api-device-mgt-android-v1.0/configuration", context = "api-device-mgt-android-v1.0/events",
tags = {"devicemgt_android"}) tags = {"devicemgt_android"})
@Api(value = "Event Receiver", description = "Event publishing/retrieving related APIs.To enable Eventing need to" + @Api(value = "Event Receiver", description = "Event publishing/retrieving related APIs.To enable Eventing need to" +

@ -49,7 +49,7 @@
</context-param> </context-param>
<context-param> <context-param>
<param-name>managed-api-enabled</param-name> <param-name>managed-api-enabled</param-name>
<param-value>false</param-value> <param-value>true</param-value>
</context-param> </context-param>
<context-param> <context-param>
<param-name>managed-api-owner</param-name> <param-name>managed-api-owner</param-name>

Loading…
Cancel
Save