|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.auditing.AuditingManagerImpl
public class AuditingManagerImpl
Constructor Summary | |
---|---|
AuditingManagerImpl(AuditingStore auditingStore,
ApplicationProperties applicationProperties,
com.atlassian.event.api.EventPublisher eventPublisher,
FeatureManager featureManager,
JiraAuthenticationContext authenticationContext,
PermissionManager permissionManager,
PermissionChangeHandler permissionChangeHandler,
GroupEventHandler groupEventHandler,
SchemeEventHandler schemeEventHandler,
UserEventHandler userEventHandler,
WorkflowEventHandler workflowEventHandler,
NotificationChangeHandler notificationChangeHandler,
FieldLayoutSchemeChangeHandler fieldLayoutSchemeChangeHandler)
|
Method Summary | |
---|---|
long |
countRecords(Long maxId,
Long sinceId)
|
protected long |
countRecords(Long maxId,
Long sinceId,
boolean includeSysAdminActions)
|
long |
countRecordsWithoutSysAdmin(Long maxId,
Long sinceId)
|
protected static I18nHelper |
getI18n()
|
protected ApplicationUser |
getLoggedInUser()
|
Records |
getRecords(Long maxId,
Long sinceId,
Long count,
Long page)
Get records from the database. |
protected Records |
getRecords(Long maxId,
Long sinceId,
Long maxResults,
Long page,
boolean includeSysAdminActions)
|
Records |
getRecordsWithoutSysAdmin(Long maxId,
Long sinceId,
Long count,
Long page)
Does the same as #getRecords(Long, Long, Long) but filters out all records
authored by sysadmins (users who were sysadmins at the time of performing the action) |
protected String |
getRemoteAddress()
|
boolean |
isAuditingEnabled()
|
void |
setAuditingEnabled(boolean enable)
Set the state of Auditing (enabled/disabled). |
protected void |
setAuditingEnabledNoPermissionCheck(boolean enable)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
void |
store(RecordRequest record)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuditingManagerImpl(AuditingStore auditingStore, ApplicationProperties applicationProperties, com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, PermissionChangeHandler permissionChangeHandler, GroupEventHandler groupEventHandler, SchemeEventHandler schemeEventHandler, UserEventHandler userEventHandler, WorkflowEventHandler workflowEventHandler, NotificationChangeHandler notificationChangeHandler, FieldLayoutSchemeChangeHandler fieldLayoutSchemeChangeHandler)
Method Detail |
---|
public void store(RecordRequest record)
store
in interface AuditingManager
@Nonnull public Records getRecords(@Nullable Long maxId, @Nullable Long sinceId, @Nullable Long count, @Nullable Long page)
AuditingManager
getRecords
in interface AuditingManager
maxId
- max record id to return (including), doesn't have to represent a real record in the databasesinceId
- smallest record id to return (including), doesn't have to represent a real record in the databasecount
- number of records to get, you cannot get more than 1000 records at once (if you provide larger number it will be automatically capped)page
- which page should be returned (if null first page will be returned; numeration of pages starts from 1)
@Nonnull public Records getRecordsWithoutSysAdmin(@Nullable Long maxId, @Nullable Long sinceId, @Nullable Long count, @Nullable Long page)
AuditingManager
#getRecords(Long, Long, Long)
but filters out all records
authored by sysadmins (users who were sysadmins at the time of performing the action)
getRecordsWithoutSysAdmin
in interface AuditingManager
@Nonnull public long countRecords(@Nullable Long maxId, @Nullable Long sinceId)
countRecords
in interface AuditingManager
@Nonnull public long countRecordsWithoutSysAdmin(@Nullable Long maxId, @Nullable Long sinceId)
countRecordsWithoutSysAdmin
in interface AuditingManager
protected Records getRecords(@Nullable Long maxId, @Nullable Long sinceId, @Nullable Long maxResults, Long page, boolean includeSysAdminActions)
protected long countRecords(@Nullable Long maxId, @Nullable Long sinceId, boolean includeSysAdminActions)
public boolean isAuditingEnabled()
isAuditingEnabled
in interface AuditingManager
public void setAuditingEnabled(boolean enable) throws PermissionException
AuditingManager
setAuditingEnabled
in interface AuditingManager
enable
- if true then enable auditing
PermissionException
- If the currently logged in user is not a system administratorprotected void setAuditingEnabledNoPermissionCheck(boolean enable)
@Nullable protected String getRemoteAddress()
protected ApplicationUser getLoggedInUser()
protected static I18nHelper getI18n()
public void start() throws Exception
Startable
start
in interface Startable
Exception
- Allows implementations to throw an Exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |