Package com.atlassian.jira.util
Class JiraVelocityHelper
java.lang.Object
com.atlassian.jira.util.JiraVelocityHelper
A simple class store methods we want to expose to velocity templates
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldName(String fieldKey, I18nHelper i18n) Returns Internationalized human-readable name of a field, or the key (usually also readable) if none was found.getFieldName(org.ofbiz.core.entity.GenericValue changeItem, I18nHelper i18n) getNewKey(org.ofbiz.core.entity.GenericValue changelog) For 'Move Issue' events; returns the issue's new key, extracted from the changelog.getOldKey(org.ofbiz.core.entity.GenericValue changelog) For 'Move Issue' events; returns the issue's old key, extracted from the changelog.getPrettyFieldString(String fieldKey, String str, String value, I18nHelper i18n) getPrettyFieldString(String fieldKey, String str, String value, I18nHelper i18n, String defaultIfNull) indentTextBlock(String in, String indentStr, boolean quoteFirst) indentToChangelogNoLineSep(String fieldName, String fieldValue, I18nHelper i18n, List<String> allFieldNames) Creates a new, mutable, map for use in velocity.printChangelog(org.ofbiz.core.entity.GenericValue changelog, I18nHelper i18n, Collection<String> ignoredFields) printChangelog(org.ofbiz.core.entity.GenericValue changelog, I18nHelper i18n, Collection<String> ignoredFields, boolean ignoreStatus) removeHtmlTags(String str) booleanwasDeleted(org.ofbiz.core.entity.GenericValue changelog, String fieldKey, I18nHelper i18n)
-
Constructor Details
-
JiraVelocityHelper
-
-
Method Details
-
urlencode
- Throws:
UnsupportedEncodingException
-
quote
-
quoteExceptFirst
-
indentTextBlock
-
getFieldName
Returns Internationalized human-readable name of a field, or the key (usually also readable) if none was found. -
getFieldName
-
getOldKey
public String getOldKey(org.ofbiz.core.entity.GenericValue changelog) throws org.ofbiz.core.entity.GenericEntityException For 'Move Issue' events; returns the issue's old key, extracted from the changelog.- Throws:
org.ofbiz.core.entity.GenericEntityException
-
getNewKey
public String getNewKey(org.ofbiz.core.entity.GenericValue changelog) throws org.ofbiz.core.entity.GenericEntityException For 'Move Issue' events; returns the issue's new key, extracted from the changelog.- Throws:
org.ofbiz.core.entity.GenericEntityException
-
printChangelog
public String printChangelog(org.ofbiz.core.entity.GenericValue changelog, I18nHelper i18n, Collection<String> ignoredFields) throws org.ofbiz.core.entity.GenericEntityException - Throws:
org.ofbiz.core.entity.GenericEntityException
-
printChangelog
public String printChangelog(org.ofbiz.core.entity.GenericValue changelog, I18nHelper i18n, Collection<String> ignoredFields, boolean ignoreStatus) throws org.ofbiz.core.entity.GenericEntityException - Throws:
org.ofbiz.core.entity.GenericEntityException
-
wasDeleted
public boolean wasDeleted(org.ofbiz.core.entity.GenericValue changelog, String fieldKey, I18nHelper i18n) throws org.ofbiz.core.entity.GenericEntityException - Throws:
org.ofbiz.core.entity.GenericEntityException
-
getPrettyFieldString
-
getPrettyFieldString
-
indentToChangelogNoLineSep
public String indentToChangelogNoLineSep(String fieldName, String fieldValue, I18nHelper i18n, List<String> allFieldNames) throws org.ofbiz.core.entity.GenericEntityException - Throws:
org.ofbiz.core.entity.GenericEntityException
-
newMap
Creates a new, mutable, map for use in velocity. The map will contain one entry (k1, v1). -
removeHtmlTags
-
noEscape
-