public class TemplateUtils extends Object
| Constructor and Description |
|---|
TemplateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCachedTemplateName(String reportId,
String entryName)
Returns the template cache name used to cache the given entry name (which is a template) of the given report id.
|
static String |
getEntryName(String cachedTemplateName,
int index)
Returns the entry name of of the given cached template name.
|
static int |
getIndexReportEntryName(String cachedTemplateName)
Returns the last index of the token '!'
|
static String |
getReportId(String cachedTemplateName,
int index)
Returns the report of of the given cached template name.
|
static IEntryInfo |
getTemplateCacheInfo(ITemplateCacheInfoProvider templateCacheInfoProvider,
String templateName) |
static Object |
putContextForDottedKey(IContext context,
String key,
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 String getCachedTemplateName(String reportId, String entryName)
reportId - report id.entryName - entry name.public static int getIndexReportEntryName(String cachedTemplateName)
cachedTemplateName - cached template name which follow pattern ($reportId '!' $entryName).public static String getReportId(String cachedTemplateName, int index)
cachedTemplateName - cached template name which follow pattern ($reportId '!' $entryName).index - of the '!' character.public static String getEntryName(String cachedTemplateName, int index)
cachedTemplateName - cached template name which follow pattern ($reportId '!' $entryName).index - of the '!' character.public static IEntryInfo getTemplateCacheInfo(ITemplateCacheInfoProvider templateCacheInfoProvider, String templateName)
templateCacheInfoProvider - templateName - public static Object putContextForDottedKey(IContext context, String key, Object value)
DynamicBean instance to
emulate the bean Project#getName().context - key - value - Copyright © 2015. All Rights Reserved.