lumis.doui.search
Class SearchQueryValidatorControl
java.lang.Object
lumis.doui.control.Control
lumis.doui.control.ValidatorControl
lumis.doui.search.SearchQueryValidatorControl
- All Implemented Interfaces:
- VariableResolver, IControl, IValidatorControl
public class SearchQueryValidatorControl
- extends ValidatorControl
Validate the query sintax against search engine in use
- Since:
- 4.0.0
Fields inherited from class lumis.doui.control.Control |
childControls, controlContainer, controlDefinitionNode, controlResource, douiContext, hasValidatorSubControls, isValid, locale, ON_EVENT_CLOSE_WINDOW, ON_EVENT_LINK, ON_EVENT_POPUP_LINK_OR_RUNTIME_INTERFACE, ON_EVENT_POPUP_RUNTIME_INTERFACE, ON_EVENT_PROCESS_ACTION, ON_EVENT_RENDER_ACTION, ON_EVENT_SCRIPT, onEventScripts, PARAMETER_TYPE_FIRST_SELECTED, PARAMETER_TYPE_GET_VALUE, parentControl, resources, type, VALIDATION_SELECTED_MANY, VALIDATION_SELECTED_ONE |
Methods inherited from class lumis.doui.control.ValidatorControl |
getClientUniqueId, getControlResource, getControlToValidate, getControlToValidateIds, getControlToValidateSourceFieldName, getMessages, getMessages, getScriptClear, getScriptSetMessages, getScriptSetMessages, getScriptSetMessages, getScriptValidate, getScriptValidateRegistration, getScriptValidationFunctionName, includeScripts, isValidateOnlyIfVisible, serverValidate, setRenderData |
Methods inherited from class lumis.doui.control.Control |
appendSubControl, appendSubControls, applyOnEventScripts, buildSubControls, convertToStandardValue, createContainer, disconnect, fixedIdentifierRequired, generateControlId, getAdditionalParameters, getAncestor, getChildControls, getClientEventHandlerScript, getId, getLocale, getParentControl, getPrepareForReadScript, getRenderData, getResources, getRuntimeDefaultSource, getScriptActionValidation, getScriptGetValues, getScriptGetValuesFunctionImplementation, getScriptGetValuesFunctionName, getScriptGetValuesRegistration, getSourceContext, getStringsToLocalize, getType, getValidationScript, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setRuntimeAttributes, setValid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface lumis.doui.control.IControl |
buildSubControls, createContainer, disconnect, getChildControls, getId, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, isValid, registerOnEventScript, removeChild, removeChildren, setRuntimeAttributes, setValid |
SearchQueryValidatorControl
public SearchQueryValidatorControl()
init
public void init(Node controlDefinitionNode,
ControlContainer controlContainer,
IControl parentControl)
throws PortalException
- Specified by:
init
in interface IControl
- Overrides:
init
in class ValidatorControl
- Throws:
PortalException
doServerValidation
public boolean doServerValidation()
throws ControlException,
PortalException
- Description copied from class:
ValidatorControl
- Performs the server validation of the controls for this validator.
- Overrides:
doServerValidation
in class ValidatorControl
- Returns:
- false if the validation failed, true otherwise.
- Throws:
ControlException
PortalException
- See Also:
ValidatorControl.serverValidate()
getScriptValidationFunctionImplementation
public String getScriptValidationFunctionImplementation()
throws ControlException,
PortalException
- Description copied from interface:
IValidatorControl
- Returns the client side code that must be placed in a client side function to perform the
validation
- Returns:
- a String.
- Throws:
PortalException
ControlException
getDefaultMessages
protected ValidationMessages getDefaultMessages(String errorType)
throws ControlException,
PortalException
- Overrides:
getDefaultMessages
in class ValidatorControl
- Throws:
ControlException
PortalException
getDefaultMessageParameters
protected String[] getDefaultMessageParameters()
throws PortalException
- Overrides:
getDefaultMessageParameters
in class ValidatorControl
- Throws:
PortalException
isClientSideValidationEnabled
public boolean isClientSideValidationEnabled()
- Description copied from interface:
IValidatorControl
- Verify if the parameter ClienteSideValidation is enable.
- Specified by:
isClientSideValidationEnabled
in interface IValidatorControl
- Overrides:
isClientSideValidationEnabled
in class ValidatorControl
- Returns:
- true if the ClienteSideValidation is enable and false otherwise.
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.