com.konakartadmin.blif
Interface AdminPublishProductMgrIf

All Known Implementing Classes:
AdminPublishProductMgr

public interface AdminPublishProductMgrIf

AdminPublishProductMgrIf


Method Summary
 void deleteAllProductFeedItems(int feedType)
          Delete all Product Feed Items for the specified feed
 void deleteProductFeedItem(AdminProductFeedItem feedItem)
          Delete a Product Feed Item
 PublishProductsIf getGooglePublisher()
          Returns the Google Publisher for this store
 AdminProductFeedItem[] getProductFeedItems(int productId, int languageId, int feedType)
          Returns an array of Product Feed Items that match the specified productId, languageId and feedType passed in as parameters.
 void insertProductFeedItem(AdminProductFeedItem feedItem)
          Insert a Product Feed Item
 void publishAllProducts(AdminPublishConfig adminPublishConfig)
          Publish all products in the database
 void publishProduct(AdminProduct product, AdminPublishConfig adminPublishConfig)
          Publish the product passed in as a parameter
 java.lang.String readProducts(AdminPublishConfig adminPublishConfig)
          Read products
 void refreshConfigs()
          Refresh the configuration of the Manager
 void removeAllProducts(AdminPublishConfig adminPublishConfig)
          Remove all published products
 void removeProduct(int productId, AdminPublishConfig adminPublishConfig)
          Remove the published product passed in as a parameter.
 boolean shouldWePublishProduct(AdminProduct prod, int feedType)
          Determines whether or not this specified product should be published to the specified feed
 boolean useGoogleShopping()
          Returns true if Google Shopping can be used, otherwise it returns false
 void validateProductFeedItem(AdminProductFeedItem feedItem)
          Validate a Product Feed Item.
 

Method Detail

publishAllProducts

void publishAllProducts(AdminPublishConfig adminPublishConfig)
                        throws java.lang.Exception
Publish all products in the database

Parameters:
adminPublishConfig -
Throws:
java.lang.Exception

publishProduct

void publishProduct(AdminProduct product,
                    AdminPublishConfig adminPublishConfig)
                    throws java.lang.Exception
Publish the product passed in as a parameter

Parameters:
product -
adminPublishConfig -
Throws:
java.lang.Exception

readProducts

java.lang.String readProducts(AdminPublishConfig adminPublishConfig)
                              throws java.lang.Exception
Read products

Parameters:
adminPublishConfig -
Returns:
Returns a String contaiing the products
Throws:
java.lang.Exception

removeAllProducts

void removeAllProducts(AdminPublishConfig adminPublishConfig)
                       throws java.lang.Exception
Remove all published products

Parameters:
adminPublishConfig -
Throws:
java.lang.Exception

removeProduct

void removeProduct(int productId,
                   AdminPublishConfig adminPublishConfig)
                   throws java.lang.Exception
Remove the published product passed in as a parameter.

Parameters:
productId -
adminPublishConfig -
Throws:
java.lang.Exception

shouldWePublishProduct

boolean shouldWePublishProduct(AdminProduct prod,
                               int feedType)
Determines whether or not this specified product should be published to the specified feed

Parameters:
prod -
feedType - the feed type eg KKConstants.DATA_FEED_TYPE_GOOGLE
Returns:
true if the product should be published, otherwise false

insertProductFeedItem

void insertProductFeedItem(AdminProductFeedItem feedItem)
                           throws KKAdminException,
                                  org.apache.torque.TorqueException,
                                  com.workingdogs.village.DataSetException
Insert a Product Feed Item

Parameters:
feedItem - an AdminProductFeedItem object to insert
Throws:
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException

deleteProductFeedItem

void deleteProductFeedItem(AdminProductFeedItem feedItem)
                           throws org.apache.torque.TorqueException
Delete a Product Feed Item

Parameters:
feedItem - an AdminProductFeedItem object to delete (only the keys need to be filled in)
Throws:
org.apache.torque.TorqueException

deleteAllProductFeedItems

void deleteAllProductFeedItems(int feedType)
                               throws org.apache.torque.TorqueException
Delete all Product Feed Items for the specified feed

Parameters:
feedType - the feed type of the records to delete
Throws:
org.apache.torque.TorqueException

getProductFeedItems

AdminProductFeedItem[] getProductFeedItems(int productId,
                                           int languageId,
                                           int feedType)
                                           throws org.apache.torque.TorqueException,
                                                  com.workingdogs.village.DataSetException
Returns an array of Product Feed Items that match the specified productId, languageId and feedType passed in as parameters. Returns an emty array if no object exists.

Parameters:
productId - productId or -1 for all products
languageId - languageId or -1 for all languages
feedType - feedType or -1 for all feed types
Returns:
Returns an array of AdminProductFeedItem objects
Throws:
org.apache.torque.TorqueException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException

validateProductFeedItem

void validateProductFeedItem(AdminProductFeedItem feedItem)
                             throws KKAdminException
Validate a Product Feed Item. Throws an exception if the validation fails.

Parameters:
feedItem - the Product Feed Item
Throws:
KKAdminException - thrown if the validation fails

getGooglePublisher

PublishProductsIf getGooglePublisher()
                                     throws KKAdminException
Returns the Google Publisher for this store

Returns:
Returns the Google Publisher for this store
Throws:
KKAdminException

refreshConfigs

void refreshConfigs()
                    throws java.lang.Exception
Refresh the configuration of the Manager

Throws:
java.lang.Exception

useGoogleShopping

boolean useGoogleShopping()
                          throws KKAdminException
Returns true if Google Shopping can be used, otherwise it returns false

Returns:
Returns true if Google Base can be used, otherwise it returns false
Throws:
KKAdminException


Copyright © 2011 DS Data Systems UK Ltd.