From 1d45b494f18b72c2be966ebb2772ac43718c8970 Mon Sep 17 00:00:00 2001 From: DilanUA Date: Fri, 16 Jan 2015 19:02:59 +0530 Subject: [PATCH] Method signature of updatePolicy method in org.wso2.carbon.policy.mgt.common.Policy.PolicyDAO was updated --- .../java/org/wso2/carbon/policy/mgt/core/dao/PolicyDAO.java | 2 +- .../wso2/carbon/policy/mgt/core/dao/impl/PolicyDAOImpl.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyDAO.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyDAO.java index 944bf89a9ef..ea489507743 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyDAO.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyDAO.java @@ -28,7 +28,7 @@ public interface PolicyDAO { int addPolicy(String deviceID, String deviceType, Policy policy) throws PolicyManagerDAOException; - void updatePolicy(int id) throws PolicyManagerDAOException; + void updatePolicy(int id, Policy policy) throws PolicyManagerDAOException; Policy getPolicy() throws PolicyManagerDAOException; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/PolicyDAOImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/PolicyDAOImpl.java index 41c37e7ce17..1280a7d0c86 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/PolicyDAOImpl.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/PolicyDAOImpl.java @@ -39,7 +39,6 @@ public class PolicyDAOImpl implements PolicyDAO { @Override public int addPolicy(Policy policy) throws PolicyManagerDAOException { - return 0; } @@ -54,7 +53,7 @@ public class PolicyDAOImpl implements PolicyDAO { } @Override - public void updatePolicy(int id) throws PolicyManagerDAOException { + public void updatePolicy(int id, Policy policy) throws PolicyManagerDAOException { }