summaryrefslogtreecommitdiffstats
path: root/PolicyEngineAPI/src/main/java
diff options
context:
space:
mode:
authorTarun Tej Velaga <tt3868@att.com>2017-07-24 17:13:43 +0000
committerTarun Tej Velaga <tt3868@att.com>2017-07-25 14:23:59 +0000
commite92ff832cf993db876f22b2d27562fedf59f5043 (patch)
tree47429eeaaf4241905d7ea1f71dbdb5c2d0504618 /PolicyEngineAPI/src/main/java
parent570290dc6ba8198e653022c2f6f8e5d01cfa8d1b (diff)
[Policy-52, Policy-92, Policy-93] Policy Enhancements and bugfixes
Change-Id: I5675cf4527e17963b3142cf7184c0df31a766197 Signed-off-by: Tarun Tej Velaga <tt3868@att.com>
Diffstat (limited to 'PolicyEngineAPI/src/main/java')
-rw-r--r--PolicyEngineAPI/src/main/java/org/openecomp/policy/api/DictionaryType.java4
-rw-r--r--PolicyEngineAPI/src/main/java/org/openecomp/policy/std/AutoClientEnd.java8
2 files changed, 10 insertions, 2 deletions
diff --git a/PolicyEngineAPI/src/main/java/org/openecomp/policy/api/DictionaryType.java b/PolicyEngineAPI/src/main/java/org/openecomp/policy/api/DictionaryType.java
index b50f398a9..823a56ba9 100644
--- a/PolicyEngineAPI/src/main/java/org/openecomp/policy/api/DictionaryType.java
+++ b/PolicyEngineAPI/src/main/java/org/openecomp/policy/api/DictionaryType.java
@@ -67,6 +67,10 @@ public enum DictionaryType{
* Indicates SafePolicy Dictionaries
*/
SafePolicy("SafePolicy"),
+ /**
+ * Enum support entry to extend dictionary
+ */
+ Extended("Extended"),
;
private String name;
diff --git a/PolicyEngineAPI/src/main/java/org/openecomp/policy/std/AutoClientEnd.java b/PolicyEngineAPI/src/main/java/org/openecomp/policy/std/AutoClientEnd.java
index d7ec9ac43..06a2e471e 100644
--- a/PolicyEngineAPI/src/main/java/org/openecomp/policy/std/AutoClientEnd.java
+++ b/PolicyEngineAPI/src/main/java/org/openecomp/policy/std/AutoClientEnd.java
@@ -165,12 +165,16 @@ public class AutoClientEnd {
try{
handler.notificationReceived(notification);
}catch (Exception e){
- logger.error("Error in Clients Handler Object : " + e.getMessage());
+ logger.error("Error in Clients Handler Object : ", e);
}
} else if (scheme.equals(NotificationScheme.AUTO_NOTIFICATIONS)) {
PDPNotification newNotification = MatchStore.checkMatch(notification);
if (newNotification.getNotificationType() != null) {
- handler.notificationReceived(newNotification);
+ try{
+ handler.notificationReceived(newNotification);
+ }catch (Exception e){
+ logger.error("Error in Clients Handler Object : ", e);
+ }
}
}
}