public class SimpleSearchClientSideElement extends StaticClientSideElement implements Contextualizable, Disposable
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The context.
|
protected ThreadSafeComponentManager<Enumerator> |
_enumeratorManager
Manager component for enumerators
|
private String |
_enumeratorToLookup |
protected ServiceManager |
_manager
The service manager
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
SimpleSearchClientSideElement() |
Modifier and Type | Method and Description |
---|---|
protected String |
_configureContentTypeEnumerator()
Configures the content type enumerator
|
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 String _enumeratorToLookup
public SimpleSearchClientSideElement()
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 String _configureContentTypeEnumerator() throws ConfigurationException
ConfigurationException
- If the configuration has an issueprotected void setEnumeratorValues(ClientSideElement.Script script, Enumerator enumerator, String prefix) throws Exception
script
- The script into which set the parametersenumerator
- The enumeratorprefix
- The parameters prefixException
- If the enumerator has an issuepublic void dispose()
dispose
in interface Disposable