From d9082f21a3f1d9be32e85967afe996b8341855ae Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:53:39 +0700 Subject: [PATCH] [ANY] Delete old interfaces --- .../AuthSupportGetSessionsFromUser.java | 12 --------- .../provider/AuthSupportUserBan.java | 20 -------------- .../interfaces/user/UserSupportBanInfo.java | 27 ------------------- 3 files changed, 59 deletions(-) delete mode 100644 LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportGetSessionsFromUser.java delete mode 100644 LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportUserBan.java delete mode 100644 LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/user/UserSupportBanInfo.java diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportGetSessionsFromUser.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportGetSessionsFromUser.java deleted file mode 100644 index a8155eea..00000000 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportGetSessionsFromUser.java +++ /dev/null @@ -1,12 +0,0 @@ -package pro.gravit.launchserver.auth.core.interfaces.provider; - -import pro.gravit.launchserver.auth.Feature; -import pro.gravit.launchserver.auth.core.User; -import pro.gravit.launchserver.auth.core.UserSession; - -import java.util.List; - -@Feature("sessions") -public interface AuthSupportGetSessionsFromUser extends AuthSupport { - List getSessionsByUser(User user); -} diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportUserBan.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportUserBan.java deleted file mode 100644 index 489d6cbd..00000000 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/provider/AuthSupportUserBan.java +++ /dev/null @@ -1,20 +0,0 @@ -package pro.gravit.launchserver.auth.core.interfaces.provider; - -import pro.gravit.launchserver.auth.core.User; -import pro.gravit.launchserver.auth.core.interfaces.user.UserSupportBanInfo; - -import java.time.LocalDateTime; - -public interface AuthSupportUserBan extends AuthSupport { - UserSupportBanInfo.UserBanInfo banUser(User user, String reason, String moderator, LocalDateTime startTime, LocalDateTime endTime); - - default UserSupportBanInfo.UserBanInfo banUser(User user) { - return banUser(user, null, null, LocalDateTime.now(), null); - } - - void unbanUser(User user); - - default UserSupportBanInfo fetchUserBanInfo(User user) { - return (UserSupportBanInfo) user; - } -} diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/user/UserSupportBanInfo.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/user/UserSupportBanInfo.java deleted file mode 100644 index 77899389..00000000 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/interfaces/user/UserSupportBanInfo.java +++ /dev/null @@ -1,27 +0,0 @@ -package pro.gravit.launchserver.auth.core.interfaces.user; - -import java.time.LocalDateTime; - -public interface UserSupportBanInfo { - UserBanInfo getBanInfo(); - - interface UserBanInfo { - String getId(); - - default String getReason() { - return null; - } - - default String getModerator() { - return null; - } - - default LocalDateTime getStartDate() { - return null; - } - - default LocalDateTime getEndDate() { - return null; - } - } -}