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

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

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

origin: camunda/camunda-bpm-platform

private List<Deployment> executePaginatedQuery(DeploymentQuery query, Integer firstResult, Integer maxResults) {
 if (firstResult == null) {
  firstResult = 0;
 }
 if (maxResults == null) {
  maxResults = Integer.MAX_VALUE;
 }
 return query.listPage(firstResult, maxResults);
}
origin: camunda/camunda-bpm-platform

private List<Deployment> executePaginatedQuery(DeploymentQuery query, Integer firstResult, Integer maxResults) {
 if (firstResult == null) {
  firstResult = 0;
 }
 if (maxResults == null) {
  maxResults = Integer.MAX_VALUE;
 }
 return query.listPage(firstResult, maxResults);
}
origin: org.camunda.bpm/camunda-engine-rest-jaxrs2

private List<Deployment> executePaginatedQuery(DeploymentQuery query, Integer firstResult, Integer maxResults) {
 if (firstResult == null) {
  firstResult = 0;
 }
 if (maxResults == null) {
  maxResults = Integer.MAX_VALUE;
 }
 return query.listPage(firstResult, maxResults);
}
origin: camunda/camunda-bpm-platform

/**
 * If parameter "firstResult" is missing, we expect 0 as default.
 */
@Test
public void testMissingFirstResultParameter() {
 int maxResults = 10;
 given().queryParam("maxResults", maxResults)
  .then().expect().statusCode(Status.OK.getStatusCode())
  .when().get(DEPLOYMENT_QUERY_URL);
 verify(mockedQuery).listPage(0, maxResults);
}
origin: camunda/camunda-bpm-platform

/**
 * If parameter "maxResults" is missing, we expect Integer.MAX_VALUE as default.
 */
@Test
public void testMissingMaxResultsParameter() {
 int firstResult = 10;
 given().queryParam("firstResult", firstResult)
  .then().expect().statusCode(Status.OK.getStatusCode())
  .when().get(DEPLOYMENT_QUERY_URL);
 verify(mockedQuery).listPage(firstResult, Integer.MAX_VALUE);
}
origin: camunda/camunda-bpm-platform

@Test
public void testSuccessfulPagination() {
 int firstResult = 0;
 int maxResults = 10;
 given().queryParam("firstResult", firstResult).queryParam("maxResults", maxResults)
  .then().expect().statusCode(Status.OK.getStatusCode())
  .when().get(DEPLOYMENT_QUERY_URL);
 verify(mockedQuery).listPage(firstResult, maxResults);
}
org.camunda.bpm.engine.repositoryDeploymentQuerylistPage

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,
  • withoutTenantId,
  • asc,
  • desc,
  • orderByDeploymenTime

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Table (org.hibernate.mapping)
    A relational table
  • Github Copilot 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