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
Constructors Constructor Description AuthorizationRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete 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(String id)
CountResultDto
getAuthorizationCount(javax.ws.rs.core.UriInfo uriInfo)
protected CountResultDto
getAuthorizationCount(AuthorizationQueryDto queryDto)
protected IdentityService
getIdentityService()
protected List<String>
getUserGroups(String userId)
AuthorizationCheckResultDto
isUserAuthorized(String permissionName, String resourceName, Integer resourceType, String resourceId, String userId)
List<AuthorizationDto>
queryAuthorizations(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
List<AuthorizationDto>
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 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
-
getIdentityService
protected IdentityService getIdentityService()
-
-