Policy TestSuite Enabled
[policy/engine.git] / POLICY-SDK-APP / src / main / java / org / openecomp / policy / controller / PolicyController.java
index 72dfb16..a9eb40b 100644 (file)
@@ -303,7 +303,7 @@ public class PolicyController extends RestrictedBaseController {
                        response.getWriter().write(j.toString());
                }
                catch (Exception e){
-                       e.printStackTrace();
+                       LOGGER.error("Exception Occured"+e);
                }
        }
 
@@ -361,6 +361,10 @@ public class PolicyController extends RestrictedBaseController {
        public void deleteData(Object entity) {
                commonClassDao.delete(entity);
        }
+       
+       public List<Object> getData(@SuppressWarnings("rawtypes") Class className){
+               return commonClassDao.getData(className);
+       }
 
        public PolicyVersion getPolicyEntityFromPolicyVersion(String query){
                PolicyVersion policyVersionEntity = (PolicyVersion) commonClassDao.getEntityItem(PolicyVersion.class, "policyName", query);