Class SecurityAlertManager

java.lang.Object
com.jalios.jcms.security.SecurityAlertManager

public class SecurityAlertManager extends Object
  • Field Details

    • SECURITY_ALERT_DOMAIN

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

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

      public static final 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:
    • SECURITY_ALERT_DELEGATE_MEMBER_ATTRIBUTE

      public static final 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:
    • SECURITY_ALERT_REMOTE_ADDR_ATTRIBUTE

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

      public static final String SECURITY_ALERT_REMOTE_HOST_ATTRIBUTE
      Name of Alert attribute used to remote host from which security action was performed.
      See Also:
  • Constructor Details

    • SecurityAlertManager

      public SecurityAlertManager()
  • Method Details

    • 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