com.atlassian.confluence.search.actions
Class ContentNameSearchAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.search.actions.ContentNameSearchAction
- All Implemented Interfaces:
- Beanable, WebInterface, MessageHolderAware, com.opensymphony.webwork.interceptor.ServletRequestAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable
public class ContentNameSearchAction
- extends ConfluenceActionSupport
- implements Beanable, com.opensymphony.webwork.interceptor.ServletRequestAware
An action that will take a query String from the front end and apply it as a search across the 'universal title'
field within the Confluence search index.
- See Also:
- Serialized Form
| Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, 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 |
| 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, setSpacePermissionManager, setSystemInformationService, setUserAccessor, setWebInterfaceManager |
| Methods inherited from class com.opensymphony.xwork.ActionSupport |
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentNameSearchAction
public ContentNameSearchAction()
execute
public String execute()
throws Exception
Perform the search and create the ContentNameSearchResult. The individual
ContentNameMatch objects within the result will be ordered and grouped, so you can count on getting
results ordered like -
- all page matches
- all blog matches
- all attachment matches
- all user matches
- all space matches
If a particular category has no matches then it will not be included in the result.
- Specified by:
execute in interface com.opensymphony.xwork.Action- Overrides:
execute in class com.opensymphony.xwork.ActionSupport
- Throws:
Exception
setContentTypesDisplayMapper
public void setContentTypesDisplayMapper(ContentTypesDisplayMapper contentTypesIconMapper)
setContentNameSearcher
public void setContentNameSearcher(ContentNameSearcher contentNameSearcher)
setContentNameQueryTokenizer
public void setContentNameQueryTokenizer(QueryTokenizer contentNameQueryTokenizer)
setQuery
public void setQuery(String query)
setType
public void setType(String[] types)
setSpaceKey
public void setSpaceKey(String spaceKey)
getResult
public ContentNameSearchResult getResult()
getBean
public Object getBean()
- Specified by:
getBean in interface Beanable
- Returns:
- the result bean (
ContentNameSearchResult) on successful execution of this action. If the
action has not executed then the return value will be null.
setContentNameSearchSemaphoreHolder
public void setContentNameSearchSemaphoreHolder(SemaphoreHolder contentNameSearchSemaphoreHolder)
setSettingsManager
public void setSettingsManager(SettingsManager settingsManager)
- Overrides:
setSettingsManager in class ConfluenceActionSupport
setServletRequest
public void setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
- Specified by:
setServletRequest in interface com.opensymphony.webwork.interceptor.ServletRequestAware
setMaxPerCategory
public void setMaxPerCategory(int maxPerCategory)
Copyright © 2003-2013 Atlassian. All Rights Reserved.