From a14980df1c0318fcb85165723f944565b1e1d86c Mon Sep 17 00:00:00 2001 From: Geeth Munasinghe Date: Tue, 9 Dec 2014 14:57:06 +0530 Subject: [PATCH] Changing the policy interface --- .../policy/mgt/common/spi/PolicyManagerService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/spi/PolicyManagerService.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/spi/PolicyManagerService.java index 941647a09a6..063ac757c9a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/spi/PolicyManagerService.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/spi/PolicyManagerService.java @@ -31,7 +31,7 @@ public interface PolicyManagerService { /** * This method adds a policy to the platform * @param policy - * @return + * @return primary key (generated key) */ int addPolicy(Policy policy); @@ -41,7 +41,7 @@ public interface PolicyManagerService { * @param deviceId * @param deviceType * @param policy - * @return + * @return primary key (generated key) */ int addPolicyToDevice(String deviceId, String deviceType, Policy policy) throws FeatureManagementException, PolicyManagementException; @@ -50,7 +50,7 @@ public interface PolicyManagerService { * This method adds a policy to device type by the related device type plugins. * @param deviceType * @param policy - * @return + * @return primary key (generated key) */ int addPolicyToDeviceType(String deviceType,Policy policy) throws FeatureManagementException, PolicyManagementException; @@ -59,7 +59,7 @@ public interface PolicyManagerService { * This method adds the policy to specific role. * @param roleName * @param policy - * @return + * @return primary key (generated key) */ int addPolicyToRole(String roleName, Policy policy) throws FeatureManagementException, PolicyManagementException;