public class WorkspaceSwitcherSearchComponent extends Object implements SearchComponent, Configurable
SearchComponent executing in two parts: for getting the forced workspace, then restoring the forced workspace| Modifier and Type | Field and Description |
|---|---|
private static Map<Request,String> |
_forcedWorkspacesByReq |
private int |
_part |
DISABLE_DEFAULT_SAX_PARAMETER_NAME, MAX_PRIORITY, MIN_PRIORITY, SEARCH_PRIORITY| Constructor and Description |
|---|
WorkspaceSwitcherSearchComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration configuration) |
void |
execute(SearchComponentArguments args)
Executes the component.
|
int |
priority()
Get the priority of the component.
|
boolean |
supports(SearchComponentArguments args)
Returns
true if the component must be executed. |
private static Map<Request,String> _forcedWorkspacesByReq
private int _part
public WorkspaceSwitcherSearchComponent()
public void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic int priority()
SearchComponentpriority in interface SearchComponentpublic boolean supports(SearchComponentArguments args)
SearchComponenttrue if the component must be executed.supports in interface SearchComponentargs - the argumentstrue if the component must be executed.public void execute(SearchComponentArguments args) throws Exception
SearchComponentexecute in interface SearchComponentargs - the argumentsException - if an exception occurs. Other search components will be attempted to be executed