org.camunda.bpm.engine.impl.db
Class AuthorizationCheck

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.AuthorizationCheck
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ListQueryParameterObject

public class AuthorizationCheck
extends Object
implements Serializable

Input for the authorization check alogrithm

Author:
Daniel Meyer
See Also:
Serialized Form

Field Summary
protected  int authDefaultPerm
          the default permissions to use if no matching authorization can be found.
protected  List<String> authGroupIds
          the ids of the groups to check permissions for
protected  int authPerms
          the permission(s) to check for
protected  String authResourceId
          the id of the resource to check permissions for
protected  String authResourceIdQueryParam
          query parameter for resaource Id.
protected  int authResourceType
          the type of the resource to check permissions for
protected  String authUserId
          the id of the user to check permissions for
protected  boolean isAuthorizationCheckEnabled
          If true authorization check is performed.
 
Constructor Summary
AuthorizationCheck()
           
 
Method Summary
 int getAuthDefaultPerm()
           
 List<String> getAuthGroupIds()
           
 int getAuthPerms()
           
 String getAuthResourceId()
           
 String getAuthResourceIdQueryParam()
           
 int getAuthResourceType()
           
 String getAuthUserId()
           
 boolean isAuthorizationCheckEnabled()
           
 void setAuthDefaultPerm(int authDefaultPerm)
           
 void setAuthGroupIds(List<String> authGroupIds)
           
 void setAuthorizationCheckEnabled(boolean isAuthorizationCheckPerformed)
           
 void setAuthPerms(int authPerms)
           
 void setAuthResourceId(String authResourceId)
           
 void setAuthResourceIdQueryParam(String authResourceIdQueryParam)
           
 void setAuthResourceType(int authResourceType)
           
 void setAuthUserId(String authUserId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isAuthorizationCheckEnabled

protected boolean isAuthorizationCheckEnabled
If true authorization check is performed. This switch is useful when implementing a query which may perform an authorization check only under certain circumstances.


authUserId

protected String authUserId
the id of the user to check permissions for


authGroupIds

protected List<String> authGroupIds
the ids of the groups to check permissions for


authPerms

protected int authPerms
the permission(s) to check for


authResourceType

protected int authResourceType
the type of the resource to check permissions for


authResourceId

protected String authResourceId
the id of the resource to check permissions for


authResourceIdQueryParam

protected String authResourceIdQueryParam
query parameter for resaource Id. Is injected as RAW parameter into the query


authDefaultPerm

protected int authDefaultPerm
the default permissions to use if no matching authorization can be found.

Constructor Detail

AuthorizationCheck

public AuthorizationCheck()
Method Detail

isAuthorizationCheckEnabled

public boolean isAuthorizationCheckEnabled()

setAuthorizationCheckEnabled

public void setAuthorizationCheckEnabled(boolean isAuthorizationCheckPerformed)

getAuthUserId

public String getAuthUserId()

setAuthUserId

public void setAuthUserId(String authUserId)

getAuthGroupIds

public List<String> getAuthGroupIds()

setAuthGroupIds

public void setAuthGroupIds(List<String> authGroupIds)

getAuthPerms

public int getAuthPerms()

setAuthPerms

public void setAuthPerms(int authPerms)

getAuthResourceType

public int getAuthResourceType()

setAuthResourceType

public void setAuthResourceType(int authResourceType)

getAuthResourceId

public String getAuthResourceId()

setAuthResourceId

public void setAuthResourceId(String authResourceId)

getAuthDefaultPerm

public int getAuthDefaultPerm()

setAuthDefaultPerm

public void setAuthDefaultPerm(int authDefaultPerm)

getAuthResourceIdQueryParam

public String getAuthResourceIdQueryParam()

setAuthResourceIdQueryParam

public void setAuthResourceIdQueryParam(String authResourceIdQueryParam)


Copyright © 2014 camunda services GmbH. All rights reserved.