com.atlassian.jira.auditing
Class RecordRequest

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

@ExperimentalApi
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, String eventSource)
           
RecordRequest(AuditingCategory category, String summary, String eventSource, ApplicationUser author, String remoteAddress)
           
 
Method Summary
 RecordRequest forObject(AssociatedItem.Type type, String name)
           
 RecordRequest forObject(AssociatedItem.Type type, String name, Long id)
           
 RecordRequest forObject(AssociatedItem.Type type, String name, String id)
           
 RecordRequest forObject(AssociatedItem item)
           
 com.google.common.collect.ImmutableList<AssociatedItem> getAssociatedItems()
           
 ApplicationUser getAuthor()
           
 AuditingCategory getCategory()
           
 String getCategoryName()
           
 com.google.common.collect.ImmutableList<ChangedValue> getChangedValues()
           
 String getEventSource()
           
protected  I18nHelper getI18n()
           
 AssociatedItem getObjectItem()
           
 String getRemoteAddress()
           
 String getSummary()
           
 RecordRequest withAssociatedItem(AssociatedItem.Type type, String name, String id)
           
 RecordRequest withAssociatedItems(AssociatedItem... items)
           
 RecordRequest withAssociatedItems(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,
                     @Nonnull
                     String eventSource,
                     @Nullable
                     ApplicationUser author,
                     @Nullable
                     String remoteAddress)

RecordRequest

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

RecordRequest

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

forObject

public RecordRequest forObject(@Nonnull
                               AssociatedItem item)

forObject

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

forObject

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

forObject

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

withAssociatedItem

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

withAssociatedItems

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

withAssociatedItems

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

withChangedValues

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

withChangedValues

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

getCategory

@Nonnull
public AuditingCategory getCategory()

getCategoryName

@Nonnull
public String getCategoryName()

getSummary

@Nonnull
public String getSummary()

getEventSource

@Nonnull
public String getEventSource()

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.