Interface PunishmentReasonProvider
- All Known Implementing Classes:
PunishmentReasonProviderImpl
public interface PunishmentReasonProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(int id, int typeId, String reasonText, Long durationSecs, boolean autoFlagIp, boolean autoPunish, int createdBy) intdelete(int id) getReason(int id) getReasonsByType(int typeId) voidupdate(int id, int typeId, String reasonText, Long durationSecs, boolean autoFlagIp, boolean autoPunish, int changedBy)
-
Method Details
-
closeCache
void closeCache() -
refreshCache
void refreshCache() -
getReason
-
getReasonsByType
-
getAllReasons
List<PunishmentReason> getAllReasons() -
create
PunishmentReason create(int id, int typeId, String reasonText, Long durationSecs, boolean autoFlagIp, boolean autoPunish, int createdBy) -
delete
int delete(int id) -
update
PunishmentReason update(int id, int typeId, String reasonText, Long durationSecs, boolean autoFlagIp, boolean autoPunish, int changedBy)
-