Class PunishmentService
java.lang.Object
de.murmelmeister.murmelapi.punishment.PunishmentService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PunishmentCurrentIpProviderprivate final PunishmentLogProviderprivate final PunishmentReasonProviderprivate final PunishmentCurrentUserProvider -
Constructor Summary
ConstructorsConstructorDescriptionPunishmentService(PunishmentReasonProvider reasonProvider, PunishmentLogProvider logProvider, PunishmentCurrentIpProvider ipProvider, PunishmentCurrentUserProvider userProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidautoUnpunishedIp(String ipAddress, int typeId) voidautoUnpunishedUser(int userId, int typeId) booleanisExpiredIp(UUID logId) booleanisExpiredUser(UUID logId) booleanisPunishedIp(String ipAddress, int typeId) booleanisPunishedUser(int userId, int typeId) intpunishedIp(String ipAddress, int reasonId, int createdBy) intpunishedUser(int userId, int reasonId, int createdBy) intunpunishedIp(String ipAddress, int typeId, UUID logId, int changedBy) intunpunishedUser(int userId, int typeId, UUID logId, int changedBy) intupdatedPunishedIp(String ipAddress, int reasonId, int createdBy) intupdatedPunishedUser(int userId, int reasonId, int createdBy)
-
Field Details
-
reasonProvider
-
logProvider
-
ipProvider
-
userProvider
-
-
Constructor Details
-
PunishmentService
public PunishmentService(PunishmentReasonProvider reasonProvider, PunishmentLogProvider logProvider, PunishmentCurrentIpProvider ipProvider, PunishmentCurrentUserProvider userProvider)
-
-
Method Details
-
punishedUser
public int punishedUser(int userId, int reasonId, int createdBy) -
updatedPunishedUser
public int updatedPunishedUser(int userId, int reasonId, int createdBy) -
punishedIp
-
updatedPunishedIp
-
unpunishedUser
-
unpunishedIp
-
autoUnpunishedUser
public void autoUnpunishedUser(int userId, int typeId) -
autoUnpunishedIp
-
isPunishedUser
public boolean isPunishedUser(int userId, int typeId) -
isPunishedIp
-
isExpiredUser
-
isExpiredIp
-