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