Package com.atlassian.upm.api.log
Interface PluginLogService
public interface PluginLogService
Provides a log of all events that change the state of the plugin system. An event is stored as a
AuditLogEntry
which consists of a date, user name, and message. The log can be retrieved as a collection of events.
Implementations should be thread safe. Multiple threads may assume they can call the interface methods
safely, assuming no additional atomicity requirements are required between calls. Atomicity may be
achieved by synchronizing on the service object and performing successive operations in that block.- Since:
- 1.6
-
Method Summary
Modifier and TypeMethodDescriptionReturns all plugin log entries.getLogEntries(Integer maxResults, Integer startIndex) ReturnsmaxResultsnumber of plugin log entries, starting atstartIndex.getLogEntries(Integer maxResults, Integer startIndex, Set<EntryType> entryTypes) ReturnsmaxResultsnumber of plugin log entries of the specified types, starting atstartIndex.getLogEntries(Set<EntryType> entryTypes) Returns all plugin log entries with the specifiedEntryTypes.
-
Method Details
-
getLogEntries
Iterable<AuditLogEntry> getLogEntries()Returns all plugin log entries.- Returns:
- all plugin log entries.
-
getLogEntries
ReturnsmaxResultsnumber of plugin log entries, starting atstartIndex.- Parameters:
maxResults- the maximum number of plugin log entries to return, or "all" if nullstartIndex- the starting index of plugin log entries, or 0 if null- Returns:
maxResultsnumber of plugin log entries, starting atstartIndex.
-
getLogEntries
Returns all plugin log entries with the specifiedEntryTypes. -
getLogEntries
Iterable<AuditLogEntry> getLogEntries(Integer maxResults, Integer startIndex, Set<EntryType> entryTypes) ReturnsmaxResultsnumber of plugin log entries of the specified types, starting atstartIndex.- Parameters:
maxResults- the maximum number of plugin log entries to return, or "all" if nullstartIndex- the starting index of plugin log entries, or 0 if nullentryTypes- theEntryTypes- Returns:
maxResultsnumber of plugin log entries, starting atstartIndex.
-