Class StaticSearchModule
- java.lang.Object
-
- org.ametys.plugins.workspaces.search.StaticSearchModule
-
- All Implemented Interfaces:
SearchModule
,PluginAware
,Configurable
public class StaticSearchModule extends Object implements SearchModule, Configurable, PluginAware
Static implementation of aSearchModule
-
-
Field Summary
Fields Modifier and Type Field Description protected String
_featureName
The feature nameprotected String
_pluginName
The plugin name
-
Constructor Summary
Constructors Constructor Description StaticSearchModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
String
getId()
Get the idint
getLimit()
Get the number of results per pageint
getMinLimit()
Get the number of results per page on the main page (should be smaller thanSearchModule.getLimit()
)int
getOrder()
Get the module order, smaller order means that it is displayed beforeString
getSearchUrl()
Get the search urlI18nizableText
getTitle()
Get the title of the searchvoid
setPluginInfo(String pluginName, String featureName, String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.
-
-
-
Field Detail
-
_pluginName
protected String _pluginName
The plugin name
-
_featureName
protected String _featureName
The feature name
-
-
Constructor Detail
-
StaticSearchModule
public StaticSearchModule()
-
-
Method Detail
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getId
public String getId()
Description copied from interface:SearchModule
Get the id- Specified by:
getId
in interfaceSearchModule
- Returns:
- the id
-
getTitle
public I18nizableText getTitle()
Description copied from interface:SearchModule
Get the title of the search- Specified by:
getTitle
in interfaceSearchModule
- Returns:
- title of the module
-
getSearchUrl
public String getSearchUrl()
Description copied from interface:SearchModule
Get the search url- Specified by:
getSearchUrl
in interfaceSearchModule
- Returns:
- URL to fetch for search
-
getLimit
public int getLimit()
Description copied from interface:SearchModule
Get the number of results per page- Specified by:
getLimit
in interfaceSearchModule
- Returns:
- Max number of results on the module view
-
getMinLimit
public int getMinLimit()
Description copied from interface:SearchModule
Get the number of results per page on the main page (should be smaller thanSearchModule.getLimit()
)- Specified by:
getMinLimit
in interfaceSearchModule
- Returns:
- Max number of results on the main view
-
getOrder
public int getOrder()
Description copied from interface:SearchModule
Get the module order, smaller order means that it is displayed before- Specified by:
getOrder
in interfaceSearchModule
- Returns:
- The module order value
-
-