public class AdminSecurityMgr extends AdminBaseMgr implements AdminSecurityMgrIf
Modifier and Type | Class and Description |
---|---|
protected class |
AdminSecurityMgr.LoginAttempt
Class that contains the login attempt, information for a user so that we can block hackers
|
protected class |
AdminSecurityMgr.SessionData
Class that contains the login attempt, information for a user so that we can block hackers
|
protected class |
AdminSecurityMgr.StaticData
Used to store the static data of this manager
|
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_SESSION_DURATION |
private static int |
DEFAULT_SESSION_UPDATE_THRESHOLD |
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.lang.String |
mutex
mutex
|
protected static java.util.Map<java.lang.String,AdminSecurityMgr.StaticData> |
staticDataHM
Hash Map that contains the static data
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminSecurityMgr(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addApiCallsToRole(AdminApiCall[] apiCalls,
int roleId)
Adds the array of AdminApiCall objects to the role identified by the roleId parameter.
|
void |
addCustomDataToSession(java.lang.String sessionId,
java.lang.String data,
int position)
Implemented in AdminSecurityMgrEE
|
void |
addPanelsToRole(AdminPanel[] panels,
int roleId)
Adds the array of AdminPanel objects to the role identified by the roleId parameter.
|
void |
addRolesToUser(AdminRole[] roles,
int userId)
Adds the array of AdminRole objects to the user identified by the userId parameter.
|
protected void |
addSelectColumns(com.konakart.db.KKCriteria c)
Add select columns to the criteria
|
protected java.lang.String |
byteToHex(byte data)
Utility method
|
void |
changePassword(int custId,
java.lang.String currentPassword,
java.lang.String newPassword)
The method ensures that the current password is correct, and then changes it with the new
password if that new password is validated successfully against the rules in place.
|
protected int |
checkPassword(java.lang.String eMail,
java.lang.String password)
The customer is searched for using his email as the key.
|
protected int |
checkPasswordFromDatabase(java.lang.String user,
java.lang.String password)
The customer is searched for using his email as the key.
|
int |
checkSession(java.lang.String sessionId,
java.lang.String apiCall)
The given sessionId is checked to see whether it exists and whether it is has timed out.
|
java.lang.String |
createSessionId()
create a sessionId string
|
void |
deleteApiCall(int apiCallId)
Deletes the apiCallId identified by the apiCallId parameter.
|
int |
deleteExpiredSessions()
Deletes all sessions that have expired.
|
void |
deletePanel(int panelId)
Deletes the panel identified by the panelId parameter.
|
void |
deleteRole(int roleId)
Deletes the role identified by the roleId parameter.
|
void |
editApiCall(AdminApiCall apiCall)
Edit an ApiCall.
|
void |
editPanel(AdminPanel panel)
Edit a Panel.
|
void |
editRole(AdminRole role)
Edit a Role.
|
java.lang.String |
encrypt(java.lang.String password)
Encrypt the password using the Security.envrypt() method.
|
protected AdminLoginIntegrationMgrInterface |
getAdminLoginIntegMgrInstanceByName(java.lang.String className)
Called to instantiate an AdminLoginIntegrationMgr.
|
protected AdminLoginIntegrationMgrInterface |
getAdminLoginIntegrationMgr()
Used to get an instance of the AdminLoginIntegrationMgr
|
AdminApiCall[] |
getAllApiCalls()
Retrieves all apiCalls in an array
|
AdminPanel[] |
getAllPanels()
Retrieves all panels in an array
|
AdminRole[] |
getAllRoles()
Returns all roles
|
AdminApiCall |
getApiCall(int apiCallId)
Returns the AdminApiCall referenced by the apiCallId.
|
protected java.util.HashMap<java.lang.String,java.lang.String> |
getAPICallHashMap(AdminRole[] roles)
Get the API calls that the user can access, in the form of a hash map
|
AdminApiCall[] |
getApiCallsPerRole(int roleId)
Retrieves an array of AdminApiCall objects for the role.
|
java.lang.String |
getCustomDataFromSession(java.lang.String sessionId,
int position)
Implemented in AdminSecurityMgrEE
|
protected int |
getExpiryTimeInSecs()
Utility method to return the expiry time in minutes calculated from now.
|
protected AdminLDAPMgrIf |
getLDAPMgr()
Used to get an instance of the LDAPMgr
|
AdminPanel |
getPanel(int panelId)
Returns the AdminPanel referenced by the panelId.
|
AdminPanel[] |
getPanelsPerRole(int roleId)
Retrieves an array of AdminPanel objects for the role.
|
AdminRole |
getRole(int roleId)
Returns the AdminRole referenced by the roleId.
|
AdminRole[] |
getRolesPerUser(int userId)
Retrieves an array of AdminRole objects for the user.
|
AdminSession |
getSession(java.lang.String sessionId)
Retrieves the session object for the specified sessionId
|
protected int |
getSessionDurationInSecs()
Utility method to return the session duration in seconds.
|
protected int |
getSessionUpdateThresholdInSecs()
Utility method to return the session duration in seconds.
|
int |
getTimeInSecs()
Utility method to return the current time in seconds
|
int |
insertApiCall(AdminApiCall apiCall)
Insert a new apiCall.
|
int |
insertPanel(AdminPanel panel)
Insert a new Panel.
|
int |
insertRole(AdminRole role)
Insert a new Role.
|
protected void |
insertSessionId(java.lang.String sessionId,
int expiryInSecs,
int customerId)
Insert the sessionId passed in as a parameter
|
boolean |
isSuperUser(int userId)
Returns true if the user has a superUser role otherwise false
|
protected boolean |
isUserBlocked(java.lang.String user)
Is the user blocked?
|
boolean |
isUserSuperUser(int userId)
Determines whether or not the user with the specified userId is a Super User.
|
java.lang.String |
login(java.lang.String user,
java.lang.String password)
Returns a session id if successful.
|
void |
logout(java.lang.String sessionId)
Used to logout the user with the specified sessionId
|
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager
|
void |
removeApiCallsFromRole(AdminApiCall[] apiCalls,
int roleId)
Removes the array of AdminApiCall objects from the role identified by the roleId parameter.
|
void |
removePanelsFromRole(AdminPanel[] panels,
int roleId)
Removes the array of AdminPanel objects from the role identified by the roleId parameter.
|
void |
removeRolesFromUser(AdminRole[] roles,
int userId)
Removes the array of AdminRole objects from the user identified by the userId parameter.
|
protected void |
removeSession(java.lang.String sessionId)
Remove the specified session from the database
|
protected void |
removeUser(java.lang.String user)
Removes the user from the hash map
|
boolean |
sessionIdRequired(java.lang.String apiCall) |
protected void |
setUpSecurityData(int userId)
Put the API Calls that the user can access in the hash table.
|
protected void |
setUpSessionData(int userId)
Set up the SessionData for the user.
|
protected char |
toHexChar(int i)
Utility method
|
addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkAPICallEnabled, checkIntInRange, checkIntIsSet, checkRequired, executeQuery, executeQuery, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminContentMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustPwdHistMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminEngineCacheMgr, getAdminEventMgr, getAdminExecuteMgr, getAdminFileMgr, getAdminFilterMgr, getAdminHtmlMgr, getAdminImportMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminMiscPriceMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminServletMgr, getAdminShipmentMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminSuggestionMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getDebugStackTraceExclusions, getEmailThreadGracefulShutdownTimeout, getExportMgr, getExportMgr, getExportXMLData, getIntFromString, getKkAdminPropsFilePath, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getNewCriteria, getNewCriteria, getOtherModuleByName, getPostSearchText, getPreSearchText, getProductsToCategoresCriteria, getPropertyValue, getPropertyValue, getPropertyValueAsBool, getPropertyValueAsInt, getPropertyValueAsLong, getRecordCount, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isCommunity, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, isUnix, isWindows, manageException, manageThrowable, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNow
protected static org.apache.commons.logging.Log log
private static final int DEFAULT_SESSION_DURATION
private static final int DEFAULT_SESSION_UPDATE_THRESHOLD
protected static java.lang.String mutex
protected static java.util.Map<java.lang.String,AdminSecurityMgr.StaticData> staticDataHM
public AdminSecurityMgr(KKAdminIf eng) throws java.lang.Exception
eng
- the KKAdmin enginejava.lang.Exception
- an unexpected exceptionprotected void setUpSecurityData(int userId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
userId
- the userIdKKAdminException
- unexpected exception in the KonaKart Admin Enginecom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)protected void setUpSessionData(int userId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
userId
- the userIdKKAdminException
- unexpected exception in the KonaKart Admin Enginecom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)protected java.util.HashMap<java.lang.String,java.lang.String> getAPICallHashMap(AdminRole[] roles)
roles
- the rolespublic java.lang.String login(java.lang.String user, java.lang.String password) throws java.lang.Exception
login
in interface AdminSecurityMgrIf
user
- the userpassword
- the passwordjava.lang.Exception
- an unexpected exceptionprotected void insertSessionId(java.lang.String sessionId, int expiryInSecs, int customerId) throws org.apache.torque.TorqueException, KKAdminException
sessionId
- the sessionIdexpiryInSecs
- the expiryInSecscustomerId
- the customerIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic java.lang.String createSessionId()
createSessionId
in interface AdminSecurityMgrIf
public void logout(java.lang.String sessionId) throws java.lang.Exception
logout
in interface AdminSecurityMgrIf
sessionId
- The session Id of the logged in userjava.lang.Exception
- an unexpected exceptionprotected void removeSession(java.lang.String sessionId) throws java.lang.Exception
sessionId
- The session Id of the logged in userjava.lang.Exception
- an unexpected exceptionprotected int checkPasswordFromDatabase(java.lang.String user, java.lang.String password) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, java.security.NoSuchAlgorithmException, KKAdminException
user
- the userpassword
- the passwordorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)java.security.NoSuchAlgorithmException
- an unexpected NoSuchAlgorithmException exceptionKKAdminException
- unexpected exception in the KonaKart Admin Engineprotected boolean isUserBlocked(java.lang.String user) throws KKAdminException
user
- the userKKAdminException
- unexpected exception in the KonaKart Admin Enginepublic boolean isSuperUser(int userId) throws KKAdminException
isSuperUser
in interface AdminSecurityMgrIf
userId
- the userId (customerId) of the user to checkKKAdminException
- unexpected exception in the KonaKart Admin Engineprotected void removeUser(java.lang.String user) throws KKAdminException
user
- the userKKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminSession getSession(java.lang.String sessionId) throws java.lang.Exception
getSession
in interface AdminSecurityMgrIf
sessionId
- the session to readjava.lang.Exception
- an unexpected exceptionpublic int checkSession(java.lang.String sessionId, java.lang.String apiCall) throws java.lang.Exception
checkSession
in interface AdminSecurityMgrIf
sessionId
- the sessionIdapiCall
- the apiCalljava.lang.Exception
- an unexpected exceptionpublic boolean sessionIdRequired(java.lang.String apiCall)
sessionIdRequired
in interface AdminSecurityMgrIf
apiCall
- the API callpublic void changePassword(int custId, java.lang.String currentPassword, java.lang.String newPassword) throws java.lang.Exception
changePassword
in interface AdminSecurityMgrIf
custId
- the customer Id of the customer whose password to changecurrentPassword
- current passwordnewPassword
- new passwordjava.lang.Exception
- an unexpected exceptionprotected int checkPassword(java.lang.String eMail, java.lang.String password) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, java.security.NoSuchAlgorithmException, KKAdminException
eMail
- the eMailpassword
- the passwordorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)java.security.NoSuchAlgorithmException
- an unexpected NoSuchAlgorithmException exceptionKKAdminException
- unexpected exception in the KonaKart Admin Enginepublic int deleteExpiredSessions() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
deleteExpiredSessions
in interface AdminSecurityMgrIf
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprotected int getExpiryTimeInSecs() throws KKAdminException
KKAdminException
- unexpected exception in the KonaKart Admin Engineprotected int getSessionDurationInSecs() throws KKAdminException
KKAdminException
- unexpected exception in the KonaKart Admin Engineprotected int getSessionUpdateThresholdInSecs() throws KKAdminException
KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic int getTimeInSecs()
getTimeInSecs
in interface AdminSecurityMgrIf
public java.lang.String encrypt(java.lang.String password) throws java.security.NoSuchAlgorithmException
encrypt
in interface AdminSecurityMgrIf
password
- the passwordjava.security.NoSuchAlgorithmException
- an unexpected NoSuchAlgorithmException exceptionprotected java.lang.String byteToHex(byte data)
data
- the dataprotected char toHexChar(int i)
i
- the ipublic AdminRole[] getRolesPerUser(int userId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getRolesPerUser
in interface AdminSecurityMgrIf
userId
- the userId of the user whose roles and panels are returned. If the userId is 0,
all roles and all panels are returned.org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic boolean isUserSuperUser(int userId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
userId
- the userId of the user to check. If the user with the specified userId isn't found
an exception is returned.org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminRole[] getAllRoles() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getAllRoles
in interface AdminSecurityMgrIf
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminPanel[] getPanelsPerRole(int roleId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getPanelsPerRole
in interface AdminSecurityMgrIf
roleId
- the roleIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminApiCall[] getApiCallsPerRole(int roleId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getApiCallsPerRole
in interface AdminSecurityMgrIf
roleId
- the roleIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminPanel[] getAllPanels() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getAllPanels
in interface AdminSecurityMgrIf
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminApiCall[] getAllApiCalls() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getAllApiCalls
in interface AdminSecurityMgrIf
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic int insertRole(AdminRole role) throws org.apache.torque.TorqueException, KKAdminException
insertRole
in interface AdminSecurityMgrIf
role
- the roleorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic void editRole(AdminRole role) throws org.apache.torque.TorqueException, KKAdminException
editRole
in interface AdminSecurityMgrIf
role
- the roleorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprotected void addSelectColumns(com.konakart.db.KKCriteria c)
c
- the cpublic AdminRole getRole(int roleId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getRole
in interface AdminSecurityMgrIf
roleId
- the roleIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic void deleteRole(int roleId) throws org.apache.torque.TorqueException, KKAdminException
deleteRole
in interface AdminSecurityMgrIf
roleId
- the roleIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic void addRolesToUser(AdminRole[] roles, int userId) throws java.lang.Exception
addRolesToUser
in interface AdminSecurityMgrIf
roles
- the rolesuserId
- the userIdjava.lang.Exception
- an unexpected exceptionpublic void removeRolesFromUser(AdminRole[] roles, int userId) throws java.lang.Exception
removeRolesFromUser
in interface AdminSecurityMgrIf
roles
- the rolesuserId
- the userIdjava.lang.Exception
- an unexpected exceptionpublic int insertPanel(AdminPanel panel) throws org.apache.torque.TorqueException, KKAdminException
insertPanel
in interface AdminSecurityMgrIf
panel
- the panelorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic int insertApiCall(AdminApiCall apiCall) throws org.apache.torque.TorqueException, KKAdminException
insertApiCall
in interface AdminSecurityMgrIf
apiCall
- the apiCallorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic void editPanel(AdminPanel panel) throws org.apache.torque.TorqueException, KKAdminException
editPanel
in interface AdminSecurityMgrIf
panel
- the panelorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic void editApiCall(AdminApiCall apiCall) throws org.apache.torque.TorqueException, KKAdminException
editApiCall
in interface AdminSecurityMgrIf
apiCall
- the apiCallorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic void deletePanel(int panelId) throws org.apache.torque.TorqueException, KKAdminException
deletePanel
in interface AdminSecurityMgrIf
panelId
- the panelIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic void deleteApiCall(int apiCallId) throws org.apache.torque.TorqueException, KKAdminException
deleteApiCall
in interface AdminSecurityMgrIf
apiCallId
- the apiCallIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminPanel getPanel(int panelId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getPanel
in interface AdminSecurityMgrIf
panelId
- the panelIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminApiCall getApiCall(int apiCallId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getApiCall
in interface AdminSecurityMgrIf
apiCallId
- the apiCallIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic void addPanelsToRole(AdminPanel[] panels, int roleId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
addPanelsToRole
in interface AdminSecurityMgrIf
panels
- the panelsroleId
- the roleIdKKAdminException
- unexpected exception in the KonaKart Admin Engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public void addApiCallsToRole(AdminApiCall[] apiCalls, int roleId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
addApiCallsToRole
in interface AdminSecurityMgrIf
apiCalls
- the apiCallsroleId
- the roleIdKKAdminException
- unexpected exception in the KonaKart Admin Engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public void removePanelsFromRole(AdminPanel[] panels, int roleId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
removePanelsFromRole
in interface AdminSecurityMgrIf
panels
- the panelsroleId
- the roleIdKKAdminException
- unexpected exception in the KonaKart Admin Engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public void removeApiCallsFromRole(AdminApiCall[] apiCalls, int roleId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
removeApiCallsFromRole
in interface AdminSecurityMgrIf
apiCalls
- the apiCallsroleId
- the roleIdKKAdminException
- unexpected exception in the KonaKart Admin Engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)protected AdminLoginIntegrationMgrInterface getAdminLoginIntegrationMgr()
protected AdminLDAPMgrIf getLDAPMgr()
protected AdminLoginIntegrationMgrInterface getAdminLoginIntegMgrInstanceByName(java.lang.String className) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
className
- the classNamejava.lang.IllegalAccessException
- an unexpected IllegalAccessException exceptionjava.lang.InstantiationException
- an unexpected InstantiationException exceptionjava.lang.ClassNotFoundException
- an unexpected ClassNotFoundException exceptionjava.lang.reflect.InvocationTargetException
- an unexpected InvocationTargetException exceptionjava.lang.IllegalArgumentException
- an unexpected IllegalArgumentException exceptionpublic void refreshConfigs() throws KKAdminException
refreshConfigs
in interface AdminSecurityMgrIf
refreshConfigs
in class AdminBaseMgr
KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic void addCustomDataToSession(java.lang.String sessionId, java.lang.String data, int position) throws org.apache.torque.TorqueException, KKAdminException
addCustomDataToSession
in interface AdminSecurityMgrIf
sessionId
- the sessionIddata
- the dataposition
- the positionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic java.lang.String getCustomDataFromSession(java.lang.String sessionId, int position) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getCustomDataFromSession
in interface AdminSecurityMgrIf
sessionId
- the sessionIdposition
- the positionKKAdminException
- unexpected exception in the KonaKart Admin Engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)Copyright © 2018 DS Data Systems UK Ltd.