|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.changehistory.ChangeHistoryItem
@Immutable @PublicApi public class ChangeHistoryItem
A simple holder for change items In 4.4 the behaviour of this domain object was changed to add support for changes that can can have multi value states for instance an affectedVersion could change from the state "4.4 4.4.1" -> "4.4 4.4.1 4.4.2" To this end end extra methods are added getFroms(), getTos() that return a map of all the changes in a single change item getFrom and getTo will return the first change in this list, this will not break behaviour for any of the supported single value fields. For Versions and other multi value fields the behaviour of getFrom(), getTo(), getFromValue() and get ToValue() will return only the first change in the map. It is preferred to use getFroms and getTos in this case. getFrom(), getTo(), getFromValue() and getToValue() are therefore all amrked as deprectaed and may be removed in future versions.
Nested Class Summary | |
---|---|
static class |
ChangeHistoryItem.Builder
|
Constructor Summary | |
---|---|
ChangeHistoryItem(Long id,
Long changeGroupId,
Long projectId,
Long issueId,
String issueKey,
String field,
Timestamp created,
String from,
String to,
String fromValue,
String toValue,
String user)
|
|
ChangeHistoryItem(Long id,
Long changeGroupId,
Long projectId,
Long issueId,
String issueKey,
String field,
Timestamp created,
Timestamp nextChange,
String from,
String to,
String fromValue,
String toValue,
String user)
|
Method Summary | |
---|---|
int |
compareTo(ChangeHistoryItem other)
|
boolean |
containsFromValue(String fromValue)
|
boolean |
containsToValue(String toValue)
|
boolean |
equals(Object o)
|
Long |
getChangeGroupId()
|
Timestamp |
getCreated()
|
Long |
getDuration()
|
String |
getField()
|
String |
getFrom()
Deprecated. As of 4.4.2, prefer to use getFroms() |
Map<String,String> |
getFroms()
|
String |
getFromValue()
Deprecated. As of 4.4.2, prefer to use getFroms() |
Long |
getId()
|
Long |
getIssueId()
|
String |
getIssueKey()
|
Timestamp |
getNextChangeCreated()
|
Long |
getProjectId()
|
String |
getTo()
Deprecated. As of 4.4.2, prefer to use getTos() } |
Map<String,String> |
getTos()
|
String |
getToValue()
Deprecated. As of 4.4.2, prefer to use getTos() |
String |
getUser()
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeHistoryItem(Long id, Long changeGroupId, Long projectId, Long issueId, String issueKey, String field, Timestamp created, String from, String to, String fromValue, String toValue, String user)
public ChangeHistoryItem(Long id, Long changeGroupId, Long projectId, Long issueId, String issueKey, String field, Timestamp created, Timestamp nextChange, String from, String to, String fromValue, String toValue, String user)
Method Detail |
---|
public Long getId()
public Long getChangeGroupId()
public String getUser()
public Long getProjectId()
public Long getIssueId()
public String getIssueKey()
public Timestamp getCreated()
@Deprecated public String getFrom()
getFroms()
@Deprecated public String getTo()
getTos()
}
@Deprecated public String getFromValue()
getFroms()
@Deprecated public String getToValue()
getTos()
public Map<String,String> getFroms()
public Map<String,String> getTos()
public String getField()
public Timestamp getNextChangeCreated()
public Long getDuration()
public boolean containsFromValue(String fromValue)
public boolean containsToValue(String toValue)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(ChangeHistoryItem other)
compareTo
in interface Comparable<ChangeHistoryItem>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |