Class SecurityAlertManager


  • public class SecurityAlertManager
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean displayDetails​(Alert alert)
      Check if security informations (such as member, ip, host, etc) should be displayed in alert (mail, web, ...).
      static boolean displayIP()
      Check if IP informations should be displayed in alert (mail, web, ...).
      static boolean displayMember()
      Check if Member informations (author, delegate) should be displayed in alert (mail, web, ...).
      static boolean isSecurityAlert​(Alert alert)
      Check if the specified Alert is a security alert.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SECURITY_ALERT_DOMAIN

        public static final java.lang.String SECURITY_ALERT_DOMAIN
        Name of Alert attribute used to indicate the alert is a security alert.
        See Also:
        Constant Field Values
      • SECURITY_ALERT_ATTRIBUTE

        public static final java.lang.String SECURITY_ALERT_ATTRIBUTE
        Name of Alert attribute used to indicate the alert is a security alert.
        See Also:
        Constant Field Values
      • SECURITY_ALERT_LOGGED_MEMBER_ATTRIBUTE

        public static final java.lang.String SECURITY_ALERT_LOGGED_MEMBER_ATTRIBUTE
        Name of Alert attribute used to store the id of the member that was logged when security action was performed.
        See Also:
        Constant Field Values
      • SECURITY_ALERT_DELEGATE_MEMBER_ATTRIBUTE

        public static final java.lang.String SECURITY_ALERT_DELEGATE_MEMBER_ATTRIBUTE
        Name of Alert attribute used to store the id of the delegate member that was logged when security action was performed.
        See Also:
        Constant Field Values
      • SECURITY_ALERT_REMOTE_ADDR_ATTRIBUTE

        public static final java.lang.String SECURITY_ALERT_REMOTE_ADDR_ATTRIBUTE
        Name of Alert attribute used to remote addr from which security action was performed.
        See Also:
        Constant Field Values
      • SECURITY_ALERT_REMOTE_HOST_ATTRIBUTE

        public static final java.lang.String SECURITY_ALERT_REMOTE_HOST_ATTRIBUTE
        Name of Alert attribute used to remote host from which security action was performed.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SecurityAlertManager

        public SecurityAlertManager()
    • Method Detail

      • displayDetails

        public static boolean displayDetails​(Alert alert)
        Check if security informations (such as member, ip, host, etc) should be displayed in alert (mail, web, ...). Default is true, it can be modified using property security-alert.display-details: false
        Parameters:
        alert - the alert
        Returns:
        true to display alert, false otherwise
      • displayMember

        public static boolean displayMember()
        Check if Member informations (author, delegate) should be displayed in alert (mail, web, ...). Default is true, it can be modified using property security-alert.display-details.member: false
        Returns:
        true to display alert, false otherwise
      • displayIP

        public static boolean displayIP()
        Check if IP informations should be displayed in alert (mail, web, ...). Default is false, it can be modified using property security-alert.display-details.ip: true
        Returns:
        true to display alert, false otherwise
      • isSecurityAlert

        public static boolean isSecurityAlert​(Alert alert)
        Check if the specified Alert is a security alert.
        Parameters:
        alert - the alert
        Returns:
        true if alert is related to security, false otherwise