public class AdminCustomerPwdHistMgr extends AdminBaseMgr implements AdminCustomerPwdHistMgrIf
AdminBaseMgr.StaticData
Modifier and Type | Field and Description |
---|---|
private static int |
differentFromLastN |
private static int |
differentFromLastN_def |
private static int |
expiryDays |
private static int |
expiryDays_def |
private static boolean |
initialSetupCompleted |
protected static org.apache.commons.logging.Log |
log
the log
|
private static int |
maxLength |
private static int |
maxLength_def |
private static int |
minLength |
private static int |
minLength_def |
private static boolean |
mustContainLowerCase |
private static boolean |
mustContainLowerCase_def |
private static boolean |
mustContainNumeric |
private static boolean |
mustContainNumeric_def |
private static boolean |
mustContainSpecialChar |
private static boolean |
mustContainSpecialChar_def |
private static boolean |
mustContainUpperCase |
private static boolean |
mustContainUpperCase_def |
protected static java.lang.String |
mutex
Mutex
|
private static java.util.Set<java.lang.String> |
userPasswordsNeverExpire |
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminCustomerPwdHistMgr(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkPasswordValidity(java.lang.String password,
int userId)
Is the password valid?
|
void |
deleteCustomerPasswordHistoryById(int id)
Delete a customer password history record
|
AdminCustomerPasswordHistory[] |
getCustomerPasswordHistory(int userId,
int maxRows)
Get a maximum of maxRows CustomerPasswordHistory records belonging to the specified custId.
|
static int |
getDifferentFromLastN() |
static int |
getExpiryDays() |
static int |
getMaxLength() |
static int |
getMinLength() |
static java.util.Set<java.lang.String> |
getUserPasswordsNeverExpire() |
protected boolean |
hasLowerCaseChar(java.lang.String pwd)
Does the password contains a lower case character?
|
protected boolean |
hasNumericChar(java.lang.String pwd)
Does the password contains a numeric character?
|
boolean |
hasPasswordBeenUsedBefore(java.lang.String newPassword,
int userId)
Has the new password been used before?
|
boolean |
hasPasswordExpired(java.lang.String password,
int userId)
Has the customer's password expired?
|
protected boolean |
hasSpecialChar(java.lang.String pwd)
Does the password contains a special character?
|
protected boolean |
hasUpperCaseChar(java.lang.String pwd)
Does the password contains an upper case character?
|
int |
insertCustomerPasswordHistory(AdminCustomerPasswordHistory custPwdHist)
Inserts a customer password history record
|
static boolean |
isMustContainLowerCase() |
static boolean |
isMustContainNumeric() |
static boolean |
isMustContainSpecialChar() |
static boolean |
isMustContainUpperCase() |
void |
prunePasswordHistory(int custId)
Prune old CustomerPasswordHistory records.
|
void |
refreshConfigs()
Refresh the configuration of the Manager
|
static void |
setDifferentFromLastN(int differentFromLastN) |
static void |
setExpiryDays(int expiryDays) |
static void |
setMaxLength(int maxLength) |
static void |
setMinLength(int minLength) |
static void |
setMustContainLowerCase(boolean mustContainLowerCase) |
static void |
setMustContainNumeric(boolean mustContainNumeric) |
static void |
setMustContainSpecialChar(boolean mustContainSpecialChar) |
static void |
setMustContainUpperCase(boolean mustContainUpperCase) |
static void |
setUserPasswordsNeverExpire(java.util.Set<java.lang.String> userPasswordsNeverExpire) |
void |
updateCustomerPasswordHistory(AdminCustomerPasswordHistory custPwdHist)
Update a customer password history record - the Id and CustId fields are not updated but are
used to identify the record to update.
|
boolean |
userPasswordNeverExpires(java.lang.String user)
Is this a user whose password never expires?
|
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
protected static java.lang.String mutex
private static final boolean mustContainUpperCase_def
private static final boolean mustContainLowerCase_def
private static final boolean mustContainNumeric_def
private static final boolean mustContainSpecialChar_def
private static final int minLength_def
private static final int maxLength_def
private static final int expiryDays_def
private static final int differentFromLastN_def
private static boolean mustContainUpperCase
private static boolean mustContainLowerCase
private static boolean mustContainNumeric
private static boolean mustContainSpecialChar
private static int minLength
private static int maxLength
private static int expiryDays
private static int differentFromLastN
private static boolean initialSetupCompleted
private static java.util.Set<java.lang.String> userPasswordsNeverExpire
public AdminCustomerPwdHistMgr(KKAdminIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic int insertCustomerPasswordHistory(AdminCustomerPasswordHistory custPwdHist) throws KKAdminException
insertCustomerPasswordHistory
in interface AdminCustomerPwdHistMgrIf
custPwdHist
- the AdminCustomerPasswordHistory record to insertKKAdminException
- if theres's an unexpected problempublic void deleteCustomerPasswordHistoryById(int id) throws KKAdminException
deleteCustomerPasswordHistoryById
in interface AdminCustomerPwdHistMgrIf
id
- the id of the AdminCustomerPasswordHistory record to deleteKKAdminException
- if theres's an unexpected problempublic void updateCustomerPasswordHistory(AdminCustomerPasswordHistory custPwdHist) throws KKAdminException
updateCustomerPasswordHistory
in interface AdminCustomerPwdHistMgrIf
custPwdHist
- the AdminCustomerPasswordHistory record to updateKKAdminException
- if theres's an unexpected problempublic AdminCustomerPasswordHistory[] getCustomerPasswordHistory(int userId, int maxRows) throws KKAdminException
getCustomerPasswordHistory
in interface AdminCustomerPwdHistMgrIf
userId
- the userId whose records to returnmaxRows
- a maximum of this many records will be returnedKKAdminException
- if theres's an unexpected problempublic boolean checkPasswordValidity(java.lang.String password, int userId) throws KKAdminException
AdminCustomerPwdHistMgrIf
checkPasswordValidity
in interface AdminCustomerPwdHistMgrIf
password
- the new Password to check for validityuserId
- the user that the password belongs toKKAdminException
- if there's an unexpected problem or the password is found to be invalid. If the
password is found to be invalid the msgKey attribute of the KKAdminException will
contain a message catalogue key that references a message that explains why.protected boolean hasLowerCaseChar(java.lang.String pwd)
pwd
- the password to checkprotected boolean hasUpperCaseChar(java.lang.String pwd)
pwd
- the password to checkprotected boolean hasNumericChar(java.lang.String pwd)
pwd
- the password to checkprotected boolean hasSpecialChar(java.lang.String pwd)
pwd
- the password to checkpublic boolean userPasswordNeverExpires(java.lang.String user)
userPasswordNeverExpires
in interface AdminCustomerPwdHistMgrIf
user
- the username to checkpublic boolean hasPasswordExpired(java.lang.String password, int userId) throws KKAdminException
hasPasswordExpired
in interface AdminCustomerPwdHistMgrIf
password
- password in plain textuserId
- the user that the password belongs toKKAdminException
- if theres's an unexpected problempublic boolean hasPasswordBeenUsedBefore(java.lang.String newPassword, int userId) throws KKAdminException
hasPasswordBeenUsedBefore
in interface AdminCustomerPwdHistMgrIf
newPassword
- the new password that to checkuserId
- the userId that the password belongs toKKAdminException
- if theres's an unexpected problempublic void prunePasswordHistory(int custId) throws KKAdminException
prunePasswordHistory
in interface AdminCustomerPwdHistMgrIf
custId
- the customerId of the records to pruneKKAdminException
- if theres's an unexpected problempublic void refreshConfigs() throws java.lang.Exception
refreshConfigs
in interface AdminCustomerPwdHistMgrIf
refreshConfigs
in class AdminBaseMgr
java.lang.Exception
- an unexpected exceptionpublic static boolean isMustContainUpperCase()
public static void setMustContainUpperCase(boolean mustContainUpperCase)
mustContainUpperCase
- the mustContainUpperCase to setpublic static boolean isMustContainLowerCase()
public static void setMustContainLowerCase(boolean mustContainLowerCase)
mustContainLowerCase
- the mustContainLowerCase to setpublic static boolean isMustContainNumeric()
public static void setMustContainNumeric(boolean mustContainNumeric)
mustContainNumeric
- the mustContainNumeric to setpublic static boolean isMustContainSpecialChar()
public static void setMustContainSpecialChar(boolean mustContainSpecialChar)
mustContainSpecialChar
- the mustContainSpecialChar to setpublic static int getMinLength()
public static void setMinLength(int minLength)
minLength
- the minLength to setpublic static int getMaxLength()
public static void setMaxLength(int maxLength)
maxLength
- the maxLength to setpublic static int getExpiryDays()
public static void setExpiryDays(int expiryDays)
expiryDays
- the expiryDays to setpublic static int getDifferentFromLastN()
public static void setDifferentFromLastN(int differentFromLastN)
differentFromLastN
- the differentFromLastN to setpublic static java.util.Set<java.lang.String> getUserPasswordsNeverExpire()
public static void setUserPasswordsNeverExpire(java.util.Set<java.lang.String> userPasswordsNeverExpire)
userPasswordsNeverExpire
- the userPasswordsNeverExpire to setCopyright © 2018 DS Data Systems UK Ltd.