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(java.lang.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)
protected java.util.List<Authorization>
executePaginatedQuery(AuthorizationQuery query, java.lang.Integer firstResult, java.lang.Integer maxResults)
AuthorizationResource
getAuthorization(java.lang.String id)
CountResultDto
getAuthorizationCount(javax.ws.rs.core.UriInfo uriInfo)
protected CountResultDto
getAuthorizationCount(AuthorizationQueryDto queryDto)
protected IdentityService
getIdentityService()
protected java.util.List<java.lang.String>
getUserGroups(java.lang.String userId)
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)
java.util.List<AuthorizationDto>
queryAuthorizations(AuthorizationQueryDto queryDto, java.lang.Integer firstResult, java.lang.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
-
-
-
-
Method Detail
-
isUserAuthorized
public AuthorizationCheckResultDto isUserAuthorized(java.lang.String permissionName, java.lang.String resourceName, java.lang.Integer resourceType, java.lang.String resourceId, java.lang.String userId)
- Specified by:
isUserAuthorized
in interfaceAuthorizationRestService
-
getAuthorization
public AuthorizationResource getAuthorization(java.lang.String id)
- Specified by:
getAuthorization
in interfaceAuthorizationRestService
-
queryAuthorizations
public java.util.List<AuthorizationDto> queryAuthorizations(javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
- Specified by:
queryAuthorizations
in interfaceAuthorizationRestService
-
availableOperations
public ResourceOptionsDto availableOperations(javax.ws.rs.core.UriInfo context)
- Specified by:
availableOperations
in interfaceAuthorizationRestService
-
queryAuthorizations
public java.util.List<AuthorizationDto> queryAuthorizations(AuthorizationQueryDto queryDto, java.lang.Integer firstResult, java.lang.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 java.util.List<Authorization> executePaginatedQuery(AuthorizationQuery query, java.lang.Integer firstResult, java.lang.Integer maxResults)
-
getIdentityService
protected IdentityService getIdentityService()
-
getUserGroups
protected java.util.List<java.lang.String> getUserGroups(java.lang.String userId)
-
-