|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void publishAllProducts(AdminPublishConfig adminPublishConfig) throws java.lang.Exception
adminPublishConfig
-
java.lang.Exception
void publishProduct(AdminProduct product, AdminPublishConfig adminPublishConfig) throws java.lang.Exception
product
- adminPublishConfig
-
java.lang.Exception
java.lang.String readProducts(AdminPublishConfig adminPublishConfig) throws java.lang.Exception
adminPublishConfig
-
java.lang.Exception
void removeAllProducts(AdminPublishConfig adminPublishConfig) throws java.lang.Exception
adminPublishConfig
-
java.lang.Exception
void removeProduct(int productId, AdminPublishConfig adminPublishConfig) throws java.lang.Exception
productId
- adminPublishConfig
-
java.lang.Exception
boolean shouldWePublishProduct(AdminProduct prod, int feedType)
prod
- feedType
- the feed type eg KKConstants.DATA_FEED_TYPE_GOOGLE
void insertProductFeedItem(AdminProductFeedItem feedItem) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
feedItem
- an AdminProductFeedItem object to insert
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
void deleteProductFeedItem(AdminProductFeedItem feedItem) throws org.apache.torque.TorqueException
feedItem
- an AdminProductFeedItem object to delete (only the keys need to be filled in)
org.apache.torque.TorqueException
void deleteAllProductFeedItems(int feedType) throws org.apache.torque.TorqueException
feedType
- the feed type of the records to delete
org.apache.torque.TorqueException
AdminProductFeedItem[] getProductFeedItems(int productId, int languageId, int feedType) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
productId
- productId or -1 for all productslanguageId
- languageId or -1 for all languagesfeedType
- feedType or -1 for all feed types
org.apache.torque.TorqueException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
void validateProductFeedItem(AdminProductFeedItem feedItem) throws KKAdminException
feedItem
- the Product Feed Item
KKAdminException
- thrown if the validation failsPublishProductsIf getGooglePublisher() throws KKAdminException
KKAdminException
void refreshConfigs() throws java.lang.Exception
java.lang.Exception
boolean useGoogleShopping() throws KKAdminException
KKAdminException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |