Tabnine Logo
MultipleResult$Builder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
method
in
com.nexitia.emaginplatform.core.commons.bridge.MultipleResult$Builder

Best Java code snippets using com.nexitia.emaginplatform.core.commons.bridge.MultipleResult$Builder.build (Showing top 4 results out of 315)

origin: com.nexitia.emaginplatform/emagin-corebusiness-offline-services

/**
 * @throws OperationException
 * @{inheritedDoc}
 */
@Override
public IOperationResult loadAllNotification(JsonObject query) throws OperationException {
 try {
  List<JsonObject> jsons = new ArrayList<JsonObject>();
  String status = query.get("status").getAsString();
  for (String key : allNotifications.keySet()) {
   JsonObject value = allNotifications.get(key);
   if (status != null) {
    String curStatus = value.get("status").getAsString();
    if (curStatus.equalsIgnoreCase(status)) {
     jsons.add(value);
    }
   }
   else {
    jsons.add(value);
   }
  }
  IOperationResult result = new MultipleResult.Builder().addMeta("total-pages", 1).addMeta("total-elements", jsons.size()).addMeta("current-page", 0).addMeta("current-elements", jsons.size())
    .data(toOperationData(jsons)).build();
  return result;
 }
 catch (Exception e) {
  e.printStackTrace();
  throw new OperationException(e);
 }
}
origin: com.nexitia.emaginplatform/emagin-corebusiness-cloud-operations

.addMeta(MultipleResult.totalPages, 1)
.addMeta(MultipleResult.pageElements, 1)
.addMeta(MultipleResult.totalElements, 1).build();
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

 @Override
 protected Void call() throws Exception {
  if (contentConfiguration != null) {
   if (loadFirstPageData) {
    getItems().clear();
    if (dataProvider != null) {
     setLoading();
     // @formatter:off
     final MultipleResult zero =
       new MultipleResult.Builder()
       .addMeta(IOperationResult.pageSize, pagination != null ? pagination.getCurrentPageSize() : 5)
       .addMeta(IOperationResult.pageNumber, -1).build();
     // @formatter:on
     dataProvider.navigate(controller, zero, Direction.NEXT, e -> {
      model.set(null);
      model.set(e);
     });
    } else {
     setNoContent();
    }
   } else {
    setNoContent();
   }
  }
  return null;
 }
};
origin: com.nexitia.emaginplatform/emagin-coreui-cloud-services

 /**
  * @{inheritedDoc}
  */
 @Override
 public IOperationResult getUserDashboards(JsonObject query) {
  OperationData data = new OperationData.Builder().addAttribute("icon", "fa-bookmark:24").addAttribute("translatedLabel", "Test Dashboard1").build();
  OperationData data2 = new OperationData.Builder().addAttribute("icon", "fa-bookmark:24").addAttribute("translatedLabel", "Test Dashboard2").build();

  MultipleResult result = new MultipleResult.Builder().addData(data).addData(data2).build();
  result.addMetaData(IOperationResult.totalElements, 0);
  return result;
 }
}
com.nexitia.emaginplatform.core.commons.bridgeMultipleResult$Builderbuild

Popular methods of MultipleResult$Builder

  • <init>
  • addMeta
  • addData
  • data

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • From CI to AI: The AI layer in your organization
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