public class UserFitsNavigatorHelper
- extends Object
This is a helper class for determining if a user fits in the navigator.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public UserFitsNavigatorHelper(UserPickerSearchService userPickerSearchService)
public String checkUser(String name)
- This method checks if the user exists and will fit in the navigator, and returns the value that should be shown
in the navigator. It first checks if the user exists under
the given name as the username but lowercased. If that fails and the user full name search
option is on, it checks if the user exists with the given name as the fullname or email, if it does, null is returned because
that means that the query will not fit in the simple navigator.
If the user is not found by any means, then the passed in name is returned.
name - the username or fullname of the user to search for
- the username of the user if found by username, null if found by the full name or the passed in name if not found.
public boolean isFullNameAndEmailSearchingEnabled()
Copyright © 2002-2009 Atlassian. All Rights Reserved.