java.lang.Object
edu.internet2.middleware.grouper.grouperUi.beans.ui.TextContainer

public class TextContainer extends Object
text container in request for user
  • Constructor Details

    • TextContainer

      public TextContainer()
  • Method Details

    • 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
    • retrieveFromRequest

      public static TextContainer 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