use of org.camunda.bpm.engine.AuthorizationService in project camunda-bpm-platform by camunda.
the class HistoryAuthorizationQueryPerformanceTest method createAuthorizations.
@Before
public void createAuthorizations() {
AuthorizationService authorizationService = engine.getAuthorizationService();
List<Authorization> auths = authorizationService.createAuthorizationQuery().list();
for (Authorization authorization : auths) {
authorizationService.deleteAuthorization(authorization.getId());
}
userGrant("test", resource, permissions);
for (int i = 0; i < 5; i++) {
grouptGrant("g" + i, resource, permissions);
}
engine.getProcessEngineConfiguration().setAuthorizationEnabled(true);
}
use of org.camunda.bpm.engine.AuthorizationService in project camunda-bpm-platform by camunda.
the class RepositoryAuthorizationQueryPerformanceTest method createAuthorizations.
@Before
public void createAuthorizations() {
AuthorizationService authorizationService = engine.getAuthorizationService();
List<Authorization> auths = authorizationService.createAuthorizationQuery().list();
for (Authorization authorization : auths) {
authorizationService.deleteAuthorization(authorization.getId());
}
userGrant("test", resource, permissions);
for (int i = 0; i < 5; i++) {
grouptGrant("g" + i, resource, permissions);
}
engine.getProcessEngineConfiguration().setAuthorizationEnabled(true);
}
Aggregations