Upgraded the latest ONAP SDK
[policy/engine.git] / POLICY-SDK-APP / src / main / java / org / onap / policy / controller / PolicyNotificationController.java
index 21f3793..845b5f5 100644 (file)
@@ -38,8 +38,8 @@ import org.onap.policy.common.logging.flexlogger.FlexLogger;
 import org.onap.policy.common.logging.flexlogger.Logger;
 import org.onap.policy.rest.dao.CommonClassDao;
 import org.onap.policy.rest.jpa.WatchPolicyNotificationTable;
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-import org.openecomp.portalsdk.core.web.support.UserUtils;
+import org.onap.portalsdk.core.controller.RestrictedBaseController;
+import org.onap.portalsdk.core.web.support.UserUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -64,13 +64,13 @@ public class PolicyNotificationController extends RestrictedBaseController {
                String responseValue = "";
                try {
                        String userId = UserUtils.getUserSession(request).getOrgUserId();
-                       System.out.println(userId);
+                       logger.info("userid info: " + userId);
                        ObjectMapper mapper = new ObjectMapper();
                        mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
                        JsonNode root = mapper.readTree(request.getReader());
                        String name = root.get("watchData").get("name").toString();
                        JsonNode pathList = root.get("watchData").get("path");
-                       String finalName = "";
+                       String finalName;
                        if(pathList.isArray()){
                                ArrayNode arrayNode = (ArrayNode) pathList;
                                for (int i = 0; i < arrayNode.size(); i++) {