public class GrouperTextContainer extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG
logger
|
Constructor and Description |
---|
GrouperTextContainer() |
Modifier and Type | Method and Description |
---|---|
static void |
assignThreadLocalVariable(String key,
Object value)
assign thread local variable map
|
static void |
assignThreadLocalVariableMap(Map<String,Object> variableMap)
assign thread local variable map
|
String |
convertTextToTooltip(String key,
String value)
convert text to tooltip
|
static String |
convertTooltipTextToHtml(String tooltipText,
String term,
boolean isIgnoreTooltipStyle)
convert tooltip text to html
|
Map<String,String> |
getText()
text map
|
Map<String,String> |
getTextEscapeDouble()
text map, escape double quotes
|
Map<String,String> |
getTextEscapeSingle()
text map, escape single quotes
|
Map<String,String> |
getTextEscapeSingleDouble()
text map, escape single and double quotes
|
Map<String,String> |
getTextEscapeXml()
text map, escape xml including double quotes
|
Map<String,String> |
getTextWithTooltip()
text map with tooltips if applicable
|
static void |
grouperRequestContainerThreadLocalAssign(Object grouperRequestContainer)
keep grouper requestcontainer in threadlocal during request from filter
|
static void |
grouperRequestContainerThreadLocalClear()
keep grouper requestcontainer in threadlocal during request from filter
|
static String |
massageText(String key,
String value)
massage text with substitutions etc
|
static String |
massageText(String key,
String value,
boolean errorIfNotFound)
massage text with substitutions etc
|
static void |
resetThreadLocalVariableMap()
remove the threadlocal
|
static GrouperTextContainer |
retrieveFromRequest()
retrieve the container from the request or create a new one if not there
|
static void |
servletRequestThreadLocalAssign(javax.servlet.ServletRequest servletRequest)
assign thread local from filter
|
static void |
servletRequestThreadLocalClear()
clea thread local
|
String |
substituteTooltips(String message,
boolean isIgnoreTooltipStyle)
substitute tooltips
|
static String |
textOrNull(String key)
get the text or null if not found
|
public static void assignThreadLocalVariableMap(Map<String,Object> variableMap)
variableMap
- public static void resetThreadLocalVariableMap()
public static void assignThreadLocalVariable(String key, Object value)
variableMap
- public static String textOrNull(String key)
key
- public static void servletRequestThreadLocalAssign(javax.servlet.ServletRequest servletRequest)
servletRequest
- public static void servletRequestThreadLocalClear()
public static void grouperRequestContainerThreadLocalAssign(Object grouperRequestContainer)
grouperRequestContainer
- public static void grouperRequestContainerThreadLocalClear()
public static GrouperTextContainer retrieveFromRequest()
public static String massageText(String key, String value)
key
- value
- public static String massageText(String key, String value, boolean errorIfNotFound)
key
- value
- errorIfNotFound
- true if error text if not foundpublic String convertTextToTooltip(String key, String value)
key
- value
- public String substituteTooltips(String message, boolean isIgnoreTooltipStyle)
message
- isIgnoreTooltipStyle
- true if should ignore tooltip stylepublic static String convertTooltipTextToHtml(String tooltipText, String term, boolean isIgnoreTooltipStyle)
tooltipText
- term
- isIgnoreTooltipStyle
- if tooltip style should be ignoredpublic Map<String,String> getTextWithTooltip()
public Map<String,String> getTextEscapeSingle()
public Map<String,String> getTextEscapeXml()
public Map<String,String> getTextEscapeDouble()
Copyright © 2016 Internet2. All rights reserved.