public class ChangeLogUtils extends Object
TODO: Migrate methods to ChangeHistoryManager and deprecate
Constructor and Description |
---|
ChangeLogUtils() |
Modifier and Type | Method and Description |
---|---|
static org.ofbiz.core.entity.GenericValue |
createChangeGroup(ApplicationUser changeAuthor,
org.ofbiz.core.entity.GenericValue before,
org.ofbiz.core.entity.GenericValue after,
Collection<ChangeItemBean> incomingChangeItems,
boolean generateChangeItems)
Writes the given field changes to the db and optionally a changelog.
|
static org.ofbiz.core.entity.GenericValue |
createChangeGroup(ApplicationUser changeAuthor,
Issue before,
Issue after,
Collection<ChangeItemBean> incomingChangeItems,
boolean generateChangeItems)
|
static void |
deleteChangesForIssue(org.ofbiz.core.entity.GenericValue issue)
Deprecated.
|
static ChangeItemBean |
generateChangeItem(org.ofbiz.core.entity.GenericValue before,
org.ofbiz.core.entity.GenericValue after,
String fieldname) |
static List<ChangeItemBean> |
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) |
@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(ApplicationUser changeAuthor, org.ofbiz.core.entity.GenericValue before, org.ofbiz.core.entity.GenericValue after, Collection<ChangeItemBean> 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 ApplicationUser
making the change.public static org.ofbiz.core.entity.GenericValue createChangeGroup(ApplicationUser changeAuthor, Issue before, Issue after, Collection<ChangeItemBean> incomingChangeItems, boolean generateChangeItems)
createChangeGroup(com.atlassian.jira.user.ApplicationUser, org.ofbiz.core.entity.GenericValue, org.ofbiz.core.entity.GenericValue, java.util.Collection, boolean)
instead. Since v6.0.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 List<ChangeItemBean> 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)
Copyright © 2002-2018 Atlassian. All Rights Reserved.