com.konakartadmin.app
Class AdminSynchProductsOptions

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

public class AdminSynchProductsOptions
extends java.lang.Object

An object used to define options used when synchronizing products between stores


Field Summary
private  int fetchMode
          The fetchMode defines what products are returned.
static int GET_NEW_PRODUCTS
          When fetchMode is set to GET_NEW_PRODUCTS, the products returned are those that have never been copied to the destination store.
static int GET_OUT_OF_SYNC_PRODUCTS
          When getMode is set to GET_OUT_OF_SYNC_PRODUCTS, the products returned are those that exist in both the source and destination stores but are out of sync.
private  int productId
          When not negative it is used as a constraint in the query to only return products with this product id.
private  java.lang.String sku
          When not null it is used as a constraint in the query to only return products with this sku.
 
Constructor Summary
AdminSynchProductsOptions()
          Constructor
 
Method Summary
 int getFetchMode()
          The fetchMode defines what products are returned.
 int getProductId()
          When not negative it is used as a constraint in the query to only return products with this product id.
 java.lang.String getSku()
          When not null it is used as a constraint in the query to only return products with this sku.
 void setFetchMode(int fetchMode)
          The fetchMode defines what products are returned.
 void setProductId(int productId)
          When not negative it is used as a constraint in the query to only return products with this product id.
 void setSku(java.lang.String sku)
          When not null it is used as a constraint in the query to only return products with this sku.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET_NEW_PRODUCTS

public static final int GET_NEW_PRODUCTS
When fetchMode is set to GET_NEW_PRODUCTS, the products returned are those that have never been copied to the destination store. This means that either the uuid attribute is null or doesn't exist in the destination store.

See Also:
Constant Field Values

GET_OUT_OF_SYNC_PRODUCTS

public static final int GET_OUT_OF_SYNC_PRODUCTS
When getMode is set to GET_OUT_OF_SYNC_PRODUCTS, the products returned are those that exist in both the source and destination stores but are out of sync.

See Also:
Constant Field Values

fetchMode

private int fetchMode
The fetchMode defines what products are returned. Valid values are :


sku

private java.lang.String sku
When not null it is used as a constraint in the query to only return products with this sku. It only functions for the sku of the main product and not for product variations.


productId

private int productId
When not negative it is used as a constraint in the query to only return products with this product id.

Constructor Detail

AdminSynchProductsOptions

public AdminSynchProductsOptions()
Constructor

Method Detail

getFetchMode

public int getFetchMode()
The fetchMode defines what products are returned. Valid values are :

Returns:
the fetchMode

setFetchMode

public void setFetchMode(int fetchMode)
The fetchMode defines what products are returned. Valid values are :

Parameters:
fetchMode - the fetchMode to set

getSku

public java.lang.String getSku()
When not null it is used as a constraint in the query to only return products with this sku. It only functions for the sku of the main product and not for product variations.

Returns:
the sku

setSku

public void setSku(java.lang.String sku)
When not null it is used as a constraint in the query to only return products with this sku. It only functions for the sku of the main product and not for product variations.

Parameters:
sku - the sku to set

getProductId

public int getProductId()
When not negative it is used as a constraint in the query to only return products with this product id.

Returns:
the productId

setProductId

public void setProductId(int productId)
When not negative it is used as a constraint in the query to only return products with this product id.

Parameters:
productId - the productId to set


Copyright © 2011 DS Data Systems UK Ltd.