public class AuthorizationManager extends AbstractManager
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
availableAuthorizedGroupIds
Group ids for which authorizations exist in the database.
|
static String |
DEFAULT_AUTHORIZATION_CHECK |
protected static List<String> |
EMPTY_LIST |
Constructor and Description |
---|
AuthorizationManager() |
close, deleteAuthorizations, deleteDefaultAuthorizations, flush, getAttachmentManager, getAuthorizationManager, getByteArrayManager, getCaseDefinitionManager, getCaseExecutionManager, getCaseInstanceManager, getCommandContext, getCurrentAuthentication, getDbEntityManager, getDbSqlSession, getDeploymentManager, getEventSubscriptionManager, getHistoricActivityInstanceManager, getHistoricCaseActivityInstanceManager, getHistoricCaseInstanceManager, getHistoricDetailManager, getHistoricIncidentManager, getHistoricJobLogManager, getHistoricProcessInstanceManager, getHistoricTaskInstanceManager, getHistoricVariableInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getJobDefinitionManager, getJobManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceAuthorizationProvider, getResourceManager, getSession, getTaskManager, getUserOperationLogManager, getVariableInstanceManager, isAuthorizationEnabled, saveDefaultAuthorizations
public static final String DEFAULT_AUTHORIZATION_CHECK
protected Set<String> availableAuthorizedGroupIds
filterAuthenticatedGroupIds(List)
method. (Manager
instances are command scoped).
It is used to only check authorizations for groups for which authorizations exist. In other words,
if for a given group no authorization exists in the DB, then auth checks are not performed for this group.public Authorization createNewAuthorization(int type)
public void insert(DbEntity authorization)
insert
in class AbstractManager
public List<Authorization> selectAuthorizationByQueryCriteria(AuthorizationQueryImpl authorizationQuery)
public Long selectAuthorizationCountByQueryCriteria(AuthorizationQueryImpl authorizationQuery)
public AuthorizationEntity findAuthorizationByUserIdAndResourceId(int type, String userId, Resource resource, String resourceId)
public AuthorizationEntity findAuthorizationByGroupIdAndResourceId(int type, String groupId, Resource resource, String resourceId)
public AuthorizationEntity findAuthorization(int type, String userId, String groupId, Resource resource, String resourceId)
public void update(AuthorizationEntity authorization)
public void delete(DbEntity authorization)
delete
in class AbstractManager
public void checkAuthorization(PermissionCheck... permissionChecks)
public void checkAuthorization(List<PermissionCheck> permissionChecks)
public void checkAuthorization(Permission permission, Resource resource)
public void checkAuthorization(Permission permission, Resource resource, String resourceId)
checkAuthorization
in class AbstractManager
public boolean isAuthorized(Permission permission, Resource resource, String resourceId)
public boolean isAuthorized(String userId, List<String> groupIds, Permission permission, Resource resource, String resourceId)
public boolean isAuthorized(String userId, List<String> groupIds, List<PermissionCheck> permissionChecks)
public void configureQuery(AbstractQuery query)
public void configureQuery(AbstractQuery query, Resource resource)
configureQuery
in class AbstractManager
public void configureQuery(AbstractQuery query, Resource resource, String queryParam)
public void configureQuery(AbstractQuery query, Resource resource, String queryParam, Permission permission)
protected void addPermissionCheck(AbstractQuery query, Resource resource, String queryParam, Permission permission)
public void deleteAuthorizationsByResourceId(Resource resource, String resourceId)
public void isCamundaAdmin()
public void checkCreateDeployment()
public void checkReadDeployment(String deploymentId)
public void checkDeleteDeployment(String deploymentId)
public void checkReadProcessDefinition(ProcessDefinitionEntity definition)
public void checkReadProcessDefinition(String processDefinitionKey)
public void checkUpdateProcessDefinitionById(String processDefinitionId)
public void checkUpdateProcessDefinitionByKey(String processDefinitionKey)
public void checkCreateProcessInstance(ProcessDefinitionEntity definition)
public void checkReadProcessInstance(String processInstanceId)
public void checkReadProcessInstance(ExecutionEntity execution)
public void checkReadProcessInstance(JobEntity job)
public void checkReadHistoricJobLog(HistoricJobLogEventEntity historicJobLog)
public void checkUpdateProcessInstanceById(String processInstanceId)
public void checkUpdateProcessInstance(ExecutionEntity execution)
public void checkUpdateProcessInstance(JobEntity job)
public void checkUpdateProcessInstanceByProcessDefinitionId(String processDefinitionId)
public void checkUpdateProcessInstanceByProcessDefinitionKey(String processDefinitionKey)
public void checkDeleteProcessInstance(ExecutionEntity execution)
public void checkDeleteHistoricProcessInstance(HistoricProcessInstance instance)
public void checkCreateTask()
public void checkReadTask(TaskEntity task)
public void checkUpdateTask(TaskEntity task)
public void checkDeleteTask(TaskEntity task)
public void checkDeleteHistoricTaskInstance(HistoricTaskInstanceEntity task)
public void checkDeleteUserOperationLog(UserOperationLogEntry entry)
public void configureDeploymentQuery(DeploymentQueryImpl query)
public void configureProcessDefinitionQuery(ProcessDefinitionQueryImpl query)
public void configureExecutionQuery(AbstractQuery query)
public void configureTaskQuery(TaskQueryImpl query)
public void configureEventSubscriptionQuery(EventSubscriptionQueryImpl query)
public void configureIncidentQuery(IncidentQueryImpl query)
protected void configureVariableInstanceQuery(VariableInstanceQueryImpl query)
public void configureJobDefinitionQuery(JobDefinitionQueryImpl query)
public void configureJobQuery(JobQueryImpl query)
public void configureHistoricProcessInstanceQuery(HistoricProcessInstanceQueryImpl query)
public void configureHistoricActivityInstanceQuery(HistoricActivityInstanceQueryImpl query)
public void configureHistoricTaskInstanceQuery(HistoricTaskInstanceQueryImpl query)
public void configureHistoricVariableInstanceQuery(HistoricVariableInstanceQueryImpl query)
public void configureHistoricDetailQuery(HistoricDetailQueryImpl query)
public void configureHistoricJobLogQuery(HistoricJobLogQueryImpl query)
public void configureHistoricIncidentQuery(HistoricIncidentQueryImpl query)
public void configureUserOperationLogQuery(UserOperationLogQueryImpl query)
public void configureDeploymentStatisticsQuery(DeploymentStatisticsQueryImpl query)
public void configureProcessDefinitionStatisticsQuery(ProcessDefinitionStatisticsQueryImpl query)
public void configureActivityStatisticsQuery(ActivityStatisticsQueryImpl query)
Copyright © 2018. All rights reserved.