com.konakartadmin.bl
Class AdminValidationMgr

java.lang.Object
  extended by com.konakartadmin.bl.AdminBaseMgr
      extended by com.konakartadmin.bl.AdminValidationMgr
All Implemented Interfaces:
AdminValidationMgrIf

public class AdminValidationMgr
extends AdminBaseMgr
implements AdminValidationMgrIf

The AdminValidationMgr - for Managing Validation for the Admin Application


Nested Class Summary
protected  class AdminValidationMgr.StaticData
          Used to store the static data of this manager
 
Field Summary
protected static java.lang.String CUSTOM_VALIDATION_FILE
          The name of the Custom Validation properties file
protected static org.apache.commons.logging.Log log
          the log
protected static java.lang.String mutex
           
protected static java.util.Map<java.lang.String,AdminValidationMgr.StaticData> staticDataHM
          Hash Map that contains the static data
 
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
 
Constructor Summary
AdminValidationMgr(KKAdminIf eng)
          Constructor
 
Method Summary
 AdminCustomValidator createCustomValidatorFromString(java.lang.String val)
          Create an AdminCustomValidator object from a string
 AdminCustomValidatorSet getCustomValidators()
          Gets an AdminCustomValidatorSet.
 void refreshConfigs()
          Refresh the configuration of the Admin Currency Manager
 
Methods inherited from class com.konakartadmin.bl.AdminBaseMgr
addInsertAttr, addInsertAttr, checkIntIsSet, checkRequired, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminHtmlMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminPublishProdMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getExportXMLData, getIntFromString, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getPostSearchText, getPreSearchText, getPropertyValue, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, manageException, removeCData, setAdminEng, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
the log


CUSTOM_VALIDATION_FILE

protected static final java.lang.String CUSTOM_VALIDATION_FILE
The name of the Custom Validation properties file

See Also:
Constant Field Values

mutex

protected static java.lang.String mutex

staticDataHM

protected static java.util.Map<java.lang.String,AdminValidationMgr.StaticData> staticDataHM
Hash Map that contains the static data

Constructor Detail

AdminValidationMgr

public AdminValidationMgr(KKAdminIf eng)
                   throws java.lang.Exception
Constructor

Parameters:
eng - KKAdmin engine
Throws:
java.lang.Exception
Method Detail

getCustomValidators

public AdminCustomValidatorSet getCustomValidators()
                                            throws KKAdminException
Gets an AdminCustomValidatorSet. If the property file value does not allow use of the cache we re-read the custom validation properties file every time this is called (useful in development). Otherwise we read the custom validation properties file just once the first time this is called.

Specified by:
getCustomValidators in interface AdminValidationMgrIf
Returns:
an AdminCustomValidatorSet object
Throws:
KKAdminException

createCustomValidatorFromString

public AdminCustomValidator createCustomValidatorFromString(java.lang.String val)
                                                     throws KKAdminException
Create an AdminCustomValidator object from a string

Specified by:
createCustomValidatorFromString in interface AdminValidationMgrIf
Parameters:
val - the string containing the validation definitions - typically, but not necessarily, comes from a properties file
Returns:
an AdminCustomValidator for the specified string
Throws:
KKAdminException - It there is a problem creating the AdmnCustomValidator

refreshConfigs

public void refreshConfigs()
                    throws KKAdminException
Refresh the configuration of the Admin Currency Manager

Specified by:
refreshConfigs in interface AdminValidationMgrIf
Overrides:
refreshConfigs in class AdminBaseMgr
Throws:
KKAdminException


Copyright © 2011 DS Data Systems UK Ltd.