public class SearchClientSideElement extends StaticClientSideElement implements Contextualizable, Disposable
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
private int |
_columnIndex |
protected Context |
_context
The context.
|
private int |
_criteriaIndex |
protected ThreadSafeComponentManager<Enumerator> |
_enumeratorManager
Manager component for enumerators
|
private Map<String,String> |
_enumeratorsToLookup |
protected ServiceManager |
_manager
The service manager
|
private int |
_nbColumns |
private int |
_propertyIndex |
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
SearchClientSideElement() |
Modifier and Type | Method and Description |
---|---|
protected void |
_configureColumn(Configuration configuration,
String prefix)
Configures the criteria parameters
|
protected void |
_configureColumns(Configuration configuration)
Configure the columns
|
protected void |
_configureCriteria(Configuration configuration,
String prefix)
Configures the criteria parameters
|
protected Enumerator |
_configureEnumerator(Configuration configuration,
String prefix)
Configures the enumerator
|
protected void |
_configureExportUrl(Configuration configuration)
Configure the URL used for XSL export
|
protected I18nizableText |
_configureLabel(Configuration configuration)
Configures the label.
|
protected void |
_configurePageSize(Configuration configuration)
Configures the result page size.
|
protected void |
_configureProperties(Configuration configuration)
Configure the columns
|
protected void |
_configureProperty(Configuration configuration,
String prefix)
Configures the criteria parameters
|
protected void |
_configureSearchCriteria(Configuration configuration)
Configure the search criteria
|
protected void |
_configureSearchUrl(Configuration configuration)
Configure the URL used for search
|
protected String |
_configureWidget(Configuration configuration)
Configures the widget
|
protected Map<String,Object> |
_configureWidgetParams(Configuration configuration)
Configures the widget
|
void |
configure(Configuration configuration) |
void |
contextualize(Context context) |
void |
dispose() |
List<ClientSideElement.Script> |
getScripts(boolean ignoreRights,
Map<String,Object> contextParameters)
This method return the scripts that will be used on client side.
|
void |
service(ServiceManager smanager) |
protected void |
setEnumeratorValues(ClientSideElement.Script script,
Enumerator enumerator,
String prefix)
Set the enumerator values in script parameters
|
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected ThreadSafeComponentManager<Enumerator> _enumeratorManager
protected ServiceManager _manager
private int _criteriaIndex
private int _columnIndex
private int _nbColumns
private int _propertyIndex
private final Map<String,String> _enumeratorsToLookup
public SearchClientSideElement()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class StaticFileImportsClientSideElement
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class StaticFileImportsClientSideElement
ConfigurationException
public List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElement
getScripts
in interface ClientSideElement
getScripts
in class StaticFileImportsClientSideElement
ignoreRights
- True to ignore the rights verification.contextParameters
- Contextuals parameters transmitted by the environment.protected void _configureSearchCriteria(Configuration configuration) throws ConfigurationException
configuration
- The configurationConfigurationException
- if the configuration is not valid.protected void _configureCriteria(Configuration configuration, String prefix) throws ConfigurationException
configuration
- the item configurationprefix
- the criteria prefixConfigurationException
- if the configuration is not valid.protected void setEnumeratorValues(ClientSideElement.Script script, Enumerator enumerator, String prefix)
script
- The script into which set the parametersenumerator
- The enumeratorprefix
- The parameters prefixprotected void _configureColumns(Configuration configuration) throws ConfigurationException
configuration
- The configurationConfigurationException
- if the configuration is not valid.protected void _configureColumn(Configuration configuration, String prefix) throws ConfigurationException
configuration
- the item configurationprefix
- the criteria prefixConfigurationException
- if the configuration is not valid.protected void _configureProperties(Configuration configuration) throws ConfigurationException
configuration
- The configurationConfigurationException
- if the configuration is not valid.protected void _configureProperty(Configuration configuration, String prefix) throws ConfigurationException
configuration
- the item configurationprefix
- the criteria prefixConfigurationException
- if the configuration is not valid.protected I18nizableText _configureLabel(Configuration configuration) throws ConfigurationException
configuration
- the configuration to use.ConfigurationException
- if the configuration is not valid.protected Enumerator _configureEnumerator(Configuration configuration, String prefix) throws ConfigurationException
configuration
- The configuration to useprefix
- The prefixConfigurationException
- If the configuraiton has an issueprotected String _configureWidget(Configuration configuration) throws ConfigurationException
configuration
- The configuration to useConfigurationException
- if the configuration is not valid.protected Map<String,Object> _configureWidgetParams(Configuration configuration) throws ConfigurationException
configuration
- The configuration to useConfigurationException
- if the configuration is not valid.protected void _configurePageSize(Configuration configuration) throws ConfigurationException
configuration
- the configuration to use.ConfigurationException
- if the configuration is not valid.protected void _configureSearchUrl(Configuration configuration) throws ConfigurationException
configuration
- The configuration to use.ConfigurationException
- if the configuration is not valid.protected void _configureExportUrl(Configuration configuration) throws ConfigurationException
configuration
- The configuration to use.ConfigurationException
- if the configuration is not valid.public void dispose()
dispose
in interface Disposable