com.atlassian.bamboo.user
Interface LoginInformationManager

All Known Implementing Classes:
LoginInformationManagerImpl

public interface LoginInformationManager


Field Summary
static java.lang.String BEAN_ID
           
 
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.
 

Field Detail

BEAN_ID

static final java.lang.String BEAN_ID
See Also:
Constant Field Values
Method Detail

isElevatedSecurityCheckRequired

boolean isElevatedSecurityCheckRequired(java.lang.String userName)
Returns true when CAPTCHA is required for this user.

Parameters:
userName -
Returns:
true when CAPTCHA is required for this user.

incrementFailedCountAndCheckThreshold

boolean incrementFailedCountAndCheckThreshold(java.lang.String userName)
Returns true when CAPTCHA would be required the next time this user authenticates.

Parameters:
userName -
Returns:
true when CAPTCHA would be required the next time this user authenticates.

getFailedLoginAttemptsCount

int getFailedLoginAttemptsCount(@Nullable
                                java.lang.String userName)
Get number of failed login attempts for user

Parameters:
userName -
Returns:

resetFailedLoginAttemptsCount

void resetFailedLoginAttemptsCount(@Nullable
                                   java.lang.String userName)
Reset number of failed login attempts for user.

Parameters:
userName -

getAllLoginInformationRecords

java.util.Iterator<LoginInformation> getAllLoginInformationRecords()
For use during the export to XML.

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

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

injectLoginInformation

void injectLoginInformation(LoginInformation object)
For use during the import from XML only.

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.