Class BaseLoginCommand<F extends BaseForm>
java.lang.Object
com.echothree.util.server.control.BaseCommand
com.echothree.util.server.control.BaseSimpleCommand<F>
com.echothree.control.user.authentication.server.command.BaseLoginCommand<F>
- All Implemented Interfaces:
ExecutionErrorAccumulator
,ExecutionWarningAccumulator
,SecurityMessageAccumulator
- Direct Known Subclasses:
CreateUserLoginCommand
,CustomerLoginCommand
,DeleteUserLoginCommand
,EmployeeLoginCommand
,ResetLockoutCommand
,SetPasswordCommand
,VendorLoginCommand
-
Field Summary
Fields inherited from class com.echothree.util.server.control.BaseSimpleCommand
form
Fields inherited from class com.echothree.util.server.control.BaseCommand
session
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseLoginCommand
(UserVisitPK userVisitPK, F form, CommandSecurityDefinition commandSecurityDefinition, List<FieldDefinition> formFieldDefinition) Creates a new instance of BaseLoginCommand -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addRemoteInet4AddressToParty
(Party party, Integer remoteInet4Address) protected UserLoginPasswordString
checkPassword
(String password, Party party, String userLoginPasswordTypeName, boolean deleteOnSuccess) protected boolean
checkPasswords
(UserLoginStatus userLoginStatus, String password, Party party, boolean doStatusChecks) protected void
clearLoginFailures
(UserLoginStatus userLoginStatus) protected String
getSecurityRoleGroupName
(PartyType partyType) protected void
successfulLogin
(UserLoginStatus userLoginStatus, Party party, PartyRelationship partyRelationship, Integer remoteInet4Address) protected void
unsuccessfulLogin
(UserLoginStatus userLoginStatus) Methods inherited from class com.echothree.util.server.control.BaseSimpleCommand
canQueryByGraphQl, getForm, getFormFieldDefinitions, setupPreferredClobMimeType, setupSession, setupValidator, validate, validate
Methods inherited from class com.echothree.util.server.control.BaseCommand
addExecutionError, addExecutionError, addExecutionWarning, addExecutionWarning, addSecurityMessage, addSecurityMessage, canSpecifyParty, checkCommandSecurityDefinition, checkOptionalSecurityRoles, execute, getBaseResultAfterErrors, getCheckIdentityVerifiedTime, getCommandName, getCommandSecurityDefinition, getCompanyParty, getComponentVendorName, getCoreControl, getEntityInstanceByBasePK, getExecutionErrors, getExecutionWarnings, getInsufficientSecurityResult, getLog, getLogCommand, getParty, getPartyPK, getPartyType, getPartyTypeName, getPreferredCurrency, getPreferredCurrency, getPreferredDateTimeFormat, getPreferredDateTimeFormat, getPreferredLanguage, getPreferredLanguage, getPreferredTimeZone, getPreferredTimeZone, getSecurityMessages, getSession, getUpdateLastCommandTime, getUserControl, getUserSession, getUserVisit, getUserVisitForUpdate, getUserVisitPK, hasExecutionErrors, hasExecutionWarnings, hasSecurityMessages, initSession, removeFilteredTransferProperty, removeOption, run, runAsync, security, selfOnly, sendEvent, sendEvent, sendEvent, setCheckIdentityVerifiedTime, setLogCommand, setUpdateLastCommandTime, setUserVisitPK, teardownSession
-
Constructor Details
-
BaseLoginCommand
protected BaseLoginCommand(UserVisitPK userVisitPK, F form, CommandSecurityDefinition commandSecurityDefinition, List<FieldDefinition> formFieldDefinition) Creates a new instance of BaseLoginCommand
-
-
Method Details
-
checkPassword
protected UserLoginPasswordString checkPassword(String password, Party party, String userLoginPasswordTypeName, boolean deleteOnSuccess) -
checkPasswords
protected boolean checkPasswords(UserLoginStatus userLoginStatus, String password, Party party, boolean doStatusChecks) -
getSecurityRoleGroupName
-
clearLoginFailures
-
addRemoteInet4AddressToParty
-
successfulLogin
protected void successfulLogin(UserLoginStatus userLoginStatus, Party party, PartyRelationship partyRelationship, Integer remoteInet4Address) -
unsuccessfulLogin
-