@Produces(value="application/json")
public interface AuthorizationRestService
Modifier and Type | Method and Description |
---|---|
ResourceOptionsDto |
availableOperations(javax.ws.rs.core.UriInfo context) |
AuthorizationDto |
createAuthorization(javax.ws.rs.core.UriInfo context,
AuthorizationCreateDto dto) |
AuthorizationResource |
getAuthorization(String id) |
CountResultDto |
getAuthorizationCount(javax.ws.rs.core.UriInfo uriInfo) |
AuthorizationCheckResultDto |
isUserAuthorized(String permissionName,
String resourceName,
Integer resourceType,
String resourceId) |
List<AuthorizationDto> |
queryAuthorizations(javax.ws.rs.core.UriInfo uriInfo,
Integer firstResult,
Integer maxResults) |
static final String PATH
@GET @Path(value="/check") @Produces(value="application/json") AuthorizationCheckResultDto isUserAuthorized(@QueryParam(value="permissionName") String permissionName, @QueryParam(value="resourceName") String resourceName, @QueryParam(value="resourceType") Integer resourceType, @QueryParam(value="resourceId") String resourceId)
@Path(value="/{id}") AuthorizationResource getAuthorization(@PathParam(value="id") String id)
@GET @Produces(value="application/json") List<AuthorizationDto> queryAuthorizations(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="firstResult") Integer firstResult, @QueryParam(value="maxResults") Integer maxResults)
@GET @Path(value="/count") @Produces(value="application/json") CountResultDto getAuthorizationCount(@Context javax.ws.rs.core.UriInfo uriInfo)
@POST @Path(value="/create") @Consumes(value="application/json") @Produces(value="application/json") AuthorizationDto createAuthorization(@Context javax.ws.rs.core.UriInfo context, AuthorizationCreateDto dto)
@OPTIONS @Produces(value="application/json") ResourceOptionsDto availableOperations(@Context javax.ws.rs.core.UriInfo context)
Copyright © 2020. All rights reserved.