com.atlassian.jira.auditing
Class RecordRequest

java.lang.Object
  extended by com.atlassian.jira.auditing.RecordRequest

public class RecordRequest
extends Object

Single entry that is going to be saved in the AuditLog

Since:
v6.2

Constructor Summary
RecordRequest(AuditingCategory category, String summary)
           
RecordRequest(AuditingCategory category, String summary, ApplicationUser author, String remoteAddress)
           
 
Method Summary
 RecordRequest forObject(AssociatedItem.Type type, String name, String id)
           
 RecordRequest forObject(AssociatedItem item)
           
 com.google.common.collect.ImmutableList<AssociatedItem> getAssociatedItems()
           
 ApplicationUser getAuthor()
           
 AuditingCategory getCategory()
           
 com.google.common.collect.ImmutableList<ChangedValue> getChangedValues()
           
protected  I18nHelper getI18n()
           
 AssociatedItem getObjectItem()
           
 String getRemoteAddress()
           
 String getSummary()
           
 RecordRequest thatAffects(AssociatedItem... items)
           
 RecordRequest thatAffects(Iterable<AssociatedItem> items)
           
 RecordRequest withChangedValues(ChangedValue... values)
           
 RecordRequest withChangedValues(Iterable<ChangedValue> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordRequest

public RecordRequest(@Nonnull
                     AuditingCategory category,
                     @Nonnull
                     String summary,
                     @Nullable
                     ApplicationUser author,
                     @Nullable
                     String remoteAddress)

RecordRequest

public RecordRequest(@Nonnull
                     AuditingCategory category,
                     @Nonnull
                     String summary)
Method Detail

forObject

public RecordRequest forObject(@Nonnull
                               AssociatedItem item)

forObject

public RecordRequest forObject(@Nonnull
                               AssociatedItem.Type type,
                               @Nonnull
                               String name,
                               @Nullable
                               String id)

thatAffects

public RecordRequest thatAffects(@Nonnull
                                 AssociatedItem... items)

thatAffects

public RecordRequest thatAffects(@Nonnull
                                 Iterable<AssociatedItem> items)

withChangedValues

public RecordRequest withChangedValues(@Nonnull
                                       ChangedValue... values)

withChangedValues

public RecordRequest withChangedValues(@Nonnull
                                       Iterable<ChangedValue> values)

getCategory

@Nonnull
public AuditingCategory getCategory()

getSummary

@Nonnull
public String getSummary()

getAuthor

@Nullable
public ApplicationUser getAuthor()

getRemoteAddress

@Nullable
public String getRemoteAddress()

getAssociatedItems

public com.google.common.collect.ImmutableList<AssociatedItem> getAssociatedItems()

getChangedValues

public com.google.common.collect.ImmutableList<ChangedValue> getChangedValues()

getObjectItem

@Nullable
public AssociatedItem getObjectItem()

getI18n

protected I18nHelper getI18n()


Copyright © 2002-2014 Atlassian. All Rights Reserved.