@Path(value="/permissions") @Consumes(value="application/json") @Produces(value="application/xml") @ApplicationPath(value="/permissions") public class PermissionsApi extends Object implements org.wso2.msf4j.Microservice
| Constructor and Description |
|---|
PermissionsApi() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addPermission(Permission body) |
javax.ws.rs.core.Response |
deletePermission(String permissionID) |
javax.ws.rs.core.Response |
getGrantedRoles(String permissionID) |
javax.ws.rs.core.Response |
getPermissionStrings(String appName) |
javax.ws.rs.core.Response |
hasPermission(String permissionID,
String roleName) |
javax.ws.rs.core.Response |
manipulateRolePermission(Permission body,
String roleName,
String action) |
javax.ws.rs.core.Response |
revokePermission(String permissionID) |
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response addPermission(Permission body) throws NotFoundException
NotFoundException@DELETE
@Path(value="/{permissionID}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response deletePermission(@PathParam(value="permissionID")
String permissionID)
throws NotFoundException
NotFoundException@GET
@Path(value="/{permissionID}/roles")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response getGrantedRoles(@PathParam(value="permissionID")
String permissionID)
throws NotFoundException
NotFoundException@GET
@Path(value="/app/{appName}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response getPermissionStrings(@PathParam(value="appName")
String appName)
throws NotFoundException
NotFoundException@GET
@Path(value="auth/{permissionID}/{roleName}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response hasPermission(@PathParam(value="permissionID")
String permissionID,
@PathParam(value="roleName")
String roleName)
throws NotFoundException
NotFoundException@POST
@Path(value="/roles/{roleName}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response manipulateRolePermission(Permission body,
@PathParam(value="roleName")
String roleName,
@QueryParam(value="action")
String action)
throws NotFoundException
NotFoundException@POST
@Path(value="revoke/{permissionID}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response revokePermission(@PathParam(value="permissionID")
String permissionID)
throws NotFoundException
NotFoundExceptionCopyright © 2019 WSO2. All rights reserved.