com.konakartadmin.app
Class AdminCopyProductOptions

java.lang.Object
  extended by com.konakartadmin.app.AdminCopyProductOptions

public class AdminCopyProductOptions
extends java.lang.Object

An object used to define options used when calling CopyProduct API calls


Field Summary
private  boolean copyRelatedProducts
          A product may have related products (i.e.
private  int mode
          The mode defines what sort of operation is performed.
static int MODE_COPY_CREATING_NEW_PRODUCT
          Insert a new product in the destination store by copying the source product.
static int MODE_COPY_USING_PRODUCT_TO_STORES
          A link is inserted to associate the source product to the destination store.
static int MODE_MOVE_USING_PRODUCT_TO_STORES
          A link is inserted to associate the source product to the destination store.
 
Constructor Summary
AdminCopyProductOptions()
          Constructor
 
Method Summary
 int getMode()
          The mode defines what sort of operation is performed.
 boolean isCopyRelatedProducts()
          A product may have related products (i.e.
 void setCopyRelatedProducts(boolean copyRelatedProducts)
          A product may have related products (i.e.
 void setMode(int mode)
          The mode defines what sort of operation is performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_COPY_CREATING_NEW_PRODUCT

public static final int MODE_COPY_CREATING_NEW_PRODUCT
Insert a new product in the destination store by copying the source product. The source product remains in the database. If the destination product already exists then it is edited with new data from the source product.

See Also:
Constant Field Values

MODE_COPY_USING_PRODUCT_TO_STORES

public static final int MODE_COPY_USING_PRODUCT_TO_STORES
A link is inserted to associate the source product to the destination store. The link with the source store is not removed.

See Also:
Constant Field Values

MODE_MOVE_USING_PRODUCT_TO_STORES

public static final int MODE_MOVE_USING_PRODUCT_TO_STORES
A link is inserted to associate the source product to the destination store. The link with the source store is removed.

See Also:
Constant Field Values

mode

private int mode
The mode defines what sort of operation is performed. Valid values are :


copyRelatedProducts

private boolean copyRelatedProducts
A product may have related products (i.e. bundled products, up-sell products etc.) that do not exist in the destination store. If copyRelatedProducts is set to true, then any related product that doesn't exist is automatically copied over to the destination store. The default value is false.

Constructor Detail

AdminCopyProductOptions

public AdminCopyProductOptions()
Constructor

Method Detail

getMode

public int getMode()
The mode defines what sort of operation is performed. Valid values are :

Returns:
the mode

setMode

public void setMode(int mode)
The mode defines what sort of operation is performed. Valid values are :

Parameters:
mode - the mode to set

isCopyRelatedProducts

public boolean isCopyRelatedProducts()
A product may have related products (i.e. bundled products, up-sell products etc.) that do not exist in the destination store. If copyRelatedProducts is set to true, then any related product that doesn't exist is automatically copied over to the destination store. The default value is false.

Returns:
the copyRelatedProducts

setCopyRelatedProducts

public void setCopyRelatedProducts(boolean copyRelatedProducts)
A product may have related products (i.e. bundled products, up-sell products etc.) that do not exist in the destination store. If copyRelatedProducts is set to true, then any related product that doesn't exist is automatically copied over to the destination store. The default value is false.

Parameters:
copyRelatedProducts - the copyRelatedProducts to set


Copyright © 2011 DS Data Systems UK Ltd.