@Deprecated public class

UserSearchAction

extends ConfluenceActionSupport
implements JSONAction
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.search.actions.UserSearchAction

This class is deprecated.
since 3.3. Use REST user search API instead.

Class Overview

An action that will try to find a Confluence user based on parts of the user's name or username as supplied in the query. The name part must be the beginning of the users details. e.g. supplying a query of 'ga gl' will match 'garry glitter'. It would not match 'olga nugleva' since the ga and gl parts are not at the start of those name components.

The output of the action can be retrieved via the getJSONString method which will return a JSON representation of any matching users.

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
UserSearchAction()
Public Methods
String execute()
String getJSONString()
void setFilterDisabledUsers(boolean filterDisabledUsers)
void setPredefinedSearchBuilder(PredefinedSearchBuilder predefinedSearchBuilder)
void setQuery(String query)
void setSearchManager(SearchManager searchManager)
[Expand]
Inherited Methods
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.json.JSONAction
From interface com.atlassian.confluence.plugin.descriptor.web.WebInterface
From interface com.opensymphony.xwork.Action
From interface com.opensymphony.xwork.LocaleProvider
From interface com.opensymphony.xwork.TextProvider
From interface com.opensymphony.xwork.Validateable
From interface com.opensymphony.xwork.ValidationAware

Public Constructors

public UserSearchAction ()

Public Methods

public String execute ()

Throws
Exception

public String getJSONString ()

public void setFilterDisabledUsers (boolean filterDisabledUsers)

public void setPredefinedSearchBuilder (PredefinedSearchBuilder predefinedSearchBuilder)

public void setQuery (String query)

public void setSearchManager (SearchManager searchManager)