Class AdminlogNotifyManager

java.lang.Object
sk.iway.iwcm.system.adminlog.AdminlogNotifyManager

public class AdminlogNotifyManager extends Object
AdminlogNotifyManager.java - vykonava pracu s databazou, posiela e-mail
  • Constructor Details

    • AdminlogNotifyManager

      protected AdminlogNotifyManager()
  • Method Details

    • sendNotification

      public static boolean sendNotification(int logType, RequestBean requestBean, Timestamp timestamp, String description, boolean writeToAuditLog)
      Posle notifikacne spravy na vsetky e-maily, ktore su priradene k danej akcii v tabulke adminlog_notify
      Parameters:
      logType - typ adminlogu, ktory sa pridal do DB a chceme na nho poslat notifikacie
      requestBean - dolezite informacie z requestu, ktore zahrnieme v sprave (IP adresa, domena, id pouzivatela...)
      timestamp - datum a cas, kedy bola akcia vykonana
      description - opis akcie, ktora bola zaznamenana
      Returns:
      true, ak sa poslu nejake notifikacie, false ak nebol poslany ziadny email
    • getNotifyEmails

      public static List<AuditNotifyEntity> getNotifyEmails(int logType)
      Vyselektuje vsetky e-maily, na ktore je potrebne poslat notifikaciu o zaznamenanom adminlogu
      Parameters:
      logType - typ adminlogu, ktory sa pridal do DB a chceme na nho poslat notifikacie
      Returns:
      List naplneny e-mailami, na ktore sa posle notifikacna sprava
    • clearCache

      public static void clearCache()
      Clear cache after eg. update of table adminlog_notify