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, java.io.Serializable
Direct Known Subclasses:
BrowseUsersAction, UserPickerAction

public class SearchUsersAction
extends AbstractEntityPaginationAction
implements Tabbed

See Also:
Serialized Form

Field Summary
protected  java.lang.String emailTerm
           
protected  java.lang.String fullnameTerm
           
protected  boolean isLicensedToAddMoreUsers
           
protected  java.lang.String licenseError
           
protected  java.lang.String operator
           
protected  int resultsPerPage
           
protected  SearchEntitiesManager searchEntitiesManager
           
protected  java.lang.String searchTerm
           
static java.lang.String SHOW_ALL_SEARCH_TERM
           
protected  boolean supportsSimpleSearch
           
static java.lang.String TERM_DELIM_CHARS
           
protected  java.lang.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  java.lang.String appendWildcard(java.lang.String s)
           
 boolean canAddUsers()
           
 java.lang.String doCreateUserForm()
           
 java.lang.String doInviteUserForm()
           
 java.lang.String doSignUpUserForm()
           
 java.lang.String doUserSearch()
           
 java.lang.String getEmailTerm()
           
 java.lang.String getFullnameTerm()
           
 java.lang.String getLicenseErrorHtml()
           
 java.lang.String getOperator()
           
 java.util.List getOperators()
           
 int getResultsPerPage()
           
 java.util.List getResultsPerPageOptions()
           
 java.lang.String getSearchTerm()
           
 java.lang.String getSelectedTab()
          Returns the key of the tab that should be selected when rendering.
 java.lang.String getUsernameTerm()
           
 boolean isAllowedToSearch()
           
 boolean isEmailInvitesEnabled()
           
 boolean isLicensedToAddMoreUsers()
           
 boolean isMailServerConfigured()
           
 boolean isSendEmail()
           
 boolean isShowAll()
           
 boolean isSupportsSimpleSearch()
           
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 void setEmailTerm(java.lang.String emailTerm)
           
 void setFullnameTerm(java.lang.String fullnameTerm)
           
 void setLicenseService(LicenseService licenseService)
           
 void setMailServerExistsCriteria(MailServerExistsCriteria mailServerExistsCriteria)
           
 void setOperator(java.lang.String operator)
           
 void setResultsPerPage(int resultsPerPage)
          Change the pageSize
 void setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)
           
 void setSearchTerm(java.lang.String searchTerm)
           
 void setSelectedTab(java.lang.String selectedTab)
           
 void setSupportsSimpleSearch(boolean supportsSimpleSearch)
           
 void setUserChecker(UserChecker userChecker)
           
 void setUsernameTerm(java.lang.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, getAuthenticatedUser, 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, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermitted, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setApiDateFormatService, 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 java.lang.String TERM_DELIM_CHARS
See Also:
Constant Field Values

SHOW_ALL_SEARCH_TERM

public static final java.lang.String SHOW_ALL_SEARCH_TERM
See Also:
Constant Field Values

searchEntitiesManager

protected SearchEntitiesManager searchEntitiesManager

searchTerm

protected java.lang.String searchTerm

usernameTerm

protected java.lang.String usernameTerm

fullnameTerm

protected java.lang.String fullnameTerm

emailTerm

protected java.lang.String emailTerm

operator

protected java.lang.String operator

resultsPerPage

protected int resultsPerPage

isLicensedToAddMoreUsers

protected boolean isLicensedToAddMoreUsers

licenseError

protected java.lang.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 java.lang.String doCreateUserForm()

doInviteUserForm

public java.lang.String doInviteUserForm()

doSignUpUserForm

public java.lang.String doSignUpUserForm()

getOperators

public java.util.List getOperators()

getSelectedTab

public java.lang.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(java.lang.String selectedTab)

doUserSearch

public java.lang.String doUserSearch()

appendWildcard

protected java.lang.String appendWildcard(java.lang.String s)

isAllowedToSearch

public boolean isAllowedToSearch()

isSupportsSimpleSearch

public boolean isSupportsSimpleSearch()

isSendEmail

public boolean isSendEmail()

isShowAll

public boolean isShowAll()

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 java.lang.String getSearchTerm()

setSearchTerm

public void setSearchTerm(java.lang.String searchTerm)

getUsernameTerm

public java.lang.String getUsernameTerm()

setUsernameTerm

public void setUsernameTerm(java.lang.String usernameTerm)

getFullnameTerm

public java.lang.String getFullnameTerm()

setFullnameTerm

public void setFullnameTerm(java.lang.String fullnameTerm)

getEmailTerm

public java.lang.String getEmailTerm()

setEmailTerm

public void setEmailTerm(java.lang.String emailTerm)

getOperator

public java.lang.String getOperator()

setOperator

public void setOperator(java.lang.String operator)

isLicensedToAddMoreUsers

public boolean isLicensedToAddMoreUsers()

setBandanaManager

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

getLicenseErrorHtml

public java.lang.String getLicenseErrorHtml()

setResultsPerPage

public void setResultsPerPage(int resultsPerPage)
Change the pageSize

Parameters:
resultsPerPage - Number to show per page

getResultsPerPageOptions

public java.util.List getResultsPerPageOptions()

setLicenseService

public void setLicenseService(LicenseService licenseService)

setUserChecker

public void setUserChecker(UserChecker userChecker)

isEmailInvitesEnabled

public boolean isEmailInvitesEnabled()

canAddUsers

public boolean canAddUsers()


Copyright © 2003-2014 Atlassian. All Rights Reserved.