if ("*".equals(type) || type.equals(notification.getType()) ) {
Map map = (HashMap)notification.getUserData();
if (map != null) {
if (ipAddress != null && !(ipAddress.equals("*")) &&
!(ipAddress.equals(map.get(CALLER_IPADDRESS)))) {
return false;
}
if (callerPrincipal != null && !(callerPrincipal.equals("*")) &&
!(callerPrincipal.equals(map.get(CALLER_PRINCIPAL)))) {
return false;
}
if (componentName != null && !(componentName.equals("*")) &&
!(componentName.equals(map.get(COMPONENT_NAME)))) {
return false;
}
return true;
} else {
return false;
}
}
else
return false;