com.atlassian.jira.issue.history
Class ChangeLogUtils

java.lang.Object
  extended bycom.atlassian.jira.issue.history.ChangeLogUtils

public class ChangeLogUtils
extends Object


Field Summary
(package private) static org.apache.log4j.Category log
           
 
Constructor Summary
ChangeLogUtils()
           
 
Method Summary
static org.ofbiz.core.entity.GenericValue createChangeGroup(User changeAuthor, org.ofbiz.core.entity.GenericValue before, org.ofbiz.core.entity.GenericValue after, Collection incomingChangeItems, boolean generateChangeItems)
          Writes the changes to fields as an action to the db
static void deleteChangesForIssue(org.ofbiz.core.entity.GenericValue issue)
          Deletes all the change groups and change items associated with the provided issue.
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)
           
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
 

Field Detail

log

static org.apache.log4j.Category log
Constructor Detail

ChangeLogUtils

public ChangeLogUtils()
Method Detail

deleteChangesForIssue

public static void deleteChangesForIssue(org.ofbiz.core.entity.GenericValue issue)
Deletes all the change groups and change items associated with the provided issue.

Parameters:
issue - represents the issue that is being deleted

createChangeGroup

public static org.ofbiz.core.entity.GenericValue createChangeGroup(User changeAuthor,
                                                                   org.ofbiz.core.entity.GenericValue before,
                                                                   org.ofbiz.core.entity.GenericValue after,
                                                                   Collection incomingChangeItems,
                                                                   boolean generateChangeItems)
Writes the changes to fields as an action to the db

Parameters:
before - The issue before the update
after - This issue after the update
incomingChangeItems - A list containing ChangeItemBean
generateChangeItems -

generateChangeItems

public static List generateChangeItems(org.ofbiz.core.entity.GenericValue before,
                                       org.ofbiz.core.entity.GenericValue after)

generateChangeItem

public static ChangeItemBean generateChangeItem(org.ofbiz.core.entity.GenericValue before,
                                                org.ofbiz.core.entity.GenericValue after,
                                                String fieldname)

generateSecurityChangeItem

public static ChangeItemBean generateSecurityChangeItem(String fieldname,
                                                        String from,
                                                        String to)


Copyright © 2002-2006 Atlassian. All Rights Reserved.