Interface AuthorizationRestService

  • All Known Implementing Classes:
    AuthorizationRestServiceImpl

    @Produces("application/json")
    public interface AuthorizationRestService
    Author:
    Daniel Meyer
    • Method Detail

      • isUserAuthorized

        @GET
        @Path("/check")
        @Produces("application/json")
        AuthorizationCheckResultDto isUserAuthorized​(@QueryParam("permissionName")
                                                     String permissionName,
                                                     @QueryParam("resourceName")
                                                     String resourceName,
                                                     @QueryParam("resourceType")
                                                     Integer resourceType,
                                                     @QueryParam("resourceId")
                                                     String resourceId,
                                                     @QueryParam("userId")
                                                     String userId)
      • queryAuthorizations

        @GET
        @Produces("application/json")
        List<AuthorizationDto> queryAuthorizations​(@Context
                                                   javax.ws.rs.core.UriInfo uriInfo,
                                                   @QueryParam("firstResult")
                                                   Integer firstResult,
                                                   @QueryParam("maxResults")
                                                   Integer maxResults)
      • getAuthorizationCount

        @GET
        @Path("/count")
        @Produces("application/json")
        CountResultDto getAuthorizationCount​(@Context
                                             javax.ws.rs.core.UriInfo uriInfo)
      • createAuthorization

        @POST
        @Path("/create")
        @Consumes("application/json")
        @Produces("application/json")
        AuthorizationDto createAuthorization​(@Context
                                             javax.ws.rs.core.UriInfo context,
                                             AuthorizationCreateDto dto)
      • availableOperations

        @OPTIONS
        @Produces("application/json")
        ResourceOptionsDto availableOperations​(@Context
                                               javax.ws.rs.core.UriInfo context)