com.atlassian.jira.auditing
Class AuditingStoreImpl

java.lang.Object
  extended by com.atlassian.jira.auditing.AuditingStoreImpl
All Implemented Interfaces:
AuditingStore

public class AuditingStoreImpl
extends Object
implements AuditingStore

Since:
v6.2

Field Summary
static int MAX_RESULTS_LIMIT
           
static long OTHER
           
static long SYSADMIN
           
 
Constructor Summary
AuditingStoreImpl(OfBizDelegator ofBizDelegator, TransactionSupport transactionSupport)
           
 
Method Summary
static String computeSearchField(String summary, AssociatedItem objectItem, Iterable<AssociatedItem> associatedItems, Iterable<ChangedValue> changedValues, String remoteAddress, ApplicationUser author, String categoryName)
           
 long countRecords(Long maxId, Long sinceId, boolean includeSysAdminActions)
           
protected  org.ofbiz.core.entity.EntityCondition getCondition(Long maxId, Long sinceId, String filter, Long fromTimestamp, Long toTimestamp, boolean includeSysAdminActions)
           
 Records getRecords(Long maxId, Long sinceId, String filter, Long maxResults, Long page, Long fromTimestamp, Long toTimestamp, boolean includeSysAdminActions)
           
protected  void storeAssociatedItems(org.ofbiz.core.entity.GenericValue gv, Iterable<AssociatedItem> associatedItems)
           
protected  void storeChangedValues(org.ofbiz.core.entity.GenericValue gv, Iterable<ChangedValue> changedValues)
           
 void storeRecord(AuditingCategory category, String categoryName, String summary, ApplicationUser author, String remoteAddress, AssociatedItem objectItem, Iterable<ChangedValue> changedValues, Iterable<AssociatedItem> associatedItems, boolean isAuthorSysAdmin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OTHER

public static final long OTHER
See Also:
Constant Field Values

SYSADMIN

public static final long SYSADMIN
See Also:
Constant Field Values

MAX_RESULTS_LIMIT

public static final int MAX_RESULTS_LIMIT
See Also:
Constant Field Values
Constructor Detail

AuditingStoreImpl

public AuditingStoreImpl(OfBizDelegator ofBizDelegator,
                         TransactionSupport transactionSupport)
Method Detail

storeRecord

public void storeRecord(@Nonnull
                        AuditingCategory category,
                        String categoryName,
                        @Nonnull
                        String summary,
                        @Nullable
                        ApplicationUser author,
                        @Nullable
                        String remoteAddress,
                        @Nullable
                        AssociatedItem objectItem,
                        @Nullable
                        Iterable<ChangedValue> changedValues,
                        @Nullable
                        Iterable<AssociatedItem> associatedItems,
                        boolean isAuthorSysAdmin)
Specified by:
storeRecord in interface AuditingStore

computeSearchField

public static String computeSearchField(String summary,
                                        AssociatedItem objectItem,
                                        Iterable<AssociatedItem> associatedItems,
                                        Iterable<ChangedValue> changedValues,
                                        String remoteAddress,
                                        ApplicationUser author,
                                        String categoryName)

storeChangedValues

protected void storeChangedValues(@Nonnull
                                  org.ofbiz.core.entity.GenericValue gv,
                                  @Nonnull
                                  Iterable<ChangedValue> changedValues)

storeAssociatedItems

protected void storeAssociatedItems(@Nonnull
                                    org.ofbiz.core.entity.GenericValue gv,
                                    @Nonnull
                                    Iterable<AssociatedItem> associatedItems)

getRecords

@Nonnull
public Records getRecords(@Nullable
                                  Long maxId,
                                  @Nullable
                                  Long sinceId,
                                  @Nullable
                                  String filter,
                                  @Nullable
                                  Long maxResults,
                                  Long page,
                                  Long fromTimestamp,
                                  Long toTimestamp,
                                  boolean includeSysAdminActions)
Specified by:
getRecords in interface AuditingStore

countRecords

public long countRecords(@Nullable
                         Long maxId,
                         @Nullable
                         Long sinceId,
                         boolean includeSysAdminActions)
Specified by:
countRecords in interface AuditingStore

getCondition

@Nullable
protected org.ofbiz.core.entity.EntityCondition getCondition(@Nullable
                                                                      Long maxId,
                                                                      @Nullable
                                                                      Long sinceId,
                                                                      String filter,
                                                                      Long fromTimestamp,
                                                                      Long toTimestamp,
                                                                      boolean includeSysAdminActions)


Copyright © 2002-2014 Atlassian. All Rights Reserved.