From 162507ac8b48298ed3fff3d9376f823096ec515e Mon Sep 17 00:00:00 2001 From: Amalka Subasinghe Date: Thu, 11 May 2023 10:43:14 +0530 Subject: [PATCH] refactored policy mgt component --- .../pom.xml | 6 +-- .../internal/PullNotificationDataHolder.java | 2 +- .../PullNotificationServiceComponent.java | 6 +-- .../org.wso2.carbon.device.mgt.api/pom.xml | 2 +- .../impl/ConfigurationServiceImpl.java | 4 +- .../service/impl/DeviceAgentServiceImpl.java | 4 +- .../impl/DeviceManagementServiceImpl.java | 4 +- .../impl/GroupManagementServiceImpl.java | 4 +- .../impl/PolicyManagementServiceImpl.java | 12 +++--- .../impl/util/RequestValidationUtil.java | 10 ++--- .../mgt/jaxrs/util/DeviceMgtAPIUtils.java | 6 +-- .../impl/ActivityProviderServiceImplTest.java | 2 +- .../impl/ConfigurationServiceImplTest.java | 2 +- .../service/impl/DeviceAgentServiceTest.java | 4 +- .../impl/DeviceManagementServiceImplTest.java | 4 +- .../impl/GroupManagementServiceImplTest.java | 2 +- .../devicemgt/app/modules/utility.js | 2 +- .../pom.xml | 15 ++++--- ...ergedPolicyEvaluationServiceComponent.java | 10 ++--- .../PolicyDecisionPointDataHolder.java | 4 +- .../PolicyEvaluationServiceComponent.java | 12 +++--- .../point/merged/MergedEvaluationPoint.java | 8 ++-- .../simple/PolicyEvaluationServiceImpl.java | 6 +-- .../point/simple/SimpleEvaluation.java | 4 +- .../point/simple/SimpleEvaluationImpl.java | 8 ++-- .../pom.xml | 11 +++-- .../point/PolicyInformationServiceImpl.java | 6 +-- ...PolicyInformationPointBundleActivator.java | 6 +-- .../pom.xml | 5 +-- .../core}/policy/mgt/common/Criterion.java | 2 +- .../mgt/core}/policy/mgt/common/Feature.java | 2 +- .../common/FeatureManagementException.java | 2 +- .../mgt/common/FeatureManagerService.java | 2 +- .../core}/policy/mgt/common/PIPDevice.java | 2 +- .../mgt/common/PolicyAdministratorPoint.java | 2 +- .../mgt/common/PolicyEvaluationException.java | 2 +- .../mgt/common/PolicyEvaluationPoint.java | 2 +- .../core}/policy/mgt/common/PolicyFilter.java | 2 +- .../mgt/common/PolicyInformationPoint.java | 2 +- .../mgt/common/PolicyManagementException.java | 2 +- .../common/PolicyMonitoringTaskException.java | 2 +- .../mgt/common/PolicyPayloadValidator.java | 2 +- .../mgt/common/PolicyTransformException.java | 2 +- .../mgt/common/PolicyVerficationPoint.java | 2 +- .../policy/mgt/common/ProfileFeature.java | 2 +- .../common/ProfileManagementException.java | 2 +- .../monitor/ComplianceDecisionPoint.java | 2 +- .../common/monitor/PolicyDeviceWrapper.java | 2 +- .../src/main/resources/mysql.sql | 0 .../mgt/common/utils/PolicyCreator.java | 2 +- .../pom.xml | 22 +++++++--- .../policy/mgt/core/PolicyManagerService.java | 6 +-- .../mgt/core/PolicyManagerServiceImpl.java | 24 +++++------ .../mgt/core/cache/PolicyCacheException.java | 2 +- .../mgt/core/cache/PolicyCacheManager.java | 4 +- .../cache/impl/PolicyCacheManagerImpl.java | 14 +++---- .../config/PolicyConfigurationManager.java | 10 ++--- .../core/config/PolicyManagementConfig.java | 2 +- .../config/PolicyManagementRepository.java | 4 +- .../config/datasource/DataSourceConfig.java | 2 +- .../datasource/JNDILookupDefinition.java | 2 +- .../core}/policy/mgt/core/dao/FeatureDAO.java | 2 +- .../core/dao/FeatureManagerDAOException.java | 2 +- .../policy/mgt/core/dao/MonitoringDAO.java | 4 +- .../mgt/core/dao/MonitoringDAOException.java | 2 +- .../core}/policy/mgt/core/dao/PolicyDAO.java | 4 +- .../core/dao/PolicyManagementDAOFactory.java | 26 ++++++------ .../core/dao/PolicyManagerDAOException.java | 2 +- .../core}/policy/mgt/core/dao/ProfileDAO.java | 2 +- .../core/dao/ProfileManagerDAOException.java | 2 +- .../mgt/core/dao/dto/PolicyCriteriaDTO.java | 2 +- .../mgt/core/dao/impl/MonitoringDAOImpl.java | 14 +++---- .../mgt/core/dao/impl/ProfileDAOImpl.java | 10 ++--- .../dao/impl/feature/AbstractFeatureDAO.java | 13 +++--- .../impl/feature/GenericFeatureDAOImpl.java | 10 ++--- .../feature/OracleServerFeatureDAOImpl.java | 10 ++--- .../impl/feature/SQLServerFeatureDAOImpl.java | 10 ++--- .../impl/policy/AbstractPolicyDAOImpl.java | 16 +++---- .../dao/impl/policy/GenericPolicyDAOImpl.java | 6 +-- .../dao/impl/policy/OraclePolicyDAOImpl.java | 6 +-- .../impl/policy/PostgreSQLPolicyDAOImpl.java | 6 +-- .../impl/policy/SQLServerPolicyDAOImpl.java | 6 +-- .../dao/util/PolicyManagementDAOUtil.java | 2 +- .../mgt/core/enforcement/DelegationTask.java | 14 +++---- .../PolicyDelegationException.java | 2 +- .../PolicyEnforcementDelegator.java | 2 +- .../PolicyEnforcementDelegatorImpl.java | 16 +++---- .../impl/ComplianceDecisionPointImpl.java | 8 ++-- .../impl/PolicyAdministratorPointImpl.java | 20 ++++----- .../mgt/core/impl/PolicyFilterImpl.java | 6 +-- .../core/impl/PolicyInformationPointImpl.java | 22 +++++----- .../internal/PolicyManagementDataHolder.java | 12 +++--- .../PolicyManagementServiceComponent.java | 24 +++++------ .../policy/mgt/core/mgt/FeatureManager.java | 4 +- .../mgt/core/mgt/MonitoringManager.java | 2 +- .../policy/mgt/core/mgt/PolicyManager.java | 6 +-- .../policy/mgt/core/mgt/ProfileManager.java | 4 +- .../mgt/bean/UpdatedPolicyDeviceListBean.java | 2 +- .../mgt/core/mgt/impl/FeatureManagerImpl.java | 18 ++++---- .../core/mgt/impl/MonitoringManagerImpl.java | 26 ++++++------ .../mgt/core/mgt/impl/PolicyManagerImpl.java | 36 ++++++++-------- .../mgt/core/mgt/impl/ProfileManagerImpl.java | 18 ++++---- .../policy/mgt/core/task/MonitoringTask.java | 8 ++-- .../mgt/core/task/TaskScheduleService.java | 4 +- .../core/task/TaskScheduleServiceImpl.java | 8 ++-- .../core/util/PolicyManagementConstants.java | 6 +-- .../mgt/core/util/PolicyManagerUtil.java | 16 +++---- .../core/util/SetReferenceTransformer.java | 2 +- .../mgt/core/BasePolicyManagementDAOTest.java | 24 +++++------ .../policy/mgt/core/MonitoringTestCase.java | 23 +++++----- .../policy/mgt/core/PolicyDAOTestCase.java | 19 +++++---- .../mgt/core/PolicyEvaluationTestCase.java | 13 +++--- .../core/PolicyManagerServiceImplTest.java | 35 +++++++++------- .../TestDeviceManagementProviderService.java | 3 +- .../mgt/core}/policy/mgt/core/TestUtils.java | 2 +- .../mgt/core/common/DataSourceConfig.java | 2 +- .../core/mgt/impl/FeatureManagerImplTest.java | 28 +++++-------- .../mgt/impl/MonitoringManagerImplTest.java | 42 ++++++++----------- .../core/mgt/impl/ProfileManagerImplTest.java | 30 +++++-------- .../mock/TestHeartBeatManagementService.java | 2 +- .../mock/TestPolicyMonitoringManager.java | 2 +- .../mock/TypeXDeviceManagementService.java | 12 ++---- .../mgt/core/mock/TypeXDeviceManager.java | 10 ++--- .../services/PolicyMonitoringManagerTest.java | 4 +- .../services/SimplePolicyEvaluationTest.java | 9 ++-- .../task/TaskSchedulerServiceImplTest.java | 8 ++-- .../mgt/core/task/TestTaskManagerImpl.java | 2 +- .../mgt/core/task/TestTaskServiceImpl.java | 2 +- .../policy/mgt/core/util/DeviceCreator.java | 2 +- .../mgt/core/util/DeviceTypeCreator.java | 2 +- .../policy/mgt/core/util/FeatureCreator.java | 2 +- .../policy/mgt/core/util/PolicyCreator.java | 2 +- .../policy/mgt/core/util/ProfileCreator.java | 2 +- .../mgt/core/util/ProfileFeatureCreator.java | 2 +- .../resources/carbon-home/dbscripts/h2.sql | 0 .../repository/conf/axis2/axis2.xml | 0 .../repository/conf/axis2/axis2_client.xml | 0 .../repository/conf/axis2/tenant-axis2.xml | 0 .../carbon-home/repository/conf/carbon.xml | 0 .../repository/conf/cdm-config.xml | 0 .../conf/datasources/master-datasources.xml | 0 .../conf/etc/bundle-config/README.txt | 0 .../carboncontext-osgi-services.properties | 0 .../repository/conf/etc/config-validation.xml | 0 .../carbon-home/repository/conf/etc/jmx.xml | 0 .../repository/conf/etc/launch.ini | 0 .../conf/etc/logging-bridge.properties | 0 .../repository/conf/etc/mime.mappings | 0 .../repository/conf/etc/mime.types | 0 .../repository/conf/etc/osgi-debug.options | 0 .../repository/conf/etc/tasks-config.xml | 0 .../repository/conf/log4j.properties | 0 .../repository/conf/notification-messages.xml | 0 .../carbon-home/repository/conf/registry.xml | 0 .../conf/security/authenticators.xml | 0 .../conf/tomcat/carbon/META-INF/context.xml | 0 .../conf/tomcat/carbon/WEB-INF/web.xml | 0 .../conf/tomcat/catalina-server.xml | 0 .../repository/conf/tomcat/tomcat-users.xml | 0 .../repository/conf/tomcat/web.xml | 0 .../carbon-home/repository/conf/user-mgt.xml | 0 .../config/datasource/data-source-config.xml | 0 .../src/test/resources/log4j.properties | 0 .../src/test/resources/sql/CreateH2TestDB.sql | 0 .../test/resources/sql/CreateMySqlTestDB.sql | 0 .../src/test/resources/testng.xml | 14 +++---- .../user-test/user-mgt-registry-test.xml | 0 .../pom.xml | 2 +- .../policy/evaluator/PDPServiceImpl.java | 2 +- .../policy/evaluator/spi/PDPService.java | 2 +- components/policy-mgt/pom.xml | 8 ++-- components/test-coverage/pom.xml | 16 +++---- .../pom.xml | 16 +++---- pom.xml | 16 ++++--- 174 files changed, 545 insertions(+), 561 deletions(-) rename components/policy-mgt/{org.wso2.carbon.policy.decision.point => io.entgra.device.mgt.core.policy.decision.point}/pom.xml (87%) rename components/policy-mgt/{org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core}/policy/decision/point/internal/MergedPolicyEvaluationServiceComponent.java (90%) rename components/policy-mgt/{org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core}/policy/decision/point/internal/PolicyDecisionPointDataHolder.java (91%) rename components/policy-mgt/{org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core}/policy/decision/point/internal/PolicyEvaluationServiceComponent.java (87%) rename components/policy-mgt/{org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core}/policy/decision/point/merged/MergedEvaluationPoint.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core}/policy/decision/point/simple/PolicyEvaluationServiceImpl.java (89%) rename components/policy-mgt/{org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core}/policy/decision/point/simple/SimpleEvaluation.java (87%) rename components/policy-mgt/{org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core}/policy/decision/point/simple/SimpleEvaluationImpl.java (91%) rename components/policy-mgt/{org.wso2.carbon.policy.information.point => io.entgra.device.mgt.core.policy.information.point}/pom.xml (86%) rename components/policy-mgt/{org.wso2.carbon.policy.information.point/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.information.point/src/main/java/io/entgra/device/mgt/core}/policy/information/point/PolicyInformationServiceImpl.java (86%) rename components/policy-mgt/{org.wso2.carbon.policy.information.point/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.information.point/src/main/java/io/entgra/device/mgt/core}/policy/information/point/internal/PolicyInformationPointBundleActivator.java (90%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common => io.entgra.device.mgt.core.policy.mgt.common}/pom.xml (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/Criterion.java (94%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/Feature.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/FeatureManagementException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/FeatureManagerService.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PIPDevice.java (98%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PolicyAdministratorPoint.java (99%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PolicyEvaluationException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PolicyEvaluationPoint.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PolicyFilter.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PolicyInformationPoint.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PolicyManagementException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PolicyMonitoringTaskException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PolicyPayloadValidator.java (93%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PolicyTransformException.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/PolicyVerficationPoint.java (93%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/ProfileFeature.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/ProfileManagementException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/monitor/ComplianceDecisionPoint.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core}/policy/mgt/common/monitor/PolicyDeviceWrapper.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common => io.entgra.device.mgt.core.policy.mgt.common}/src/main/resources/mysql.sql (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.common/src/test/java/org/wos2/carbon => io.entgra.device.mgt.core.policy.mgt.common/src/test/java/io/entgra/device/mgt/core}/policy/mgt/common/utils/PolicyCreator.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/pom.xml (91%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/PolicyManagerService.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/PolicyManagerServiceImpl.java (93%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/cache/PolicyCacheException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/cache/PolicyCacheManager.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/cache/impl/PolicyCacheManagerImpl.java (93%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/config/PolicyConfigurationManager.java (87%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/config/PolicyManagementConfig.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/config/PolicyManagementRepository.java (89%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/config/datasource/DataSourceConfig.java (94%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/config/datasource/JNDILookupDefinition.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/FeatureDAO.java (98%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/FeatureManagerDAOException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/MonitoringDAO.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/MonitoringDAOException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/PolicyDAO.java (98%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/PolicyManagementDAOFactory.java (89%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/PolicyManagerDAOException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/ProfileDAO.java (98%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/ProfileManagerDAOException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/dto/PolicyCriteriaDTO.java (92%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/MonitoringDAOImpl.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/ProfileDAOImpl.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/feature/AbstractFeatureDAO.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/feature/GenericFeatureDAOImpl.java (89%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/feature/OracleServerFeatureDAOImpl.java (90%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/feature/SQLServerFeatureDAOImpl.java (90%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/policy/AbstractPolicyDAOImpl.java (99%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/policy/GenericPolicyDAOImpl.java (91%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/policy/OraclePolicyDAOImpl.java (91%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/policy/PostgreSQLPolicyDAOImpl.java (91%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/impl/policy/SQLServerPolicyDAOImpl.java (91%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/dao/util/PolicyManagementDAOUtil.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/enforcement/DelegationTask.java (89%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/enforcement/PolicyDelegationException.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/enforcement/PolicyEnforcementDelegator.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/enforcement/PolicyEnforcementDelegatorImpl.java (94%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/impl/ComplianceDecisionPointImpl.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/impl/PolicyAdministratorPointImpl.java (94%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/impl/PolicyFilterImpl.java (98%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/impl/PolicyInformationPointImpl.java (91%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/internal/PolicyManagementDataHolder.java (92%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/internal/PolicyManagementServiceComponent.java (88%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/FeatureManager.java (92%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/MonitoringManager.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/PolicyManager.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/ProfileManager.java (90%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/bean/UpdatedPolicyDeviceListBean.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/impl/FeatureManagerImpl.java (93%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/impl/PolicyManagerImpl.java (98%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/impl/ProfileManagerImpl.java (93%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/task/MonitoringTask.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/task/TaskScheduleService.java (88%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/task/TaskScheduleServiceImpl.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/util/PolicyManagementConstants.java (91%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/util/PolicyManagerUtil.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core}/policy/mgt/core/util/SetReferenceTransformer.java (95%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/BasePolicyManagementDAOTest.java (94%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/MonitoringTestCase.java (93%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/PolicyDAOTestCase.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/PolicyEvaluationTestCase.java (91%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/PolicyManagerServiceImplTest.java (94%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/TestDeviceManagementProviderService.java (91%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/TestUtils.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/common/DataSourceConfig.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/impl/FeatureManagerImplTest.java (96%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/impl/MonitoringManagerImplTest.java (92%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/mgt/impl/ProfileManagerImplTest.java (94%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/mock/TestHeartBeatManagementService.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/mock/TestPolicyMonitoringManager.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/mock/TypeXDeviceManagementService.java (89%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/mock/TypeXDeviceManager.java (93%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/services/PolicyMonitoringManagerTest.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/services/SimplePolicyEvaluationTest.java (92%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/task/TaskSchedulerServiceImplTest.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/task/TestTaskManagerImpl.java (98%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/task/TestTaskServiceImpl.java (97%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/util/DeviceCreator.java (99%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/util/DeviceTypeCreator.java (94%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/util/FeatureCreator.java (99%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/util/PolicyCreator.java (98%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/util/ProfileCreator.java (98%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon => io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core}/policy/mgt/core/util/ProfileFeatureCreator.java (98%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/dbscripts/h2.sql (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/axis2/axis2.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/axis2/axis2_client.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/axis2/tenant-axis2.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/carbon.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/cdm-config.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/datasources/master-datasources.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/etc/bundle-config/README.txt (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/etc/carboncontext-osgi-services.properties (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/etc/config-validation.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/etc/jmx.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/etc/launch.ini (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/etc/logging-bridge.properties (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/etc/mime.mappings (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/etc/mime.types (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/etc/osgi-debug.options (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/etc/tasks-config.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/log4j.properties (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/notification-messages.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/registry.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/security/authenticators.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/tomcat/carbon/META-INF/context.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/tomcat/catalina-server.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/tomcat/tomcat-users.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/tomcat/web.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/carbon-home/repository/conf/user-mgt.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/config/datasource/data-source-config.xml (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/log4j.properties (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/sql/CreateH2TestDB.sql (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/sql/CreateMySqlTestDB.sql (100%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/testng.xml (63%) rename components/policy-mgt/{org.wso2.carbon.policy.mgt.core => io.entgra.device.mgt.core.policy.mgt.core}/src/test/resources/user-test/user-mgt-registry-test.xml (100%) diff --git a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/pom.xml b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/pom.xml index dc1e15b9dee..31d5d298918 100644 --- a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/pom.xml +++ b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/pom.xml @@ -52,7 +52,7 @@ io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.core + io.entgra.device.mgt.core.policy.mgt.core io.entgra.device.mgt.core @@ -87,8 +87,8 @@ org.apache.commons.logging, org.wso2.carbon.device.mgt.common.*, org.wso2.carbon.device.mgt.core.service - org.wso2.carbon.policy.mgt.core.*, - org.wso2.carbon.policy.mgt.core, + io.entgra.device.mgt.core.policy.mgt.core.*, + io.entgra.device.mgt.core.policy.mgt.core, com.google.gson, org.wso2.carbon.device.mgt.core.service.*, io.entgra.application.mgt.common.*, diff --git a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/src/main/java/org/wso2/carbon/device/mgt/extensions/pull/notification/internal/PullNotificationDataHolder.java b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/src/main/java/org/wso2/carbon/device/mgt/extensions/pull/notification/internal/PullNotificationDataHolder.java index 453325d5cdd..159ab51fa1b 100644 --- a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/src/main/java/org/wso2/carbon/device/mgt/extensions/pull/notification/internal/PullNotificationDataHolder.java +++ b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/src/main/java/org/wso2/carbon/device/mgt/extensions/pull/notification/internal/PullNotificationDataHolder.java @@ -20,7 +20,7 @@ package org.wso2.carbon.device.mgt.extensions.pull.notification.internal; import io.entgra.application.mgt.common.services.ApplicationManager; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; public class PullNotificationDataHolder { diff --git a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/src/main/java/org/wso2/carbon/device/mgt/extensions/pull/notification/internal/PullNotificationServiceComponent.java b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/src/main/java/org/wso2/carbon/device/mgt/extensions/pull/notification/internal/PullNotificationServiceComponent.java index b7b94c01996..5c47d57e180 100644 --- a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/src/main/java/org/wso2/carbon/device/mgt/extensions/pull/notification/internal/PullNotificationServiceComponent.java +++ b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/src/main/java/org/wso2/carbon/device/mgt/extensions/pull/notification/internal/PullNotificationServiceComponent.java @@ -23,7 +23,7 @@ import org.apache.commons.logging.LogFactory; import org.osgi.service.component.ComponentContext; import io.entgra.application.mgt.common.services.ApplicationManager; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; /** * @scr.component name="org.wso2.carbon.device.mgt.extensions.pull.notification.internal.PullNotificationServiceComponent" immediate="true" @@ -33,8 +33,8 @@ import org.wso2.carbon.policy.mgt.core.PolicyManagerService; * policy="dynamic" * bind="setDeviceManagementProviderService" * unbind="unsetDeviceManagementProviderService" - * @scr.reference name="org.wso2.carbon.policy.mgt.core" - * interface="org.wso2.carbon.policy.mgt.core.PolicyManagerService" + * @scr.reference name="io.entgra.device.mgt.core.policy.mgt.core" + * interface="io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService" * cardinality="1..1" * policy="dynamic" * bind="setPolicyManagerService" diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml b/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml index 3d586f54e5e..71f3ad5cb97 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml @@ -227,7 +227,7 @@ io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.core + io.entgra.device.mgt.core.policy.mgt.core provided diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ConfigurationServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ConfigurationServiceImpl.java index 3953c535148..dd0e979e749 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ConfigurationServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ConfigurationServiceImpl.java @@ -30,8 +30,8 @@ import org.wso2.carbon.device.mgt.jaxrs.service.api.ConfigurationManagementServi import org.wso2.carbon.device.mgt.jaxrs.service.impl.util.RequestValidationUtil; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils; import org.wso2.carbon.device.mgt.common.MDMAppConstants; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import javax.ws.rs.Consumes; import javax.ws.rs.GET; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceAgentServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceAgentServiceImpl.java index ed574981644..130b182e2fd 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceAgentServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceAgentServiceImpl.java @@ -49,8 +49,8 @@ import org.wso2.carbon.event.stream.stub.EventStreamAdminServiceStub; import org.wso2.carbon.event.stream.stub.types.EventStreamAttributeDto; import org.wso2.carbon.event.stream.stub.types.EventStreamDefinitionDto; import org.wso2.carbon.identity.jwt.client.extension.exception.JWTClientException; -import org.wso2.carbon.policy.mgt.common.PolicyAdministratorPoint; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyAdministratorPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; import org.wso2.carbon.user.api.UserStoreException; import javax.validation.Valid; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImpl.java index f90c45e1066..ed1b69cb9f0 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImpl.java @@ -107,8 +107,8 @@ import org.wso2.carbon.identity.jwt.client.extension.JWTClient; import org.wso2.carbon.identity.jwt.client.extension.dto.AccessTokenInfo; import org.wso2.carbon.identity.jwt.client.extension.exception.JWTClientException; import org.wso2.carbon.identity.jwt.client.extension.service.JWTClientManagerService; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; import org.wso2.carbon.user.api.UserStoreException; import org.wso2.carbon.utils.multitenancy.MultitenantUtils; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GroupManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GroupManagementServiceImpl.java index 514685507df..9130462e328 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GroupManagementServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GroupManagementServiceImpl.java @@ -62,8 +62,8 @@ import org.wso2.carbon.device.mgt.jaxrs.beans.RoleList; import org.wso2.carbon.device.mgt.jaxrs.service.api.GroupManagementService; import org.wso2.carbon.device.mgt.jaxrs.service.impl.util.RequestValidationUtil; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils; -import org.wso2.carbon.policy.mgt.common.PolicyAdministratorPoint; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyAdministratorPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; import javax.ws.rs.DefaultValue; import javax.ws.rs.GET; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/PolicyManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/PolicyManagementServiceImpl.java index 7405a73e722..bdaca6596e7 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/PolicyManagementServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/PolicyManagementServiceImpl.java @@ -56,9 +56,9 @@ import org.wso2.carbon.device.mgt.jaxrs.service.impl.util.RequestValidationUtil; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtUtil; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.common.PolicyAdministratorPoint; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyAdministratorPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; import javax.validation.Valid; import javax.ws.rs.*; @@ -80,7 +80,7 @@ public class PolicyManagementServiceImpl implements PolicyManagementService { @POST @Override public Response addPolicy(@Valid PolicyWrapper policyWrapper) { - List features = RequestValidationUtil + List features = RequestValidationUtil .validatePolicyDetails(policyWrapper); // validation failure results; if (!features.isEmpty()) { @@ -230,7 +230,7 @@ public class PolicyManagementServiceImpl implements PolicyManagementService { @Path("/{id}") @Override public Response updatePolicy(@PathParam("id") int id, @Valid PolicyWrapper policyWrapper) { - List features = RequestValidationUtil + List features = RequestValidationUtil .validatePolicyDetails(policyWrapper); // validation failure results; if (!features.isEmpty()) { @@ -483,7 +483,7 @@ public class PolicyManagementServiceImpl implements PolicyManagementService { @Path("/validate") @Override public Response validatePolicy(List profileFeaturesList) { - List features + List features = RequestValidationUtil.validateProfileFeatures(profileFeaturesList); // validation failure results; if (!features.isEmpty()) { diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/util/RequestValidationUtil.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/util/RequestValidationUtil.java index bb15685f2cc..64f4f708e1e 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/util/RequestValidationUtil.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/util/RequestValidationUtil.java @@ -52,7 +52,7 @@ import org.wso2.carbon.device.mgt.jaxrs.beans.Scope; import org.wso2.carbon.device.mgt.jaxrs.exception.BadRequestException; import org.wso2.carbon.device.mgt.jaxrs.util.Constants; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils; -import org.wso2.carbon.policy.mgt.common.PolicyPayloadValidator; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyPayloadValidator; import java.lang.reflect.InvocationTargetException; import java.util.List; @@ -336,7 +336,7 @@ public class RequestValidationUtil { } } - public static List validatePolicyDetails( + public static List validatePolicyDetails( PolicyWrapper policyWrapper) { if (policyWrapper == null) { String msg = "Found an empty policy"; @@ -348,7 +348,7 @@ public class RequestValidationUtil { return validateProfileFeatures(policyWrapper.getProfile().getProfileFeaturesList()); } - public static List validateProfileFeatures + public static List validateProfileFeatures (List profileFeatures) { if (profileFeatures.isEmpty()) { @@ -357,7 +357,7 @@ public class RequestValidationUtil { throw new InputValidationException(new ErrorResponse.ErrorResponseBuilder() .setCode(HttpStatus.SC_BAD_REQUEST).setMessage(msg).build()); } else { - List features = new ArrayList<>(); + List features = new ArrayList<>(); String deviceType = null; for (ProfileFeature profileFeature : profileFeatures) { if (StringUtils.isBlank(profileFeature.getDeviceTypeId())) { @@ -373,7 +373,7 @@ public class RequestValidationUtil { .setCode(HttpStatus.SC_BAD_REQUEST).setMessage(msg).build()); } deviceType = profileFeature.getDeviceTypeId(); - org.wso2.carbon.policy.mgt.common.ProfileFeature feature = new org.wso2.carbon.policy.mgt.common.ProfileFeature(); + io.entgra.device.mgt.core.policy.mgt.common.ProfileFeature feature = new io.entgra.device.mgt.core.policy.mgt.common.ProfileFeature(); feature.setContent(profileFeature.getContent()); feature.setDeviceType(profileFeature.getDeviceTypeId()); feature.setFeatureCode(profileFeature.getFeatureCode()); diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/util/DeviceMgtAPIUtils.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/util/DeviceMgtAPIUtils.java index e2100f03eb1..27a43c651ba 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/util/DeviceMgtAPIUtils.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/util/DeviceMgtAPIUtils.java @@ -109,9 +109,9 @@ import org.wso2.carbon.identity.user.store.count.UserStoreCountRetriever; import org.wso2.carbon.identity.user.store.count.exception.UserStoreCounterException; import org.wso2.carbon.identity.user.store.count.jdbc.JDBCCountRetrieverFactory; import org.wso2.carbon.identity.user.store.count.jdbc.internal.InternalCountRetrieverFactory; -import org.wso2.carbon.policy.mgt.common.PolicyMonitoringTaskException; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; -import org.wso2.carbon.policy.mgt.core.task.TaskScheduleService; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyMonitoringTaskException; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.task.TaskScheduleService; import org.wso2.carbon.registry.core.service.RegistryService; import org.wso2.carbon.user.api.*; import org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ActivityProviderServiceImplTest.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ActivityProviderServiceImplTest.java index 657dc4de0d9..78b8546fcab 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ActivityProviderServiceImplTest.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ActivityProviderServiceImplTest.java @@ -44,7 +44,7 @@ import org.wso2.carbon.device.mgt.jaxrs.service.api.ActivityInfoProviderService; import org.wso2.carbon.device.mgt.jaxrs.service.api.DeviceManagementService; import org.wso2.carbon.device.mgt.jaxrs.service.impl.util.RequestValidationUtil; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import javax.ws.rs.core.Response; import java.util.ArrayList; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ConfigurationServiceImplTest.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ConfigurationServiceImplTest.java index ed8478bc11f..c5980d73b40 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ConfigurationServiceImplTest.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ConfigurationServiceImplTest.java @@ -35,7 +35,7 @@ import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfigurationManagementService; import org.wso2.carbon.device.mgt.jaxrs.service.api.ConfigurationManagementService; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import javax.ws.rs.core.Response; import java.util.ArrayList; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceAgentServiceTest.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceAgentServiceTest.java index 05415a96714..36c148c9a1d 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceAgentServiceTest.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceAgentServiceTest.java @@ -54,8 +54,8 @@ import org.wso2.carbon.event.stream.stub.EventStreamAdminServiceStub; import org.wso2.carbon.event.stream.stub.types.EventStreamAttributeDto; import org.wso2.carbon.event.stream.stub.types.EventStreamDefinitionDto; import org.wso2.carbon.identity.jwt.client.extension.exception.JWTClientException; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; -import org.wso2.carbon.policy.mgt.core.PolicyManagerServiceImpl; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerServiceImpl; import org.wso2.carbon.user.api.UserStoreException; import org.wso2.carbon.utils.CarbonUtils; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImplTest.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImplTest.java index db085319f0c..2368748cf1c 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImplTest.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImplTest.java @@ -73,8 +73,8 @@ import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceIm import org.wso2.carbon.device.mgt.jaxrs.service.api.DeviceManagementService; import org.wso2.carbon.device.mgt.jaxrs.service.impl.util.DeviceMgtAPITestHelper; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; import org.wso2.carbon.user.core.service.RealmService; import org.wso2.carbon.utils.multitenancy.MultitenantUtils; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GroupManagementServiceImplTest.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GroupManagementServiceImplTest.java index 9602d70f559..b3fd113abca 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GroupManagementServiceImplTest.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/test/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GroupManagementServiceImplTest.java @@ -63,7 +63,7 @@ import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService; import org.wso2.carbon.device.mgt.jaxrs.beans.DeviceToGroupsAssignment; import org.wso2.carbon.device.mgt.jaxrs.service.api.GroupManagementService; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; import javax.ws.rs.core.Response; import java.util.ArrayList; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/utility.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/utility.js index cc8a20f552b..c4f7d2d1b35 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/utility.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/utility.js @@ -62,7 +62,7 @@ utility = function () { }; publicMethods.getPolicyManagementService = function () { - return getOsgiService("org.wso2.carbon.policy.mgt.core.PolicyManagerService"); + return getOsgiService("io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService"); }; publicMethods.getDeviceTypeConfig = function (deviceType) { diff --git a/components/policy-mgt/org.wso2.carbon.policy.decision.point/pom.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/pom.xml similarity index 87% rename from components/policy-mgt/org.wso2.carbon.policy.decision.point/pom.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/pom.xml index f63720edb89..27118992cc2 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.decision.point/pom.xml +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/pom.xml @@ -8,8 +8,7 @@ 4.0.0 - io.entgra.device.mgt.core - org.wso2.carbon.policy.decision.point + io.entgra.device.mgt.core.policy.decision.point bundle WSO2 Carbon - Policy Decision Point WSO2 Carbon - Policy Decision Point @@ -32,19 +31,19 @@ ${project.artifactId} ${carbon.device.mgt.version} Policy Decision Point Bundle - org.wso2.carbon.policy.decision.point.internal + io.entgra.device.mgt.core.policy.decision.point.internal org.wso2.carbon.context;version="${carbon.kernel.version.range}", org.osgi.framework.*;version="${imp.package.version.osgi.framework}", org.osgi.service.*;version="${imp.package.version.osgi.service}", org.apache.commons.logging, - org.wso2.carbon.policy.mgt.common.*, - org.wso2.carbon.policy.mgt.core.*, + io.entgra.device.mgt.core.policy.mgt.common.*, + io.entgra.device.mgt.core.policy.mgt.core.*, org.wso2.carbon.user.core.*, org.wso2.carbon.device.mgt.common.* - org.wso2.carbon.policy.decision.point.* + io.entgra.device.mgt.core.policy.decision.point.* @@ -92,11 +91,11 @@ io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.common + io.entgra.device.mgt.core.policy.mgt.common io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.core + io.entgra.device.mgt.core.policy.mgt.core diff --git a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/internal/MergedPolicyEvaluationServiceComponent.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/internal/MergedPolicyEvaluationServiceComponent.java similarity index 90% rename from components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/internal/MergedPolicyEvaluationServiceComponent.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/internal/MergedPolicyEvaluationServiceComponent.java index 3ec27e3918c..24692c2c107 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/internal/MergedPolicyEvaluationServiceComponent.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/internal/MergedPolicyEvaluationServiceComponent.java @@ -16,14 +16,14 @@ * under the License. */ -package org.wso2.carbon.policy.decision.point.internal; +package io.entgra.device.mgt.core.policy.decision.point.internal; +import io.entgra.device.mgt.core.policy.decision.point.merged.MergedEvaluationPoint; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.osgi.service.component.ComponentContext; -import org.wso2.carbon.policy.decision.point.merged.MergedEvaluationPoint; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationPoint; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationPoint; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; import org.wso2.carbon.user.core.service.RealmService; /** @@ -35,7 +35,7 @@ import org.wso2.carbon.user.core.service.RealmService; * bind="setRealmService" * unbind="unsetRealmService" * @scr.reference name="org.wso2.carbon.devicemgt.policy.manager" - * interface="org.wso2.carbon.policy.mgt.core.PolicyManagerService" + * interface="io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService" * cardinality="0..1" * policy="dynamic" * bind="setPolicyManagerService" diff --git a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/internal/PolicyDecisionPointDataHolder.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/internal/PolicyDecisionPointDataHolder.java similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/internal/PolicyDecisionPointDataHolder.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/internal/PolicyDecisionPointDataHolder.java index 41909fbd497..cd2c8f6b69a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/internal/PolicyDecisionPointDataHolder.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/internal/PolicyDecisionPointDataHolder.java @@ -16,9 +16,9 @@ * under the License. */ -package org.wso2.carbon.policy.decision.point.internal; +package io.entgra.device.mgt.core.policy.decision.point.internal; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; import org.wso2.carbon.user.core.service.RealmService; public class PolicyDecisionPointDataHolder { diff --git a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/internal/PolicyEvaluationServiceComponent.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/internal/PolicyEvaluationServiceComponent.java similarity index 87% rename from components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/internal/PolicyEvaluationServiceComponent.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/internal/PolicyEvaluationServiceComponent.java index 931d1ec5527..fe5cf9d206a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/internal/PolicyEvaluationServiceComponent.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/internal/PolicyEvaluationServiceComponent.java @@ -16,16 +16,14 @@ * under the License. */ -package org.wso2.carbon.policy.decision.point.internal; +package io.entgra.device.mgt.core.policy.decision.point.internal; +import io.entgra.device.mgt.core.policy.decision.point.simple.PolicyEvaluationServiceImpl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.osgi.service.component.ComponentContext; -import org.wso2.carbon.policy.decision.point.merged.MergedEvaluationPoint; -import org.wso2.carbon.policy.decision.point.simple.PolicyEvaluationServiceImpl; -import org.wso2.carbon.policy.decision.point.simple.SimpleEvaluationImpl; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationPoint; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationPoint; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; import org.wso2.carbon.user.core.service.RealmService; /** @@ -37,7 +35,7 @@ import org.wso2.carbon.user.core.service.RealmService; * bind="setRealmService" * unbind="unsetRealmService" * @scr.reference name="org.wso2.carbon.devicemgt.policy.manager" - * interface="org.wso2.carbon.policy.mgt.core.PolicyManagerService" + * interface="io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService" * cardinality="0..1" * policy="dynamic" * bind="setPolicyManagerService" diff --git a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/merged/MergedEvaluationPoint.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/merged/MergedEvaluationPoint.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/merged/MergedEvaluationPoint.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/merged/MergedEvaluationPoint.java index 35edab32714..5425a7cd267 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/merged/MergedEvaluationPoint.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/merged/MergedEvaluationPoint.java @@ -16,8 +16,9 @@ * under the License. */ -package org.wso2.carbon.policy.decision.point.merged; +package io.entgra.device.mgt.core.policy.decision.point.merged; +import io.entgra.device.mgt.core.policy.decision.point.internal.PolicyDecisionPointDataHolder; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.context.PrivilegedCarbonContext; @@ -25,9 +26,8 @@ import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.common.*; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; -import org.wso2.carbon.policy.decision.point.internal.PolicyDecisionPointDataHolder; +import io.entgra.device.mgt.core.policy.mgt.common.*; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; import java.sql.Timestamp; import java.util.*; diff --git a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/simple/PolicyEvaluationServiceImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/simple/PolicyEvaluationServiceImpl.java similarity index 89% rename from components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/simple/PolicyEvaluationServiceImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/simple/PolicyEvaluationServiceImpl.java index 70eff77618a..18a56b053ae 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/simple/PolicyEvaluationServiceImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/simple/PolicyEvaluationServiceImpl.java @@ -16,12 +16,12 @@ * under the License. */ -package org.wso2.carbon.policy.decision.point.simple; +package io.entgra.device.mgt.core.policy.decision.point.simple; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationException; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationPoint; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/simple/SimpleEvaluation.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/simple/SimpleEvaluation.java similarity index 87% rename from components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/simple/SimpleEvaluation.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/simple/SimpleEvaluation.java index de11299c685..4d522bd3c48 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/simple/SimpleEvaluation.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/simple/SimpleEvaluation.java @@ -17,11 +17,11 @@ */ -package org.wso2.carbon.policy.decision.point.simple; +package io.entgra.device.mgt.core.policy.decision.point.simple; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationException; public interface SimpleEvaluation { diff --git a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/simple/SimpleEvaluationImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/simple/SimpleEvaluationImpl.java similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/simple/SimpleEvaluationImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/simple/SimpleEvaluationImpl.java index 58b5b26737d..52c26e42d03 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.decision.point/src/main/java/org/wso2/carbon/policy/decision/point/simple/SimpleEvaluationImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.decision.point/src/main/java/io/entgra/device/mgt/core/policy/decision/point/simple/SimpleEvaluationImpl.java @@ -16,15 +16,15 @@ * under the License. */ -package org.wso2.carbon.policy.decision.point.simple; +package io.entgra.device.mgt.core.policy.decision.point.simple; +import io.entgra.device.mgt.core.policy.decision.point.internal.PolicyDecisionPointDataHolder; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.decision.point.internal.PolicyDecisionPointDataHolder; -import org.wso2.carbon.policy.mgt.common.*; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.common.*; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; import java.util.ArrayList; import java.util.Collections; diff --git a/components/policy-mgt/org.wso2.carbon.policy.information.point/pom.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.information.point/pom.xml similarity index 86% rename from components/policy-mgt/org.wso2.carbon.policy.information.point/pom.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.information.point/pom.xml index a8afe1f2a11..d31c850da81 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.information.point/pom.xml +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.information.point/pom.xml @@ -9,8 +9,7 @@ 4.0.0 - io.entgra.device.mgt.core - org.wso2.carbon.policy.information.point + io.entgra.device.mgt.core.policy.information.point bundle WSO2 Carbon - Policy Information Point WSO2 Carbon - Policy Information Point @@ -34,10 +33,10 @@ ${project.artifactId} ${carbon.device.mgt.version} Policy Information Point Bundle - org.wso2.carbon.policy.information.point.internal - org.wso2.carbon.policy.information.point.internal.PolicyInformationPointBundleActivator + io.entgra.device.mgt.core.policy.information.point.internal + io.entgra.device.mgt.core.policy.information.point.internal.PolicyInformationPointBundleActivator - org.wso2.carbon.policy.information.point.* + io.entgra.device.mgt.core.policy.information.point.* @@ -85,7 +84,7 @@ io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.common + io.entgra.device.mgt.core.policy.mgt.common diff --git a/components/policy-mgt/org.wso2.carbon.policy.information.point/src/main/java/org/wso2/carbon/policy/information/point/PolicyInformationServiceImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.information.point/src/main/java/io/entgra/device/mgt/core/policy/information/point/PolicyInformationServiceImpl.java similarity index 86% rename from components/policy-mgt/org.wso2.carbon.policy.information.point/src/main/java/org/wso2/carbon/policy/information/point/PolicyInformationServiceImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.information.point/src/main/java/io/entgra/device/mgt/core/policy/information/point/PolicyInformationServiceImpl.java index a36605fe0f7..c7095c4da6a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.information.point/src/main/java/org/wso2/carbon/policy/information/point/PolicyInformationServiceImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.information.point/src/main/java/io/entgra/device/mgt/core/policy/information/point/PolicyInformationServiceImpl.java @@ -16,13 +16,13 @@ * under the License. */ -package org.wso2.carbon.policy.information.point; +package io.entgra.device.mgt.core.policy.information.point; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.Feature; -import org.wso2.carbon.policy.mgt.common.PIPDevice; +import io.entgra.device.mgt.core.policy.mgt.common.PIPDevice; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.common.PolicyInformationPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyInformationPoint; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.information.point/src/main/java/org/wso2/carbon/policy/information/point/internal/PolicyInformationPointBundleActivator.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.information.point/src/main/java/io/entgra/device/mgt/core/policy/information/point/internal/PolicyInformationPointBundleActivator.java similarity index 90% rename from components/policy-mgt/org.wso2.carbon.policy.information.point/src/main/java/org/wso2/carbon/policy/information/point/internal/PolicyInformationPointBundleActivator.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.information.point/src/main/java/io/entgra/device/mgt/core/policy/information/point/internal/PolicyInformationPointBundleActivator.java index b28a545dd6e..b65388c7dbb 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.information.point/src/main/java/org/wso2/carbon/policy/information/point/internal/PolicyInformationPointBundleActivator.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.information.point/src/main/java/io/entgra/device/mgt/core/policy/information/point/internal/PolicyInformationPointBundleActivator.java @@ -16,15 +16,15 @@ * under the License. */ -package org.wso2.carbon.policy.information.point.internal; +package io.entgra.device.mgt.core.policy.information.point.internal; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceRegistration; -import org.wso2.carbon.policy.information.point.PolicyInformationServiceImpl; -import org.wso2.carbon.policy.mgt.common.PolicyInformationPoint; +import io.entgra.device.mgt.core.policy.information.point.PolicyInformationServiceImpl; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyInformationPoint; public class PolicyInformationPointBundleActivator implements BundleActivator { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/pom.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/pom.xml similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/pom.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/pom.xml index b473c0b9ca7..c2f37a1897e 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/pom.xml +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/pom.xml @@ -27,8 +27,7 @@ 4.0.0 - io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.common + io.entgra.device.mgt.core.policy.mgt.common bundle WSO2 Carbon - Policy Management Common WSO2 Carbon - Policy Management Common @@ -59,7 +58,7 @@ javax.xml.bind.*, - org.wso2.carbon.policy.mgt.common.* + io.entgra.device.mgt.core.policy.mgt.common.* diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/Criterion.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/Criterion.java similarity index 94% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/Criterion.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/Criterion.java index 59d7a7065da..d152f6c71b1 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/Criterion.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/Criterion.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; public class Criterion { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/Feature.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/Feature.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/Feature.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/Feature.java index a1b2563d272..c40693826dc 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/Feature.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/Feature.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; import java.io.Serializable; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/FeatureManagementException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/FeatureManagementException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/FeatureManagementException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/FeatureManagementException.java index aada6819a05..c14068bb91c 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/FeatureManagementException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/FeatureManagementException.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; public class FeatureManagementException extends Exception{ diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/FeatureManagerService.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/FeatureManagerService.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/FeatureManagerService.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/FeatureManagerService.java index 7f9dd8e4fde..1891779d5b3 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/FeatureManagerService.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/FeatureManagerService.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PIPDevice.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PIPDevice.java similarity index 98% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PIPDevice.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PIPDevice.java index c3ad90dbf8a..e596c4bf698 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PIPDevice.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PIPDevice.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; import org.wso2.carbon.device.mgt.common.Device; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyAdministratorPoint.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyAdministratorPoint.java similarity index 99% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyAdministratorPoint.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyAdministratorPoint.java index 5c12cead8d1..8ff898cb169 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyAdministratorPoint.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyAdministratorPoint.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DynamicTaskContext; import org.wso2.carbon.device.mgt.common.PaginationRequest; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyEvaluationException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyEvaluationException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyEvaluationException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyEvaluationException.java index 3a0535c225b..ec2630bc0e9 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyEvaluationException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyEvaluationException.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; public class PolicyEvaluationException extends Exception { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyEvaluationPoint.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyEvaluationPoint.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyEvaluationPoint.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyEvaluationPoint.java index 86cbb46a4a0..b8c4b8b2597 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyEvaluationPoint.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyEvaluationPoint.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyFilter.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyFilter.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyFilter.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyFilter.java index 50a2bac1100..a0a4c58ab3f 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyFilter.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyFilter.java @@ -34,7 +34,7 @@ */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; import org.wso2.carbon.device.mgt.common.group.mgt.DeviceGroup; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyInformationPoint.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyInformationPoint.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyInformationPoint.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyInformationPoint.java index 9b85907634e..df480a7154a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyInformationPoint.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyInformationPoint.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.Feature; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyManagementException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyManagementException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyManagementException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyManagementException.java index b0992324e07..6a515949c9b 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyManagementException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyManagementException.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; public class PolicyManagementException extends Exception { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyMonitoringTaskException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyMonitoringTaskException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyMonitoringTaskException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyMonitoringTaskException.java index 7fc01603ea8..757bf1bdf21 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyMonitoringTaskException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyMonitoringTaskException.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; public class PolicyMonitoringTaskException extends Exception { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyPayloadValidator.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyPayloadValidator.java similarity index 93% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyPayloadValidator.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyPayloadValidator.java index 37ba5a3eafa..d0af6bcd6b7 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyPayloadValidator.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyPayloadValidator.java @@ -16,7 +16,7 @@ * under the License. * */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyTransformException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyTransformException.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyTransformException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyTransformException.java index 720986a39a2..658578fb6b8 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyTransformException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyTransformException.java @@ -15,7 +15,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; public class PolicyTransformException extends Exception { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyVerficationPoint.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyVerficationPoint.java similarity index 93% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyVerficationPoint.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyVerficationPoint.java index 6f2eb186df6..c8d02e43563 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/PolicyVerficationPoint.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/PolicyVerficationPoint.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; public interface PolicyVerficationPoint { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/ProfileFeature.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/ProfileFeature.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/ProfileFeature.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/ProfileFeature.java index bf7c1f7063c..51b8de9044d 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/ProfileFeature.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/ProfileFeature.java @@ -17,7 +17,7 @@ * */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; import java.io.Serializable; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/ProfileManagementException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/ProfileManagementException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/ProfileManagementException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/ProfileManagementException.java index a5820349295..51122fb1576 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/ProfileManagementException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/ProfileManagementException.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.common; +package io.entgra.device.mgt.core.policy.mgt.common; public class ProfileManagementException extends Exception { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/monitor/ComplianceDecisionPoint.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/monitor/ComplianceDecisionPoint.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/monitor/ComplianceDecisionPoint.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/monitor/ComplianceDecisionPoint.java index 4ce802fe659..0f713d18bab 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/monitor/ComplianceDecisionPoint.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/monitor/ComplianceDecisionPoint.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.common.monitor; +package io.entgra.device.mgt.core.policy.mgt.common.monitor; import org.wso2.carbon.device.mgt.common.Device; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/monitor/PolicyDeviceWrapper.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/monitor/PolicyDeviceWrapper.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/monitor/PolicyDeviceWrapper.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/monitor/PolicyDeviceWrapper.java index 51560bed00a..d903e8b81aa 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/monitor/PolicyDeviceWrapper.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/java/io/entgra/device/mgt/core/policy/mgt/common/monitor/PolicyDeviceWrapper.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.common.monitor; +package io.entgra.device.mgt.core.policy.mgt.common.monitor; public class PolicyDeviceWrapper { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/resources/mysql.sql b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/resources/mysql.sql similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/resources/mysql.sql rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/main/resources/mysql.sql diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/test/java/org/wos2/carbon/policy/mgt/common/utils/PolicyCreator.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/test/java/io/entgra/device/mgt/core/policy/mgt/common/utils/PolicyCreator.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/test/java/org/wos2/carbon/policy/mgt/common/utils/PolicyCreator.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/test/java/io/entgra/device/mgt/core/policy/mgt/common/utils/PolicyCreator.java index b42801896da..8e46bc2b734 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/test/java/org/wos2/carbon/policy/mgt/common/utils/PolicyCreator.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.common/src/test/java/io/entgra/device/mgt/core/policy/mgt/common/utils/PolicyCreator.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wos2.carbon.policy.mgt.common.utils; +package io.entgra.device.mgt.core.policy.mgt.common.utils; import org.wso2.carbon.device.mgt.common.Feature; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/pom.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/pom.xml similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/pom.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/pom.xml index 1d2db5e33c1..f293629cef0 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/pom.xml +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/pom.xml @@ -27,7 +27,7 @@ 4.0.0 - org.wso2.carbon.policy.mgt.core + io.entgra.device.mgt.core.policy.mgt.core bundle WSO2 Carbon - Policy Management Core WSO2 Carbon - Policy Management Core @@ -50,7 +50,7 @@ ${project.artifactId} ${carbon.device.mgt.version} Policy Management Core Bundle - org.wso2.carbon.policy.mgt.core.internal + io.entgra.device.mgt.core.policy.mgt.core.internal org.osgi.framework.*;version="${imp.package.version.osgi.framework}", org.osgi.service.*;version="${imp.package.version.osgi.service}", @@ -61,7 +61,7 @@ javax.xml.*, javax.xml.parsers;version="${javax.xml.parsers.import.pkg.version}";resolution:=optional, org.w3c.dom, - org.wso2.carbon.policy.mgt.common.*, + io.entgra.device.mgt.core.policy.mgt.common.*, org.wso2.carbon.user.core.*, org.wso2.carbon.utils.*, org.wso2.carbon.context.*, @@ -72,8 +72,8 @@ org.wso2.carbon.caching.* - !org.wso2.carbon.policy.mgt.core.internal, - org.wso2.carbon.policy.mgt.core.* + !io.entgra.device.mgt.core.policy.mgt.core.internal, + io.entgra.device.mgt.core.policy.mgt.core.* * @@ -178,7 +178,7 @@ io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.common + io.entgra.device.mgt.core.policy.mgt.common @@ -204,6 +204,11 @@ h2-database-engine test + + + + + @@ -236,6 +241,11 @@ org.wso2.carbon.identity.jwt.client.extension test + + io.entgra.device.mgt.core + io.entgra.server.bootup.heartbeat.beacon + test + diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerService.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyManagerService.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerService.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyManagerService.java index 957783a5840..05b85dd0e51 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerService.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyManagerService.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.core; +package io.entgra.device.mgt.core.policy.mgt.core; import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; @@ -27,11 +27,11 @@ import org.wso2.carbon.device.mgt.common.PaginationResult; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.common.*; +import io.entgra.device.mgt.core.policy.mgt.common.*; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.NonComplianceData; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.ComplianceFeature; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceException; -import org.wso2.carbon.policy.mgt.core.task.TaskScheduleService; +import io.entgra.device.mgt.core.policy.mgt.core.task.TaskScheduleService; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyManagerServiceImpl.java similarity index 93% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyManagerServiceImpl.java index 813e7015c48..cc6e7ea3571 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyManagerServiceImpl.java @@ -33,7 +33,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core; +package io.entgra.device.mgt.core.policy.mgt.core; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -47,20 +47,20 @@ import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExcept import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.common.*; +import io.entgra.device.mgt.core.policy.mgt.common.*; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.NonComplianceData; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.ComplianceFeature; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceException; -import org.wso2.carbon.policy.mgt.core.impl.PolicyAdministratorPointImpl; -import org.wso2.carbon.policy.mgt.core.impl.PolicyInformationPointImpl; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.MonitoringManager; -import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager; -import org.wso2.carbon.policy.mgt.core.mgt.impl.MonitoringManagerImpl; -import org.wso2.carbon.policy.mgt.core.mgt.impl.PolicyManagerImpl; -import org.wso2.carbon.policy.mgt.core.task.TaskScheduleService; -import org.wso2.carbon.policy.mgt.core.task.TaskScheduleServiceImpl; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.core.impl.PolicyAdministratorPointImpl; +import io.entgra.device.mgt.core.policy.mgt.core.impl.PolicyInformationPointImpl; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.MonitoringManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.PolicyManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.MonitoringManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.PolicyManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.task.TaskScheduleService; +import io.entgra.device.mgt.core.policy.mgt.core.task.TaskScheduleServiceImpl; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import java.util.ArrayList; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/cache/PolicyCacheException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/cache/PolicyCacheException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/cache/PolicyCacheException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/cache/PolicyCacheException.java index c4382a3aa7e..679740ae047 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/cache/PolicyCacheException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/cache/PolicyCacheException.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.core.cache; +package io.entgra.device.mgt.core.policy.mgt.core.cache; public class PolicyCacheException extends Exception { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/cache/PolicyCacheManager.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/cache/PolicyCacheManager.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/cache/PolicyCacheManager.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/cache/PolicyCacheManager.java index 17b5669f3af..f70d17a33df 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/cache/PolicyCacheManager.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/cache/PolicyCacheManager.java @@ -17,11 +17,11 @@ */ -package org.wso2.carbon.policy.mgt.core.cache; +package io.entgra.device.mgt.core.policy.mgt.core.cache; import org.wso2.carbon.device.mgt.common.DynamicTaskContext; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/cache/impl/PolicyCacheManagerImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/cache/impl/PolicyCacheManagerImpl.java similarity index 93% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/cache/impl/PolicyCacheManagerImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/cache/impl/PolicyCacheManagerImpl.java index 46e01793a97..0fd17794b58 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/cache/impl/PolicyCacheManagerImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/cache/impl/PolicyCacheManagerImpl.java @@ -17,18 +17,18 @@ */ -package org.wso2.carbon.policy.mgt.core.cache.impl; +package io.entgra.device.mgt.core.policy.mgt.core.cache.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.device.mgt.common.DynamicTaskContext; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.cache.PolicyCacheManager; -import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager; -import org.wso2.carbon.policy.mgt.core.mgt.impl.PolicyManagerImpl; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.cache.PolicyCacheManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.PolicyManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.PolicyManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import javax.cache.Cache; import java.util.ArrayList; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyConfigurationManager.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/PolicyConfigurationManager.java similarity index 87% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyConfigurationManager.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/PolicyConfigurationManager.java index 472457c829c..2f61677584f 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyConfigurationManager.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/PolicyConfigurationManager.java @@ -16,13 +16,13 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.config; +package io.entgra.device.mgt.core.policy.mgt.core.config; import org.w3c.dom.Document; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.config.datasource.DataSourceConfig; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.config.datasource.DataSourceConfig; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import org.wso2.carbon.utils.CarbonUtils; import javax.xml.bind.JAXBContext; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyManagementConfig.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/PolicyManagementConfig.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyManagementConfig.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/PolicyManagementConfig.java index d62da6b1532..6c682e91ed8 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyManagementConfig.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/PolicyManagementConfig.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.config; +package io.entgra.device.mgt.core.policy.mgt.core.config; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyManagementRepository.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/PolicyManagementRepository.java similarity index 89% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyManagementRepository.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/PolicyManagementRepository.java index 7f85a9bcff8..d3f3f39abdb 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyManagementRepository.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/PolicyManagementRepository.java @@ -16,9 +16,9 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.config; +package io.entgra.device.mgt.core.policy.mgt.core.config; -import org.wso2.carbon.policy.mgt.core.config.datasource.DataSourceConfig; +import io.entgra.device.mgt.core.policy.mgt.core.config.datasource.DataSourceConfig; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/datasource/DataSourceConfig.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/datasource/DataSourceConfig.java similarity index 94% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/datasource/DataSourceConfig.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/datasource/DataSourceConfig.java index de874b958bf..e1d7df57029 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/datasource/DataSourceConfig.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/datasource/DataSourceConfig.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.config.datasource; +package io.entgra.device.mgt.core.policy.mgt.core.config.datasource; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/datasource/JNDILookupDefinition.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/datasource/JNDILookupDefinition.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/datasource/JNDILookupDefinition.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/datasource/JNDILookupDefinition.java index f1c0758ced7..a3e208b5c76 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/datasource/JNDILookupDefinition.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/config/datasource/JNDILookupDefinition.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.config.datasource; +package io.entgra.device.mgt.core.policy.mgt.core.config.datasource; import javax.xml.bind.annotation.*; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/FeatureDAO.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/FeatureDAO.java similarity index 98% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/FeatureDAO.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/FeatureDAO.java index 00d7280a9d4..d83c188dc68 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/FeatureDAO.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/FeatureDAO.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.core.dao; +package io.entgra.device.mgt.core.policy.mgt.core.dao; import org.wso2.carbon.device.mgt.common.Feature; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/FeatureManagerDAOException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/FeatureManagerDAOException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/FeatureManagerDAOException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/FeatureManagerDAOException.java index 02ff4a00d69..5e1e248801a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/FeatureManagerDAOException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/FeatureManagerDAOException.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao; +package io.entgra.device.mgt.core.policy.mgt.core.dao; public class FeatureManagerDAOException extends Exception { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/MonitoringDAO.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/MonitoringDAO.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/MonitoringDAO.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/MonitoringDAO.java index ad9f9e02eb0..531bde59432 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/MonitoringDAO.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/MonitoringDAO.java @@ -17,13 +17,13 @@ */ -package org.wso2.carbon.policy.mgt.core.dao; +package io.entgra.device.mgt.core.policy.mgt.core.dao; import org.wso2.carbon.device.mgt.common.PaginationRequest; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.ComplianceData; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.NonComplianceData; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.ComplianceFeature; -import org.wso2.carbon.policy.mgt.common.monitor.PolicyDeviceWrapper; +import io.entgra.device.mgt.core.policy.mgt.common.monitor.PolicyDeviceWrapper; import java.util.List; import java.util.Map; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/MonitoringDAOException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/MonitoringDAOException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/MonitoringDAOException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/MonitoringDAOException.java index 5ab28f187f5..f3293feeaea 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/MonitoringDAOException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/MonitoringDAOException.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.core.dao; +package io.entgra.device.mgt.core.policy.mgt.core.dao; public class MonitoringDAOException extends Exception{ 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/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/PolicyDAO.java similarity index 98% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyDAO.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/PolicyDAO.java index c5ae7c0a522..076f91cd0aa 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/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/PolicyDAO.java @@ -33,12 +33,12 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao; +package io.entgra.device.mgt.core.policy.mgt.core.dao; import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.PaginationRequest; import org.wso2.carbon.device.mgt.common.policy.mgt.CorrectiveAction; -import org.wso2.carbon.policy.mgt.common.Criterion; +import io.entgra.device.mgt.core.policy.mgt.common.Criterion; import org.wso2.carbon.device.mgt.common.policy.mgt.DeviceGroupWrapper; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.common.policy.mgt.PolicyCriterion; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyManagementDAOFactory.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/PolicyManagementDAOFactory.java similarity index 89% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyManagementDAOFactory.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/PolicyManagementDAOFactory.java index a0a83c454d9..afb07bf5c20 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyManagementDAOFactory.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/PolicyManagementDAOFactory.java @@ -16,25 +16,25 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao; +package io.entgra.device.mgt.core.policy.mgt.core.dao; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.device.mgt.common.DeviceManagementConstants; import org.wso2.carbon.device.mgt.common.exceptions.IllegalTransactionStateException; import org.wso2.carbon.device.mgt.common.exceptions.UnsupportedDatabaseEngineException; -import org.wso2.carbon.policy.mgt.core.config.datasource.DataSourceConfig; -import org.wso2.carbon.policy.mgt.core.config.datasource.JNDILookupDefinition; -import org.wso2.carbon.policy.mgt.core.dao.impl.MonitoringDAOImpl; -import org.wso2.carbon.policy.mgt.core.dao.impl.ProfileDAOImpl; -import org.wso2.carbon.policy.mgt.core.dao.impl.feature.GenericFeatureDAOImpl; -import org.wso2.carbon.policy.mgt.core.dao.impl.feature.OracleServerFeatureDAOImpl; -import org.wso2.carbon.policy.mgt.core.dao.impl.feature.SQLServerFeatureDAOImpl; -import org.wso2.carbon.policy.mgt.core.dao.impl.policy.GenericPolicyDAOImpl; -import org.wso2.carbon.policy.mgt.core.dao.impl.policy.OraclePolicyDAOImpl; -import org.wso2.carbon.policy.mgt.core.dao.impl.policy.PostgreSQLPolicyDAOImpl; -import org.wso2.carbon.policy.mgt.core.dao.impl.policy.SQLServerPolicyDAOImpl; -import org.wso2.carbon.policy.mgt.core.dao.util.PolicyManagementDAOUtil; +import io.entgra.device.mgt.core.policy.mgt.core.config.datasource.DataSourceConfig; +import io.entgra.device.mgt.core.policy.mgt.core.config.datasource.JNDILookupDefinition; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.MonitoringDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.ProfileDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.feature.GenericFeatureDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.feature.OracleServerFeatureDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.feature.SQLServerFeatureDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.policy.GenericPolicyDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.policy.OraclePolicyDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.policy.PostgreSQLPolicyDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.policy.SQLServerPolicyDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.util.PolicyManagementDAOUtil; import javax.sql.DataSource; import java.sql.Connection; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyManagerDAOException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/PolicyManagerDAOException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyManagerDAOException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/PolicyManagerDAOException.java index c87ce4c7390..ebeafb873b4 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/PolicyManagerDAOException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/PolicyManagerDAOException.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao; +package io.entgra.device.mgt.core.policy.mgt.core.dao; public class PolicyManagerDAOException extends Exception{ diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/ProfileDAO.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/ProfileDAO.java similarity index 98% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/ProfileDAO.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/ProfileDAO.java index 01dd9f84437..fe23de529e3 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/ProfileDAO.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/ProfileDAO.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.core.dao; +package io.entgra.device.mgt.core.policy.mgt.core.dao; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/ProfileManagerDAOException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/ProfileManagerDAOException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/ProfileManagerDAOException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/ProfileManagerDAOException.java index ba859ed7844..267fab90229 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/ProfileManagerDAOException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/ProfileManagerDAOException.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao; +package io.entgra.device.mgt.core.policy.mgt.core.dao; public class ProfileManagerDAOException extends Exception{ diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/dto/PolicyCriteriaDTO.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/dto/PolicyCriteriaDTO.java similarity index 92% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/dto/PolicyCriteriaDTO.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/dto/PolicyCriteriaDTO.java index d2b8c3e9807..1662f91a40f 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/dto/PolicyCriteriaDTO.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/dto/PolicyCriteriaDTO.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.core.dao.dto; +package io.entgra.device.mgt.core.policy.mgt.core.dao.dto; public class PolicyCriteriaDTO { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/MonitoringDAOImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/MonitoringDAOImpl.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/MonitoringDAOImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/MonitoringDAOImpl.java index 25531d57578..cac351e8fd5 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/MonitoringDAOImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/MonitoringDAOImpl.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.core.dao.impl; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -26,12 +26,12 @@ import org.wso2.carbon.device.mgt.common.PaginationRequest; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.ComplianceData; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.NonComplianceData; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.ComplianceFeature; -import org.wso2.carbon.policy.mgt.common.monitor.PolicyDeviceWrapper; -import org.wso2.carbon.policy.mgt.core.dao.MonitoringDAO; -import org.wso2.carbon.policy.mgt.core.dao.MonitoringDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.util.PolicyManagementDAOUtil; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.common.monitor.PolicyDeviceWrapper; +import io.entgra.device.mgt.core.policy.mgt.core.dao.MonitoringDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.MonitoringDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.util.PolicyManagementDAOUtil; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import java.sql.*; import java.util.*; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/ProfileDAOImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/ProfileDAOImpl.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/ProfileDAOImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/ProfileDAOImpl.java index 66f7528d1b1..e2954945682 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/ProfileDAOImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/ProfileDAOImpl.java @@ -16,17 +16,17 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao.impl; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.common.DynamicTaskContext; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.ProfileDAO; -import org.wso2.carbon.policy.mgt.core.dao.ProfileManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.util.PolicyManagementDAOUtil; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.ProfileDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.ProfileManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.util.PolicyManagementDAOUtil; import java.sql.Connection; import java.sql.PreparedStatement; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/AbstractFeatureDAO.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/AbstractFeatureDAO.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/AbstractFeatureDAO.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/AbstractFeatureDAO.java index 8d04fdec5b5..3c50709477b 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/AbstractFeatureDAO.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/AbstractFeatureDAO.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao.impl.feature; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl.feature; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -24,13 +24,12 @@ import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.common.Feature; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.core.dao.FeatureDAO; -import org.wso2.carbon.policy.mgt.core.dao.FeatureManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.util.PolicyManagementDAOUtil; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.util.PolicyManagementDAOUtil; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; -import javax.naming.OperationNotSupportedException; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.ObjectInputStream; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/GenericFeatureDAOImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/GenericFeatureDAOImpl.java similarity index 89% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/GenericFeatureDAOImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/GenericFeatureDAOImpl.java index bee766f16d4..129c10068e8 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/GenericFeatureDAOImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/GenericFeatureDAOImpl.java @@ -16,16 +16,16 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao.impl.feature; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl.feature; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.core.dao.FeatureManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.util.PolicyManagementDAOUtil; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.util.PolicyManagementDAOUtil; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import java.io.IOException; import java.sql.Connection; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/OracleServerFeatureDAOImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/OracleServerFeatureDAOImpl.java similarity index 90% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/OracleServerFeatureDAOImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/OracleServerFeatureDAOImpl.java index 124e5a7ee44..b08c2b6b760 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/OracleServerFeatureDAOImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/OracleServerFeatureDAOImpl.java @@ -15,14 +15,14 @@ * under the License. * */ -package org.wso2.carbon.policy.mgt.core.dao.impl.feature; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl.feature; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.core.dao.FeatureManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.util.PolicyManagementDAOUtil; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.util.PolicyManagementDAOUtil; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import java.io.IOException; import java.sql.Connection; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/SQLServerFeatureDAOImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/SQLServerFeatureDAOImpl.java similarity index 90% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/SQLServerFeatureDAOImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/SQLServerFeatureDAOImpl.java index ed8d90e3282..54af2a9fc7b 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/feature/SQLServerFeatureDAOImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/feature/SQLServerFeatureDAOImpl.java @@ -16,16 +16,16 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao.impl.feature; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl.feature; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.core.dao.FeatureManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.util.PolicyManagementDAOUtil; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.util.PolicyManagementDAOUtil; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import java.io.IOException; import java.sql.Connection; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/AbstractPolicyDAOImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/AbstractPolicyDAOImpl.java similarity index 99% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/AbstractPolicyDAOImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/AbstractPolicyDAOImpl.java index 02dc4005780..66c32f7b713 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/AbstractPolicyDAOImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/AbstractPolicyDAOImpl.java @@ -33,7 +33,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao.impl.policy; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl.policy; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -43,13 +43,13 @@ import org.wso2.carbon.device.mgt.common.policy.mgt.CorrectiveAction; import org.wso2.carbon.device.mgt.common.policy.mgt.DeviceGroupWrapper; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.common.policy.mgt.PolicyCriterion; -import org.wso2.carbon.policy.mgt.common.Criterion; -import org.wso2.carbon.policy.mgt.core.dao.PolicyDAO; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.util.PolicyManagementDAOUtil; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; -import org.wso2.carbon.policy.mgt.core.util.SetReferenceTransformer; +import io.entgra.device.mgt.core.policy.mgt.common.Criterion; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.util.PolicyManagementDAOUtil; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.core.util.SetReferenceTransformer; import java.io.ByteArrayInputStream; import java.io.IOException; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/GenericPolicyDAOImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/GenericPolicyDAOImpl.java similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/GenericPolicyDAOImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/GenericPolicyDAOImpl.java index d8916c95a95..7a258923b55 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/GenericPolicyDAOImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/GenericPolicyDAOImpl.java @@ -17,15 +17,15 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao.impl.policy; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl.policy; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.common.PaginationRequest; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagerDAOException; import java.sql.Connection; import java.sql.PreparedStatement; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/OraclePolicyDAOImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/OraclePolicyDAOImpl.java similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/OraclePolicyDAOImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/OraclePolicyDAOImpl.java index c8f89a906af..e3dcbe28b2c 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/OraclePolicyDAOImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/OraclePolicyDAOImpl.java @@ -17,15 +17,15 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao.impl.policy; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl.policy; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.common.PaginationRequest; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagerDAOException; import java.sql.Connection; import java.sql.PreparedStatement; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/PostgreSQLPolicyDAOImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/PostgreSQLPolicyDAOImpl.java similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/PostgreSQLPolicyDAOImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/PostgreSQLPolicyDAOImpl.java index afb57d3466b..002f5dfbd93 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/PostgreSQLPolicyDAOImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/PostgreSQLPolicyDAOImpl.java @@ -17,15 +17,15 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao.impl.policy; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl.policy; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.common.PaginationRequest; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagerDAOException; import java.sql.Connection; import java.sql.PreparedStatement; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/SQLServerPolicyDAOImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/SQLServerPolicyDAOImpl.java similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/SQLServerPolicyDAOImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/SQLServerPolicyDAOImpl.java index dc7e4024397..d98d7eb3a08 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/policy/SQLServerPolicyDAOImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/impl/policy/SQLServerPolicyDAOImpl.java @@ -17,15 +17,15 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao.impl.policy; +package io.entgra.device.mgt.core.policy.mgt.core.dao.impl.policy; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.common.PaginationRequest; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagerDAOException; import java.sql.Connection; import java.sql.PreparedStatement; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/util/PolicyManagementDAOUtil.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/util/PolicyManagementDAOUtil.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/util/PolicyManagementDAOUtil.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/util/PolicyManagementDAOUtil.java index c23f6efc3f0..c9dabf88e04 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/util/PolicyManagementDAOUtil.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/dao/util/PolicyManagementDAOUtil.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.dao.util; +package io.entgra.device.mgt.core.policy.mgt.core.dao.util; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/DelegationTask.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/DelegationTask.java similarity index 89% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/DelegationTask.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/DelegationTask.java index ba4cfd971cd..45daf1298af 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/DelegationTask.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/DelegationTask.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.enforcement; +package io.entgra.device.mgt.core.policy.mgt.core.enforcement; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -27,12 +27,12 @@ import org.wso2.carbon.device.mgt.core.config.DeviceConfigurationManager; import org.wso2.carbon.device.mgt.core.config.policy.PolicyConfiguration; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.task.impl.DynamicPartitionedScheduleTask; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.cache.impl.PolicyCacheManagerImpl; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager; -import org.wso2.carbon.policy.mgt.core.mgt.bean.UpdatedPolicyDeviceListBean; -import org.wso2.carbon.policy.mgt.core.mgt.impl.PolicyManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.cache.impl.PolicyCacheManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.PolicyManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.bean.UpdatedPolicyDeviceListBean; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.PolicyManagerImpl; import java.util.ArrayList; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/PolicyDelegationException.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/PolicyDelegationException.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/PolicyDelegationException.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/PolicyDelegationException.java index c92d21b7736..18cdff90907 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/PolicyDelegationException.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/PolicyDelegationException.java @@ -16,7 +16,7 @@ * under the License. * */ -package org.wso2.carbon.policy.mgt.core.enforcement; +package io.entgra.device.mgt.core.policy.mgt.core.enforcement; public class PolicyDelegationException extends Exception { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/PolicyEnforcementDelegator.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/PolicyEnforcementDelegator.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/PolicyEnforcementDelegator.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/PolicyEnforcementDelegator.java index aac07ce6000..16cfa869452 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/PolicyEnforcementDelegator.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/PolicyEnforcementDelegator.java @@ -16,7 +16,7 @@ * under the License. * */ -package org.wso2.carbon.policy.mgt.core.enforcement; +package io.entgra.device.mgt.core.policy.mgt.core.enforcement; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/PolicyEnforcementDelegatorImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/PolicyEnforcementDelegatorImpl.java similarity index 94% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/PolicyEnforcementDelegatorImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/PolicyEnforcementDelegatorImpl.java index 74e5d8e7f17..9c20826a3fd 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/enforcement/PolicyEnforcementDelegatorImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/enforcement/PolicyEnforcementDelegatorImpl.java @@ -32,7 +32,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core.enforcement; +package io.entgra.device.mgt.core.policy.mgt.core.enforcement; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -46,13 +46,13 @@ import org.wso2.carbon.device.mgt.core.operation.mgt.CommandOperation; import org.wso2.carbon.device.mgt.core.operation.mgt.OperationMgtConstants; import org.wso2.carbon.device.mgt.core.operation.mgt.PolicyOperation; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; -import org.wso2.carbon.policy.mgt.common.PolicyAdministratorPoint; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationException; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.common.PolicyTransformException; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyAdministratorPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyTransformException; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import java.util.ArrayList; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/ComplianceDecisionPointImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/ComplianceDecisionPointImpl.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/ComplianceDecisionPointImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/ComplianceDecisionPointImpl.java index 2c0ba22e8a3..22e5a14365a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/ComplianceDecisionPointImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/ComplianceDecisionPointImpl.java @@ -34,7 +34,7 @@ */ -package org.wso2.carbon.policy.mgt.core.impl; +package io.entgra.device.mgt.core.policy.mgt.core.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -49,11 +49,11 @@ import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.NonComplianceData; -import org.wso2.carbon.policy.mgt.common.monitor.ComplianceDecisionPoint; +import io.entgra.device.mgt.core.policy.mgt.common.monitor.ComplianceDecisionPoint; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.ComplianceFeature; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceException; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; import java.util.ArrayList; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyAdministratorPointImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/PolicyAdministratorPointImpl.java similarity index 94% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyAdministratorPointImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/PolicyAdministratorPointImpl.java index f3249e48140..965973b044f 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyAdministratorPointImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/PolicyAdministratorPointImpl.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.impl; +package io.entgra.device.mgt.core.policy.mgt.core.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -32,15 +32,15 @@ import org.wso2.carbon.ntask.common.TaskException; import org.wso2.carbon.ntask.core.TaskInfo; import org.wso2.carbon.ntask.core.TaskManager; import org.wso2.carbon.ntask.core.service.TaskService; -import org.wso2.carbon.policy.mgt.common.*; -import org.wso2.carbon.policy.mgt.core.cache.PolicyCacheManager; -import org.wso2.carbon.policy.mgt.core.cache.impl.PolicyCacheManagerImpl; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager; -import org.wso2.carbon.policy.mgt.core.mgt.ProfileManager; -import org.wso2.carbon.policy.mgt.core.mgt.impl.PolicyManagerImpl; -import org.wso2.carbon.policy.mgt.core.mgt.impl.ProfileManagerImpl; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; +import io.entgra.device.mgt.core.policy.mgt.common.*; +import io.entgra.device.mgt.core.policy.mgt.core.cache.PolicyCacheManager; +import io.entgra.device.mgt.core.policy.mgt.core.cache.impl.PolicyCacheManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.PolicyManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.ProfileManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.PolicyManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.ProfileManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; import java.util.HashMap; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyFilterImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/PolicyFilterImpl.java similarity index 98% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyFilterImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/PolicyFilterImpl.java index fbb61465d72..d8b9a55a513 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyFilterImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/PolicyFilterImpl.java @@ -34,15 +34,15 @@ */ -package org.wso2.carbon.policy.mgt.core.impl; +package io.entgra.device.mgt.core.policy.mgt.core.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.device.mgt.common.group.mgt.DeviceGroup; import org.wso2.carbon.device.mgt.common.policy.mgt.DeviceGroupWrapper; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.common.PolicyFilter; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyFilter; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; import java.util.ArrayList; import java.util.HashMap; 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/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/PolicyInformationPointImpl.java similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/PolicyInformationPointImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/PolicyInformationPointImpl.java index 1c08b1d5a81..5b8755b9832 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/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/impl/PolicyInformationPointImpl.java @@ -33,7 +33,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.impl; +package io.entgra.device.mgt.core.policy.mgt.core.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -48,16 +48,16 @@ import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.core.dto.DeviceType; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService; -import org.wso2.carbon.policy.mgt.common.FeatureManagementException; -import org.wso2.carbon.policy.mgt.common.PIPDevice; -import org.wso2.carbon.policy.mgt.common.PolicyFilter; -import org.wso2.carbon.policy.mgt.common.PolicyInformationPoint; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.FeatureManager; -import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager; -import org.wso2.carbon.policy.mgt.core.mgt.impl.FeatureManagerImpl; -import org.wso2.carbon.policy.mgt.core.mgt.impl.PolicyManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.common.FeatureManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.PIPDevice; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyFilter; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyInformationPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.FeatureManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.PolicyManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.FeatureManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.PolicyManagerImpl; import org.wso2.carbon.user.api.UserRealm; import org.wso2.carbon.user.api.UserStoreException; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementDataHolder.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/internal/PolicyManagementDataHolder.java similarity index 92% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementDataHolder.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/internal/PolicyManagementDataHolder.java index 4842565861b..6d3af25aeda 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementDataHolder.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/internal/PolicyManagementDataHolder.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.internal; +package io.entgra.device.mgt.core.policy.mgt.core.internal; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.core.config.DeviceConfigurationManager; @@ -24,11 +24,11 @@ import org.wso2.carbon.device.mgt.core.config.policy.PolicyConfiguration; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService; import org.wso2.carbon.ntask.core.service.TaskService; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationPoint; -import org.wso2.carbon.policy.mgt.common.PolicyInformationPoint; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; -import org.wso2.carbon.policy.mgt.core.mgt.MonitoringManager; -import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyInformationPoint; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.MonitoringManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.PolicyManager; import org.wso2.carbon.user.core.service.RealmService; import java.util.HashMap; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementServiceComponent.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/internal/PolicyManagementServiceComponent.java similarity index 88% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementServiceComponent.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/internal/PolicyManagementServiceComponent.java index 8c5819a2f1a..f77fec9b787 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementServiceComponent.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/internal/PolicyManagementServiceComponent.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.internal; +package io.entgra.device.mgt.core.policy.mgt.core.internal; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -25,16 +25,16 @@ import org.wso2.carbon.device.mgt.core.config.DeviceConfigurationManager; import org.wso2.carbon.device.mgt.core.config.policy.PolicyConfiguration; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.ntask.core.service.TaskService; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationPoint; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; -import org.wso2.carbon.policy.mgt.core.PolicyManagerServiceImpl; -import org.wso2.carbon.policy.mgt.core.config.PolicyConfigurationManager; -import org.wso2.carbon.policy.mgt.core.config.PolicyManagementConfig; -import org.wso2.carbon.policy.mgt.core.config.datasource.DataSourceConfig; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.task.TaskScheduleService; -import org.wso2.carbon.policy.mgt.core.task.TaskScheduleServiceImpl; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationPoint; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerServiceImpl; +import io.entgra.device.mgt.core.policy.mgt.core.config.PolicyConfigurationManager; +import io.entgra.device.mgt.core.policy.mgt.core.config.PolicyManagementConfig; +import io.entgra.device.mgt.core.policy.mgt.core.config.datasource.DataSourceConfig; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.task.TaskScheduleService; +import io.entgra.device.mgt.core.policy.mgt.core.task.TaskScheduleServiceImpl; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import org.wso2.carbon.user.core.service.RealmService; /** @@ -46,7 +46,7 @@ import org.wso2.carbon.user.core.service.RealmService; * bind="setRealmService" * unbind="unsetRealmService" * @scr.reference name="org.wso2.carbon.devicemgt.policy.evaluation.manager" - * interface="org.wso2.carbon.policy.mgt.common.PolicyEvaluationPoint" + * interface="io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationPoint" * cardinality="1..n" * policy="dynamic" * bind="setPEPService" diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/FeatureManager.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/FeatureManager.java similarity index 92% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/FeatureManager.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/FeatureManager.java index e0c6f3fdbed..390761b1efa 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/FeatureManager.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/FeatureManager.java @@ -17,13 +17,13 @@ */ -package org.wso2.carbon.policy.mgt.core.mgt; +package io.entgra.device.mgt.core.policy.mgt.core.mgt; import org.wso2.carbon.device.mgt.common.Feature; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.common.FeatureManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.FeatureManagementException; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/MonitoringManager.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/MonitoringManager.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/MonitoringManager.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/MonitoringManager.java index 234b176b148..0b90ad6e47a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/MonitoringManager.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/MonitoringManager.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.mgt; +package io.entgra.device.mgt.core.policy.mgt.core.mgt; import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/PolicyManager.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/PolicyManager.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/PolicyManager.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/PolicyManager.java index 8f45900a21d..2859a874389 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/PolicyManager.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/PolicyManager.java @@ -15,15 +15,15 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core.mgt; +package io.entgra.device.mgt.core.policy.mgt.core.mgt; import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DynamicTaskContext; import org.wso2.carbon.device.mgt.common.PaginationRequest; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.mgt.bean.UpdatedPolicyDeviceListBean; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.bean.UpdatedPolicyDeviceListBean; import java.util.HashMap; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/ProfileManager.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/ProfileManager.java similarity index 90% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/ProfileManager.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/ProfileManager.java index 43a83b6b334..6da4ecd1ab7 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/ProfileManager.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/ProfileManager.java @@ -17,10 +17,10 @@ */ -package org.wso2.carbon.policy.mgt.core.mgt; +package io.entgra.device.mgt.core.policy.mgt.core.mgt; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; -import org.wso2.carbon.policy.mgt.common.ProfileManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.ProfileManagementException; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/bean/UpdatedPolicyDeviceListBean.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/bean/UpdatedPolicyDeviceListBean.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/bean/UpdatedPolicyDeviceListBean.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/bean/UpdatedPolicyDeviceListBean.java index bd0e925565c..0267435f70a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/bean/UpdatedPolicyDeviceListBean.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/bean/UpdatedPolicyDeviceListBean.java @@ -15,7 +15,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core.mgt.bean; +package io.entgra.device.mgt.core.policy.mgt.core.mgt.bean; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/FeatureManagerImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/FeatureManagerImpl.java similarity index 93% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/FeatureManagerImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/FeatureManagerImpl.java index dff12ac54f9..4f8a3e9014e 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/FeatureManagerImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/FeatureManagerImpl.java @@ -16,21 +16,21 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.mgt.impl; +package io.entgra.device.mgt.core.policy.mgt.core.mgt.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.device.mgt.common.Feature; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.common.FeatureManagementException; -import org.wso2.carbon.policy.mgt.core.dao.FeatureDAO; -import org.wso2.carbon.policy.mgt.core.dao.FeatureManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.ProfileDAO; -import org.wso2.carbon.policy.mgt.core.dao.ProfileManagerDAOException; -import org.wso2.carbon.policy.mgt.core.mgt.FeatureManager; +import io.entgra.device.mgt.core.policy.mgt.common.FeatureManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.ProfileDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.ProfileManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.FeatureManager; import java.sql.SQLException; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java index 29878e05c01..83685747de3 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.mgt.impl; +package io.entgra.device.mgt.core.policy.mgt.core.mgt.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -37,18 +37,18 @@ import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.NonComplianceData; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceException; import org.wso2.carbon.device.mgt.core.operation.mgt.CommandOperation; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.common.monitor.ComplianceDecisionPoint; -import org.wso2.carbon.policy.mgt.common.monitor.PolicyDeviceWrapper; -import org.wso2.carbon.policy.mgt.core.dao.MonitoringDAO; -import org.wso2.carbon.policy.mgt.core.dao.MonitoringDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyDAO; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagerDAOException; -import org.wso2.carbon.policy.mgt.core.impl.ComplianceDecisionPointImpl; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.MonitoringManager; -import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.monitor.ComplianceDecisionPoint; +import io.entgra.device.mgt.core.policy.mgt.common.monitor.PolicyDeviceWrapper; +import io.entgra.device.mgt.core.policy.mgt.core.dao.MonitoringDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.MonitoringDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.impl.ComplianceDecisionPointImpl; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.MonitoringManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.PolicyManager; import java.sql.SQLException; import java.util.ArrayList; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/PolicyManagerImpl.java similarity index 98% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/PolicyManagerImpl.java index 1bd77a398f4..1bf7f352647 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/PolicyManagerImpl.java @@ -33,7 +33,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.mgt.impl; +package io.entgra.device.mgt.core.policy.mgt.core.mgt.impl; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; @@ -60,23 +60,23 @@ import org.wso2.carbon.device.mgt.core.operation.mgt.CommandOperation; import org.wso2.carbon.device.mgt.core.operation.mgt.OperationMgtConstants; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService; -import org.wso2.carbon.policy.mgt.common.Criterion; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.common.ProfileManagementException; -import org.wso2.carbon.policy.mgt.core.cache.impl.PolicyCacheManagerImpl; -import org.wso2.carbon.policy.mgt.core.dao.FeatureDAO; -import org.wso2.carbon.policy.mgt.core.dao.FeatureManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyDAO; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.ProfileDAO; -import org.wso2.carbon.policy.mgt.core.dao.ProfileManagerDAOException; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager; -import org.wso2.carbon.policy.mgt.core.mgt.ProfileManager; -import org.wso2.carbon.policy.mgt.core.mgt.bean.UpdatedPolicyDeviceListBean; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; +import io.entgra.device.mgt.core.policy.mgt.common.Criterion; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.ProfileManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.cache.impl.PolicyCacheManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.ProfileDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.ProfileManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.PolicyManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.ProfileManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.bean.UpdatedPolicyDeviceListBean; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import java.sql.SQLException; import java.sql.Timestamp; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/ProfileManagerImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/ProfileManagerImpl.java similarity index 93% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/ProfileManagerImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/ProfileManagerImpl.java index 8db445348e4..b844c01b056 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/ProfileManagerImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/ProfileManagerImpl.java @@ -16,21 +16,21 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.mgt.impl; +package io.entgra.device.mgt.core.policy.mgt.core.mgt.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.device.mgt.common.DynamicTaskContext; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.common.ProfileManagementException; -import org.wso2.carbon.policy.mgt.core.dao.FeatureDAO; -import org.wso2.carbon.policy.mgt.core.dao.FeatureManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.ProfileDAO; -import org.wso2.carbon.policy.mgt.core.dao.ProfileManagerDAOException; -import org.wso2.carbon.policy.mgt.core.mgt.ProfileManager; +import io.entgra.device.mgt.core.policy.mgt.common.ProfileManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.FeatureManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.ProfileDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.ProfileManagerDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.ProfileManager; import java.sql.SQLException; import java.sql.Timestamp; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/MonitoringTask.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/task/MonitoringTask.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/MonitoringTask.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/task/MonitoringTask.java index c93ff3d5631..97b079f7ec4 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/MonitoringTask.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/task/MonitoringTask.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.task; +package io.entgra.device.mgt.core.policy.mgt.core.task; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -28,9 +28,9 @@ import org.wso2.carbon.device.mgt.common.policy.mgt.PolicyMonitoringManager; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceException; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.task.impl.DynamicPartitionedScheduleTask; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.MonitoringManager; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.MonitoringManager; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; import java.util.ArrayList; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/TaskScheduleService.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/task/TaskScheduleService.java similarity index 88% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/TaskScheduleService.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/task/TaskScheduleService.java index eb42b17fd29..60460d31a52 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/TaskScheduleService.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/task/TaskScheduleService.java @@ -17,9 +17,9 @@ */ -package org.wso2.carbon.policy.mgt.core.task; +package io.entgra.device.mgt.core.policy.mgt.core.task; -import org.wso2.carbon.policy.mgt.common.PolicyMonitoringTaskException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyMonitoringTaskException; public interface TaskScheduleService { diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/TaskScheduleServiceImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/task/TaskScheduleServiceImpl.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/TaskScheduleServiceImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/task/TaskScheduleServiceImpl.java index d6aefcee118..194d1a85c5c 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/TaskScheduleServiceImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/task/TaskScheduleServiceImpl.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.core.task; +package io.entgra.device.mgt.core.policy.mgt.core.task; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -28,9 +28,9 @@ import org.wso2.carbon.ntask.common.TaskException; import org.wso2.carbon.ntask.core.TaskInfo; import org.wso2.carbon.ntask.core.TaskManager; import org.wso2.carbon.ntask.core.service.TaskService; -import org.wso2.carbon.policy.mgt.common.PolicyMonitoringTaskException; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyMonitoringTaskException; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; import org.wso2.carbon.ntask.core.TaskInfo.TriggerInfo; import java.util.HashMap; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagementConstants.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/util/PolicyManagementConstants.java similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagementConstants.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/util/PolicyManagementConstants.java index 9f4112eb088..5b0d03b0e99 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagementConstants.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/util/PolicyManagementConstants.java @@ -33,7 +33,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.util; +package io.entgra.device.mgt.core.policy.mgt.core.util; public final class PolicyManagementConstants { @@ -53,7 +53,7 @@ public final class PolicyManagementConstants { public static final String MONITORING_TASK_TYPE = "MONITORING_TASK"; public static final String MONITORING_TASK_NAME = "MONITORING"; - public static final String MONITORING_TASK_CLAZZ = "org.wso2.carbon.policy.mgt.core.task.MonitoringTask"; + public static final String MONITORING_TASK_CLAZZ = "io.entgra.device.mgt.core.policy.mgt.core.task.MonitoringTask"; public static final String DM_CACHE_MANAGER = "DM_CACHE_MANAGER"; // public static final String DM_CACHE = "DM_CACHE"; @@ -61,7 +61,7 @@ public final class PolicyManagementConstants { public static final String DELEGATION_TASK_TYPE = "DELEGATION__TASK"; public static final String DELEGATION_TASK_NAME = "DELEGATION"; - public static final String DELEGATION_TASK_CLAZZ = "org.wso2.carbon.policy.mgt.core.enforcement.DelegationTask"; + public static final String DELEGATION_TASK_CLAZZ = "io.entgra.device.mgt.core.policy.mgt.core.enforcement.DelegationTask"; public static final String GENERAL_POLICY_TYPE = "GENERAL"; public static final String CORRECTIVE_POLICY_TYPE = "CORRECTIVE"; 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/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/util/PolicyManagerUtil.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagerUtil.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/util/PolicyManagerUtil.java index 95ae637c51b..76e513b276b 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/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/util/PolicyManagerUtil.java @@ -33,7 +33,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.util; +package io.entgra.device.mgt.core.policy.mgt.core.util; import com.google.gson.Gson; import org.apache.commons.lang.StringUtils; @@ -57,14 +57,14 @@ import org.wso2.carbon.device.mgt.core.config.tenant.PlatformConfigurationManage import org.wso2.carbon.device.mgt.core.operation.mgt.PolicyOperation; import org.wso2.carbon.device.mgt.core.operation.mgt.ProfileOperation; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; -import org.wso2.carbon.policy.mgt.common.PolicyAdministratorPoint; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyAdministratorPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.common.PolicyTransformException; -import org.wso2.carbon.policy.mgt.core.config.datasource.DataSourceConfig; -import org.wso2.carbon.policy.mgt.core.config.datasource.JNDILookupDefinition; -import org.wso2.carbon.policy.mgt.core.dao.util.PolicyManagementDAOUtil; -import org.wso2.carbon.policy.mgt.core.impl.PolicyAdministratorPointImpl; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyTransformException; +import io.entgra.device.mgt.core.policy.mgt.core.config.datasource.DataSourceConfig; +import io.entgra.device.mgt.core.policy.mgt.core.config.datasource.JNDILookupDefinition; +import io.entgra.device.mgt.core.policy.mgt.core.dao.util.PolicyManagementDAOUtil; +import io.entgra.device.mgt.core.policy.mgt.core.impl.PolicyAdministratorPointImpl; import javax.cache.Cache; import javax.cache.CacheManager; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/SetReferenceTransformer.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/util/SetReferenceTransformer.java similarity index 95% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/SetReferenceTransformer.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/util/SetReferenceTransformer.java index f9d78e05fc6..9edb21a828a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/SetReferenceTransformer.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/main/java/io/entgra/device/mgt/core/policy/mgt/core/util/SetReferenceTransformer.java @@ -1,4 +1,4 @@ -package org.wso2.carbon.policy.mgt.core.util; +package io.entgra.device.mgt.core.policy.mgt.core.util; import java.util.ArrayList; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/BasePolicyManagementDAOTest.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/BasePolicyManagementDAOTest.java similarity index 94% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/BasePolicyManagementDAOTest.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/BasePolicyManagementDAOTest.java index a7985f86bba..362bdae9fda 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/BasePolicyManagementDAOTest.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/BasePolicyManagementDAOTest.java @@ -16,8 +16,17 @@ * under the License. * */ -package org.wso2.carbon.policy.mgt.core; - +package io.entgra.device.mgt.core.policy.mgt.core; + +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.common.DataSourceConfig; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.ProfileManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.ProfileManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.services.SimplePolicyEvaluationTest; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagerUtil; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.tomcat.jdbc.pool.PoolProperties; @@ -29,9 +38,9 @@ import org.wso2.carbon.base.MultitenantConstants; import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; +import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceNotFoundException; -import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.group.mgt.DeviceGroup; import org.wso2.carbon.device.mgt.common.group.mgt.GroupAlreadyExistException; import org.wso2.carbon.device.mgt.common.group.mgt.GroupManagementException; @@ -48,15 +57,6 @@ import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceImpl; import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService; import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderServiceImpl; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationPoint; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.common.DataSourceConfig; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.ProfileManager; -import org.wso2.carbon.policy.mgt.core.mgt.impl.ProfileManagerImpl; -import org.wso2.carbon.policy.mgt.core.services.SimplePolicyEvaluationTest; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagerUtil; import org.wso2.carbon.registry.core.config.RegistryContext; import org.wso2.carbon.registry.core.exceptions.RegistryException; import org.wso2.carbon.registry.core.internal.RegistryDataHolder; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/MonitoringTestCase.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/MonitoringTestCase.java similarity index 93% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/MonitoringTestCase.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/MonitoringTestCase.java index 6bb6a1fe6b5..aa578efaaeb 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/MonitoringTestCase.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/MonitoringTestCase.java @@ -17,32 +17,31 @@ */ -package org.wso2.carbon.policy.mgt.core; - +package io.entgra.device.mgt.core.policy.mgt.core; + +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.MonitoringManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.PolicyManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.MonitoringManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.PolicyManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.services.PolicyMonitoringManagerTest; import junit.framework.Assert; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManager; +import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; +import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceException; import org.wso2.carbon.device.mgt.core.device.details.mgt.impl.DeviceInformationManagerImpl; import org.wso2.carbon.device.mgt.core.internal.DeviceManagementDataHolder; import org.wso2.carbon.device.mgt.core.operation.mgt.OperationManagerImpl; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceImpl; -import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderServiceImpl; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceException; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.MonitoringManager; -import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager; -import org.wso2.carbon.policy.mgt.core.mgt.impl.MonitoringManagerImpl; -import org.wso2.carbon.policy.mgt.core.mgt.impl.PolicyManagerImpl; -import org.wso2.carbon.policy.mgt.core.services.PolicyMonitoringManagerTest; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyDAOTestCase.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyDAOTestCase.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyDAOTestCase.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyDAOTestCase.java index 98b5940e4c8..298bc672f83 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyDAOTestCase.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyDAOTestCase.java @@ -15,14 +15,22 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core; - +package io.entgra.device.mgt.core.policy.mgt.core; + +import io.entgra.device.mgt.core.policy.mgt.common.FeatureManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyAdministratorPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.ProfileManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.impl.PolicyAdministratorPointImpl; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.util.*; import junit.framework.Assert; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.wso2.carbon.device.mgt.common.*; +import org.wso2.carbon.device.mgt.common.Device; +import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.Feature; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.TransactionManagementException; @@ -34,11 +42,6 @@ import org.wso2.carbon.device.mgt.core.dao.*; import org.wso2.carbon.device.mgt.core.dto.DeviceType; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceImpl; -import org.wso2.carbon.policy.mgt.common.FeatureManagementException; -import org.wso2.carbon.policy.mgt.common.*; -import org.wso2.carbon.policy.mgt.core.impl.PolicyAdministratorPointImpl; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.util.*; import java.util.ArrayList; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyEvaluationTestCase.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyEvaluationTestCase.java similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyEvaluationTestCase.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyEvaluationTestCase.java index cebfef03c7a..43be992944d 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyEvaluationTestCase.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyEvaluationTestCase.java @@ -17,8 +17,14 @@ */ -package org.wso2.carbon.policy.mgt.core; - +package io.entgra.device.mgt.core.policy.mgt.core; + +import io.entgra.device.mgt.core.policy.mgt.common.PolicyAdministratorPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.services.SimplePolicyEvaluationTest; import junit.framework.Assert; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -32,9 +38,6 @@ import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceImpl; import org.wso2.carbon.ntask.common.TaskException; -import org.wso2.carbon.policy.mgt.common.*; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.services.SimplePolicyEvaluationTest; import java.util.Collections; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImplTest.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyManagerServiceImplTest.java similarity index 94% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImplTest.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyManagerServiceImplTest.java index 310003e829e..432a7cd98d3 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImplTest.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/PolicyManagerServiceImplTest.java @@ -15,8 +15,21 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core; - +package io.entgra.device.mgt.core.policy.mgt.core; + +import io.entgra.device.mgt.core.policy.mgt.common.FeatureManagementException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationException; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyEvaluationPoint; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.enforcement.DelegationTask; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.MonitoringManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.impl.MonitoringManagerImpl; +import io.entgra.device.mgt.core.policy.mgt.core.mock.TestHeartBeatManagementService; +import io.entgra.device.mgt.core.policy.mgt.core.mock.TypeXDeviceManagementService; +import io.entgra.device.mgt.core.policy.mgt.core.task.MonitoringTask; +import io.entgra.device.mgt.core.policy.mgt.core.task.TaskScheduleService; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; import io.entgra.server.bootup.heartbeat.beacon.service.HeartBeatManagementService; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -24,7 +37,9 @@ import org.testng.Assert; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import org.wso2.carbon.context.PrivilegedCarbonContext; -import org.wso2.carbon.device.mgt.common.*; +import org.wso2.carbon.device.mgt.common.Device; +import org.wso2.carbon.device.mgt.common.DeviceIdentifier; +import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.InvalidDeviceException; import org.wso2.carbon.device.mgt.common.group.mgt.DeviceGroup; @@ -44,19 +59,7 @@ import org.wso2.carbon.device.mgt.core.internal.DeviceManagementDataHolder; import org.wso2.carbon.device.mgt.core.operation.mgt.OperationManagerImpl; import org.wso2.carbon.device.mgt.core.operation.mgt.PolicyOperation; import org.wso2.carbon.device.mgt.core.operation.mgt.ProfileOperation; -import org.wso2.carbon.policy.mgt.common.FeatureManagementException; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationException; -import org.wso2.carbon.policy.mgt.common.PolicyEvaluationPoint; -import org.wso2.carbon.policy.mgt.common.PolicyManagementException; -import org.wso2.carbon.policy.mgt.core.enforcement.DelegationTask; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.MonitoringManager; -import org.wso2.carbon.policy.mgt.core.mgt.impl.MonitoringManagerImpl; -import org.wso2.carbon.policy.mgt.core.mock.TestHeartBeatManagementService; -import org.wso2.carbon.policy.mgt.core.mock.TypeXDeviceManagementService; -import org.wso2.carbon.policy.mgt.core.task.MonitoringTask; -import org.wso2.carbon.policy.mgt.core.task.TaskScheduleService; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; + import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/TestDeviceManagementProviderService.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/TestDeviceManagementProviderService.java similarity index 91% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/TestDeviceManagementProviderService.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/TestDeviceManagementProviderService.java index 8ec457307c3..81f4609e0d6 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/TestDeviceManagementProviderService.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/TestDeviceManagementProviderService.java @@ -16,11 +16,10 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core; +package io.entgra.device.mgt.core.policy.mgt.core; import org.wso2.carbon.device.mgt.common.policy.mgt.PolicyMonitoringManager; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceImpl; -import org.wso2.carbon.policy.mgt.core.services.PolicyMonitoringManagerTest; public class TestDeviceManagementProviderService extends DeviceManagementProviderServiceImpl { private PolicyMonitoringManager policyMonitoringManager; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/TestUtils.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/TestUtils.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/TestUtils.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/TestUtils.java index 3061f38fc3e..7fa3c1a16c4 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/TestUtils.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/TestUtils.java @@ -15,7 +15,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core; +package io.entgra.device.mgt.core.policy.mgt.core; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/common/DataSourceConfig.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/common/DataSourceConfig.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/common/DataSourceConfig.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/common/DataSourceConfig.java index 726405df962..c8f0bcec90e 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/common/DataSourceConfig.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/common/DataSourceConfig.java @@ -15,7 +15,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core.common; +package io.entgra.device.mgt.core.policy.mgt.core.common; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/FeatureManagerImplTest.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/FeatureManagerImplTest.java similarity index 96% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/FeatureManagerImplTest.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/FeatureManagerImplTest.java index 25fe63c9f4e..99c2d90be76 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/FeatureManagerImplTest.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/FeatureManagerImplTest.java @@ -15,8 +15,16 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core.mgt.impl; - +package io.entgra.device.mgt.core.policy.mgt.core.mgt.impl; + +import io.entgra.device.mgt.core.policy.mgt.common.FeatureManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.BasePolicyManagementDAOTest; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerServiceImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.*; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.FeatureManager; +import io.entgra.device.mgt.core.policy.mgt.core.mock.TypeXDeviceManagementService; +import io.entgra.device.mgt.core.policy.mgt.core.util.FeatureCreator; +import io.entgra.device.mgt.core.policy.mgt.core.util.ProfileCreator; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.powermock.api.mockito.PowerMockito; @@ -33,18 +41,6 @@ import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; import org.wso2.carbon.device.mgt.common.spi.DeviceManagementService; import org.wso2.carbon.device.mgt.core.operation.mgt.OperationManagerImpl; -import org.wso2.carbon.policy.mgt.common.FeatureManagementException; -import org.wso2.carbon.policy.mgt.core.BasePolicyManagementDAOTest; -import org.wso2.carbon.policy.mgt.core.PolicyManagerServiceImpl; -import org.wso2.carbon.policy.mgt.core.dao.FeatureDAO; -import org.wso2.carbon.policy.mgt.core.dao.FeatureManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.ProfileDAO; -import org.wso2.carbon.policy.mgt.core.dao.ProfileManagerDAOException; -import org.wso2.carbon.policy.mgt.core.mgt.FeatureManager; -import org.wso2.carbon.policy.mgt.core.mock.TypeXDeviceManagementService; -import org.wso2.carbon.policy.mgt.core.util.FeatureCreator; -import org.wso2.carbon.policy.mgt.core.util.ProfileCreator; import javax.sql.DataSource; import java.sql.Connection; @@ -52,9 +48,7 @@ import java.sql.SQLException; import java.sql.Timestamp; import java.util.List; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.anyBoolean; -import static org.mockito.Matchers.anyInt; +import static org.mockito.Matchers.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/MonitoringManagerImplTest.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/MonitoringManagerImplTest.java similarity index 92% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/MonitoringManagerImplTest.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/MonitoringManagerImplTest.java index 1faed27398a..12c087ce407 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/MonitoringManagerImplTest.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/MonitoringManagerImplTest.java @@ -1,5 +1,19 @@ -package org.wso2.carbon.policy.mgt.core.mgt.impl; - +package io.entgra.device.mgt.core.policy.mgt.core.mgt.impl; + +import io.entgra.device.mgt.core.policy.mgt.core.BasePolicyManagementDAOTest; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerServiceImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.MonitoringDAO; +import io.entgra.device.mgt.core.policy.mgt.core.dao.MonitoringDAOException; +import io.entgra.device.mgt.core.policy.mgt.core.dao.PolicyManagementDAOFactory; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.MonitoringDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.enforcement.DelegationTask; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.FeatureManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.MonitoringManager; +import io.entgra.device.mgt.core.policy.mgt.core.mgt.PolicyManager; +import io.entgra.device.mgt.core.policy.mgt.core.mock.TypeXDeviceManagementService; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.mockito.invocation.InvocationOnMock; @@ -25,20 +39,6 @@ import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceExce import org.wso2.carbon.device.mgt.common.spi.DeviceManagementService; import org.wso2.carbon.device.mgt.core.operation.mgt.OperationManagerImpl; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; -import org.wso2.carbon.policy.mgt.core.BasePolicyManagementDAOTest; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; -import org.wso2.carbon.policy.mgt.core.PolicyManagerServiceImpl; -import org.wso2.carbon.policy.mgt.core.dao.MonitoringDAO; -import org.wso2.carbon.policy.mgt.core.dao.MonitoringDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.impl.MonitoringDAOImpl; -import org.wso2.carbon.policy.mgt.core.enforcement.DelegationTask; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.mgt.FeatureManager; -import org.wso2.carbon.policy.mgt.core.mgt.MonitoringManager; -import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager; -import org.wso2.carbon.policy.mgt.core.mock.TypeXDeviceManagementService; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; import javax.sql.DataSource; import java.lang.reflect.Field; @@ -48,14 +48,8 @@ import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.anyBoolean; -import static org.mockito.Matchers.anyInt; -import static org.mockito.Mockito.doReturn; -import static org.mockito.Mockito.doThrow; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.spy; -import static org.mockito.Mockito.when; +import static org.mockito.Matchers.*; +import static org.mockito.Mockito.*; public class MonitoringManagerImplTest extends BasePolicyManagementDAOTest{ diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/ProfileManagerImplTest.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/ProfileManagerImplTest.java similarity index 94% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/ProfileManagerImplTest.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/ProfileManagerImplTest.java index 81ac53d18c4..00efab43529 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/ProfileManagerImplTest.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mgt/impl/ProfileManagerImplTest.java @@ -15,8 +15,16 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core.mgt.impl; - +package io.entgra.device.mgt.core.policy.mgt.core.mgt.impl; + +import io.entgra.device.mgt.core.policy.mgt.common.ProfileManagementException; +import io.entgra.device.mgt.core.policy.mgt.core.BasePolicyManagementDAOTest; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerServiceImpl; +import io.entgra.device.mgt.core.policy.mgt.core.dao.*; +import io.entgra.device.mgt.core.policy.mgt.core.dao.impl.ProfileDAOImpl; +import io.entgra.device.mgt.core.policy.mgt.core.mock.TypeXDeviceManagementService; +import io.entgra.device.mgt.core.policy.mgt.core.util.FeatureCreator; +import io.entgra.device.mgt.core.policy.mgt.core.util.ProfileCreator; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.powermock.api.mockito.PowerMockito; @@ -32,28 +40,12 @@ import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; import org.wso2.carbon.device.mgt.common.spi.DeviceManagementService; import org.wso2.carbon.device.mgt.core.operation.mgt.OperationManagerImpl; -import org.wso2.carbon.policy.mgt.common.ProfileManagementException; -import org.wso2.carbon.policy.mgt.core.BasePolicyManagementDAOTest; -import org.wso2.carbon.policy.mgt.core.PolicyManagerServiceImpl; -import org.wso2.carbon.policy.mgt.core.dao.FeatureDAO; -import org.wso2.carbon.policy.mgt.core.dao.FeatureManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory; -import org.wso2.carbon.policy.mgt.core.dao.ProfileDAO; -import org.wso2.carbon.policy.mgt.core.dao.ProfileManagerDAOException; -import org.wso2.carbon.policy.mgt.core.dao.impl.ProfileDAOImpl; -import org.wso2.carbon.policy.mgt.core.mock.TypeXDeviceManagementService; -import org.wso2.carbon.policy.mgt.core.util.FeatureCreator; -import org.wso2.carbon.policy.mgt.core.util.ProfileCreator; import javax.sql.DataSource; import java.sql.Connection; import java.sql.SQLException; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.anyBoolean; -import static org.mockito.Matchers.anyInt; -import static org.mockito.Matchers.anyListOf; -import static org.mockito.Matchers.anyString; +import static org.mockito.Matchers.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TestHeartBeatManagementService.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TestHeartBeatManagementService.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TestHeartBeatManagementService.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TestHeartBeatManagementService.java index 6d55f66e3fe..841d697ff7b 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TestHeartBeatManagementService.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TestHeartBeatManagementService.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.mock; +package io.entgra.device.mgt.core.policy.mgt.core.mock; import io.entgra.server.bootup.heartbeat.beacon.dto.HeartBeatEvent; import io.entgra.server.bootup.heartbeat.beacon.dto.ServerContext; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TestPolicyMonitoringManager.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TestPolicyMonitoringManager.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TestPolicyMonitoringManager.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TestPolicyMonitoringManager.java index 56ff683f038..845801e3bc9 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TestPolicyMonitoringManager.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TestPolicyMonitoringManager.java @@ -15,7 +15,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core.mock; +package io.entgra.device.mgt.core.policy.mgt.core.mock; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TypeXDeviceManagementService.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TypeXDeviceManagementService.java similarity index 89% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TypeXDeviceManagementService.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TypeXDeviceManagementService.java index f134f02ee8d..2740e0ac57c 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TypeXDeviceManagementService.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TypeXDeviceManagementService.java @@ -32,17 +32,11 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core.mock; +package io.entgra.device.mgt.core.policy.mgt.core.mock; -import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; -import org.wso2.carbon.device.mgt.common.DeviceManager; -import org.wso2.carbon.device.mgt.common.DeviceStatusTaskPluginConfig; -import org.wso2.carbon.device.mgt.common.InitialOperationConfig; -import org.wso2.carbon.device.mgt.common.MonitoringOperation; -import org.wso2.carbon.device.mgt.common.OperationMonitoringTaskConfig; -import org.wso2.carbon.device.mgt.common.ProvisioningConfig; -import org.wso2.carbon.device.mgt.common.StartupOperationConfig; +import org.wso2.carbon.device.mgt.common.*; import org.wso2.carbon.device.mgt.common.app.mgt.ApplicationManager; +import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.general.GeneralConfig; import org.wso2.carbon.device.mgt.common.invitation.mgt.DeviceEnrollmentInvitationDetails; import org.wso2.carbon.device.mgt.common.license.mgt.License; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TypeXDeviceManager.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TypeXDeviceManager.java similarity index 93% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TypeXDeviceManager.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TypeXDeviceManager.java index cd3d1e56d4f..d8c49a6ce8a 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mock/TypeXDeviceManager.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/mock/TypeXDeviceManager.java @@ -32,15 +32,11 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core.mock; +package io.entgra.device.mgt.core.policy.mgt.core.mock; -import org.wso2.carbon.device.mgt.common.DeviceManager; -import org.wso2.carbon.device.mgt.common.FeatureManager; -import org.wso2.carbon.device.mgt.common.Device; -import org.wso2.carbon.device.mgt.common.DeviceIdentifier; -import org.wso2.carbon.device.mgt.common.EnrolmentInfo; -import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; +import org.wso2.carbon.device.mgt.common.*; import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration; +import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.license.mgt.License; import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManagementException; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/services/PolicyMonitoringManagerTest.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/services/PolicyMonitoringManagerTest.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/services/PolicyMonitoringManagerTest.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/services/PolicyMonitoringManagerTest.java index 2954fc1fa8d..59ab0f35ff8 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/services/PolicyMonitoringManagerTest.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/services/PolicyMonitoringManagerTest.java @@ -17,7 +17,7 @@ */ -package org.wso2.carbon.policy.mgt.core.services; +package io.entgra.device.mgt.core.policy.mgt.core.services; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -25,8 +25,8 @@ import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.common.policy.mgt.PolicyMonitoringManager; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.NonComplianceData; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.ComplianceFeature; +import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.NonComplianceData; import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceException; import java.util.ArrayList; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/services/SimplePolicyEvaluationTest.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/services/SimplePolicyEvaluationTest.java similarity index 92% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/services/SimplePolicyEvaluationTest.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/services/SimplePolicyEvaluationTest.java index 97b8ee23b13..0846e4a13e4 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/services/SimplePolicyEvaluationTest.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/services/SimplePolicyEvaluationTest.java @@ -17,17 +17,16 @@ */ -package org.wso2.carbon.policy.mgt.core.services; +package io.entgra.device.mgt.core.policy.mgt.core.services; +import io.entgra.device.mgt.core.policy.mgt.common.*; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerService; +import io.entgra.device.mgt.core.policy.mgt.core.PolicyManagerServiceImpl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; -import org.wso2.carbon.policy.mgt.common.*; -import org.wso2.carbon.policy.mgt.core.PolicyManagerService; -import org.wso2.carbon.policy.mgt.core.PolicyManagerServiceImpl; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; import java.util.Collections; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/task/TaskSchedulerServiceImplTest.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/task/TaskSchedulerServiceImplTest.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/task/TaskSchedulerServiceImplTest.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/task/TaskSchedulerServiceImplTest.java index 8186a66f208..4852b12cefb 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/task/TaskSchedulerServiceImplTest.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/task/TaskSchedulerServiceImplTest.java @@ -16,8 +16,11 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.task; +package io.entgra.device.mgt.core.policy.mgt.core.task; +import io.entgra.device.mgt.core.policy.mgt.common.PolicyMonitoringTaskException; +import io.entgra.device.mgt.core.policy.mgt.core.internal.PolicyManagementDataHolder; +import io.entgra.device.mgt.core.policy.mgt.core.util.PolicyManagementConstants; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.mockito.Mockito; @@ -32,9 +35,6 @@ import org.wso2.carbon.ntask.core.TaskManager; import org.wso2.carbon.ntask.core.internal.TasksDSComponent; import org.wso2.carbon.ntask.core.service.TaskService; import org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl; -import org.wso2.carbon.policy.mgt.common.PolicyMonitoringTaskException; -import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder; -import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; import org.wso2.carbon.utils.multitenancy.MultitenantConstants; import java.lang.reflect.Field; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/task/TestTaskManagerImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/task/TestTaskManagerImpl.java similarity index 98% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/task/TestTaskManagerImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/task/TestTaskManagerImpl.java index 3d3f40c0ec3..a9b99a1854c 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/task/TestTaskManagerImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/task/TestTaskManagerImpl.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.task; +package io.entgra.device.mgt.core.policy.mgt.core.task; import org.wso2.carbon.ntask.common.TaskException; import org.wso2.carbon.ntask.core.TaskInfo; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/task/TestTaskServiceImpl.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/task/TestTaskServiceImpl.java similarity index 97% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/task/TestTaskServiceImpl.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/task/TestTaskServiceImpl.java index 5c3ba651e51..95377aa7849 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/task/TestTaskServiceImpl.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/task/TestTaskServiceImpl.java @@ -15,7 +15,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.carbon.policy.mgt.core.task; +package io.entgra.device.mgt.core.policy.mgt.core.task; import org.wso2.carbon.ntask.common.TaskException; import org.wso2.carbon.ntask.core.TaskManager; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/DeviceCreator.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/DeviceCreator.java similarity index 99% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/DeviceCreator.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/DeviceCreator.java index 0fc65b9dca5..62a68714726 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/DeviceCreator.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/DeviceCreator.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.util; +package io.entgra.device.mgt.core.policy.mgt.core.util; import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.EnrolmentInfo; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/DeviceTypeCreator.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/DeviceTypeCreator.java similarity index 94% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/DeviceTypeCreator.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/DeviceTypeCreator.java index 5dc9e981e23..93703f6f742 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/DeviceTypeCreator.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/DeviceTypeCreator.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.util; +package io.entgra.device.mgt.core.policy.mgt.core.util; import org.wso2.carbon.device.mgt.core.dto.DeviceType; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/FeatureCreator.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/FeatureCreator.java similarity index 99% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/FeatureCreator.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/FeatureCreator.java index 6456773a082..68dad28c5e8 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/FeatureCreator.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/FeatureCreator.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.util; +package io.entgra.device.mgt.core.policy.mgt.core.util; import org.wso2.carbon.device.mgt.common.Feature; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/PolicyCreator.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/PolicyCreator.java similarity index 98% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/PolicyCreator.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/PolicyCreator.java index b4d14788f73..1eb9a27bb5b 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/PolicyCreator.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/PolicyCreator.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.util; +package io.entgra.device.mgt.core.policy.mgt.core.util; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import org.wso2.carbon.device.mgt.common.policy.mgt.PolicyCriterion; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/ProfileCreator.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/ProfileCreator.java similarity index 98% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/ProfileCreator.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/ProfileCreator.java index 21a49c4e9a5..28964238619 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/ProfileCreator.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/ProfileCreator.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.util; +package io.entgra.device.mgt.core.policy.mgt.core.util; import org.wso2.carbon.device.mgt.common.Feature; import org.wso2.carbon.device.mgt.common.policy.mgt.Profile; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/ProfileFeatureCreator.java b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/ProfileFeatureCreator.java similarity index 98% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/ProfileFeatureCreator.java rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/ProfileFeatureCreator.java index ba5d09b37ca..3353607d700 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/ProfileFeatureCreator.java +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/java/io/entgra/device/mgt/core/policy/mgt/core/util/ProfileFeatureCreator.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.carbon.policy.mgt.core.util; +package io.entgra.device.mgt.core.policy.mgt.core.util; import org.wso2.carbon.device.mgt.common.Feature; import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature; diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/dbscripts/h2.sql b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/dbscripts/h2.sql similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/dbscripts/h2.sql rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/dbscripts/h2.sql diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/axis2.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/axis2.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/axis2.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/axis2.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/axis2_client.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/axis2_client.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/axis2_client.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/axis2_client.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/tenant-axis2.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/tenant-axis2.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/tenant-axis2.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/axis2/tenant-axis2.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/carbon.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/carbon.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/carbon.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/carbon.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/cdm-config.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/cdm-config.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/cdm-config.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/cdm-config.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/datasources/master-datasources.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/datasources/master-datasources.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/datasources/master-datasources.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/datasources/master-datasources.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/bundle-config/README.txt b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/bundle-config/README.txt similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/bundle-config/README.txt rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/bundle-config/README.txt diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/carboncontext-osgi-services.properties b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/carboncontext-osgi-services.properties similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/carboncontext-osgi-services.properties rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/carboncontext-osgi-services.properties diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/config-validation.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/config-validation.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/config-validation.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/config-validation.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/jmx.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/jmx.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/jmx.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/jmx.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/launch.ini b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/launch.ini similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/launch.ini rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/launch.ini diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/logging-bridge.properties b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/logging-bridge.properties similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/logging-bridge.properties rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/logging-bridge.properties diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/mime.mappings b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/mime.mappings similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/mime.mappings rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/mime.mappings diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/mime.types b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/mime.types similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/mime.types rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/mime.types diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/osgi-debug.options b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/osgi-debug.options similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/osgi-debug.options rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/osgi-debug.options diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/tasks-config.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/tasks-config.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/tasks-config.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/etc/tasks-config.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/log4j.properties b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/log4j.properties similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/log4j.properties rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/log4j.properties diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/notification-messages.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/notification-messages.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/notification-messages.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/notification-messages.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/registry.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/registry.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/registry.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/registry.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/security/authenticators.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/security/authenticators.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/security/authenticators.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/security/authenticators.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/carbon/META-INF/context.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/carbon/META-INF/context.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/carbon/META-INF/context.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/carbon/META-INF/context.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/catalina-server.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/catalina-server.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/catalina-server.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/catalina-server.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/tomcat-users.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/tomcat-users.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/tomcat-users.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/tomcat-users.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/web.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/web.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/web.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/tomcat/web.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/user-mgt.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/user-mgt.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/carbon-home/repository/conf/user-mgt.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/carbon-home/repository/conf/user-mgt.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/config/datasource/data-source-config.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/config/datasource/data-source-config.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/config/datasource/data-source-config.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/config/datasource/data-source-config.xml diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/log4j.properties b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/log4j.properties similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/log4j.properties rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/log4j.properties diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/sql/CreateH2TestDB.sql b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/sql/CreateH2TestDB.sql similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/sql/CreateH2TestDB.sql rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/sql/CreateH2TestDB.sql diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/sql/CreateMySqlTestDB.sql b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/sql/CreateMySqlTestDB.sql similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/sql/CreateMySqlTestDB.sql rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/sql/CreateMySqlTestDB.sql diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/testng.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/testng.xml similarity index 63% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/testng.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/testng.xml index 671ac13d8da..3275d51bff7 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/testng.xml +++ b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/testng.xml @@ -25,19 +25,19 @@ - - - + + + - - - - + + + + \ No newline at end of file diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/user-test/user-mgt-registry-test.xml b/components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/user-test/user-mgt-registry-test.xml similarity index 100% rename from components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/user-test/user-mgt-registry-test.xml rename to components/policy-mgt/io.entgra.device.mgt.core.policy.mgt.core/src/test/resources/user-test/user-mgt-registry-test.xml diff --git a/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/pom.xml b/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/pom.xml index c51024aa2e0..f5536f1cd71 100644 --- a/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/pom.xml +++ b/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/pom.xml @@ -102,7 +102,7 @@ io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.common + io.entgra.device.mgt.core.policy.mgt.common diff --git a/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/src/main/java/org/wso2/carbon/policy/evaluator/PDPServiceImpl.java b/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/src/main/java/org/wso2/carbon/policy/evaluator/PDPServiceImpl.java index 457c3a18b5f..ccade795a25 100644 --- a/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/src/main/java/org/wso2/carbon/policy/evaluator/PDPServiceImpl.java +++ b/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/src/main/java/org/wso2/carbon/policy/evaluator/PDPServiceImpl.java @@ -19,7 +19,7 @@ package org.wso2.carbon.policy.evaluator; import org.wso2.carbon.policy.evaluator.spi.PDPService; -import org.wso2.carbon.policy.mgt.common.Feature; +import io.entgra.device.mgt.core.policy.mgt.common.Feature; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import java.util.List; diff --git a/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/src/main/java/org/wso2/carbon/policy/evaluator/spi/PDPService.java b/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/src/main/java/org/wso2/carbon/policy/evaluator/spi/PDPService.java index 52765763bc0..74f010e26bb 100644 --- a/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/src/main/java/org/wso2/carbon/policy/evaluator/spi/PDPService.java +++ b/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/src/main/java/org/wso2/carbon/policy/evaluator/spi/PDPService.java @@ -20,7 +20,7 @@ package org.wso2.carbon.policy.evaluator.spi; import org.wso2.carbon.policy.evaluator.FeatureRules; -import org.wso2.carbon.policy.mgt.common.Feature; +import io.entgra.device.mgt.core.policy.mgt.common.Feature; import org.wso2.carbon.device.mgt.common.policy.mgt.Policy; import java.util.List; diff --git a/components/policy-mgt/pom.xml b/components/policy-mgt/pom.xml index 6e4ba300b3c..a17978dc665 100644 --- a/components/policy-mgt/pom.xml +++ b/components/policy-mgt/pom.xml @@ -34,10 +34,10 @@ http://wso2.org - org.wso2.carbon.policy.mgt.common - org.wso2.carbon.policy.mgt.core - org.wso2.carbon.policy.information.point - org.wso2.carbon.policy.decision.point + io.entgra.device.mgt.core.policy.mgt.common + io.entgra.device.mgt.core.policy.mgt.core + io.entgra.device.mgt.core.policy.information.point + io.entgra.device.mgt.core.policy.decision.point diff --git a/components/test-coverage/pom.xml b/components/test-coverage/pom.xml index 97d158b968c..f95accf92d5 100644 --- a/components/test-coverage/pom.xml +++ b/components/test-coverage/pom.xml @@ -115,13 +115,13 @@ ${basedir}/../${policy.mgt}/org.wso2.carbon.complex.policy.decision.point - ${basedir}/../${policy.mgt}/org.wso2.carbon.policy.decision.point + ${basedir}/../${policy.mgt}/io.entgra.device.mgt.core.policy.decision.point - ${basedir}/../${policy.mgt}/org.wso2.carbon.policy.information.point + ${basedir}/../${policy.mgt}/io.entgra.device.mgt.core.policy.information.point - ${basedir}/../${policy.mgt}/org.wso2.carbon.policy.mgt.common - ${basedir}/../${policy.mgt}/org.wso2.carbon.policy.mgt.core + ${basedir}/../${policy.mgt}/io.entgra.device.mgt.core.policy.mgt.common + ${basedir}/../${policy.mgt}/io.entgra.device.mgt.core.policy.mgt.core @@ -418,7 +418,7 @@ - + @@ -426,7 +426,7 @@ - + @@ -435,7 +435,7 @@ - + @@ -443,7 +443,7 @@ - + diff --git a/features/policy-mgt/io.entgra.device.mgt.core.policy.mgt.server.feature/pom.xml b/features/policy-mgt/io.entgra.device.mgt.core.policy.mgt.server.feature/pom.xml index 44e47430f76..0cc15a04840 100644 --- a/features/policy-mgt/io.entgra.device.mgt.core.policy.mgt.server.feature/pom.xml +++ b/features/policy-mgt/io.entgra.device.mgt.core.policy.mgt.server.feature/pom.xml @@ -38,19 +38,19 @@ io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.core + io.entgra.device.mgt.core.policy.mgt.core io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.common + io.entgra.device.mgt.core.policy.mgt.common io.entgra.device.mgt.core - org.wso2.carbon.policy.decision.point + io.entgra.device.mgt.core.policy.decision.point io.entgra.device.mgt.core - org.wso2.carbon.policy.information.point + io.entgra.device.mgt.core.policy.information.point org.wso2.carbon.registry @@ -107,16 +107,16 @@ - io.entgra.device.mgt.core:org.wso2.carbon.policy.mgt.core:${carbon.device.mgt.version} + io.entgra.device.mgt.core:io.entgra.device.mgt.core.policy.mgt.core:${carbon.device.mgt.version} - io.entgra.device.mgt.core:org.wso2.carbon.policy.mgt.common:${carbon.device.mgt.version} + io.entgra.device.mgt.core:io.entgra.device.mgt.core.policy.mgt.common:${carbon.device.mgt.version} - io.entgra.device.mgt.core:org.wso2.carbon.policy.decision.point:${carbon.device.mgt.version} + io.entgra.device.mgt.core:io.entgra.device.mgt.core.policy.decision.point:${carbon.device.mgt.version} - io.entgra.device.mgt.core:org.wso2.carbon.policy.information.point:${carbon.device.mgt.version} + io.entgra.device.mgt.core:io.entgra.device.mgt.core.policy.information.point:${carbon.device.mgt.version} diff --git a/pom.xml b/pom.xml index 2378ab1ade1..d756bed2248 100644 --- a/pom.xml +++ b/pom.xml @@ -40,21 +40,25 @@ - + + components/policy-mgt components/certificate-mgt components/ui-request-interceptor components/transport-mgt components/analytics-mgt components/webapp-authenticator-framework + + components/task-mgt components/subtype-mgt components/tenant-mgt components/operation-template-mgt + - + features/policy-mgt features/certificate-mgt features/ui-request-interceptor @@ -213,22 +217,22 @@ io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.common + io.entgra.device.mgt.core.policy.mgt.common ${carbon.device.mgt.version} io.entgra.device.mgt.core - org.wso2.carbon.policy.mgt.core + io.entgra.device.mgt.core.policy.mgt.core ${carbon.device.mgt.version} io.entgra.device.mgt.core - org.wso2.carbon.policy.decision.point + io.entgra.device.mgt.core.policy.decision.point ${carbon.device.mgt.version} io.entgra.device.mgt.core - org.wso2.carbon.policy.information.point + io.entgra.device.mgt.core.policy.information.point ${carbon.device.mgt.version}