Class ContentNameSearchAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- 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, DEVMODE, eventManager, 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 String
execute()
Deprecated.Perform the search and create theContentNameSearchResult
.Object
getBean()
Deprecated.ContentNameSearchResult
getResult()
Deprecated.void
setContentNameSearchService(ContentNameSearchService contentNameSearchService)
Deprecated.void
setLimit(int limit)
Deprecated.void
setMaxPerCategory(int maxPerCategory)
Deprecated.void
setQuery(String query)
Deprecated.void
setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
Deprecated.void
setSpaceKey(String spaceKey)
Deprecated.void
setType(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, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, 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, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, 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.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 individualContentNameMatch
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
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in 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:
setServletRequest
in interfaceorg.apache.struts2.interceptor.ServletRequestAware
-
setContentNameSearchService
public void setContentNameSearchService(ContentNameSearchService contentNameSearchService)
Deprecated.
-
-