public class WorkspaceSwitcherSearchComponent extends Object implements SearchComponent, Configurable
SearchComponent
executing in two parts: for getting the forced workspace, then restoring the forced workspaceModifier 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 Configurable
ConfigurationException
public int priority()
SearchComponent
priority
in interface SearchComponent
public boolean supports(SearchComponentArguments args)
SearchComponent
true
if the component must be executed
.supports
in interface SearchComponent
args
- the argumentstrue
if the component must be executed
.public void execute(SearchComponentArguments args) throws Exception
SearchComponent
execute
in interface SearchComponent
args
- the argumentsException
- if an exception occurs. Other search components will be attempted to be executed