com.atlassian.jira.web.util
Class ChangeHistoryUtils

java.lang.Object
  extended by com.atlassian.jira.web.util.ChangeHistoryUtils

public class ChangeHistoryUtils
extends Object


Field Summary
static String CHANGED_FROM
           
static String LINE_ENDING
           
static String SET_TO
           
static String TERMINATOR
           
static String TERMINATOR_BR
           
static String TO
           
static String WAS_ADDED
           
static String WAS_REMOVED
           
 
Constructor Summary
ChangeHistoryUtils()
           
 
Method Summary
static String highlight(String body, String colour)
          Highlight a change log by breaking it into separate lines and highlighting each one
static String highlightLine(String line, String colour)
          There are a few different types of change logs, each appearing on separate lines: [Field] changed from [foo] to [bar] [Field] set to [foo] [Version] [X] was added [Version] [Y] was removed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGED_FROM

public static final String CHANGED_FROM
See Also:
Constant Field Values

TO

public static final String TO
See Also:
Constant Field Values

SET_TO

public static final String SET_TO
See Also:
Constant Field Values

WAS_ADDED

public static final String WAS_ADDED
See Also:
Constant Field Values

WAS_REMOVED

public static final String WAS_REMOVED
See Also:
Constant Field Values

LINE_ENDING

public static final String LINE_ENDING
See Also:
Constant Field Values

TERMINATOR

public static final String TERMINATOR
See Also:
Constant Field Values

TERMINATOR_BR

public static final String TERMINATOR_BR
See Also:
Constant Field Values
Constructor Detail

ChangeHistoryUtils

public ChangeHistoryUtils()
Method Detail

highlight

public static String highlight(String body,
                               String colour)
Highlight a change log by breaking it into separate lines and highlighting each one


highlightLine

public static String highlightLine(String line,
                                   String colour)
There are a few different types of change logs, each appearing on separate lines: [Field] changed from [foo] to [bar] [Field] set to [foo] [Version] [X] was added [Version] [Y] was removed



Copyright © 2002-2012 Atlassian. All Rights Reserved.