congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
io.sphere.sdk.products.commands
Code IndexAdd Tabnine to your IDE (free)

How to use io.sphere.sdk.products.commands

Best Java code snippets using io.sphere.sdk.products.commands (Showing top 20 results out of 315)

origin: com.commercetools.sdk.jvm.core/commercetools-models

/**
 * Sets the type of the Type of the uploaded image
 *
 * @param contentType must be one of "image/jpeg", "image/png" or "image/gif"
 * @return ProductImageUploadCommand the new constructed productImageUploadCommand
 */
public ProductImageUploadCommand withContentType(final String contentType) {
  final ProductImageUploadCommand productImageUploadCommand = new ProductImageUploadCommand(body, productId, variant, sku, filename, staged, givenContentType);
  return productImageUploadCommand;
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

/**
  Creates a command object to delete a {@link Product} by ID.
  @param versioned the object to delete (so directly a {@link Product}) or just the version/ID information of it
  @return delete command
 */
static ProductDeleteCommand of(final Versioned<Product> versioned) {
  return new ProductDeleteCommandImpl(versioned,false);
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

  static ProductCreateCommand of(final ProductDraft draft) {
    return new ProductCreateCommandImpl(draft);
  }
}
origin: commercetools/commercetools-jvm-sdk

  private void unpublishAndDelete(final Product product) {
    client().executeBlocking(ProductDeleteCommand.of(client().executeBlocking(ProductUpdateCommand.of(product, Unpublish.of()))));
  }
}
origin: io.sphere.sdk.jvm/sphere-models

  static ProductUpdateCommand of(final Versioned<Product> versioned, final List<? extends UpdateAction<Product>> updateActions) {
    return new ProductUpdateCommandImpl(versioned, updateActions);
  }
}
origin: io.sphere.sdk.jvm/models

  public static ProductUpdateCommand of(final Versioned<Product> versioned, final List<? extends UpdateAction<Product>> updateActions) {
    return new ProductUpdateCommand(versioned, updateActions);
  }
}
origin: io.sphere.sdk.jvm/models

  public static ProductCreateCommand of(final ProductDraft draft) {
    return new ProductCreateCommand(draft);
  }
}
origin: io.sphere.sdk.jvm/models

  public static DeleteCommand<Product> of(final Versioned<Product> versioned) {
    return new ProductDeleteCommand(versioned);
  }
}
origin: io.sphere.sdk.jvm/sphere-models

  static ProductCreateCommand of(final ProductDraft draft) {
    return new ProductCreateCommandImpl(draft);
  }
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

static ProductUpdateCommand of(final Versioned<Product> versioned, final List<? extends UpdateAction<Product>> updateActions) {
  return new ProductUpdateCommandImpl(versioned, updateActions);
}
origin: commercetools/commercetools-jvm-sdk

/**
 * Sets the type of the Type of the uploaded image
 *
 * @param contentType must be one of "image/jpeg", "image/png" or "image/gif"
 * @return ProductImageUploadCommand the new constructed productImageUploadCommand
 */
public ProductImageUploadCommand withContentType(final String contentType) {
  final ProductImageUploadCommand productImageUploadCommand = new ProductImageUploadCommand(body, productId, variant, sku, filename, staged, givenContentType);
  return productImageUploadCommand;
}
origin: io.sphere.sdk.jvm/sphere-models

  static ProductDeleteCommand of(final Versioned<Product> versioned) {
    return new ProductDeleteCommandImpl(versioned);
  }
}
origin: commercetools/commercetools-jvm-sdk

  static ProductCreateCommand of(final ProductDraft draft) {
    return new ProductCreateCommandImpl(draft);
  }
}
origin: commercetools/commercetools-jvm-sdk

static ProductUpdateCommand of(final Versioned<Product> versioned, final List<? extends UpdateAction<Product>> updateActions) {
  return new ProductUpdateCommandImpl(versioned, updateActions);
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

public ProductImageUploadCommand withStaged(final Boolean newStaged) {
  return new ProductImageUploadCommand(body, productId, variant, sku, filename, newStaged, givenContentType);
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

public static ProductImageUploadCommand ofMasterVariant(final File body, final String productId) {
  return new ProductImageUploadCommand(body, productId, null, null, null, null, null);
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

public static ProductImageUploadCommand ofProductIdAndSku(final File body, final String productId, final String sku) {
  return new ProductImageUploadCommand(body, productId, null, sku, null, null, null);
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

public ProductImageUploadCommand withFilename(final String newFilename) {
  return new ProductImageUploadCommand(body, productId, variant, sku, newFilename, staged, givenContentType);
}
origin: commercetools/commercetools-jvm-sdk

public ProductImageUploadCommand withFilename(final String newFilename) {
  return new ProductImageUploadCommand(body, productId, variant, sku, newFilename, staged, givenContentType);
}
origin: commercetools/commercetools-jvm-sdk

public ProductImageUploadCommand withStaged(final Boolean newStaged) {
  return new ProductImageUploadCommand(body, productId, variant, sku, filename, newStaged, givenContentType);
}
io.sphere.sdk.products.commands

Most used classes

  • AddPrice
    Adds the given price to the product variant's prices set. It is rejected if the product already cont
  • AddToCategory
    Adds a product to a category. io.sphere.sdk.products.ProductCrudIntegrationTest#addToCategoryUpdateA
  • ChangeName
    Updates the name of a product. io.sphere.sdk.products.ProductCrudIntegrationTest#changeNameUpdateAct
  • ChangePrice
    Replaces a price in the product variant's prices set. The price with the same price scope (same curr
  • ChangeSlug
    Updates the slug of a product. io.sphere.sdk.products.commands.ProductUpdateCommandTest#changeSlug()
  • RemovePrice,
  • SetDescription,
  • SetSku,
  • SetTaxCategory,
  • Unpublish,
  • ProductDeleteCommand,
  • ProductUpdateCommand,
  • AddExternalImage,
  • AddVariant,
  • RemoveFromCategory,
  • RemoveImage,
  • RemoveVariant,
  • RevertStagedChanges,
  • SetAttribute
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