Class WorkspaceSwitcherSearchComponent
- java.lang.Object
 - 
- org.ametys.web.frontoffice.search.requesttime.impl.WorkspaceSwitcherSearchComponent
 
 
- 
- All Implemented Interfaces:
 SearchComponent,Configurable
public class WorkspaceSwitcherSearchComponent extends Object implements SearchComponent, Configurable
SearchComponentexecuting in two parts: for getting the forced workspace, then restoring the forced workspace 
- 
- 
Field Summary
Fields Modifier and Type Field Description private static Map<Request,String>_forcedWorkspacesByReqprivate int_part- 
Fields inherited from interface org.ametys.web.frontoffice.search.requesttime.SearchComponent
DISABLE_DEFAULT_SAX_PARAMETER_NAME, MAX_PRIORITY, MIN_PRIORITY, SEARCH_PRIORITY 
 - 
 
- 
Constructor Summary
Constructors Constructor Description WorkspaceSwitcherSearchComponent() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Configuration configuration)voidexecute(SearchComponentArguments args)Executes the component.intpriority()Get the priority of the component.booleansupports(SearchComponentArguments args)Returnstrueif the component must beexecuted. 
 - 
 
- 
- 
Field Detail
- 
_forcedWorkspacesByReq
private static Map<Request,String> _forcedWorkspacesByReq
 
- 
_part
private int _part
 
 - 
 
- 
Constructor Detail
- 
WorkspaceSwitcherSearchComponent
public WorkspaceSwitcherSearchComponent()
 
 - 
 
- 
Method Detail
- 
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
 configurein interfaceConfigurable- Throws:
 ConfigurationException
 
- 
priority
public int priority()
Description copied from interface:SearchComponentGet the priority of the component. The lowest one will be executed first, and so on.- Specified by:
 priorityin interfaceSearchComponent- Returns:
 - the priority of the component
 
 
- 
supports
public boolean supports(SearchComponentArguments args)
Description copied from interface:SearchComponentReturnstrueif the component must beexecuted.- Specified by:
 supportsin interfaceSearchComponent- Parameters:
 args- the arguments- Returns:
 trueif the component must beexecuted.
 
- 
execute
public void execute(SearchComponentArguments args) throws Exception
Description copied from interface:SearchComponentExecutes the component.- Specified by:
 executein interfaceSearchComponent- Parameters:
 args- the arguments- Throws:
 Exception- if an exception occurs. Other search components will be attempted to be executed
 
 - 
 
 -