Class ContentNameSearchAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.AbstractI18nActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.impl.search.actions.ContentNameSearchAction
-
- All Implemented Interfaces:
Beanable,WebInterface,MessageHolderAware,com.opensymphony.xwork2.Action,com.opensymphony.xwork2.interceptor.ValidationAware,com.opensymphony.xwork2.LocaleProvider,com.opensymphony.xwork2.TextProvider,com.opensymphony.xwork2.Validateable,Serializable,org.apache.struts2.action.ServletRequestAware,org.apache.struts2.interceptor.ServletRequestAware
@Deprecated public class ContentNameSearchAction extends ConfluenceActionSupport implements Beanable, org.apache.struts2.interceptor.ServletRequestAware
Deprecated.since 5.2. Instead please use the REST endpoint that is provided by the 'Confluence QuickNav' Bundled Plugin. Please use /rest/quicknav/1/search instead. It accepts the exact same arguments and is thus API compatible with this class. You should be able to swap them out directly.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
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, contentUiSupport, DEVMODE, eventManager, eventPublisher, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description ContentNameSearchAction()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Stringexecute()Deprecated.Perform the search and create theContentNameSearchResult.ObjectgetBean()Deprecated.ContentNameSearchResultgetResult()Deprecated.voidsetContentNameSearchService(ContentNameSearchService contentNameSearchService)Deprecated.voidsetLimit(int limit)Deprecated.voidsetMaxPerCategory(int maxPerCategory)Deprecated.voidsetQuery(String query)Deprecated.voidsetServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)Deprecated.voidsetSpaceKey(String spaceKey)Deprecated.voidsetType(String[] types)Deprecated.-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getTextStatic, getTextStatic, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermitted, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrict
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
-
-
-
Method Detail
-
execute
public String execute() throws Exception
Deprecated.Perform the search and create the
ContentNameSearchResult. The individualContentNameMatchobjects 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
- Specified by:
executein interfacecom.opensymphony.xwork2.Action- Overrides:
executein classcom.opensymphony.xwork2.ActionSupport- Throws:
Exception
-
setQuery
public void setQuery(String query)
Deprecated.
-
setType
public void setType(String[] types)
Deprecated.
-
setSpaceKey
public void setSpaceKey(String spaceKey)
Deprecated.
-
setMaxPerCategory
public void setMaxPerCategory(int maxPerCategory)
Deprecated.
-
setLimit
public void setLimit(int limit)
Deprecated.
-
getResult
public ContentNameSearchResult getResult()
Deprecated.
-
getBean
public Object getBean()
Deprecated.
-
setServletRequest
public void setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
Deprecated.- Specified by:
setServletRequestin interfaceorg.apache.struts2.interceptor.ServletRequestAware
-
setContentNameSearchService
public void setContentNameSearchService(ContentNameSearchService contentNameSearchService)
Deprecated.
-
-