All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nexitia.emaginplatform.cloud.stub.operations.StubGetFolderChildrenOperation Maven / Gradle / Ivy

The newest version!
/**
 *
 */
package com.nexitia.emaginplatform.cloud.stub.operations;

import java.util.ArrayList;
import java.util.function.Consumer;

import com.nexitia.emaginplatform.core.commons.bridge.IOperation;
import com.nexitia.emaginplatform.core.commons.bridge.IOperationResult;
import com.nexitia.emaginplatform.core.commons.bridge.MultipleResult;
import com.google.gson.JsonObject;

/**
 * @author Ramilafananana  VONJISOA
 *
 */
public class StubGetFolderChildrenOperation implements IOperation{

  @Override
  public void doOperation(JsonObject params, Consumer resultHandler, Consumer exHandler) {
    MultipleResult multipleResult = new MultipleResult();
    multipleResult.setData(new ArrayList<>());
    multipleResult.addMetaData("pageSize", 0);
    multipleResult.addMetaData("pageNumber", 0);
    multipleResult.addMetaData("totalPages", 0);
    multipleResult.addMetaData("hasNextPage", false);
    multipleResult.addMetaData("hasPreviousPage", false);
    multipleResult.addMetaData("pageElements", 0);
    multipleResult.addMetaData("totalElements", 0);
    resultHandler.accept(multipleResult);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy