Class AccessibilityContextManager


  • public class AccessibilityContextManager
    extends java.lang.Object
    Manage the list of AccessibilityContext
    • available in the site;
    • available for a given HttpSession

    The list of AccessibilityContext is determined by a list of properties. One AccessibilityContext is instantiated for each property : ui.accessibility.context.<id of the context>.jslist : a list of seperated js files to use in FO or ui.accessibility.context.<id of the context>.csslist : a list of seperated css files to use in FO or both. Label and description of this context are set by I18N properties : ui.accessibility.contextlabel.<id of the context>: Label of context ui.accessibility.contextdescription.<id of the context>: Detailled description of this context The default context is the only one if only one is defined, or the one that uses as id "standard".

    Since:
    JCMS-6.0
    Author:
    dissert
    • Method Detail

      • hasManyContexts

        public boolean hasManyContexts()
      • getCurrentAccessibilityContext

        public AccessibilityContext getCurrentAccessibilityContext​(javax.servlet.http.HttpServletRequest request)
      • getCurrentAccessibilityContext

        public AccessibilityContext getCurrentAccessibilityContext​(javax.servlet.http.HttpSession session)
      • setCurrentAccessibilityContext

        public boolean setCurrentAccessibilityContext​(javax.servlet.http.HttpServletRequest request,
                                                      java.lang.String context)
      • setCurrentAccessibilityContext

        public boolean setCurrentAccessibilityContext​(javax.servlet.http.HttpSession session,
                                                      java.lang.String context)