com.atlassian.bamboo.user
Class LoginInformationManagerImpl

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

public class LoginInformationManagerImpl
extends Object
implements LoginInformationManager


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.user.LoginInformationManager
BEAN_ID
 
Constructor Summary
LoginInformationManagerImpl(LoginInformationDao loginInformationDao, AdministrationConfigurationAccessor administrationConfigurationAccessor)
           
 
Method Summary
 Iterator<LoginInformation> getAllLoginInformationRecords()
          For use during the export to XML.
 int getFailedLoginAttemptsCount(String userName)
          Get number of failed login attempts for user
 boolean incrementFailedCountAndCheckThreshold(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(String userName)
          Returns true when CAPTCHA is required for this user.
 void resetFailedLoginAttemptsCount(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
                                   AdministrationConfigurationAccessor administrationConfigurationAccessor)
Method Detail

isElevatedSecurityCheckRequired

public boolean isElevatedSecurityCheckRequired(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(@NotNull
                                                     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
                                       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
                                          String userName)
Description copied from interface: LoginInformationManager
Reset number of failed login attempts for user.

Specified by:
resetFailedLoginAttemptsCount in interface LoginInformationManager

getAllLoginInformationRecords

public 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:
com.atlassian.bamboo.migration.stream.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, org.hibernate.Session)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.