public class ResourceTemplateHelper extends java.lang.Object implements IResourceTemplateHelper
Constructor and Description |
---|
ResourceTemplateHelper() |
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() |
public java.lang.String processTemplate(java.lang.String domainUid, java.lang.String resourceUid, java.lang.String localeLanguageTag, java.lang.String organizerName)
IResourceTemplateHelper
processTemplate
in interface IResourceTemplateHelper
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 variablepublic boolean containsTemplate(java.lang.String text, java.lang.String resourceId)
containsTemplate
in interface IResourceTemplateHelper
true
if the given text
contains the
processed template corresponding to the given resource
identifier, false
otherwise.public java.lang.String removeTemplate(java.lang.String text, java.lang.String resourceId)
IResourceTemplateHelper
text
.removeTemplate
in interface IResourceTemplateHelper
public java.lang.String addTemplate(java.lang.String text, java.lang.String processedTemplate)
IResourceTemplateHelper
text
.addTemplate
in interface IResourceTemplateHelper
public java.lang.String tagBegin(java.lang.String resourceId)
tagBegin
in interface IResourceTemplateHelper
public java.lang.String tagEnd()
tagEnd
in interface IResourceTemplateHelper
Copyright © 2021. All Rights Reserved.