com.atlassian.confluence.search.actions
Class SearchSiteAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.search.actions.SearchSiteAction
- All Implemented Interfaces:
- Beanable, 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
public class SearchSiteAction
- extends ConfluenceActionSupport
- implements Beanable
- See Also:
- Serialized Form
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, 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 |
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, 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, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchSiteAction
public SearchSiteAction()
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
doDefault
public java.lang.String doDefault()
throws java.lang.Exception
- Description copied from class:
ConfluenceActionSupport
- Default webwork action execution method.
- Overrides:
doDefault
in class ConfluenceActionSupport
- Returns:
- the action result
- Throws:
java.lang.Exception
- if something goes wrong
execute
public java.lang.String execute()
throws java.lang.Exception
- Specified by:
execute
in interface com.opensymphony.xwork.Action
- Overrides:
execute
in class com.opensymphony.xwork.ActionSupport
- Throws:
java.lang.Exception
getBean
public java.lang.Object getBean()
- Specified by:
getBean
in interface Beanable
newSearchResult
public java.lang.String newSearchResult(SearchResult searchResult,
java.lang.String showExcerpts,
java.lang.String queryString)
getWebInterfaceContext
public WebInterfaceContext getWebInterfaceContext(SearchResult result)
getSummaryForResult
public java.lang.String getSummaryForResult(SearchResult result)
getTitleForResult
public java.lang.String getTitleForResult(SearchResult result)
getResults
public java.util.List<SearchResult> getResults()
getAvailableGlobalSpaces
public java.util.List<SpacePickerHelper.SpaceDTO> getAvailableGlobalSpaces()
- Find all global spaces that user has permission to view, but that aren't favourites
- Returns:
- List
getAggregateOptions
public java.util.List<com.atlassian.core.util.PairType> getAggregateOptions()
getFavouriteSpaces
public java.util.List<SpacePickerHelper.SpaceDTO> getFavouriteSpaces()
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
getContentEntityTypes
@Deprecated
public java.util.List<com.atlassian.core.util.PairType> getContentEntityTypes()
- Deprecated. Since 4.2 Use
getTypeOptions()
getRelatedLabels
public java.util.List<Label> getRelatedLabels()
- Returns a list of related labels to the labels matching the search result
- Returns:
- List of related lables
getLabelNames
public java.lang.String getLabelNames(Labelable obj)
- Retrieve a comma separated string of label names.
- Returns:
- a comma separated string
getContentLabels
public java.util.List getContentLabels(ContentEntityObject content,
int amount)
getSpace
public Space getSpace(java.lang.String spaceKey)
getTypeName
public java.lang.String getTypeName(java.lang.String type)
getTypeOptions
public java.util.List<com.atlassian.core.util.PairType> getTypeOptions()
- Returns:
- a list of the type criteria that should be presented on the GUI.
getDateRanges
public java.util.List<com.atlassian.core.util.PairType> getDateRanges()
- Returns:
- a list of the date range criteria that should be presented on the GUI.
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)
- Overrides:
setUserAccessor
in class ConfluenceActionSupport
getCurrentSearch
public SearchSiteAction.CriteriaParameters getCurrentSearch()
- Returns:
- a criteria link that represents the current search state
setStartIndex
public void setStartIndex(int startIndex)
getStartIndex
public int getStartIndex()
getEndIndex
public int getEndIndex()
getTimer
public Timer getTimer()
getLabelsSummaryForResult
public com.atlassian.bonnie.search.summary.Summary getLabelsSummaryForResult(SearchResult result)
getQueryString
public java.lang.String getQueryString()
setQueryString
public void setQueryString(java.lang.String queryString)
getWhere
public java.lang.String getWhere()
setWhere
public void setWhere(java.lang.String where)
getKey
public java.lang.String getKey()
setKey
public void setKey(java.lang.String key)
getType
public java.lang.String getType()
getContentType
public ContentTypeEnum getContentType()
setType
public void setType(java.lang.String type)
setTypes
public void setTypes(java.lang.String[] types)
getLastModified
public DateRangeEnum getLastModified()
setLastModified
public void setLastModified(DateRangeEnum lastModified)
getTotalSearchResults
public int getTotalSearchResults()
getPaginationSupport
public PaginationSupport getPaginationSupport()
setSearchMapper
public void setSearchMapper(LuceneSearchMapper searchMapper)
getContentTypesDisplayMapper
public ContentTypesDisplayMapper getContentTypesDisplayMapper()
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
- Overrides:
setPluginAccessor
in class ConfluenceActionSupport
setContentTypesDisplayMapper
public void setContentTypesDisplayMapper(ContentTypesDisplayMapper contentTypesDisplayMapper)
setQueryAnalyzer
public void setQueryAnalyzer(org.apache.lucene.analysis.Analyzer queryAnalyzer)
setSearchManager
public void setSearchManager(SearchManager searchManager)
getSearchWords
public java.util.List<java.lang.String> getSearchWords()
getSearchQuery
public SearchSiteAction.BackwardsCompatibility getSearchQuery()
setContributor
public void setContributor(java.lang.String who)
getContributor
public java.lang.String getContributor()
getContributorUsername
public java.lang.String getContributorUsername()
setContributorUsername
public void setContributorUsername(java.lang.String contributorUsername)
setPredefinedSearchBuilder
public void setPredefinedSearchBuilder(PredefinedSearchBuilder predefinedSearchBuilder)
isIncludeArchivedSpaces
public boolean isIncludeArchivedSpaces()
setIncludeArchivedSpaces
public void setIncludeArchivedSpaces(boolean includeArchivedSpaces)
isSuggestArchivedSpaces
public boolean isSuggestArchivedSpaces()
getSearchUuid
public java.lang.String getSearchUuid()
setDelegatedSearchResultRenderer
public void setDelegatedSearchResultRenderer(DelegatedSearchResultRenderer defaultRenderer)
- Parameters:
defaultRenderer
- the defaultRenderer to set
Copyright © 2003-2014 Atlassian. All Rights Reserved.