Adding SONAR fixes for
[policy/engine.git] / POLICY-SDK-APP / src / main / java / org / onap / policy / controller / PolicyValidationController.java
index a82fac2..ed32f29 100644 (file)
@@ -33,8 +33,8 @@ import org.onap.policy.common.logging.flexlogger.Logger;
 import org.onap.policy.rest.adapter.PolicyRestAdapter;
 import org.onap.policy.rest.util.PolicyValidation;
 import org.onap.policy.rest.util.PolicyValidationRequestWrapper;
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-import org.openecomp.portalsdk.core.web.support.JsonMessage;
+import org.onap.portalsdk.core.controller.RestrictedBaseController;
+import org.onap.portalsdk.core.web.support.JsonMessage;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.servlet.ModelAndView;
@@ -46,14 +46,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
 public class PolicyValidationController extends RestrictedBaseController {
 
        private static final Logger LOGGER      = FlexLogger.getLogger(PolicyValidationController.class);
-       
-       public static final String CONFIG_POLICY = "Config";
-       public static final String ACTION_POLICY = "Action";
-       public static final String DECISION_POLICY = "Decision";
-       public static final String CLOSEDLOOP_POLICY = "ClosedLoop_Fault";
-       public static final String CLOSEDLOOP_PM = "ClosedLoop_PM";
-       public static final String ENFORCER_CONFIG_POLICY= "Enforcer Config";
-       public static final String MICROSERVICES="Micro Service";
 
        @RequestMapping(value={"/policyController/validate_policy.htm"}, method={org.springframework.web.bind.annotation.RequestMethod.POST})
        public ModelAndView validatePolicy(HttpServletRequest request, HttpServletResponse response) throws IOException{
@@ -63,7 +55,7 @@ public class PolicyValidationController extends RestrictedBaseController {
                        PolicyValidationRequestWrapper wrapper = new PolicyValidationRequestWrapper();
                        StringBuilder responseString;
                        ObjectMapper mapper = new ObjectMapper();
-                       
+
                        PolicyRestAdapter policyData = wrapper.populateRequestParameters(request);
                        responseString = validation.validatePolicy(policyData);