Package com.jalios.jcms.security
Class SecurityAlertManager
java.lang.Object
com.jalios.jcms.security.SecurityAlertManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of Alert attribute used to indicate the alert is a security alert.static final StringName of Alert attribute used to store the id of the delegate member that was logged when security action was performed.static final StringName of Alert attribute used to indicate the alert is a security alert.static final StringName of Alert attribute used to store the id of the member that was logged when security action was performed.static final StringName of Alert attribute used to remote addr from which security action was performed.static final StringName of Alert attribute used to remote host from which security action was performed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandisplayDetails(Alert alert) Check if security informations (such as member, ip, host, etc) should be displayed in alert (mail, web, ...).static booleanCheck if IP informations should be displayed in alert (mail, web, ...).static booleanCheck if Member informations (author, delegate) should be displayed in alert (mail, web, ...).static booleanisSecurityAlert(Alert alert) Check if the specified Alert is a security alert.
-
Field Details
-
SECURITY_ALERT_DOMAIN
Name of Alert attribute used to indicate the alert is a security alert.- See Also:
-
SECURITY_ALERT_ATTRIBUTE
Name of Alert attribute used to indicate the alert is a security alert.- See Also:
-
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
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
Name of Alert attribute used to remote addr from which security action was performed.- See Also:
-
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
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
Check if the specified Alert is a security alert.- Parameters:
alert- the alert- Returns:
- true if alert is related to security, false otherwise
-