com.konakartadmin.app
Class XmlIoDataConfig

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

public class XmlIoDataConfig
extends java.lang.Object

Class that contains configuration parameters to configure the import/export of data from the KonaKart database.


Field Summary
private  boolean accessoryProducts
           
private  boolean addressFormats
           
private  boolean audit
           
private  boolean bundledProducts
           
private  boolean categories
           
private  boolean categoriesToTagGroups
           
private  boolean configurationGroups
           
private  boolean configurations
           
private  boolean countries
           
private  boolean coupons
           
private  boolean crossSellProducts
           
private  boolean currencies
           
private  boolean customerGroups
           
private  boolean customers
           
private  boolean customerTags
           
private  boolean customerTagsForCusts
           
private  java.util.HashMap<java.lang.String,AdminCustomValidator> customValidatorsHash
           
private  boolean dependentProducts
           
private  boolean digitalDownloads
           
private  boolean expressions
           
private  boolean geoZones
           
private  boolean ipnHistory
           
private  boolean languages
           
private  boolean manufacturers
           
private  boolean messages
           
private  boolean orders
           
private  boolean orderStatuses
           
private  boolean productCategories
           
private  boolean productOptions
           
private  boolean productOptionValues
           
private  boolean products
           
private  boolean productsToStores
           
private  boolean productTags
           
private  boolean reviews
           
private  boolean subZones
           
private  boolean tagGroups
           
private  boolean tagGroupToTags
           
private  boolean tags
           
private  boolean taxClasses
           
private  boolean taxRates
           
private  boolean upSellProducts
           
private  AdminCustomValidatorSet validatorSet
           
private  boolean wishLists
           
private  boolean zones
           
 
Constructor Summary
XmlIoDataConfig()
           
 
Method Summary
 java.util.HashMap<java.lang.String,AdminCustomValidator> getCustomValidatorsHash()
           
private  boolean getPropValue(org.apache.commons.configuration.PropertiesConfiguration xmlioConf, java.lang.String key)
           
 AdminCustomValidatorSet getValidatorSet()
           
 boolean isAccessoryProducts()
           
 boolean isAddressFormats()
           
 boolean isAudit()
           
 boolean isBundledProducts()
           
 boolean isCategories()
           
 boolean isCategoriesToTagGroups()
           
 boolean isConfigurationGroups()
           
 boolean isConfigurations()
           
 boolean isCountries()
           
 boolean isCoupons()
           
 boolean isCrossSellProducts()
           
 boolean isCurrencies()
           
 boolean isCustomerGroups()
           
 boolean isCustomers()
           
 boolean isCustomerTags()
           
 boolean isCustomerTagsForCusts()
           
 boolean isDependentProducts()
           
 boolean isDigitalDownloads()
           
 boolean isExpressions()
           
 boolean isGeoZones()
           
 boolean isIpnHistory()
           
 boolean isLanguages()
           
 boolean isManufacturers()
           
 boolean isMessages()
           
 boolean isOrders()
           
 boolean isOrderStatuses()
           
 boolean isProductCategories()
           
 boolean isProductOptions()
           
 boolean isProductOptionValues()
           
 boolean isProducts()
           
 boolean isProductsToStores()
           
 boolean isProductTags()
           
 boolean isReviews()
           
 boolean isSubZones()
           
 boolean isTagGroups()
           
 boolean isTagGroupToTags()
           
 boolean isTags()
           
 boolean isTaxClasses()
           
 boolean isTaxRates()
           
 boolean isUpSellProducts()
           
 boolean isWishLists()
           
 boolean isZones()
           
 void setAccessoryProducts(boolean accessoryProducts)
           
 void setAddressFormats(boolean addressFormats)
           
 void setAllFalse()
          Convenience method to set all the properties to false
 void setAllProperties(boolean val)
          Convenience method to set all the properties to the specified value (true or false)
 void setAllTrue()
          Convenience method to set all the properties to true
 void setAudit(boolean audit)
           
 void setBundledProducts(boolean bundledProducts)
           
 void setCategories(boolean categories)
           
 void setCategoriesToTagGroups(boolean categoriesToTagGroups)
           
 void setConfigurationGroups(boolean configurationGroups)
           
 void setConfigurations(boolean configurations)
           
 void setCountries(boolean countries)
           
 void setCoupons(boolean coupons)
           
 void setCrossSellProducts(boolean crossSellProducts)
           
 void setCurrencies(boolean currencies)
           
 void setCustomerGroups(boolean customerGroups)
           
 void setCustomers(boolean customers)
           
 void setCustomerTags(boolean customerTags)
           
 void setCustomerTagsForCusts(boolean customerTagsForCusts)
           
 void setCustomValidatorsHash(java.util.HashMap<java.lang.String,AdminCustomValidator> customValidatorsHash)
           
 void setDependentProducts(boolean dependentProducts)
           
 void setDigitalDownloads(boolean digitalDownloads)
           
 void setExpressions(boolean expressions)
           
 void setFromFile(java.lang.String confFile)
          Set the data objects to import/export from definitions specified in the specified configuration file.
 void setGeoZones(boolean geoZones)
           
 void setIpnHistory(boolean ipnHistory)
           
 void setLanguages(boolean languages)
           
 void setManufacturers(boolean manufacturers)
           
 void setMessages(boolean messages)
           
 void setOrders(boolean orders)
           
 void setOrderStatuses(boolean orderStatuses)
           
 void setProductCategories(boolean productCategories)
           
 void setProductOptions(boolean productOptions)
           
 void setProductOptionValues(boolean productOptionValues)
           
 void setProducts(boolean products)
           
 void setProductsToStores(boolean productsToStores)
           
 void setProductTags(boolean productTags)
           
 void setReviews(boolean reviews)
           
 void setSubZones(boolean subZones)
           
 void setTagGroups(boolean tagGroups)
           
 void setTagGroupToTags(boolean tagGroupToTags)
           
 void setTags(boolean tags)
           
 void setTaxClasses(boolean taxClasses)
           
 void setTaxRates(boolean taxRates)
           
 void setUpSellProducts(boolean upSellProducts)
           
 void setValidatorSet(AdminCustomValidatorSet validatorSet)
           
 void setWishlists(boolean wishLists)
           
 void setWishLists(boolean wishLists)
           
 void setZones(boolean zones)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

accessoryProducts

private boolean accessoryProducts

addressFormats

private boolean addressFormats

audit

private boolean audit

bundledProducts

private boolean bundledProducts

categories

private boolean categories

categoriesToTagGroups

private boolean categoriesToTagGroups

configurationGroups

private boolean configurationGroups

configurations

private boolean configurations

countries

private boolean countries

coupons

private boolean coupons

crossSellProducts

private boolean crossSellProducts

customerGroups

private boolean customerGroups

currencies

private boolean currencies

customers

private boolean customers

customerTags

private boolean customerTags

customerTagsForCusts

private boolean customerTagsForCusts

dependentProducts

private boolean dependentProducts

digitalDownloads

private boolean digitalDownloads

expressions

private boolean expressions

geoZones

private boolean geoZones

ipnHistory

private boolean ipnHistory

languages

private boolean languages

manufacturers

private boolean manufacturers

messages

private boolean messages

productOptions

private boolean productOptions

orderStatuses

private boolean orderStatuses

orders

private boolean orders

productCategories

private boolean productCategories

productOptionValues

private boolean productOptionValues

products

private boolean products

productTags

private boolean productTags

productsToStores

private boolean productsToStores

reviews

private boolean reviews

subZones

private boolean subZones

tagGroups

private boolean tagGroups

tagGroupToTags

private boolean tagGroupToTags

tags

private boolean tags

taxClasses

private boolean taxClasses

taxRates

private boolean taxRates

upSellProducts

private boolean upSellProducts

wishLists

private boolean wishLists

zones

private boolean zones

validatorSet

private AdminCustomValidatorSet validatorSet

customValidatorsHash

private java.util.HashMap<java.lang.String,AdminCustomValidator> customValidatorsHash
Constructor Detail

XmlIoDataConfig

public XmlIoDataConfig()
Method Detail

setFromFile

public void setFromFile(java.lang.String confFile)
                 throws KKAdminException,
                        com.konakart.app.KKException,
                        org.apache.commons.configuration.ConfigurationException
Set the data objects to import/export from definitions specified in the specified configuration file.

Parameters:
confFile - name of the Xml_io configuration file
Throws:
KKAdminException
com.konakart.app.KKException
org.apache.commons.configuration.ConfigurationException

getPropValue

private boolean getPropValue(org.apache.commons.configuration.PropertiesConfiguration xmlioConf,
                             java.lang.String key)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setAllTrue

public void setAllTrue()
Convenience method to set all the properties to true


setAllFalse

public void setAllFalse()
Convenience method to set all the properties to false


setAllProperties

public void setAllProperties(boolean val)
Convenience method to set all the properties to the specified value (true or false)

Parameters:
val - the boolean value to set all the properties to - i.e. true or false

isAccessoryProducts

public boolean isAccessoryProducts()
Returns:
the accessoryProducts

setAccessoryProducts

public void setAccessoryProducts(boolean accessoryProducts)
Parameters:
accessoryProducts - the accessoryProducts to set

isAudit

public boolean isAudit()
Returns:
the audit

setAudit

public void setAudit(boolean audit)
Parameters:
audit - the audit to set

isBundledProducts

public boolean isBundledProducts()
Returns:
the bundledProducts

setBundledProducts

public void setBundledProducts(boolean bundledProducts)
Parameters:
bundledProducts - the bundledProducts to set

isCategories

public boolean isCategories()
Returns:
the categories

setCategories

public void setCategories(boolean categories)
Parameters:
categories - the categories to set

isConfigurationGroups

public boolean isConfigurationGroups()
Returns:
the configurationGroups

setConfigurationGroups

public void setConfigurationGroups(boolean configurationGroups)
Parameters:
configurationGroups - the configurationGroups to set

isConfigurations

public boolean isConfigurations()
Returns:
the configurations

setConfigurations

public void setConfigurations(boolean configurations)
Parameters:
configurations - the configurations to set

isCountries

public boolean isCountries()
Returns:
the countries

setCountries

public void setCountries(boolean countries)
Parameters:
countries - the countries to set

isCoupons

public boolean isCoupons()
Returns:
the coupons

setCoupons

public void setCoupons(boolean coupons)
Parameters:
coupons - the coupons to set

isCrossSellProducts

public boolean isCrossSellProducts()
Returns:
the crossSellProducts

setCrossSellProducts

public void setCrossSellProducts(boolean crossSellProducts)
Parameters:
crossSellProducts - the crossSellProducts to set

isCustomerGroups

public boolean isCustomerGroups()
Returns:
the customerGroups

setCustomerGroups

public void setCustomerGroups(boolean customerGroups)
Parameters:
customerGroups - the customerGroups to set

isCurrencies

public boolean isCurrencies()
Returns:
the currencies

setCurrencies

public void setCurrencies(boolean currencies)
Parameters:
currencies - the currencies to set

isCustomers

public boolean isCustomers()
Returns:
the customers

setCustomers

public void setCustomers(boolean customers)
Parameters:
customers - the customers to set

isDependentProducts

public boolean isDependentProducts()
Returns:
the dependentProducts

setDependentProducts

public void setDependentProducts(boolean dependentProducts)
Parameters:
dependentProducts - the dependentProducts to set

isGeoZones

public boolean isGeoZones()
Returns:
the geoZones

setGeoZones

public void setGeoZones(boolean geoZones)
Parameters:
geoZones - the geoZones to set

isIpnHistory

public boolean isIpnHistory()
Returns:
the ipnHistory

setIpnHistory

public void setIpnHistory(boolean ipnHistory)
Parameters:
ipnHistory - the ipnHistory to set

isLanguages

public boolean isLanguages()
Returns:
the languages

setLanguages

public void setLanguages(boolean languages)
Parameters:
languages - the languages to set

isManufacturers

public boolean isManufacturers()
Returns:
the manufacturers

setManufacturers

public void setManufacturers(boolean manufacturers)
Parameters:
manufacturers - the manufacturers to set

isProductOptions

public boolean isProductOptions()
Returns:
the productOptions

setProductOptions

public void setProductOptions(boolean productOptions)
Parameters:
productOptions - the productOptions to set

isProductOptionValues

public boolean isProductOptionValues()
Returns:
the productOptionValues

setProductOptionValues

public void setProductOptionValues(boolean productOptionValues)
Parameters:
productOptionValues - the productOptionValues to set

isProducts

public boolean isProducts()
Returns:
the products

setProducts

public void setProducts(boolean products)
Parameters:
products - the products to set

isReviews

public boolean isReviews()
Returns:
the reviews

setReviews

public void setReviews(boolean reviews)
Parameters:
reviews - the reviews to set

isSubZones

public boolean isSubZones()
Returns:
the subZones

setSubZones

public void setSubZones(boolean subZones)
Parameters:
subZones - the subZones to set

isTagGroups

public boolean isTagGroups()
Returns:
the tagGroups

setTagGroups

public void setTagGroups(boolean tagGroups)
Parameters:
tagGroups - the tagGroups to set

isTagGroupToTags

public boolean isTagGroupToTags()
Returns:
the tagGroupToTags

setTagGroupToTags

public void setTagGroupToTags(boolean tagGroupToTags)
Parameters:
tagGroupToTags - the tagGroupToTags to set

isTags

public boolean isTags()
Returns:
the tags

setTags

public void setTags(boolean tags)
Parameters:
tags - the tags to set

isTaxClasses

public boolean isTaxClasses()
Returns:
the taxClasses

setTaxClasses

public void setTaxClasses(boolean taxClasses)
Parameters:
taxClasses - the taxClasses to set

isTaxRates

public boolean isTaxRates()
Returns:
the taxRates

setTaxRates

public void setTaxRates(boolean taxRates)
Parameters:
taxRates - the taxRates to set

isUpSellProducts

public boolean isUpSellProducts()
Returns:
the upSellProducts

setUpSellProducts

public void setUpSellProducts(boolean upSellProducts)
Parameters:
upSellProducts - the upSellProducts to set

isZones

public boolean isZones()
Returns:
the zones

setZones

public void setZones(boolean zones)
Parameters:
zones - the zones to set

isAddressFormats

public boolean isAddressFormats()
Returns:
the addressFormats

setAddressFormats

public void setAddressFormats(boolean addressFormats)
Parameters:
addressFormats - the addressFormats to set

isOrderStatuses

public boolean isOrderStatuses()
Returns:
the orderStatuses

setOrderStatuses

public void setOrderStatuses(boolean orderStatuses)
Parameters:
orderStatuses - the orderStatuses to set

isProductsToStores

public boolean isProductsToStores()
Returns:
the productsToStores

setProductsToStores

public void setProductsToStores(boolean productsToStores)
Parameters:
productsToStores - the productsToStores to set

isCategoriesToTagGroups

public boolean isCategoriesToTagGroups()
Returns:
the categoriesToTagGroups

setCategoriesToTagGroups

public void setCategoriesToTagGroups(boolean categoriesToTagGroups)
Parameters:
categoriesToTagGroups - the categoriesToTagGroups to set

isOrders

public boolean isOrders()
Returns:
the orders

setOrders

public void setOrders(boolean orders)
Parameters:
orders - the orders to set

isProductCategories

public boolean isProductCategories()
Returns:
the productCategories

setProductCategories

public void setProductCategories(boolean productCategories)
Parameters:
productCategories - the productCategories to set

isWishLists

public boolean isWishLists()
Returns:
the wishLists

setWishlists

public void setWishlists(boolean wishLists)
Parameters:
wishLists - the wishlists to set

getValidatorSet

public AdminCustomValidatorSet getValidatorSet()
Returns:
the validatorSet

setValidatorSet

public void setValidatorSet(AdminCustomValidatorSet validatorSet)
Parameters:
validatorSet - the validatorSet to set

getCustomValidatorsHash

public java.util.HashMap<java.lang.String,AdminCustomValidator> getCustomValidatorsHash()
Returns:
the customValidatorsHash

setCustomValidatorsHash

public void setCustomValidatorsHash(java.util.HashMap<java.lang.String,AdminCustomValidator> customValidatorsHash)
Parameters:
customValidatorsHash - the customValidatorsHash to set

isExpressions

public boolean isExpressions()
Returns:
the expressions

setExpressions

public void setExpressions(boolean expressions)
Parameters:
expressions - the expressions to set

setWishLists

public void setWishLists(boolean wishLists)
Parameters:
wishLists - the wishLists to set

isCustomerTags

public boolean isCustomerTags()
Returns:
the customerTags

setCustomerTags

public void setCustomerTags(boolean customerTags)
Parameters:
customerTags - the customerTags to set

isCustomerTagsForCusts

public boolean isCustomerTagsForCusts()
Returns:
the customerTagsForCusts

setCustomerTagsForCusts

public void setCustomerTagsForCusts(boolean customerTagsForCusts)
Parameters:
customerTagsForCusts - the customerTagsForCusts to set

isDigitalDownloads

public boolean isDigitalDownloads()
Returns:
the digitalDownloads

setDigitalDownloads

public void setDigitalDownloads(boolean digitalDownloads)
Parameters:
digitalDownloads - the digitalDownloads to set

isMessages

public boolean isMessages()
Returns:
the messages

setMessages

public void setMessages(boolean messages)
Parameters:
messages - the messages to set

isProductTags

public boolean isProductTags()
Returns:
the productTags

setProductTags

public void setProductTags(boolean productTags)
Parameters:
productTags - the productTags to set


Copyright © 2011 DS Data Systems UK Ltd.