org.camunda.bpm.engine.rest.impl
Class AuthorizationRestServiceImpl

java.lang.Object
  extended by org.camunda.bpm.engine.rest.spi.impl.AbstractProcessEngineAware
      extended by org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
          extended by org.camunda.bpm.engine.rest.impl.AbstractAuthorizedRestResource
              extended by 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
AuthorizationRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
           
 
Method Summary
 ResourceOptionsDto availableOperations(javax.ws.rs.core.UriInfo context)
           
 AuthorizationDto createAuthorization(javax.ws.rs.core.UriInfo context, AuthorizationCreateDto dto)
           
protected  List<Authorization> executePaginatedQuery(AuthorizationQuery query, Integer firstResult, Integer maxResults)
           
 AuthorizationResource getAuthorization(String id)
           
protected  CountResultDto getAuthorizationCount(AuthorizationQueryDto queryDto)
           
 CountResultDto getAuthorizationCount(javax.ws.rs.core.UriInfo uriInfo)
           
protected  IdentityService getIdentityService()
           
 AuthorizationCheckResultDto isUserAuthorized(String permissionName, String resourceName, Integer resourceType, String resourceId)
           
 List<AuthorizationDto> queryAuthorizations(AuthorizationQueryDto queryDto, Integer firstResult, Integer maxResults)
           
 List<AuthorizationDto> queryAuthorizations(javax.ws.rs.core.UriInfo uriInfo, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
Specified by:
isUserAuthorized in interface AuthorizationRestService

getAuthorization

public AuthorizationResource getAuthorization(String id)
Specified by:
getAuthorization in interface AuthorizationRestService

queryAuthorizations

public List<AuthorizationDto> queryAuthorizations(javax.ws.rs.core.UriInfo uriInfo,
                                                  Integer firstResult,
                                                  Integer maxResults)
Specified by:
queryAuthorizations in interface AuthorizationRestService

availableOperations

public ResourceOptionsDto availableOperations(javax.ws.rs.core.UriInfo context)
Specified by:
availableOperations in interface AuthorizationRestService

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 interface AuthorizationRestService

getAuthorizationCount

protected CountResultDto getAuthorizationCount(AuthorizationQueryDto queryDto)

createAuthorization

public AuthorizationDto createAuthorization(javax.ws.rs.core.UriInfo context,
                                            AuthorizationCreateDto dto)
Specified by:
createAuthorization in interface AuthorizationRestService

executePaginatedQuery

protected List<Authorization> executePaginatedQuery(AuthorizationQuery query,
                                                    Integer firstResult,
                                                    Integer maxResults)

getIdentityService

protected IdentityService getIdentityService()


Copyright © 2016 camunda services GmbH. All rights reserved.