Package lumis.doui

Class DouiContext


  • @StableMinor(version="17.0",
                 sinceVersion="4.0")
    public class DouiContext
    extends java.lang.Object
    Provides general context information and constants for Doui services
    Since:
    4.0.0
    Version:
    $Revision: 26586 $ $Date: 2024-08-26 21:06:04 -0300 (Mon, 26 Aug 2024) $
    • Field Detail

      • DOUI_PARAMETER_STORED_VALUES

        public static final java.lang.String DOUI_PARAMETER_STORED_VALUES
        See Also:
        Constant Field Values
      • DOUI_PARAMETER_FROM_FORM

        public static final java.lang.String DOUI_PARAMETER_FROM_FORM
        See Also:
        Constant Field Values
      • DOUI_PARAMETER_ERROR

        public static final java.lang.String DOUI_PARAMETER_ERROR
        See Also:
        Constant Field Values
      • DOUI_PARAMETER_MESSAGE

        public static final java.lang.String DOUI_PARAMETER_MESSAGE
        See Also:
        Constant Field Values
      • DOUI_PARAMETER_START_AT

        public static final java.lang.String DOUI_PARAMETER_START_AT
        See Also:
        Constant Field Values
      • DOUI_PARAMETER_MAX_ROWS

        public static final java.lang.String DOUI_PARAMETER_MAX_ROWS
        See Also:
        Constant Field Values
      • DOUI_ORDER_BY_FIELD

        public static final java.lang.String DOUI_ORDER_BY_FIELD
        See Also:
        Constant Field Values
      • DOUI_ORDER_BY_DIR

        public static final java.lang.String DOUI_ORDER_BY_DIR
        See Also:
        Constant Field Values
    • Method Detail

      • getDouiDefinitionProcessor

        public IDouiDefinitionProcessor getDouiDefinitionProcessor()
                                                            throws PortalException
        Returns a doui definition processor that evaluates the ELs present, according to this doui context.

        The ELs inside the controls are not evaluated. They must be evaluated by the controls themselves.

        Throws:
        PortalException
        Since:
        4.1.0
      • isPostback

        public boolean isPostback()
      • isProcessAction

        public boolean isProcessAction()
      • getValidationResult

        public DouiContext.ValidationResult getValidationResult()
        Returns the validation result for this DOUI context.
        Returns:
        the validation result.
        Since:
        5.6.0
      • setValidationResult

        public void setValidationResult​(boolean valid)
        Sets the validation result for this DOUI context.

        This method is called by DouiServiceInterface.validate(lumis.doui.DouiContext), and normally should not be called directly, unless the validation process is customized.

        Parameters:
        valid - true if the validation was successful, false otherwise.
        Since:
        5.6.0
      • storeValue

        public void storeValue​(java.lang.String key,
                               java.lang.String value)
        Stores a value.
        Parameters:
        key - the value key.
        value - the value to store.
      • getStoredValues

        public java.util.Map<java.lang.String,​java.lang.String> getStoredValues()
        Returns a unmodifiable view of the stored values in this context.
        Returns:
        the stored values.
      • getPreviousStoredValue

        public java.lang.String getPreviousStoredValue​(java.lang.String key)
        Returns a previously stored value.
        Parameters:
        key - the value key.
        Returns:
        the value or null if it was not found.
      • getControlContainer

        public ControlContainer getControlContainer()
        Returns:
        Returns the controlContainer.
      • getSourceContainer

        public SourceContainer getSourceContainer()
        Returns:
        Returns the sourceContainer.
      • createSourceContainer

        protected SourceContainer createSourceContainer()
      • createDouiHyperlink

        protected DouiHyperlink createDouiHyperlink()
      • release

        public void release()