public class TemplateUtils
extends java.lang.Object
| Constructor and Description |
|---|
TemplateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getCachedTemplateName(java.lang.String reportId,
java.lang.String entryName)
Returns the template cache name used to cache the given entry name (which is a template) of the given report id.
|
static java.lang.String |
getEntryName(java.lang.String cachedTemplateName,
int index)
Returns the entry name of of the given cached template name.
|
static int |
getIndexReportEntryName(java.lang.String cachedTemplateName)
Returns the last index of the token '!'
|
static java.lang.String |
getReportId(java.lang.String cachedTemplateName,
int index)
Returns the report of of the given cached template name.
|
static IEntryInfo |
getTemplateCacheInfo(ITemplateCacheInfoProvider templateCacheInfoProvider,
java.lang.String templateName) |
static java.lang.Object |
putContextForDottedKey(IContext context,
java.lang.String key,
java.lang.Object value)
If key has '.' character in the key (ex : project.name), this method create a
DynamicBean instance to
emulate the bean Project#getName(). |
public static java.lang.String getCachedTemplateName(java.lang.String reportId,
java.lang.String entryName)
reportId - report id.entryName - entry name.public static int getIndexReportEntryName(java.lang.String cachedTemplateName)
cachedTemplateName - cached template name which follow pattern ($reportId '!' $entryName).public static java.lang.String getReportId(java.lang.String cachedTemplateName,
int index)
cachedTemplateName - cached template name which follow pattern ($reportId '!' $entryName).index - of the '!' character.public static java.lang.String getEntryName(java.lang.String cachedTemplateName,
int index)
cachedTemplateName - cached template name which follow pattern ($reportId '!' $entryName).index - of the '!' character.public static IEntryInfo getTemplateCacheInfo(ITemplateCacheInfoProvider templateCacheInfoProvider, java.lang.String templateName)
templateCacheInfoProvider - templateName - public static java.lang.Object putContextForDottedKey(IContext context, java.lang.String key, java.lang.Object value)
DynamicBean instance to
emulate the bean Project#getName().context - key - value - Copyright © 2022. All Rights Reserved.