public class SecurityAlertManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SECURITY_ALERT_ATTRIBUTE
Name of Alert attribute used to indicate the alert is a security alert.
|
static 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.
|
static java.lang.String |
SECURITY_ALERT_DOMAIN
Name of Alert attribute used to indicate the alert is a security alert.
|
static 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.
|
static java.lang.String |
SECURITY_ALERT_REMOTE_ADDR_ATTRIBUTE
Name of Alert attribute used to remote addr from which security action was performed.
|
static java.lang.String |
SECURITY_ALERT_REMOTE_HOST_ATTRIBUTE
Name of Alert attribute used to remote host from which security action was performed.
|
Constructor and Description |
---|
SecurityAlertManager() |
Modifier and Type | Method and 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.
|
public static final java.lang.String SECURITY_ALERT_DOMAIN
public static final java.lang.String SECURITY_ALERT_ATTRIBUTE
public static final java.lang.String SECURITY_ALERT_LOGGED_MEMBER_ATTRIBUTE
public static final java.lang.String SECURITY_ALERT_DELEGATE_MEMBER_ATTRIBUTE
public static final java.lang.String SECURITY_ALERT_REMOTE_ADDR_ATTRIBUTE
public static final java.lang.String SECURITY_ALERT_REMOTE_HOST_ATTRIBUTE
public static boolean displayDetails(Alert alert)
security-alert.display-details: false
alert
- the alertpublic static boolean displayMember()
security-alert.display-details.member: false
public static boolean displayIP()
security-alert.display-details.ip: true
public static boolean isSecurityAlert(Alert alert)
alert
- the alertCopyright © 2001-2021 Jalios SA. All Rights Reserved.