/** * 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; }
/** 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); }
static ProductCreateCommand of(final ProductDraft draft) { return new ProductCreateCommandImpl(draft); } }
static ProductUpdateCommand of(final Versioned<Product> versioned, final List<? extends UpdateAction<Product>> updateActions) { return new ProductUpdateCommandImpl(versioned, updateActions); } }
public static ProductUpdateCommand of(final Versioned<Product> versioned, final List<? extends UpdateAction<Product>> updateActions) { return new ProductUpdateCommand(versioned, updateActions); } }
public static ProductCreateCommand of(final ProductDraft draft) { return new ProductCreateCommand(draft); } }
public static DeleteCommand<Product> of(final Versioned<Product> versioned) { return new ProductDeleteCommand(versioned); } }
static ProductCreateCommand of(final ProductDraft draft) { return new ProductCreateCommandImpl(draft); } }
static ProductUpdateCommand of(final Versioned<Product> versioned, final List<? extends UpdateAction<Product>> updateActions) { return new ProductUpdateCommandImpl(versioned, updateActions); }
/** * 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; }
static ProductDeleteCommand of(final Versioned<Product> versioned) { return new ProductDeleteCommandImpl(versioned); } }
static ProductCreateCommand of(final ProductDraft draft) { return new ProductCreateCommandImpl(draft); } }
static ProductUpdateCommand of(final Versioned<Product> versioned, final List<? extends UpdateAction<Product>> updateActions) { return new ProductUpdateCommandImpl(versioned, updateActions); }
public ProductImageUploadCommand withStaged(final Boolean newStaged) { return new ProductImageUploadCommand(body, productId, variant, sku, filename, newStaged, givenContentType); }
public static ProductImageUploadCommand ofMasterVariant(final File body, final String productId) { return new ProductImageUploadCommand(body, productId, null, null, null, null, null); }
public static ProductImageUploadCommand ofProductIdAndSku(final File body, final String productId, final String sku) { return new ProductImageUploadCommand(body, productId, null, sku, null, null, null); }
public ProductImageUploadCommand withFilename(final String newFilename) { return new ProductImageUploadCommand(body, productId, variant, sku, newFilename, staged, givenContentType); }
public ProductImageUploadCommand withFilename(final String newFilename) { return new ProductImageUploadCommand(body, productId, variant, sku, newFilename, staged, givenContentType); }
public ProductImageUploadCommand withStaged(final Boolean newStaged) { return new ProductImageUploadCommand(body, productId, variant, sku, filename, newStaged, givenContentType); }