Tabnine Logo
Util.buildEager
Code IndexAdd Tabnine to your IDE (free)

How to use
buildEager
method
in
com.cloudinary.Util

Best Java code snippets using com.cloudinary.Util.buildEager (Showing top 6 results out of 315)

origin: cloudinary/cloudinary_java

private static void putEager(String name, Map from, Map<String, Object> to) {
  final Object transformations = from.get(name);
  if (transformations != null)
    to.put(name, buildEager((List<Transformation>) transformations));
}
origin: com.cloudinary/cloudinary-core

private static void putEager(String name, Map from, Map<String, Object> to) {
  final Object transformations = from.get(name);
  if (transformations != null)
    to.put(name, buildEager((List<Transformation>) transformations));
}
origin: com.cloudinary/cloudinary-core

public ApiResponse deleteDerivedByTransformation(Iterable<String> publicIds, List<Transformation> transformations, Map options) throws Exception {
  if (options == null) options = ObjectUtils.emptyMap();
  String resourceType = ObjectUtils.asString(options.get("resource_type"), "image");
  String type = ObjectUtils.asString(options.get("type"), "upload");
  Map params = ObjectUtils.only(options, "invalidate", "next_cursor");
  params.put("keep_original", true);
  params.put("public_ids", publicIds);
  params.put("transformations", Util.buildEager(transformations));
  return callApi(HttpMethod.DELETE, Arrays.asList("resources", resourceType, type), params, options);
}
origin: cloudinary/cloudinary_java

public ApiResponse deleteDerivedByTransformation(Iterable<String> publicIds, List<Transformation> transformations, Map options) throws Exception {
  if (options == null) options = ObjectUtils.emptyMap();
  String resourceType = ObjectUtils.asString(options.get("resource_type"), "image");
  String type = ObjectUtils.asString(options.get("type"), "upload");
  Map params = ObjectUtils.only(options, "invalidate", "next_cursor");
  params.put("keep_original", true);
  params.put("public_ids", publicIds);
  params.put("transformations", Util.buildEager(transformations));
  return callApi(HttpMethod.DELETE, Arrays.asList("resources", resourceType, type), params, options);
}
origin: com.cloudinary/cloudinary

    params.put(attr, value.toString());            
params.put("eager", buildEager((List<Transformation>) options.get("eager")));
params.put("notification_url", (String) options.get("notification_url"));
params.put("eager_notification_url", (String) options.get("eager_notification_url"));
origin: com.cloudinary/cloudinary

public Map explicit(String publicId, Map options) throws IOException {
  if (options == null) options = Cloudinary.emptyMap();
  Map<String, Object> params = new HashMap<String, Object>();
  params.put("public_id", publicId);
  params.put("callback", (String) options.get("callback"));
  params.put("type", (String) options.get("type"));
  params.put("eager", Util.buildEager((List<Transformation>) options.get("eager")));
  params.put("headers", Util.buildCustomHeaders(options.get("headers")));
  params.put("tags", StringUtils.join(Cloudinary.asArray(options.get("tags")), ","));
  if (options.get("face_coordinates") != null) {
    params.put("face_coordinates", Coordinates.parseCoordinates(options.get("face_coordinates")).toString());
  }
  if (options.get("custom_coordinates") != null) {
    params.put("custom_coordinates", Coordinates.parseCoordinates(options.get("custom_coordinates")).toString());
  }
  if (options.get("context") != null) {
    params.put("context", Cloudinary.encodeMap(options.get("context")));
  }
  return callApi("explicit", params, options, null);
}
com.cloudinaryUtilbuildEager

Popular methods of Util

  • clearEmpty
  • buildCustomHeaders
  • buildUploadParams
  • encodeContext
  • processWriteParameters
  • buildArchiveParams
  • encodeAccessControl
  • putArray
  • putBoolean
  • putEager
  • putObject
  • timestamp
  • putObject,
  • timestamp

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • JFileChooser (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Join (org.hibernate.mapping)
  • 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