Class StaticSearchModule
java.lang.Object
org.ametys.plugins.workspaces.search.StaticSearchModule
- All Implemented Interfaces:
SearchModule,PluginAware,Configurable
Static implementation of a
SearchModule-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) getId()Get the idintgetLimit()Get the number of results per pageintGet 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 beforeGet the search urlgetTitle()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 Details
-
_pluginName
The plugin name -
_featureName
The feature name
-
-
Constructor Details
-
StaticSearchModule
public StaticSearchModule()
-
-
Method Details
-
setPluginInfo
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
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getId
Description copied from interface:SearchModuleGet the id- Specified by:
getIdin interfaceSearchModule- Returns:
- the id
-
getTitle
Description copied from interface:SearchModuleGet the title of the search- Specified by:
getTitlein interfaceSearchModule- Returns:
- title of the module
-
getSearchUrl
Description copied from interface:SearchModuleGet the search url- Specified by:
getSearchUrlin interfaceSearchModule- Returns:
- URL to fetch for search
-
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
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
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
-