Class GrouperTextContainer

java.lang.Object
edu.internet2.middleware.grouper.cfg.text.GrouperTextContainer

public class GrouperTextContainer extends Object
text container in request for user
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
      logger
  • Constructor Details

    • GrouperTextContainer

      public GrouperTextContainer()
  • Method Details

    • assignThreadLocalVariableMap

      public static void assignThreadLocalVariableMap(Map<String,Object> variableMap)
      assign thread local variable map
      Parameters:
      variableMap -
    • resetThreadLocalVariableMap

      public static void resetThreadLocalVariableMap()
      remove the threadlocal
    • assignThreadLocalVariable

      public static void assignThreadLocalVariable(String key, Object value)
      assign thread local variable map
      Parameters:
      variableMap -
    • textOrNull

      public static String textOrNull(String key)
      get the text or null if not found
      Parameters:
      key -
      Returns:
      the text or null if not found
    • servletRequestThreadLocalAssign

      public static void servletRequestThreadLocalAssign(javax.servlet.ServletRequest servletRequest)
      assign thread local from filter
      Parameters:
      servletRequest -
    • servletRequestThreadLocalClear

      public static void servletRequestThreadLocalClear()
      clea thread local
    • grouperRequestContainerThreadLocalAssign

      public static void grouperRequestContainerThreadLocalAssign(Object grouperRequestContainer)
      keep grouper requestcontainer in threadlocal during request from filter
      Parameters:
      grouperRequestContainer -
    • grouperRequestContainerThreadLocalClear

      public static void grouperRequestContainerThreadLocalClear()
      keep grouper requestcontainer in threadlocal during request from filter
    • retrieveFromRequest

      public static GrouperTextContainer retrieveFromRequest()
      retrieve the container from the request or create a new one if not there
      Returns:
      the container
    • massageText

      public static String massageText(String key, String value)
      massage text with substitutions etc
      Parameters:
      key -
      value -
      Returns:
      the text
    • massageText

      public static String massageText(String key, String value, boolean errorIfNotFound)
      massage text with substitutions etc
      Parameters:
      key -
      value -
      errorIfNotFound - true if error text if not found
      Returns:
      the text
    • convertTextToTooltip

      public String convertTextToTooltip(String key, String value)
      convert text to tooltip
      Parameters:
      key -
      value -
      Returns:
      the tooltip html
    • substituteTooltips

      public String substituteTooltips(String message, boolean isIgnoreTooltipStyle)
      substitute tooltips
      Parameters:
      message -
      isIgnoreTooltipStyle - true if should ignore tooltip style
      Returns:
      the substituted strings
    • convertTooltipTextToHtml

      public static String convertTooltipTextToHtml(String tooltipText, String term, boolean isIgnoreTooltipStyle)
      convert tooltip text to html
      Parameters:
      tooltipText -
      term -
      isIgnoreTooltipStyle - if tooltip style should be ignored
      Returns:
      the html tooltip text
    • getText

      public Map<String,String> getText()
      text map
      Returns:
      the text object
    • getTextWithTooltip

      public Map<String,String> getTextWithTooltip()
      text map with tooltips if applicable
      Returns:
      the text object with tooltips
    • getTextEscapeSingle

      public Map<String,String> getTextEscapeSingle()
      text map, escape single quotes
      Returns:
      the text object
    • getTextEscapeXml

      public Map<String,String> getTextEscapeXml()
      text map, escape xml including double quotes
      Returns:
      the text object
    • getTextEscapeDouble

      public Map<String,String> getTextEscapeDouble()
      text map, escape double quotes
      Returns:
      the text object
    • getTextEscapeSingleDouble

      public Map<String,String> getTextEscapeSingleDouble()
      text map, escape single and double quotes
      Returns:
      the text object