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_featureNameThe feature nameprotected String_pluginNameThe plugin name
-
Constructor Summary
Constructors Constructor Description StaticSearchModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Configuration configuration)StringgetId()Get the idintgetLimit()Get the number of results per pageintgetMinLimit()Get the number of results per page on the main page (should be smaller thanSearchModule.getLimit())intgetOrder()Get the module order, smaller order means that it is displayed beforeStringgetSearchUrl()Get the search urlI18nizableTextgetTitle()Get the title of the searchvoidsetPluginInfo(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:PluginAwareSets 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:
setPluginInfoin 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:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getId
public String getId()
Description copied from interface:SearchModuleGet the id- Specified by:
getIdin interfaceSearchModule- Returns:
- the id
-
getTitle
public I18nizableText getTitle()
Description copied from interface:SearchModuleGet the title of the search- Specified by:
getTitlein interfaceSearchModule- Returns:
- title of the module
-
getSearchUrl
public String getSearchUrl()
Description copied from interface:SearchModuleGet the search url- Specified by:
getSearchUrlin interfaceSearchModule- Returns:
- URL to fetch for search
-
getLimit
public int getLimit()
Description copied from interface:SearchModuleGet the number of results per page- Specified by:
getLimitin interfaceSearchModule- Returns:
- Max number of results on the module view
-
getMinLimit
public int getMinLimit()
Description copied from interface:SearchModuleGet the number of results per page on the main page (should be smaller thanSearchModule.getLimit())- Specified by:
getMinLimitin interfaceSearchModule- Returns:
- Max number of results on the main view
-
getOrder
public int getOrder()
Description copied from interface:SearchModuleGet the module order, smaller order means that it is displayed before- Specified by:
getOrderin interfaceSearchModule- Returns:
- The module order value
-
-