|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminDataIntegrityMgr
public class AdminDataIntegrityMgr
The AdminDataIntegrityMgr - for checking Data Integrity
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
AdminBaseMgr.StaticData |
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
the log |
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir |
Constructor Summary | |
---|---|
AdminDataIntegrityMgr(KKAdminIf eng)
Constructor |
Method Summary | |
---|---|
boolean |
checkCustomerGroups(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Customer Groups |
boolean |
checkDataIntegrity(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of data in the specified area in the KonaKart database |
boolean |
checkMiscItemTypes(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Misc Item Types |
boolean |
checkOrderStatuses(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Order Statuses |
private java.lang.String |
custGroupHashKey(AdminCustomerGroup cg)
|
private java.lang.String |
custGroupHashKey(int cgId,
int langId)
|
private AdminCustomerGroup[] |
getAllCustomerGroups()
This returns all the CustomerGroups in the database - but be careful because it will return rows for languages that may not be available in the current mode. |
private AdminMiscItemType[] |
getAllMiscItemTypes()
This returns all the Misc Item Types in the database - visible to the current store. |
private AdminOrderStatus[] |
getAllOrderStatuses()
This returns all the Order Statuses in the database - but be careful because it will return rows for languages that may not be available in the current mode. |
private java.lang.String |
miscItemTypeHashKey(AdminMiscItemType mit)
|
private java.lang.String |
miscItemTypeHashKey(int mitId,
int langId)
|
private java.lang.String |
orderStatusHashKey(AdminOrderStatus os)
|
private java.lang.String |
orderStatusHashKey(int osId,
int langId)
|
void |
refreshConfigs()
Refresh the configuration of the Admin Data Integrity Manager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public AdminDataIntegrityMgr(KKAdminIf eng) throws java.lang.Exception
eng
-
java.lang.Exception
Method Detail |
---|
public boolean checkDataIntegrity(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
AdminDataIntegrityMgrIf
checkDataIntegrity
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity check
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public boolean checkOrderStatuses(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkOrderStatuses
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity check
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
private java.lang.String orderStatusHashKey(AdminOrderStatus os)
private java.lang.String orderStatusHashKey(int osId, int langId)
private AdminOrderStatus[] getAllOrderStatuses() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public boolean checkCustomerGroups(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkCustomerGroups
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity check
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
private java.lang.String custGroupHashKey(AdminCustomerGroup cg)
private java.lang.String custGroupHashKey(int cgId, int langId)
private AdminCustomerGroup[] getAllCustomerGroups() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public boolean checkMiscItemTypes(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkMiscItemTypes
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity check
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
private java.lang.String miscItemTypeHashKey(AdminMiscItemType mit)
private java.lang.String miscItemTypeHashKey(int mitId, int langId)
private AdminMiscItemType[] getAllMiscItemTypes() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public void refreshConfigs() throws java.lang.Exception
refreshConfigs
in class AdminBaseMgr
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |