Class ReportLogManager
java.lang.Object
com.gamersafer.minecraft.auth.common.reportlog.ReportLogManager
-
Constructor Summary
ConstructorDescriptionReportLogManager
(IReportLogStorage db, IProfileService service, ILogger logger, LanguageConfiguration lang) -
Method Summary
Modifier and TypeMethodDescriptiongetAllReportLogs
(int limitMin, int limitMax) getCount()
getReportLogs
(UserIdentity identity) getReportLogs
(String guildMemberId) importLogs
(List<ReportLog> logs) log
(String organization, @Nullable String uniqueServerId, String type, Date reportTime, @Nullable Date reportEndTime, @Nullable String guildMemberId, UUID playerUuid, String playerName, @Nullable String reporterGuildMemberId, UUID reporterPlayerUuid, String reporterPlayerName, Category category, String description) void
shutdown()
Waits for the background saving task to finish.
-
Constructor Details
-
ReportLogManager
public ReportLogManager(IReportLogStorage db, IProfileService service, ILogger logger, LanguageConfiguration lang)
-
-
Method Details
-
log
public CompletableFuture<Void> log(String organization, @Nullable String uniqueServerId, String type, Date reportTime, @Nullable Date reportEndTime, @Nullable String guildMemberId, UUID playerUuid, String playerName, @Nullable String reporterGuildMemberId, UUID reporterPlayerUuid, String reporterPlayerName, Category category, String description) -
getCount
-
getAllReportLogs
-
getReportLogs
-
shutdown
public void shutdown()Waits for the background saving task to finish. -
importLogs
-