Package org.camunda.bpm.engine.rest.impl
Class AuthorizationRestServiceImpl
java.lang.Object
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 interface org.camunda.bpm.engine.rest.AuthorizationRestService
PATH
-
Constructor Summary
ConstructorDescriptionAuthorizationRestServiceImpl
(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionavailableOperations
(javax.ws.rs.core.UriInfo context) createAuthorization
(javax.ws.rs.core.UriInfo context, AuthorizationCreateDto dto) getAuthorizationCount
(javax.ws.rs.core.UriInfo uriInfo) protected CountResultDto
getAuthorizationCount
(AuthorizationQueryDto queryDto) protected IdentityService
getUserGroups
(String userId) isUserAuthorized
(String permissionName, String resourceName, Integer resourceType, String resourceId, String userId) queryAuthorizations
(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults) queryAuthorizations
(AuthorizationQueryDto queryDto, Integer firstResult, Integer maxResults) 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 Details
-
AuthorizationRestServiceImpl
public AuthorizationRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
isUserAuthorized
public AuthorizationCheckResultDto isUserAuthorized(String permissionName, String resourceName, Integer resourceType, String resourceId, String userId) - Specified by:
isUserAuthorized
in interfaceAuthorizationRestService
-
getAuthorization
- 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
- Specified by:
availableOperations
in interfaceAuthorizationRestService
-
queryAuthorizations
public List<AuthorizationDto> queryAuthorizations(AuthorizationQueryDto queryDto, Integer firstResult, Integer maxResults) -
getAuthorizationCount
- Specified by:
getAuthorizationCount
in interfaceAuthorizationRestService
-
getAuthorizationCount
-
createAuthorization
public AuthorizationDto createAuthorization(javax.ws.rs.core.UriInfo context, AuthorizationCreateDto dto) - Specified by:
createAuthorization
in interfaceAuthorizationRestService
-
getIdentityService
-
getUserGroups
-