com.atlassian.confluence.user.actions
Class SearchUsersAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.user.actions.AbstractEntityPaginationAction
              extended by com.atlassian.confluence.user.actions.SearchUsersAction
All Implemented Interfaces:
Tabbed, WebInterface, MessageHolderAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable
Direct Known Subclasses:
BrowseUsersAction, UserPickerAction

public class SearchUsersAction
extends AbstractEntityPaginationAction
implements Tabbed

See Also:
Serialized Form

Field Summary
protected  String emailTerm
           
protected  String fullnameTerm
           
protected  boolean isLicensedToAddMoreUsers
           
protected  String licenseError
           
protected  String operator
           
protected  int resultsPerPage
           
protected  SearchEntitiesManager searchEntitiesManager
           
protected  String searchTerm
           
protected  boolean supportsSimpleSearch
           
static String TERM_DELIM_CHARS
           
protected  String usernameTerm
           
 
Fields inherited from class com.atlassian.confluence.user.actions.AbstractEntityPaginationAction
paginationSupport
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
SearchUsersAction()
           
 
Method Summary
protected  String appendWildcard(String s)
           
 boolean canAddUsers()
           
 String doCreateUserForm()
           
 String doInviteUserForm()
           
 String doSignUpUserForm()
           
 String doUserSearch()
           
 String getEmailTerm()
           
 String getFullnameTerm()
           
 String getLicenseErrorHtml()
           
 String getOperator()
           
 List getOperators()
           
 int getResultsPerPage()
           
 List getResultsPerPageOptions()
           
 String getSearchTerm()
           
 String getSelectedTab()
          Returns the key of the tab that should be selected when rendering.
 String getUsernameTerm()
           
 boolean isAllowedToSearch()
           
 boolean isEmailInvitesEnabled()
           
 boolean isLicensedToAddMoreUsers()
           
 boolean isMailServerConfigured()
           
 boolean isSendEmail()
           
 boolean isSupportsSimpleSearch()
           
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 void setEmailTerm(String emailTerm)
           
 void setFullnameTerm(String fullnameTerm)
           
 void setLicenseService(LicenseService licenseService)
           
 void setMailServerExistsCriteria(MailServerExistsCriteria mailServerExistsCriteria)
           
 void setOperator(String operator)
           
 void setResultsPerPage(int resultsPerPage)
          Change the pageSize
 void setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)
           
 void setSearchTerm(String searchTerm)
           
 void setSelectedTab(String selectedTab)
           
 void setSupportsSimpleSearch(boolean supportsSimpleSearch)
           
 void setUserChecker(UserChecker userChecker)
           
 void setUsernameTerm(String usernameTerm)
           
 void setWritableDirectoryExistsCriteria(WritableDirectoryExistsCriteria writableDirectoryExistsCriteria)
           
 void validate()
           
 
Methods inherited from class com.atlassian.confluence.user.actions.AbstractEntityPaginationAction
getPaginationSupport, getStartIndex, setStartIndex
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancel, getCancelResult, getContext, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermitted, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setUserAccessor, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TERM_DELIM_CHARS

public static final String TERM_DELIM_CHARS
See Also:
Constant Field Values

searchEntitiesManager

protected SearchEntitiesManager searchEntitiesManager

searchTerm

protected String searchTerm

usernameTerm

protected String usernameTerm

fullnameTerm

protected String fullnameTerm

emailTerm

protected String emailTerm

operator

protected String operator

resultsPerPage

protected int resultsPerPage

isLicensedToAddMoreUsers

protected boolean isLicensedToAddMoreUsers

licenseError

protected String licenseError

supportsSimpleSearch

protected boolean supportsSimpleSearch
Constructor Detail

SearchUsersAction

public SearchUsersAction()
Method Detail

validate

public void validate()
Specified by:
validate in interface MessageHolderAware
Specified by:
validate in interface com.opensymphony.xwork.Validateable
Overrides:
validate in class com.opensymphony.xwork.ActionSupport

doCreateUserForm

public String doCreateUserForm()

doInviteUserForm

public String doInviteUserForm()

doSignUpUserForm

public String doSignUpUserForm()

getOperators

public List getOperators()

getSelectedTab

public String getSelectedTab()
Description copied from interface: Tabbed
Returns the key of the tab that should be selected when rendering. e.g. "search" or "create" for the browseusers.vm

Specified by:
getSelectedTab in interface Tabbed

setSelectedTab

public void setSelectedTab(String selectedTab)

doUserSearch

public String doUserSearch()

appendWildcard

protected String appendWildcard(String s)

isAllowedToSearch

public boolean isAllowedToSearch()

isSupportsSimpleSearch

public boolean isSupportsSimpleSearch()

isSendEmail

public boolean isSendEmail()

isMailServerConfigured

public boolean isMailServerConfigured()

setSupportsSimpleSearch

public void setSupportsSimpleSearch(boolean supportsSimpleSearch)

setSearchEntitiesManager

public void setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)

setMailServerExistsCriteria

public void setMailServerExistsCriteria(MailServerExistsCriteria mailServerExistsCriteria)

setWritableDirectoryExistsCriteria

public void setWritableDirectoryExistsCriteria(WritableDirectoryExistsCriteria writableDirectoryExistsCriteria)

getResultsPerPage

public int getResultsPerPage()

getSearchTerm

public String getSearchTerm()

setSearchTerm

public void setSearchTerm(String searchTerm)

getUsernameTerm

public String getUsernameTerm()

setUsernameTerm

public void setUsernameTerm(String usernameTerm)

getFullnameTerm

public String getFullnameTerm()

setFullnameTerm

public void setFullnameTerm(String fullnameTerm)

getEmailTerm

public String getEmailTerm()

setEmailTerm

public void setEmailTerm(String emailTerm)

getOperator

public String getOperator()

setOperator

public void setOperator(String operator)

isLicensedToAddMoreUsers

public boolean isLicensedToAddMoreUsers()

setBandanaManager

public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)

getLicenseErrorHtml

public String getLicenseErrorHtml()

setResultsPerPage

public void setResultsPerPage(int resultsPerPage)
Change the pageSize

Parameters:
resultsPerPage - Number to show per page

getResultsPerPageOptions

public List getResultsPerPageOptions()

setLicenseService

public void setLicenseService(LicenseService licenseService)

setUserChecker

public void setUserChecker(UserChecker userChecker)

isEmailInvitesEnabled

public boolean isEmailInvitesEnabled()

canAddUsers

public boolean canAddUsers()


Copyright © 2003-2013 Atlassian. All Rights Reserved.