Class BaseTemplateModel
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.web.templatemodels.BaseTemplateModel
-
- Direct Known Subclasses:
BaseIndividualTemplateModel,BaseListedIndividual,EditConfigurationTemplateModel,GroupedPropertyList,IndividualSearchResult,LinkTemplateModel,Menu,MenuItem,PropertyGroupTemplateModel,PropertyStatementTemplateModel,PropertyTemplateModel,SubclassTemplateModel,Tags,User,VClassGroupTemplateModel,VClassTemplateModel
public abstract class BaseTemplateModel extends Object
-
-
Constructor Summary
Constructors Constructor Description BaseTemplateModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> voidcleanMapValuesForDisplay(Map<T,String> map)Used to do any processing for display of values in a map.protected StringcleanTextForDisplay(String dirty)Used to do any processing for display of general text.protected StringcleanURIForDisplay(String dirty)Used to do any processing for display of URIs or URLs.protected StringgetUrl(String path)protected StringgetUrl(String path, UrlBuilder.ParamMap params)protected StringgetUrl(String path, String... params)protected StringsimpleScriptStripper(String dirtyInput)
-
-
-
Method Detail
-
getUrl
protected String getUrl(String path, UrlBuilder.ParamMap params)
-
cleanURIForDisplay
protected String cleanURIForDisplay(String dirty)
Used to do any processing for display of URIs or URLs. If we used AntiSami on a URI it would escape any ampersands as & and perhaps do other nastiness as well. Instead we delete any character that shouldn't be in a URI.
-
cleanTextForDisplay
protected String cleanTextForDisplay(String dirty)
Used to do any processing for display of general text. Currently this only checks for XSS exploits.
-
cleanMapValuesForDisplay
protected <T> void cleanMapValuesForDisplay(Map<T,String> map)
Used to do any processing for display of values in a map. Map may be modified.
-
-