Tabnine Logo
DeploymentQuery.includeDeploymentsWithoutTenantId
Code IndexAdd Tabnine to your IDE (free)

How to use
includeDeploymentsWithoutTenantId
method
in
org.camunda.bpm.engine.repository.DeploymentQuery

Best Java code snippets using org.camunda.bpm.engine.repository.DeploymentQuery.includeDeploymentsWithoutTenantId (Showing top 8 results out of 315)

origin: camunda/camunda-bpm-platform

query.includeDeploymentsWithoutTenantId();
origin: camunda/camunda-bpm-platform

query.includeDeploymentsWithoutTenantId();
origin: camunda/camunda-bpm-platform

public void testQueryByTenantIdsIncludeDeploymentsWithoutTenantId() {
 DeploymentQuery query = repositoryService
   .createDeploymentQuery()
   .tenantIdIn(TENANT_ONE)
   .includeDeploymentsWithoutTenantId();
 assertThat(query.count(), is(2L));
 query = repositoryService
   .createDeploymentQuery()
   .tenantIdIn(TENANT_TWO)
   .includeDeploymentsWithoutTenantId();
 assertThat(query.count(), is(2L));
 query = repositoryService
   .createDeploymentQuery()
   .tenantIdIn(TENANT_ONE, TENANT_TWO)
   .includeDeploymentsWithoutTenantId();
 assertThat(query.count(), is(3L));
}
origin: camunda/camunda-bpm-platform

public void testQueryAuthenticatedTenant() {
 identityService.setAuthentication("user", null, Arrays.asList(TENANT_ONE));
 DeploymentQuery query = repositoryService.createDeploymentQuery();
 assertThat(query.count(), is(2L));
 assertThat(query.tenantIdIn(TENANT_ONE).count(), is(1L));
 assertThat(query.tenantIdIn(TENANT_TWO).count(), is(0L));
 assertThat(query.tenantIdIn(TENANT_ONE, TENANT_TWO).includeDeploymentsWithoutTenantId().count(), is(2L));
}
origin: camunda/camunda-bpm-platform

@Test
public void testDeploymentTenantIdIncludeDefinitionsWithoutTenantid() {
 List<Deployment> mockDeployments = Arrays.asList(
   MockProvider.createMockDeployment(null),
   MockProvider.createMockDeployment(MockProvider.EXAMPLE_TENANT_ID));
 mockedQuery = setUpMockDeploymentQuery(mockDeployments);
 Response response = given()
  .queryParam("tenantIdIn", MockProvider.EXAMPLE_TENANT_ID)
  .queryParam("includeDeploymentsWithoutTenantId", true)
 .then().expect()
  .statusCode(Status.OK.getStatusCode())
 .when()
  .get(DEPLOYMENT_QUERY_URL);
 verify(mockedQuery).tenantIdIn(MockProvider.EXAMPLE_TENANT_ID);
 verify(mockedQuery).includeDeploymentsWithoutTenantId();
 verify(mockedQuery).list();
 String content = response.asString();
 List<String> definitions = from(content).getList("");
 assertThat(definitions).hasSize(2);
 String returnedTenantId1 = from(content).getString("[0].tenantId");
 String returnedTenantId2 = from(content).getString("[1].tenantId");
 assertThat(returnedTenantId1).isEqualTo(null);
 assertThat(returnedTenantId2).isEqualTo(MockProvider.EXAMPLE_TENANT_ID);
}
origin: org.camunda.bpm/camunda-engine-rest-jaxrs2

query.includeDeploymentsWithoutTenantId();
origin: org.camunda.bpm/camunda-engine

public void testQueryByTenantIdsIncludeDeploymentsWithoutTenantId() {
 DeploymentQuery query = repositoryService
   .createDeploymentQuery()
   .tenantIdIn(TENANT_ONE)
   .includeDeploymentsWithoutTenantId();
 assertThat(query.count(), is(2L));
 query = repositoryService
   .createDeploymentQuery()
   .tenantIdIn(TENANT_TWO)
   .includeDeploymentsWithoutTenantId();
 assertThat(query.count(), is(2L));
 query = repositoryService
   .createDeploymentQuery()
   .tenantIdIn(TENANT_ONE, TENANT_TWO)
   .includeDeploymentsWithoutTenantId();
 assertThat(query.count(), is(3L));
}
origin: org.camunda.bpm/camunda-engine

public void testQueryAuthenticatedTenant() {
 identityService.setAuthentication("user", null, Arrays.asList(TENANT_ONE));
 DeploymentQuery query = repositoryService.createDeploymentQuery();
 assertThat(query.count(), is(2L));
 assertThat(query.tenantIdIn(TENANT_ONE).count(), is(1L));
 assertThat(query.tenantIdIn(TENANT_TWO).count(), is(0L));
 assertThat(query.tenantIdIn(TENANT_ONE, TENANT_TWO).includeDeploymentsWithoutTenantId().count(), is(2L));
}
org.camunda.bpm.engine.repositoryDeploymentQueryincludeDeploymentsWithoutTenantId

Javadoc

Select deployments which have no tenant id. Can be used in combination with #tenantIdIn(String...).

Popular methods of DeploymentQuery

  • list
  • singleResult
  • count
  • deploymentId
    Only select deployments with the given deployment id.
  • deploymentName
    Only select deployments with the given name.
  • deploymentAfter
    Only select deployments deployed after the given date
  • deploymentBefore
    Only select deployments deployed before the given date
  • deploymentNameLike
    Only select deployments with a name like the given string.
  • deploymentSource
    If the given source is null, then deployments are returned where source is equal to null. Otherwise
  • orderByDeploymentId
    Order by deployment id (needs to be followed by #asc() or #desc()).
  • orderByDeploymentName
    Order by deployment name (needs to be followed by #asc() or #desc()).
  • orderByDeploymentTime
    Order by deployment time (needs to be followed by #asc() or #desc()).
  • orderByDeploymentName,
  • orderByDeploymentTime,
  • orderByTenantId,
  • tenantIdIn,
  • withoutTenantId,
  • listPage,
  • asc,
  • desc,
  • orderByDeploymenTime

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now