com.konakartadmin.bl
Class AdminSecurityMgrEE

java.lang.Object
  extended by com.konakartadmin.bl.AdminBaseMgr
      extended by com.konakartadmin.bl.AdminSecurityMgr
          extended by com.konakartadmin.bl.AdminSecurityMgrEE
All Implemented Interfaces:
AdminSecurityMgrIf

public class AdminSecurityMgrEE
extends AdminSecurityMgr
implements AdminSecurityMgrIf

Security Management


Nested Class Summary
 
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminSecurityMgr
AdminSecurityMgr.LoginAttempt, AdminSecurityMgr.SessionData, AdminSecurityMgr.StaticData
 
Field Summary
 
Fields inherited from class com.konakartadmin.bl.AdminSecurityMgr
ADMIN_USER_ID, DEFAULT_SESSION_DURATION, log, mutex, staticDataHM
 
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
 
Constructor Summary
AdminSecurityMgrEE(KKAdminIf eng)
          Constructor
 
Method Summary
 void addCustomDataToSession(java.lang.String sessionId, java.lang.String data, int position)
          A sessionId is created when a customer logs in to KonaKart using the login() API call.
 java.lang.String getCustomDataFromSession(java.lang.String sessionId, int position)
          A sessionId is created when a customer logs in to KonaKart using the login() API call.
 
Methods inherited from class com.konakartadmin.bl.AdminSecurityMgr
addApiCallsToRole, addPanelsToRole, addRolesToUser, byteToHex, changePassword, checkPassword, checkPasswordFromDatabase, checkSession, createSessionId, deleteApiCall, deleteExpiredSessions, deletePanel, deleteRole, editApiCall, editPanel, editRole, encrypt, getAdminLoginIntegMgrInstanceByName, getAdminLoginIntegrationMgr, getAllApiCalls, getAllPanels, getAllRoles, getApiCall, getAPICallHashMap, getApiCallsPerRole, getExpiryTimeInSecs, getLDAPMgr, getPanel, getPanelsPerRole, getRole, getRolesPerUser, getSession, getSessionDurationInSecs, getTimeInSecs, insertApiCall, insertPanel, insertRole, insertSessionId, isSuperUser, isUserBlocked, isUserSuperUser, login, logout, refreshConfigs, removeApiCallsFromRole, removePanelsFromRole, removeRolesFromUser, removeUser, setUpSecurityData, setUpSessionData, toHexChar
 
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
 
Methods inherited from interface com.konakartadmin.blif.AdminSecurityMgrIf
addApiCallsToRole, addPanelsToRole, addRolesToUser, changePassword, checkSession, deleteApiCall, deleteExpiredSessions, deletePanel, deleteRole, editApiCall, editPanel, editRole, encrypt, getAllApiCalls, getAllPanels, getAllRoles, getApiCall, getApiCallsPerRole, getPanel, getPanelsPerRole, getRole, getRolesPerUser, getSession, getTimeInSecs, insertApiCall, insertPanel, insertRole, isSuperUser, login, logout, refreshConfigs, removeApiCallsFromRole, removePanelsFromRole, removeRolesFromUser
 

Constructor Detail

AdminSecurityMgrEE

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

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

addCustomDataToSession

public void addCustomDataToSession(java.lang.String sessionId,
                                   java.lang.String data,
                                   int position)
                            throws org.apache.torque.TorqueException,
                                   KKAdminException
A sessionId is created when a customer logs in to KonaKart using the login() API call. This sessionId is persisted in the database in a table which has 5 custom fields. This method allows you to store data in these custom fields which can later be retrieved by using the sessionId as the key.

Specified by:
addCustomDataToSession in interface AdminSecurityMgrIf
Overrides:
addCustomDataToSession in class AdminSecurityMgr
Parameters:
sessionId - The sessionId
data - The data to be saved
position - This must be in the range of 1-5 to identify custom1 to custom5
Throws:
org.apache.torque.TorqueException
KKAdminException

getCustomDataFromSession

public java.lang.String getCustomDataFromSession(java.lang.String sessionId,
                                                 int position)
                                          throws KKAdminException,
                                                 org.apache.torque.TorqueException,
                                                 com.workingdogs.village.DataSetException
A sessionId is created when a customer logs in to KonaKart using the login() API call. This sessionId is persisted in the database in a table which has 5 custom fields. This method allows you to retrieve the data in these custom fields by passing the sessionId as the key and a pointer to identify the custom field to be used.

Specified by:
getCustomDataFromSession in interface AdminSecurityMgrIf
Overrides:
getCustomDataFromSession in class AdminSecurityMgr
Parameters:
sessionId - The sessionId
position - This must be in the range of 1-5 to identify custom1 to custom5
Returns:
Returns the custom data
Throws:
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException


Copyright © 2011 DS Data Systems UK Ltd.