Package com.jalios.jcms.security
Class SecurityAlertManager
- java.lang.Object
-
- com.jalios.jcms.security.SecurityAlertManager
-
public class SecurityAlertManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description SecurityAlertManager()
-
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.
-
-
-
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
-
-
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 propertysecurity-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 propertysecurity-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 propertysecurity-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
-
-