code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Override public void checkReadLicenseKey() { getAuthorizationManager().checkAuthorization(SystemPermissions.READ, Resources.SYSTEM); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
checkReadLicenseKey
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
@Override public void checkRegisterProcessApplication() { getAuthorizationManager().checkAuthorization(SystemPermissions.SET, Resources.SYSTEM); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
checkRegisterProcessApplication
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
@Override public void checkUnregisterProcessApplication() { getAuthorizationManager().checkAuthorization(SystemPermissions.SET, Resources.SYSTEM); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
checkUnregisterProcessApplication
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
@Override public void checkReadRegisteredDeployments() { getAuthorizationManager().checkAuthorization(SystemPermissions.READ, Resources.SYSTEM); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
checkReadRegisteredDeployments
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
@Override public void checkReadProcessApplicationForDeployment() { getAuthorizationManager().checkAuthorization(SystemPermissions.READ, Resources.SYSTEM); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
checkReadProcessApplicationForDeployment
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
@Override public void checkRegisterDeployment() { getAuthorizationManager().checkAuthorization(SystemPermissions.SET, Resources.SYSTEM); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
checkRegisterDeployment
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
@Override public void checkUnregisterDeployment() { getAuthorizationManager().checkAuthorization(SystemPermissions.SET, Resources.SYSTEM); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
checkUnregisterDeployment
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
@Override public void checkDeleteMetrics() { getAuthorizationManager().checkAuthorization(SystemPermissions.DELETE, Resources.SYSTEM); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
checkDeleteMetrics
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
@Override public void checkDeleteTaskMetrics() { getAuthorizationManager().checkAuthorization(SystemPermissions.DELETE, Resources.SYSTEM); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
checkDeleteTaskMetrics
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
@Override public void checkReadSchemaLog() { getAuthorizationManager().checkAuthorization(SystemPermissions.READ, Resources.SYSTEM); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
checkReadSchemaLog
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
protected AuthorizationManager getAuthorizationManager() { return Context.getCommandContext().getAuthorizationManager(); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
getAuthorizationManager
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
protected ProcessDefinitionEntity findLatestProcessDefinitionById(String processDefinitionId) { return Context.getCommandContext().getProcessDefinitionManager().findLatestProcessDefinitionById(processDefinitionId); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
findLatestProcessDefinitionById
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
protected DecisionDefinitionEntity findLatestDecisionDefinitionById(String decisionDefinitionId) { return Context.getCommandContext().getDecisionDefinitionManager().findDecisionDefinitionById(decisionDefinitionId); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
findLatestDecisionDefinitionById
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
protected ExecutionEntity findExecutionById(String processInstanceId) { return Context.getCommandContext().getExecutionManager().findExecutionById(processInstanceId); }
{@link CommandChecker} that uses the {@link AuthorizationManager} to perform authorization checks.
findExecutionById
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Apache-2.0
public AuthorizationEntity[] newUser(User user) { // create an authorization which gives the user all permissions on himself: String userId = user.getId(); ensureValidIndividualResourceId("Cannot create default authorization for user " + userId, userId); AuthorizationEntity resourceOwnerAuthori...
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newUser
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newGroup(Group group) { List<AuthorizationEntity> authorizations = new ArrayList<AuthorizationEntity>(); // whenever a new group is created, all users part of the // group are granted READ permissions on the group String groupId = group.getId(); ensureValidIndividualRe...
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newGroup
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newTenant(Tenant tenant) { // no default authorizations on tenants. return null; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newTenant
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] groupMembershipCreated(String groupId, String userId) { // no default authorizations on memberships. return null; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
groupMembershipCreated
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] tenantMembershipCreated(Tenant tenant, User user) { AuthorizationEntity userAuthorization = createGrantAuthorization(user.getId(), null, TENANT, tenant.getId(), READ); return new AuthorizationEntity[]{ userAuthorization }; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
tenantMembershipCreated
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] tenantMembershipCreated(Tenant tenant, Group group) { AuthorizationEntity userAuthorization = createGrantAuthorization(null, group.getId(), TENANT, tenant.getId(), READ); return new AuthorizationEntity[]{ userAuthorization }; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
tenantMembershipCreated
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newFilter(Filter filter) { String owner = filter.getOwner(); if(owner != null) { // create an authorization which gives the owner of the filter all permissions on the filter String filterId = filter.getId(); ensureValidIndividualResourceId("Cannot create default ...
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newFilter
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newDeployment(Deployment deployment) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); IdentityService identityService = processEngineConfiguration.getIdentityService(); Authentication currentAuthentication = identityService.g...
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newDeployment
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newProcessDefinition(ProcessDefinition processDefinition) { // no default authorizations on process definitions. return null; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newProcessDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newProcessInstance(ProcessInstance processInstance) { // no default authorizations on process instances. return null; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newProcessInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newTask(Task task) { // no default authorizations on tasks. return null; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newTask
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newTaskAssignee(Task task, String oldAssignee, String newAssignee) { if (newAssignee != null) { ensureValidIndividualResourceId("Cannot create default authorization for assignee " + newAssignee, newAssignee); // create (or update) an authorization for the new ass...
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newTaskAssignee
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newTaskOwner(Task task, String oldOwner, String newOwner) { if (newOwner != null) { ensureValidIndividualResourceId("Cannot create default authorization for owner " + newOwner, newOwner); // create (or update) an authorization for the new owner. return cre...
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newTaskOwner
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newTaskUserIdentityLink(Task task, String userId, String type) { // create (or update) an authorization for the given user // whenever a new user identity link will be added ensureValidIndividualResourceId("Cannot grant default authorization for identity link to user " + userId...
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newTaskUserIdentityLink
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newTaskGroupIdentityLink(Task task, String groupId, String type) { ensureValidIndividualResourceId("Cannot grant default authorization for identity link to group " + groupId, groupId); // create (or update) an authorization for the given group // whenever a new user id...
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newTaskGroupIdentityLink
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] deleteTaskUserIdentityLink(Task task, String userId, String type) { // an existing authorization will not be deleted in such a case return null; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
deleteTaskUserIdentityLink
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] deleteTaskGroupIdentityLink(Task task, String groupId, String type) { // an existing authorization will not be deleted in such a case return null; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
deleteTaskGroupIdentityLink
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newDecisionDefinition(DecisionDefinition decisionDefinition) { // no default authorizations on decision definitions. return null; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newDecisionDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
public AuthorizationEntity[] newDecisionRequirementsDefinition(DecisionRequirementsDefinition decisionRequirementsDefinition) { // no default authorizations on decision requirements definitions. return null; }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
newDecisionRequirementsDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected AuthorizationEntity[] createOrUpdateAuthorizationsByGroupId(Task task, String groupId) { return createOrUpdateAuthorizations(task, groupId, null); }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
createOrUpdateAuthorizationsByGroupId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected AuthorizationEntity[] createOrUpdateAuthorizationsByUserId(Task task, String userId) { return createOrUpdateAuthorizations(task, null, userId); }
<p>Provides the default authorizations for Camunda Platform.</p> @author Daniel Meyer
createOrUpdateAuthorizationsByUserId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected AuthorizationEntity[] createOrUpdateAuthorizations(Task task, String groupId, String userId) { boolean enforceSpecificVariablePermission = isEnforceSpecificVariablePermission(); Permission[] runtimeTaskPermissions = getRuntimePermissions...
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
createOrUpdateAuthorizations
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected AuthorizationEntity createOrUpdateAuthorization(Task task, String userId, String groupId, Resource resource, boolean isHistoric, P...
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
createOrUpdateAuthorization
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected void provideRemovalTime(AuthorizationEntity authorization, Task task) { String rootProcessInstanceId = getRootProcessInstanceId(task); if (rootProcessInstanceId != null) { authorization.setRootProcessInstanceId(rootProcessInstanceId); if (isHistoryRemovalTimeStrategyStart()) { Hi...
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
provideRemovalTime
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected String getRootProcessInstanceId(Task task) { ExecutionEntity execution = (ExecutionEntity) ((DelegateTask) task).getExecution(); if (execution != null) { return execution.getRootProcessInstanceId(); } else { return null; } }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
getRootProcessInstanceId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected boolean isHistoryRemovalTimeStrategyStart() { return HISTORY_REMOVAL_TIME_STRATEGY_START.equals(getHistoryRemovalTimeStrategy()); }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
isHistoryRemovalTimeStrategyStart
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected String getHistoryRemovalTimeStrategy() { return Context.getProcessEngineConfiguration() .getHistoryRemovalTimeStrategy(); }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
getHistoryRemovalTimeStrategy
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected HistoryEvent findHistoricProcessInstance(String rootProcessInstanceId) { return Context.getCommandContext() .getDbEntityManager() .selectById(HistoricProcessInstanceEventEntity.class, rootProcessInstanceId); }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
findHistoricProcessInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected Permission[] getHistoricPermissions(boolean enforceSpecificVariablePermission) { List<Permission> historicPermissions = new ArrayList<>(); historicPermissions.add(HistoricTaskPermissions.READ); if (enforceSpecificVariablePermission) { historicPermissions.add(HistoricTaskPermissions.READ_VAR...
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
getHistoricPermissions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected Permission[] getRuntimePermissions(boolean enforceSpecificVariablePermission) { List<Permission> runtimePermissions = new ArrayList<>(); runtimePermissions.add(READ); Permission defaultUserPermissionForTask = getDefaultUserPermissionForTask(); runtimePermissions.add(defaultUserPermissionForTa...
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
getRuntimePermissions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected boolean isHistoricInstancePermissionsEnabled() { return Context.getProcessEngineConfiguration().isEnableHistoricInstancePermissions(); }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
isHistoricInstancePermissionsEnabled
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected AuthorizationManager getAuthorizationManager() { CommandContext commandContext = Context.getCommandContext(); return commandContext.getAuthorizationManager(); }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
getAuthorizationManager
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected AuthorizationEntity getGrantAuthorization(String taskId, String userId, String groupId, Resource resource) { if (groupId != null) { return getGrantAuthorizationByGroupId(groupId, resource, taskId); } else { return getGrantAuthorization...
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
getGrantAuthorization
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected AuthorizationEntity getGrantAuthorizationByUserId(String userId, Resource resource, String resourceId) { AuthorizationManager authorizationManager = getAuthorizationManager(); return authorizationManager.findAuthorizationByUserIdAndResourceId(AUTH_TYPE_GRANT, userId, resource, resourceId); }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
getGrantAuthorizationByUserId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected AuthorizationEntity getGrantAuthorizationByGroupId(String groupId, Resource resource, String resourceId) { AuthorizationManager authorizationManager = getAuthorizationManager(); return authorizationManager.findAuthorizationByGroupIdAndResourceId(AUTH_TYPE_GRANT, groupId, resource, resourceId); }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
getGrantAuthorizationByGroupId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected AuthorizationEntity createAuthorization(String userId, String groupId, Resource resource, String resourceId, Permission... permissions) { AuthorizationEntity authorization = createGrantAuthoriza...
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
createAuthorization
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected void addPermissions(AuthorizationEntity authorization, Permission... permissions) { if (permissions != null) { for (Permission permission : permissions) { if (permission != null) { authorization.addPermission(permission); } } } }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
addPermissions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected AuthorizationEntity createGrantAuthorization(String userId, String groupId, Resource resource, String resourceId, Permission... permissions) { // assuming that there are no default authorizati...
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
createGrantAuthorization
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected Permission getDefaultUserPermissionForTask() { return Context .getProcessEngineConfiguration() .getDefaultUserPermissionForTask(); }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
getDefaultUserPermissionForTask
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected boolean isEnforceSpecificVariablePermission() { return Context.getProcessEngineConfiguration() .isEnforceSpecificVariablePermission(); }
(1) Fetch existing runtime & history authorizations (2) Update authorizations: (2a) fetched authorization == null -> create a new runtime authorization (with READ, (UPDATE/TASK_WORK) permission, and READ_VARIABLE if enabled) -> create a new history authorization (with READ on HISTORIC_...
isEnforceSpecificVariablePermission
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected void updateAuthorizationBasedOnCacheEntries(AuthorizationEntity authorization, String userId, String groupId, Resource resource, String resourceId) { DbEntityManager dbManager = Context.getCommandContext().getDbEntityManager(); List<Authorization...
Searches through the cache, if there is already an authorization with same rights. If that's the case update the given authorization with the permissions and remove the old one from the cache.
updateAuthorizationBasedOnCacheEntries
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected boolean hasEntitySameAuthorizationRights(AuthorizationEntity authEntity, String userId, String groupId, Resource resource, String resourceId) { boolean sameUserId = areIdsEqual(authEntity.getUserId(), userId); boolean sameGroupId = areIdsEqual(authE...
Searches through the cache, if there is already an authorization with same rights. If that's the case update the given authorization with the permissions and remove the old one from the cache.
hasEntitySameAuthorizationRights
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
protected boolean areIdsEqual(String firstId, String secondId) { if (firstId == null || secondId == null) { return firstId == secondId; }else { return firstId.equals(secondId); } }
Searches through the cache, if there is already an authorization with same rights. If that's the case update the given authorization with the permissions and remove the old one from the cache.
areIdsEqual
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultAuthorizationProvider.java
Apache-2.0
@Override public Permission getPermissionForName(String name, int resourceType) { return ResourceTypeUtil.getPermissionByNameAndResourceType(name, resourceType); }
Default implementation of {@link PermissionProvider} @author Yana.Vasileva @author Tobias Metzke
getPermissionForName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultPermissionProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultPermissionProvider.java
Apache-2.0
@Override public Permission[] getPermissionsForResource(int resourceType) { return ResourceTypeUtil.getPermissionsByResourceType(resourceType); }
Default implementation of {@link PermissionProvider} @author Yana.Vasileva @author Tobias Metzke
getPermissionsForResource
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultPermissionProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultPermissionProvider.java
Apache-2.0
@Override public String getNameForResource(int resourceType) { Resource resourceByType = ResourceTypeUtil.getResourceByType(resourceType); return resourceByType == null ? null : resourceByType.resourceName(); }
Default implementation of {@link PermissionProvider} @author Yana.Vasileva @author Tobias Metzke
getNameForResource
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultPermissionProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/DefaultPermissionProvider.java
Apache-2.0
@Override public void commit() { // managed transaction, ignore }
Base class for handling the context of a transaction. Provides template methods for handling transaction contexts. @author Daniel Meyer
commit
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
Apache-2.0
@Override public void rollback() { // managed transaction, mark rollback-only if not done so already. try { doRollback(); } catch (Exception e) { throw LOG.exceptionWhileInteractingWithTransaction("setting transaction rollback only", e); } }
Base class for handling the context of a transaction. Provides template methods for handling transaction contexts. @author Daniel Meyer
rollback
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
Apache-2.0
@Override public void addTransactionListener(TransactionState transactionState, final TransactionListener transactionListener) { CommandContext commandContext = Context.getCommandContext(); try { addTransactionListener(transactionState, transactionListener, commandContext); } catch (Exception e) { ...
Base class for handling the context of a transaction. Provides template methods for handling transaction contexts. @author Daniel Meyer
addTransactionListener
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
Apache-2.0
public void beforeCompletion() { if(TransactionState.COMMITTING.equals(transactionState) || TransactionState.ROLLINGBACK.equals(transactionState)) { transactionListener.execute(commandContext); } }
Base class for handling the context of a transaction. Provides template methods for handling transaction contexts. @author Daniel Meyer
beforeCompletion
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
Apache-2.0
public void afterCompletion(int status) { if(isRolledBack(status) && TransactionState.ROLLED_BACK.equals(transactionState)) { transactionListener.execute(commandContext); } else if(isCommitted(status) && TransactionState.COMMITTED.equals(transactionState)) { transactionListener.execute(comma...
Base class for handling the context of a transaction. Provides template methods for handling transaction contexts. @author Daniel Meyer
afterCompletion
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
Apache-2.0
@Override public boolean isTransactionActive() { try { return isTransactionActiveInternal(); } catch (Exception e) { throw LOG.exceptionWhileInteractingWithTransaction("getting transaction state", e); } }
Base class for handling the context of a transaction. Provides template methods for handling transaction contexts. @author Daniel Meyer
isTransactionActive
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/AbstractTransactionContext.java
Apache-2.0
@Override protected void doRollback() throws Exception { // managed transaction, mark rollback-only if not done so already Transaction transaction = getTransaction(); int status = transaction.getStatus(); if (status != Status.STATUS_NO_TRANSACTION && status != Status.STATUS_ROLLEDBACK) { transac...
Jakarta Transactions-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
doRollback
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
Apache-2.0
@Override protected void addTransactionListener(TransactionState transactionState, final TransactionListener transactionListener, CommandContext commandContext) throws Exception{ getTransaction().registerSynchronization(new JtaTransactionStateSynchronization(transactionState, transactionListener, commandContext))...
Jakarta Transactions-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
addTransactionListener
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
Apache-2.0
protected Transaction getTransaction() { try { return transactionManager.getTransaction(); } catch (Exception e) { throw LOG.exceptionWhileInteractingWithTransaction("getting transaction", e); } }
Jakarta Transactions-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
getTransaction
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
Apache-2.0
@Override protected boolean isTransactionActiveInternal() throws Exception { return transactionManager.getStatus() != Status.STATUS_MARKED_ROLLBACK && transactionManager.getStatus() != Status.STATUS_NO_TRANSACTION; }
Jakarta Transactions-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
isTransactionActiveInternal
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
Apache-2.0
@Override protected boolean isRolledBack(int status) { return Status.STATUS_ROLLEDBACK == status; }
Jakarta Transactions-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
isRolledBack
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
Apache-2.0
@Override protected boolean isCommitted(int status) { return Status.STATUS_COMMITTED == status; }
Jakarta Transactions-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
isCommitted
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JakartaTransactionContext.java
Apache-2.0
@Override protected void doRollback() throws Exception { // managed transaction, mark rollback-only if not done so already Transaction transaction = getTransaction(); int status = transaction.getStatus(); if (status != Status.STATUS_NO_TRANSACTION && status != Status.STATUS_ROLLEDBACK) { transac...
JTA-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
doRollback
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
Apache-2.0
@Override protected void addTransactionListener(TransactionState transactionState, final TransactionListener transactionListener, CommandContext commandContext) throws Exception{ getTransaction().registerSynchronization(new JtaTransactionStateSynchronization(transactionState, transactionListener, commandContext))...
JTA-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
addTransactionListener
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
Apache-2.0
protected Transaction getTransaction() { try { return transactionManager.getTransaction(); } catch (Exception e) { throw LOG.exceptionWhileInteractingWithTransaction("getting transaction", e); } }
JTA-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
getTransaction
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
Apache-2.0
@Override protected boolean isTransactionActiveInternal() throws Exception { return transactionManager.getStatus() != Status.STATUS_MARKED_ROLLBACK && transactionManager.getStatus() != Status.STATUS_NO_TRANSACTION; }
JTA-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
isTransactionActiveInternal
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
Apache-2.0
@Override protected boolean isRolledBack(int status) { return Status.STATUS_ROLLEDBACK == status; }
JTA-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
isRolledBack
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
Apache-2.0
@Override protected boolean isCommitted(int status) { return Status.STATUS_COMMITTED == status; }
JTA-based implementation of the {@link AbstractTransactionContext} @author Daniel Meyer
isCommitted
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/jta/JtaTransactionContext.java
Apache-2.0
@Override public void checkEvaluateDecision(DecisionDefinition decisionDefinition) { if (!getTenantManager().isAuthenticatedTenant(decisionDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("evaluate the decision '"+ decisionDefinition.getId() + "'"); } }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkEvaluateDecision
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkCreateProcessInstance(ProcessDefinition processDefinition) { if (!getTenantManager().isAuthenticatedTenant(processDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("create an instance of the process definition '"+ processDefinition.getId() + "'"); }...
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkCreateProcessInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkReadProcessDefinition(ProcessDefinition processDefinition) { if (!getTenantManager().isAuthenticatedTenant(processDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("get the process definition '"+ processDefinition.getId() + "'"); } }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkReadProcessDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkCreateCaseInstance(CaseDefinition caseDefinition) { if (!getTenantManager().isAuthenticatedTenant(caseDefinition.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("create an instance of the case definition '"+ caseDefinition.getId() + "'"); } }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkCreateCaseInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessDefinitionById(String processDefinitionId) { if (getTenantManager().isTenantCheckEnabled()) { ProcessDefinitionEntity processDefinition = findLatestProcessDefinitionById(processDefinitionId); if (processDefinition != null && !getTenantManager().isAuthenticatedTe...
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessDefinitionById
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessDefinitionSuspensionStateById(String processDefinitionId) { checkUpdateProcessDefinitionById(processDefinitionId); }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessDefinitionSuspensionStateById
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessDefinitionByKey(String processDefinitionKey) { }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessDefinitionByKey
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessDefinitionSuspensionStateByKey(String processDefinitionKey) { }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessDefinitionSuspensionStateByKey
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkDeleteProcessDefinitionById(String processDefinitionId) { if (getTenantManager().isTenantCheckEnabled()) { ProcessDefinitionEntity processDefinition = findLatestProcessDefinitionById(processDefinitionId); if (processDefinition != null && !getTenantManager().isAuthenticatedTe...
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkDeleteProcessDefinitionById
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkDeleteProcessDefinitionByKey(String processDefinitionKey) { }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkDeleteProcessDefinitionByKey
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessInstanceByProcessDefinitionId(String processDefinitionId) { if (getTenantManager().isTenantCheckEnabled()) { ProcessDefinitionEntity processDefinition = findLatestProcessDefinitionById(processDefinitionId); if (processDefinition != null && !getTenantManager().is...
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessInstanceByProcessDefinitionId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateRetriesProcessInstanceByProcessDefinitionId(String processDefinitionId) { checkUpdateProcessInstanceByProcessDefinitionId(processDefinitionId); }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateRetriesProcessInstanceByProcessDefinitionId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId(String processDefinitionId) { checkUpdateProcessInstanceByProcessDefinitionId(processDefinitionId); }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessInstance(ExecutionEntity execution) { if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the process instance '"+ execution.getId() + "'"); } }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessInstanceVariables(ExecutionEntity execution) { checkUpdateProcessInstance(execution); }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessInstanceVariables
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateJob(JobEntity job) { if (job != null && !getTenantManager().isAuthenticatedTenant(job.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the job '"+ job.getId() + "'"); } }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateJob
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateRetriesJob(JobEntity job) { checkUpdateJob(job); }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateRetriesJob
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessInstanceByProcessDefinitionKey(String processDefinitionKey) { }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessInstanceByProcessDefinitionKey
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey(String processDefinitionKey) { }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessInstanceSuspensionStateByProcessDefinitionKey
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessInstanceById(String processInstanceId) { if (getTenantManager().isTenantCheckEnabled()) { ExecutionEntity execution = findExecutionById(processInstanceId); if (execution != null && !getTenantManager().isAuthenticatedTenant(execution.getTenantId())) { thr...
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessInstanceById
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkUpdateProcessInstanceSuspensionStateById(String processInstanceId) { checkUpdateProcessInstanceById(processInstanceId); }
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkUpdateProcessInstanceSuspensionStateById
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0
@Override public void checkCreateMigrationPlan(ProcessDefinition sourceProcessDefinition, ProcessDefinition targetProcessDefinition) { String sourceTenant = sourceProcessDefinition.getTenantId(); String targetTenant = targetProcessDefinition.getTenantId(); if (!getTenantManager().isAuthenticatedTenant(so...
{@link CommandChecker} to ensure that commands are only executed for entities which belongs to one of the authenticated tenants.
checkCreateMigrationPlan
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Apache-2.0