Package org.camunda.bpm.engine.rest.impl
Class AuthorizationRestServiceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.rest.spi.impl.AbstractProcessEngineAware
-
- org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
-
- org.camunda.bpm.engine.rest.impl.AbstractAuthorizedRestResource
-
- org.camunda.bpm.engine.rest.impl.AuthorizationRestServiceImpl
-
- All Implemented Interfaces:
AuthorizationRestService
public class AuthorizationRestServiceImpl extends AbstractAuthorizedRestResource implements AuthorizationRestService
- Author:
- Daniel Meyer
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.rest.impl.AbstractAuthorizedRestResource
resource, resourceId
-
Fields inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
objectMapper, relativeRootResourcePath
-
Fields inherited from class org.camunda.bpm.engine.rest.spi.impl.AbstractProcessEngineAware
processEngine
-
Fields inherited from interface org.camunda.bpm.engine.rest.AuthorizationRestService
PATH
-
-
Constructor Summary
Constructors Constructor Description AuthorizationRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
-
Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractAuthorizedRestResource
isAuthorized, isAuthorized, isAuthorized
-
Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
-
-
-
-
Constructor Detail
-
AuthorizationRestServiceImpl
public AuthorizationRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
isUserAuthorized
public AuthorizationCheckResultDto isUserAuthorized(String permissionName, String resourceName, Integer resourceType, String resourceId, String userId)
- Specified by:
isUserAuthorized
in interfaceAuthorizationRestService
-
getAuthorization
public AuthorizationResource getAuthorization(String id)
- Specified by:
getAuthorization
in interfaceAuthorizationRestService
-
queryAuthorizations
public List<AuthorizationDto> queryAuthorizations(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
- Specified by:
queryAuthorizations
in interfaceAuthorizationRestService
-
availableOperations
public ResourceOptionsDto availableOperations(javax.ws.rs.core.UriInfo context)
- Specified by:
availableOperations
in interfaceAuthorizationRestService
-
queryAuthorizations
public List<AuthorizationDto> queryAuthorizations(AuthorizationQueryDto queryDto, Integer firstResult, Integer maxResults)
-
getAuthorizationCount
public CountResultDto getAuthorizationCount(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getAuthorizationCount
in interfaceAuthorizationRestService
-
getAuthorizationCount
protected CountResultDto getAuthorizationCount(AuthorizationQueryDto queryDto)
-
createAuthorization
public AuthorizationDto createAuthorization(javax.ws.rs.core.UriInfo context, AuthorizationCreateDto dto)
- Specified by:
createAuthorization
in interfaceAuthorizationRestService
-
executePaginatedQuery
protected List<Authorization> executePaginatedQuery(AuthorizationQuery query, Integer firstResult, Integer maxResults)
-
getIdentityService
protected IdentityService getIdentityService()
-
-