Package org.camunda.bpm.engine.rest.impl
Class AbstractAuthorizedRestResource
- java.lang.Object
-
- org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
-
- 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
Fields Modifier and Type Field Description protected Resource
resource
protected java.lang.String
resourceId
-
Fields inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
objectMapper, relativeRootResourcePath
-
-
Constructor Summary
Constructors Constructor Description AbstractAuthorizedRestResource(java.lang.String processEngineName, Resource resource, java.lang.String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isAuthorized(Permission permission)
protected boolean
isAuthorized(Permission permission, Resource resource)
protected boolean
isAuthorized(Permission permission, Resource resource, java.lang.String resourceId)
-
Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
-
-
-
-
Field Detail
-
resource
protected final Resource resource
-
resourceId
protected final java.lang.String resourceId
-
-
Constructor Detail
-
AbstractAuthorizedRestResource
public AbstractAuthorizedRestResource(java.lang.String processEngineName, Resource resource, java.lang.String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
isAuthorized
protected boolean isAuthorized(Permission permission, Resource resource, java.lang.String resourceId)
-
isAuthorized
protected boolean isAuthorized(Permission permission, Resource resource)
-
isAuthorized
protected boolean isAuthorized(Permission permission)
-
-