|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.history.ChangeLogUtils
public class ChangeLogUtils
Utility methods for managing ChangeGroup entities on issues, also known as the Change Log or Change History.
TODO: Migrate methods to ChangeHistoryManager and deprecate
Constructor Summary | |
---|---|
ChangeLogUtils()
|
Method Summary | |
---|---|
static org.ofbiz.core.entity.GenericValue |
createChangeGroup(com.atlassian.crowd.embedded.api.User changeAuthor,
org.ofbiz.core.entity.GenericValue before,
org.ofbiz.core.entity.GenericValue after,
Collection incomingChangeItems,
boolean generateChangeItems)
Writes the given field changes to the db and optionally a changelog. |
static org.ofbiz.core.entity.GenericValue |
createChangeGroup(com.atlassian.crowd.embedded.api.User changeAuthor,
Issue before,
Issue after,
Collection incomingChangeItems,
boolean generateChangeItems)
|
static void |
deleteChangesForIssue(org.ofbiz.core.entity.GenericValue issue)
Deprecated. use ChangeHistoryManager.removeAllChangeItems(com.atlassian.jira.issue.Issue)
instead. |
static ChangeItemBean |
generateChangeItem(org.ofbiz.core.entity.GenericValue before,
org.ofbiz.core.entity.GenericValue after,
String fieldname)
|
static List |
generateChangeItems(org.ofbiz.core.entity.GenericValue before,
org.ofbiz.core.entity.GenericValue after)
Returns a List of ChangeItemBean objects for each of the relevant fields that differ between the two issues. |
static ChangeItemBean |
generateSecurityChangeItem(String fieldname,
String from,
String to)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeLogUtils()
Method Detail |
---|
@Deprecated public static void deleteChangesForIssue(org.ofbiz.core.entity.GenericValue issue)
ChangeHistoryManager.removeAllChangeItems(com.atlassian.jira.issue.Issue)
instead.
issue
- represents the issue that is being deletedpublic static org.ofbiz.core.entity.GenericValue createChangeGroup(com.atlassian.crowd.embedded.api.User changeAuthor, org.ofbiz.core.entity.GenericValue before, org.ofbiz.core.entity.GenericValue after, Collection incomingChangeItems, boolean generateChangeItems)
before
- The issue before the update.after
- This issue after the update.incomingChangeItems
- Some ChangeItemBean
.generateChangeItems
- if true, a changelog is actually generated.changeAuthor
- the User making the change.
public static org.ofbiz.core.entity.GenericValue createChangeGroup(com.atlassian.crowd.embedded.api.User changeAuthor, Issue before, Issue after, Collection incomingChangeItems, boolean generateChangeItems)
public static List generateChangeItems(org.ofbiz.core.entity.GenericValue before, org.ofbiz.core.entity.GenericValue after)
before
- A GenericValue for the issue before the change.after
- A GenericValue for the issue after the change.
public static ChangeItemBean generateChangeItem(org.ofbiz.core.entity.GenericValue before, org.ofbiz.core.entity.GenericValue after, String fieldname)
public static ChangeItemBean generateSecurityChangeItem(String fieldname, String from, String to)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |