use of org.camunda.bpm.engine.repository.DeploymentQuery in project camunda-bpm-platform by camunda.
the class DeploymentAuthorizationTest method testDeploymentQueryWithoutAuthorization.
public void testDeploymentQueryWithoutAuthorization() {
// given
String deploymentId1 = createDeployment("first");
String deploymentId2 = createDeployment("second");
// when
DeploymentQuery query = repositoryService.createDeploymentQuery();
// then
verifyQueryResults(query, 0);
deleteDeployment(deploymentId1);
deleteDeployment(deploymentId2);
}
use of org.camunda.bpm.engine.repository.DeploymentQuery in project camunda-bpm-platform by camunda.
the class DeploymentAuthorizationTest method testSimpleDeploymentQueryWithMultiple.
public void testSimpleDeploymentQueryWithMultiple() {
// given
String deploymentId = createDeployment(null);
createGrantAuthorization(DEPLOYMENT, deploymentId, userId, READ);
createGrantAuthorization(DEPLOYMENT, ANY, userId, READ);
// when
DeploymentQuery query = repositoryService.createDeploymentQuery();
// then
verifyQueryResults(query, 1);
deleteDeployment(deploymentId);
}
use of org.camunda.bpm.engine.repository.DeploymentQuery in project camunda-bpm-platform by camunda.
the class DeploymentAuthorizationTest method testSimpleDeploymentQueryWithReadPermissionOnDeployment.
public void testSimpleDeploymentQueryWithReadPermissionOnDeployment() {
// given
String deploymentId = createDeployment(null);
createGrantAuthorization(DEPLOYMENT, deploymentId, userId, READ);
// when
DeploymentQuery query = repositoryService.createDeploymentQuery();
// then
verifyQueryResults(query, 1);
deleteDeployment(deploymentId);
}
Aggregations