public interface IResourceTemplateHelper
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addTemplate(java.lang.String text,
java.lang.String processedTemplate)
Add the processed template to the given
text . |
boolean |
containsTemplate(java.lang.String text,
java.lang.String resourceId) |
java.lang.String |
processTemplate(java.lang.String domainUid,
java.lang.String resourceUid,
java.lang.String localeLanguageTag,
java.lang.String organizerName)
Replace the variables by appropriate values in the template associated to
the given resource.
|
java.lang.String |
removeTemplate(java.lang.String text,
java.lang.String resourceId)
Remove the processed template corresponding to the given resource
identifier from the given
text . |
java.lang.String |
tagBegin(java.lang.String resourceId) |
java.lang.String |
tagEnd() |
java.lang.String processTemplate(java.lang.String domainUid, java.lang.String resourceUid, java.lang.String localeLanguageTag, java.lang.String organizerName)
resourceUid
- the identifier of the resource for which process the templatelocaleLanguageTag
- the language used for choosing a template (templates are
localized)organizerName
- the name of the event's organizer may be used in templates as
a variableboolean containsTemplate(java.lang.String text, java.lang.String resourceId)
true
if the given text
contains the
processed template corresponding to the given resource
identifier, false
otherwise.java.lang.String removeTemplate(java.lang.String text, java.lang.String resourceId)
text
.java.lang.String addTemplate(java.lang.String text, java.lang.String processedTemplate)
text
.java.lang.String tagBegin(java.lang.String resourceId)
java.lang.String tagEnd()
Copyright © 2021. All Rights Reserved.