From 29b58576f8db1696dd43736ec163f53509c9e5ff Mon Sep 17 00:00:00 2001 From: mharindu Date: Thu, 4 Jun 2015 16:35:52 +0530 Subject: [PATCH] Fixed an issue in policy based on ownership type --- .../carbon/policy/mgt/core/impl/PolicyInformationPointImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyInformationPointImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyInformationPointImpl.java index 441d66bf29..b80854b798 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyInformationPointImpl.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyInformationPointImpl.java @@ -72,6 +72,7 @@ public class PolicyInformationPointImpl implements PolicyInformationPoint { pipDevice.setDeviceType(deviceType); pipDevice.setDeviceIdentifier(deviceIdentifier); pipDevice.setUserId(device.getOwner()); + pipDevice.setOwnershipType(device.getOwnership()); // TODO : Find a way to retrieve the timestamp and location (lat, long) of the device // pipDevice.setLongitude();