Package org.camunda.bpm.engine.rest
Interface AuthorizationRestService
-
- All Known Implementing Classes:
AuthorizationRestServiceImpl
@Produces("application/json") public interface AuthorizationRestService
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PATH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceOptionsDto
availableOperations(javax.ws.rs.core.UriInfo context)
AuthorizationDto
createAuthorization(javax.ws.rs.core.UriInfo context, AuthorizationCreateDto dto)
AuthorizationResource
getAuthorization(java.lang.String id)
CountResultDto
getAuthorizationCount(javax.ws.rs.core.UriInfo uriInfo)
AuthorizationCheckResultDto
isUserAuthorized(java.lang.String permissionName, java.lang.String resourceName, java.lang.Integer resourceType, java.lang.String resourceId, java.lang.String userId)
java.util.List<AuthorizationDto>
queryAuthorizations(javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
-
-
-
Field Detail
-
PATH
static final java.lang.String PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
isUserAuthorized
@GET @Path("/check") @Produces("application/json") AuthorizationCheckResultDto isUserAuthorized(@QueryParam("permissionName") java.lang.String permissionName, @QueryParam("resourceName") java.lang.String resourceName, @QueryParam("resourceType") java.lang.Integer resourceType, @QueryParam("resourceId") java.lang.String resourceId, @QueryParam("userId") java.lang.String userId)
-
getAuthorization
@Path("/{id}") AuthorizationResource getAuthorization(@PathParam("id") java.lang.String id)
-
queryAuthorizations
@GET @Produces("application/json") java.util.List<AuthorizationDto> queryAuthorizations(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam("firstResult") java.lang.Integer firstResult, @QueryParam("maxResults") java.lang.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)
-
-