com.atlassian.confluence.search.actions
Class ContentNameSearchAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by 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, java.io.Serializable

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.

@Deprecated
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

Field Summary
 
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
ContentNameSearchAction()
          Deprecated.  
 
Method Summary
 java.lang.String execute()
          Deprecated.  Perform the search and create the ContentNameSearchResult.
 java.lang.Object getBean()
          Deprecated.  
 ContentNameSearchResult getResult()
          Deprecated.  
 void setContentNameSearchService(ContentNameSearchService contentNameSearchService)
          Deprecated.  
 void setMaxPerCategory(int maxPerCategory)
          Deprecated.  
 void setQuery(java.lang.String query)
          Deprecated.  
 void setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
          Deprecated.  
 void setSpaceKey(java.lang.String spaceKey)
          Deprecated.  
 void setType(java.lang.String[] types)
          Deprecated.  
 
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, 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
 
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
 

Constructor Detail

ContentNameSearchAction

public ContentNameSearchAction()
Deprecated. 
Method Detail

execute

public java.lang.String execute()
                         throws java.lang.Exception
Deprecated. 

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 -

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:
java.lang.Exception

setQuery

public void setQuery(java.lang.String query)
Deprecated. 

setType

public void setType(java.lang.String[] types)
Deprecated. 

setSpaceKey

public void setSpaceKey(java.lang.String spaceKey)
Deprecated. 

setMaxPerCategory

public void setMaxPerCategory(int maxPerCategory)
Deprecated. 

getResult

public ContentNameSearchResult getResult()
Deprecated. 

getBean

public java.lang.Object getBean()
Deprecated. 
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.

setServletRequest

public void setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
Deprecated. 
Specified by:
setServletRequest in interface com.opensymphony.webwork.interceptor.ServletRequestAware

setContentNameSearchService

public void setContentNameSearchService(ContentNameSearchService contentNameSearchService)
Deprecated. 


Copyright © 2003-2014 Atlassian. All Rights Reserved.