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

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

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

origin: camunda/camunda-bpm-platform

public void testQueryWithoutTenantId() {
 DeploymentQuery query = repositoryService
   .createDeploymentQuery()
   .withoutTenantId();
 assertThat(query.count(), is(1L));
}
origin: camunda/camunda-bpm-platform

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

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

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

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

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

public void testQueryWithoutTenantId() {
 DeploymentQuery query = repositoryService
   .createDeploymentQuery()
   .withoutTenantId();
 assertThat(query.count(), is(1L));
}
origin: org.camunda.bpm/camunda-engine

public void testQueryAuthenticatedTenants() {
 identityService.setAuthentication("user", null, Arrays.asList(TENANT_ONE, TENANT_TWO));
 DeploymentQuery query = repositoryService.createDeploymentQuery();
 assertThat(query.count(), is(3L));
 assertThat(query.tenantIdIn(TENANT_ONE).count(), is(1L));
 assertThat(query.tenantIdIn(TENANT_TWO).count(), is(1L));
 assertThat(query.withoutTenantId().count(), is(1L));
}
org.camunda.bpm.engine.repositoryDeploymentQuerywithoutTenantId

Javadoc

Only select deployments which have no tenant id.

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
  • includeDeploymentsWithoutTenantId
    Select deployments which have no tenant id. Can be used in combination with #tenantIdIn(String...).
  • 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()).
  • orderByDeploymentId,
  • orderByDeploymentName,
  • orderByDeploymentTime,
  • orderByTenantId,
  • tenantIdIn,
  • listPage,
  • asc,
  • desc,
  • orderByDeploymenTime

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
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