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

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
Direct Known Subclasses:
AbstractIdentityResource, AuthorizationResourceImpl, AuthorizationRestServiceImpl, FilterResourceImpl, FilterRestServiceImpl, GroupRestServiceImpl, TenantRestServiceImpl, UserRestServiceImpl

public abstract class AbstractAuthorizedRestResource
extends AbstractRestProcessEngineAware

Author:
Daniel Meyer

Field Summary
protected  Resource resource
           
protected  String 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
 
Constructor Summary
AbstractAuthorizedRestResource(String processEngineName, Resource resource, String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
           
 
Method Summary
protected  boolean isAuthorized(Permission permission)
           
protected  boolean isAuthorized(Permission permission, Resource resource)
           
protected  boolean isAuthorized(Permission permission, Resource resource, String resourceId)
           
 
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
 

Field Detail

resource

protected final Resource resource

resourceId

protected final String resourceId
Constructor Detail

AbstractAuthorizedRestResource

public AbstractAuthorizedRestResource(String processEngineName,
                                      Resource resource,
                                      String resourceId,
                                      com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Method Detail

isAuthorized

protected boolean isAuthorized(Permission permission,
                               Resource resource,
                               String resourceId)

isAuthorized

protected boolean isAuthorized(Permission permission,
                               Resource resource)

isAuthorized

protected boolean isAuthorized(Permission permission)


Copyright © 2016 camunda services GmbH. All rights reserved.