From 09b1711b9cbb8d0272f743efed203c6b39ec7ebe Mon Sep 17 00:00:00 2001 From: Pahansith Date: Mon, 12 Oct 2020 22:09:43 +0530 Subject: [PATCH] Add polygon type fence support --- .../org/wso2/carbon/policy/mgt/core/util/PolicyManagerUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagerUtil.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagerUtil.java index 850ecdcf9d..4ca080d7f2 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagerUtil.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagerUtil.java @@ -213,6 +213,8 @@ public class PolicyManagerUtil { operationPayload.addProperty("longitude", geofence.getLongitude()); operationPayload.addProperty("radius", geofence.getRadius()); operationPayload.addProperty("name", geofence.getFenceName()); + operationPayload.addProperty("fenceShape", geofence.getFenceShape()); + operationPayload.addProperty("geoJson", geofence.getGeoJson()); profileOperation.setPayLoad(operationPayload.toString()); } }