Package sk.iway.iwcm.system.adminlog
Class AdminlogNotifyManager
java.lang.Object
sk.iway.iwcm.system.adminlog.AdminlogNotifyManager
AdminlogNotifyManager.java - vykonava pracu s databazou, posiela e-mail
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Clear cache after eg.static List<AuditNotifyEntity>
getNotifyEmails
(int logType) Vyselektuje vsetky e-maily, na ktore je potrebne poslat notifikaciu o zaznamenanom adminlogustatic 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
-
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 notifikacierequestBean
- dolezite informacie z requestu, ktore zahrnieme v sprave (IP adresa, domena, id pouzivatela...)timestamp
- datum a cas, kedy bola akcia vykonanadescription
- opis akcie, ktora bola zaznamenana- Returns:
- true, ak sa poslu nejake notifikacie, false ak nebol poslany ziadny email
-
getNotifyEmails
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
-