com.atlassian.bamboo.user
Class LoginInformationManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.user.LoginInformationManagerImpl
All Implemented Interfaces:
LoginInformationManager

public class LoginInformationManagerImpl
extends java.lang.Object
implements LoginInformationManager


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.user.LoginInformationManager
BEAN_ID
 
Constructor Summary
LoginInformationManagerImpl(LoginInformationDao loginInformationDao, AdministrationConfigurationManager administrationConfigurationManager)
           
 
Method Summary
 java.util.Iterator<LoginInformation> getAllLoginInformationRecords()
          For use during the export to XML.
 int getFailedLoginAttemptsCount(java.lang.String userName)
          Get number of failed login attempts for user
 boolean incrementFailedCountAndCheckThreshold(java.lang.String userName)
          Returns true when CAPTCHA would be required the next time this user authenticates.
 void injectLoginInformation(LoginInformation object)
          For use during the import from XML only.
 boolean isElevatedSecurityCheckRequired(java.lang.String userName)
          Returns true when CAPTCHA is required for this user.
 void resetFailedLoginAttemptsCount(java.lang.String userName)
          Reset number of failed login attempts for user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginInformationManagerImpl

public LoginInformationManagerImpl(@NotNull
                                   LoginInformationDao loginInformationDao,
                                   @NotNull
                                   AdministrationConfigurationManager administrationConfigurationManager)
Method Detail

isElevatedSecurityCheckRequired

public boolean isElevatedSecurityCheckRequired(java.lang.String userName)
Description copied from interface: LoginInformationManager
Returns true when CAPTCHA is required for this user.

Specified by:
isElevatedSecurityCheckRequired in interface LoginInformationManager
Returns:
true when CAPTCHA is required for this user.

incrementFailedCountAndCheckThreshold

public boolean incrementFailedCountAndCheckThreshold(java.lang.String userName)
Description copied from interface: LoginInformationManager
Returns true when CAPTCHA would be required the next time this user authenticates.

Specified by:
incrementFailedCountAndCheckThreshold in interface LoginInformationManager
Returns:
true when CAPTCHA would be required the next time this user authenticates.

getFailedLoginAttemptsCount

public int getFailedLoginAttemptsCount(@Nullable
                                       java.lang.String userName)
Description copied from interface: LoginInformationManager
Get number of failed login attempts for user

Specified by:
getFailedLoginAttemptsCount in interface LoginInformationManager
Returns:

resetFailedLoginAttemptsCount

public void resetFailedLoginAttemptsCount(@Nullable
                                          java.lang.String userName)
Description copied from interface: LoginInformationManager
Reset number of failed login attempts for user.

Specified by:
resetFailedLoginAttemptsCount in interface LoginInformationManager

getAllLoginInformationRecords

public java.util.Iterator<LoginInformation> getAllLoginInformationRecords()
Description copied from interface: LoginInformationManager
For use during the export to XML.

Think twice (and change this JavaDoc) before using it for something else.

Specified by:
getAllLoginInformationRecords in interface LoginInformationManager
Returns:
Hibernate iterator over all records
See Also:
LoginInformationMapper.exportData(org.codehaus.staxmate.out.SMOutputElement), LoginInformationHibernateDao.getAllLoginInformationRecords()

injectLoginInformation

public void injectLoginInformation(LoginInformation object)
Description copied from interface: LoginInformationManager
For use during the import from XML only.

Specified by:
injectLoginInformation in interface LoginInformationManager
Parameters:
object - Object deserialized from XML - may be changed to something other than LoginInformationImpl.
See Also:
com.atlassian.bamboo.migration.stream.LoginInformationMapper#afterImportListItem(org.codehaus.staxmate.in.SMInputCursor, java.util.List, com.atlassian.bamboo.user.LoginInformation, long, net.sf.hibernate.Session)


Copyright © 2010 Atlassian. All Rights Reserved.