security service element updated (attributes change).
It is called whenever a SecurityServiceEvent with action of
SecurityServiceEvent.ACTION_UPDATE is received.
try {
SecurityService securityBean =
ServerBeansFactory.getSecurityServiceBean(
event.getConfigContext());
boolean auditFlag = securityBean.isAuditEnabled();
SecurityService oldSecurityBean =
ServerBeansFactory.getSecurityServiceBean(
event.getOldConfigContext());
boolean oldAuditFlag = oldSecurityBean.isAuditEnabled();
if (auditFlag != oldAuditFlag) {
AuditManagerFactory.getInstance().getAuditManagerInstance().setAuditOn(auditFlag);
}
} catch(Exception ex) {
throw new AdminEventListenerException(ex);
}