Search in sources :

Example 6 with ResourceAuthorizationProvider

use of org.camunda.bpm.engine.impl.cfg.auth.ResourceAuthorizationProvider in project camunda-bpm-platform by camunda.

the class TaskManager method createDefaultAuthorizations.

// helper ///////////////////////////////////////////////////////////
protected void createDefaultAuthorizations(TaskEntity task) {
    if (isAuthorizationEnabled()) {
        ResourceAuthorizationProvider provider = getResourceAuthorizationProvider();
        AuthorizationEntity[] authorizations = provider.newTask(task);
        saveDefaultAuthorizations(authorizations);
    }
}
Also used : ResourceAuthorizationProvider(org.camunda.bpm.engine.impl.cfg.auth.ResourceAuthorizationProvider)

Example 7 with ResourceAuthorizationProvider

use of org.camunda.bpm.engine.impl.cfg.auth.ResourceAuthorizationProvider in project camunda-bpm-platform by camunda.

the class DecisionDefinitionManager method createDefaultAuthorizations.

protected void createDefaultAuthorizations(DecisionDefinition decisionDefinition) {
    if (isAuthorizationEnabled()) {
        ResourceAuthorizationProvider provider = getResourceAuthorizationProvider();
        AuthorizationEntity[] authorizations = provider.newDecisionDefinition(decisionDefinition);
        saveDefaultAuthorizations(authorizations);
    }
}
Also used : ResourceAuthorizationProvider(org.camunda.bpm.engine.impl.cfg.auth.ResourceAuthorizationProvider) AuthorizationEntity(org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity)

Example 8 with ResourceAuthorizationProvider

use of org.camunda.bpm.engine.impl.cfg.auth.ResourceAuthorizationProvider in project camunda-bpm-platform by camunda.

the class DecisionRequirementsDefinitionManager method createDefaultAuthorizations.

protected void createDefaultAuthorizations(DecisionRequirementsDefinition decisionRequirementsDefinition) {
    if (isAuthorizationEnabled()) {
        ResourceAuthorizationProvider provider = getResourceAuthorizationProvider();
        AuthorizationEntity[] authorizations = provider.newDecisionRequirementsDefinition(decisionRequirementsDefinition);
        saveDefaultAuthorizations(authorizations);
    }
}
Also used : ResourceAuthorizationProvider(org.camunda.bpm.engine.impl.cfg.auth.ResourceAuthorizationProvider) AuthorizationEntity(org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity)

Example 9 with ResourceAuthorizationProvider

use of org.camunda.bpm.engine.impl.cfg.auth.ResourceAuthorizationProvider in project camunda-bpm-platform by camunda.

the class DeploymentManager method createDefaultAuthorizations.

// helper /////////////////////////////////////////////////
protected void createDefaultAuthorizations(DeploymentEntity deployment) {
    if (isAuthorizationEnabled()) {
        ResourceAuthorizationProvider provider = getResourceAuthorizationProvider();
        AuthorizationEntity[] authorizations = provider.newDeployment(deployment);
        saveDefaultAuthorizations(authorizations);
    }
}
Also used : ResourceAuthorizationProvider(org.camunda.bpm.engine.impl.cfg.auth.ResourceAuthorizationProvider)

Aggregations

ResourceAuthorizationProvider (org.camunda.bpm.engine.impl.cfg.auth.ResourceAuthorizationProvider)9 AuthorizationEntity (org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity)2