public class JiraVelocityHelper extends Object
Constructor and Description |
---|
JiraVelocityHelper(FieldManager fieldManager) |
Modifier and Type | Method and Description |
---|---|
String |
getFieldName(org.ofbiz.core.entity.GenericValue changeItem,
I18nHelper i18n) |
String |
getFieldName(String fieldKey,
I18nHelper i18n)
Returns Internationalized human-readable name of a field, or the key (usually also readable) if none was found.
|
String |
getNewKey(org.ofbiz.core.entity.GenericValue changelog)
For 'Move Issue' events; returns the issue's new key, extracted from the changelog.
|
String |
getOldKey(org.ofbiz.core.entity.GenericValue changelog)
For 'Move Issue' events; returns the issue's old key, extracted from the changelog.
|
String |
getPrettyFieldString(String fieldKey,
String str,
String value,
I18nHelper i18n) |
String |
getPrettyFieldString(String fieldKey,
String str,
String value,
I18nHelper i18n,
String defaultIfNull) |
String |
indentTextBlock(String in,
String indentStr,
boolean quoteFirst) |
String |
indentToChangelogNoLineSep(String fieldName,
String fieldValue,
I18nHelper i18n,
List<String> allFieldNames) |
Map |
newMap(Object k1,
Object v1)
Creates a new, mutable, map for use in velocity.
|
String |
printChangelog(org.ofbiz.core.entity.GenericValue changelog,
I18nHelper i18n,
Collection<String> ignoredFields) |
String |
printChangelog(org.ofbiz.core.entity.GenericValue changelog,
I18nHelper i18n,
Collection<String> ignoredFields,
boolean ignoreStatus) |
String |
quote(String in) |
String |
quoteExceptFirst(String in) |
String |
removeHtmlTags(String str) |
String |
urlencode(String s) |
boolean |
wasDeleted(org.ofbiz.core.entity.GenericValue changelog,
String fieldKey,
I18nHelper i18n) |
public JiraVelocityHelper(FieldManager fieldManager)
public String urlencode(String s) throws UnsupportedEncodingException
UnsupportedEncodingException
public String getFieldName(String fieldKey, I18nHelper i18n)
public String getFieldName(org.ofbiz.core.entity.GenericValue changeItem, I18nHelper i18n)
public String getOldKey(org.ofbiz.core.entity.GenericValue changelog) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public String getNewKey(org.ofbiz.core.entity.GenericValue changelog) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public String printChangelog(org.ofbiz.core.entity.GenericValue changelog, I18nHelper i18n, Collection<String> ignoredFields) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public String printChangelog(org.ofbiz.core.entity.GenericValue changelog, I18nHelper i18n, Collection<String> ignoredFields, boolean ignoreStatus) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public boolean wasDeleted(org.ofbiz.core.entity.GenericValue changelog, String fieldKey, I18nHelper i18n) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public String getPrettyFieldString(String fieldKey, String str, String value, I18nHelper i18n)
public String getPrettyFieldString(String fieldKey, String str, String value, I18nHelper i18n, String defaultIfNull)
public String indentToChangelogNoLineSep(String fieldName, String fieldValue, I18nHelper i18n, List<String> allFieldNames) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public Map newMap(Object k1, Object v1)
Copyright © 2002-2022 Atlassian. All Rights Reserved.