diff --git a/components/transport-mgt/pom.xml b/components/transport-mgt/pom.xml new file mode 100644 index 0000000000..9794bb77ca --- /dev/null +++ b/components/transport-mgt/pom.xml @@ -0,0 +1,22 @@ + + + + carbon-devicemgt + org.wso2.carbon.devicemgt + 4.1.12-SNAPSHOT + ../../pom.xml + + + 4.0.0 + transport-mgt + pom + Entgra IoT - Transport Component + http://entgra.io + + + sms-handler + + + diff --git a/components/sms-mgt/io.entgra.sms.mgt.api/pom.xml b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/pom.xml similarity index 95% rename from components/sms-mgt/io.entgra.sms.mgt.api/pom.xml rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/pom.xml index 587153c06d..2804324cc5 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.api/pom.xml +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/pom.xml @@ -23,13 +23,13 @@ org.wso2.carbon.devicemgt - sms-mgt + sms-handler 4.1.12-SNAPSHOT ../pom.xml 4.0.0 - io.entgra.sms.mgt.api + io.entgra.transport.mgt.sms.handler.api war Entgra IoT - SMS Management Core Entgra IoT - SMS Management API @@ -48,7 +48,7 @@ maven-war-plugin WEB-INF/lib/*cxf*.jar - api#sms-mgt#v1.0 + api#sms-handler#v1.0 @@ -112,7 +112,7 @@ - + @@ -211,12 +211,12 @@ org.wso2.carbon.devicemgt - io.entgra.sms.mgt.core + io.entgra.transport.mgt.sms.handler.core provided org.wso2.carbon.devicemgt - io.entgra.sms.mgt.common + io.entgra.transport.mgt.sms.handler.common provided diff --git a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/ConfigurationManagementService.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/ConfigurationManagementService.java similarity index 88% rename from components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/ConfigurationManagementService.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/ConfigurationManagementService.java index d987b8149c..3a771222c7 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/ConfigurationManagementService.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/ConfigurationManagementService.java @@ -16,9 +16,9 @@ * under the License. */ -package io.entgra.sms.mgt.api.service; +package io.entgra.transport.mgt.sms.handler.api.service; -import io.entgra.sms.mgt.common.SMSMgtConstants; +import io.entgra.transport.mgt.sms.handler.common.SMSHandlerConstants; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiResponse; @@ -46,12 +46,12 @@ import javax.ws.rs.core.Response; extensions = { @Extension(properties = { @ExtensionProperty(name = "name", value = "ConfigurationManagementService"), - @ExtensionProperty(name = "context", value = "/api/sms-mgt/v1.0/configuration"), + @ExtensionProperty(name = "context", value = "/api/sms-handler/v1.0/configuration"), }) } ), tags = { - @Tag(name = "sms_management", description = "") + @Tag(name = "transport_management", description = "") } ) @Path("/configuration") @@ -63,8 +63,8 @@ import javax.ws.rs.core.Response; @Scope( name = "View configurations", description = "", - key = "perm:sms-mgt:view-configuration", - permissions = {"/sms-mgt/platform-configurations/view"} + key = "perm:sms-handler:view-configuration", + permissions = {"/sms-handler/platform-configurations/view"} ) }) public interface ConfigurationManagementService { @@ -74,11 +74,11 @@ public interface ConfigurationManagementService { produces = MediaType.APPLICATION_JSON, httpMethod = "GET", value = "Reload SMS Configuration", - notes = "Reload SMS Configuration in sms-mgt.xml file", + notes = "Reload SMS Configuration in sms-config.xml file", tags = "SMS Configuration Management", extensions = { @Extension(properties = { - @ExtensionProperty(name = SMSMgtConstants.SCOPE, value = "perm:sms-mgt:view-configuration") + @ExtensionProperty(name = SMSHandlerConstants.SCOPE, value = "perm:sms-handler:view-configuration") }) } ) diff --git a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/addons/ApiOriginFilter.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/addons/ApiOriginFilter.java similarity index 96% rename from components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/addons/ApiOriginFilter.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/addons/ApiOriginFilter.java index 461a1574ef..867636638b 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/addons/ApiOriginFilter.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/addons/ApiOriginFilter.java @@ -16,7 +16,7 @@ * under the License. */ -package io.entgra.sms.mgt.api.service.addons; +package io.entgra.transport.mgt.sms.handler.api.service.addons; import javax.servlet.Filter; import javax.servlet.FilterChain; diff --git a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/addons/GsonMessageBodyHandler.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/addons/GsonMessageBodyHandler.java similarity index 97% rename from components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/addons/GsonMessageBodyHandler.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/addons/GsonMessageBodyHandler.java index 6a6a640b36..9917fc119b 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/addons/GsonMessageBodyHandler.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/addons/GsonMessageBodyHandler.java @@ -16,7 +16,7 @@ * under the License. */ -package io.entgra.sms.mgt.api.service.addons; +package io.entgra.transport.mgt.sms.handler.api.service.addons; import com.google.gson.Gson; import com.google.gson.GsonBuilder; diff --git a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/impl/ConfigurationManagementServiceImpl.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/impl/ConfigurationManagementServiceImpl.java similarity index 88% rename from components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/impl/ConfigurationManagementServiceImpl.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/impl/ConfigurationManagementServiceImpl.java index 38b46fba87..f849161df7 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/java/io/entgra/sms/mgt/api/service/impl/ConfigurationManagementServiceImpl.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/java/io/entgra/transport/mgt/sms/handler/api/service/impl/ConfigurationManagementServiceImpl.java @@ -16,10 +16,10 @@ * under the License. */ -package io.entgra.sms.mgt.api.service.impl; +package io.entgra.transport.mgt.sms.handler.api.service.impl; -import io.entgra.sms.mgt.api.service.ConfigurationManagementService; -import io.entgra.sms.mgt.core.config.SMSConfigurationManager; +import io.entgra.transport.mgt.sms.handler.api.service.ConfigurationManagementService; +import io.entgra.transport.mgt.sms.handler.core.config.SMSConfigurationManager; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; diff --git a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/webapp/META-INF/webapp-classloading.xml b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/webapp/META-INF/webapp-classloading.xml similarity index 100% rename from components/sms-mgt/io.entgra.sms.mgt.api/src/main/webapp/META-INF/webapp-classloading.xml rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/webapp/META-INF/webapp-classloading.xml diff --git a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/webapp/WEB-INF/cxf-servlet.xml b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/webapp/WEB-INF/cxf-servlet.xml similarity index 90% rename from components/sms-mgt/io.entgra.sms.mgt.api/src/main/webapp/WEB-INF/cxf-servlet.xml rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/webapp/WEB-INF/cxf-servlet.xml index 5fb71d8484..8c3cefe9e4 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/webapp/WEB-INF/cxf-servlet.xml +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/webapp/WEB-INF/cxf-servlet.xml @@ -49,7 +49,7 @@ - - + + diff --git a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/webapp/WEB-INF/web.xml b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/webapp/WEB-INF/web.xml similarity index 96% rename from components/sms-mgt/io.entgra.sms.mgt.api/src/main/webapp/WEB-INF/web.xml rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/webapp/WEB-INF/web.xml index dda9411ac4..e2e3f78aac 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.api/src/main/webapp/WEB-INF/web.xml +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api/src/main/webapp/WEB-INF/web.xml @@ -77,7 +77,7 @@ ApiOriginFilter - io.entgra.sms.mgt.api.service.addons.ApiOriginFilter + io.entgra.transport.mgt.sms.handler.api.service.addons.ApiOriginFilter diff --git a/components/sms-mgt/io.entgra.sms.mgt.common/pom.xml b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/pom.xml similarity index 95% rename from components/sms-mgt/io.entgra.sms.mgt.common/pom.xml rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/pom.xml index 6595066646..328b0425c7 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.common/pom.xml +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/pom.xml @@ -23,13 +23,13 @@ org.wso2.carbon.devicemgt - sms-mgt + sms-handler 4.1.12-SNAPSHOT ../pom.xml 4.0.0 - io.entgra.sms.mgt.common + io.entgra.transport.mgt.sms.handler.common bundle Entgra IoT - SMS Management Common Entgra IoT - SMS Management Common @@ -48,7 +48,7 @@ ${carbon.device.mgt.version} SMS Management Common Bundle - io.entgra.sms.mgt.common.* + io.entgra.transport.mgt.sms.handler.common.* io.swagger.annotations; version="${swagger.annotations.version}"; resolution:=optional, diff --git a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/SMSMgtConstants.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/SMSHandlerConstants.java similarity index 65% rename from components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/SMSMgtConstants.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/SMSHandlerConstants.java index cbe46d742e..c5b5e62066 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/SMSMgtConstants.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/SMSHandlerConstants.java @@ -1,9 +1,9 @@ -package io.entgra.sms.mgt.common; +package io.entgra.transport.mgt.sms.handler.common; /** * This class holds SMS Management Constants */ -public final class SMSMgtConstants { +public final class SMSHandlerConstants { public static final String SCOPE = "scope"; public static final String SMS_CONFIG_XML_NAME = "sms-config.xml"; diff --git a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/bean/SMSMessage.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/bean/SMSMessage.java similarity index 96% rename from components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/bean/SMSMessage.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/bean/SMSMessage.java index 23cde039b9..f7e33116bb 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/bean/SMSMessage.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/bean/SMSMessage.java @@ -16,7 +16,7 @@ * under the License. */ -package io.entgra.sms.mgt.common.bean; +package io.entgra.transport.mgt.sms.handler.common.bean; import io.swagger.annotations.ApiModelProperty; diff --git a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/config/Property.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/config/Property.java similarity index 95% rename from components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/config/Property.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/config/Property.java index de667cfd11..f5a3195ae1 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/config/Property.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/config/Property.java @@ -16,7 +16,7 @@ * under the License. */ -package io.entgra.sms.mgt.common.config; +package io.entgra.transport.mgt.sms.handler.common.config; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; diff --git a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/config/SMSConfiguration.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/config/SMSConfiguration.java similarity index 97% rename from components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/config/SMSConfiguration.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/config/SMSConfiguration.java index 7992533c76..ffc6952db6 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/config/SMSConfiguration.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/config/SMSConfiguration.java @@ -16,7 +16,7 @@ * under the License. */ -package io.entgra.sms.mgt.common.config; +package io.entgra.transport.mgt.sms.handler.common.config; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; diff --git a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/config/SMSGateway.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/config/SMSGateway.java similarity index 97% rename from components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/config/SMSGateway.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/config/SMSGateway.java index 988faca8e5..a1e031328b 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/config/SMSGateway.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/config/SMSGateway.java @@ -16,7 +16,7 @@ * under the License. */ -package io.entgra.sms.mgt.common.config; +package io.entgra.transport.mgt.sms.handler.common.config; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; diff --git a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/exception/SMSSenderException.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/exception/SMSSenderException.java similarity index 95% rename from components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/exception/SMSSenderException.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/exception/SMSSenderException.java index 8a86a0c406..06a3b4cde4 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/exception/SMSSenderException.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/exception/SMSSenderException.java @@ -16,7 +16,7 @@ * under the License. */ -package io.entgra.sms.mgt.common.exception; +package io.entgra.transport.mgt.sms.handler.common.exception; /** * Exception that will be thrown during SMS Sender Management diff --git a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/spi/SMSSender.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/spi/SMSSender.java similarity index 86% rename from components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/spi/SMSSender.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/spi/SMSSender.java index 34b283384f..25fa4210fe 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.common/src/main/java/io/entgra/sms/mgt/common/spi/SMSSender.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.common/src/main/java/io/entgra/transport/mgt/sms/handler/common/spi/SMSSender.java @@ -16,10 +16,10 @@ * under the License. */ -package io.entgra.sms.mgt.common.spi; +package io.entgra.transport.mgt.sms.handler.common.spi; -import io.entgra.sms.mgt.common.bean.SMSMessage; -import io.entgra.sms.mgt.common.exception.SMSSenderException; +import io.entgra.transport.mgt.sms.handler.common.bean.SMSMessage; +import io.entgra.transport.mgt.sms.handler.common.exception.SMSSenderException; /** * Manages the sending of SMS. diff --git a/components/sms-mgt/io.entgra.sms.mgt.core/pom.xml b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/pom.xml similarity index 90% rename from components/sms-mgt/io.entgra.sms.mgt.core/pom.xml rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/pom.xml index 09cc5826cb..d512053fec 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.core/pom.xml +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/pom.xml @@ -23,13 +23,13 @@ org.wso2.carbon.devicemgt - sms-mgt + sms-handler 4.1.12-SNAPSHOT ../pom.xml 4.0.0 - io.entgra.sms.mgt.core + io.entgra.transport.mgt.sms.handler.core bundle Entgra IoT - SMS Management Core Entgra IoT - SMS Management Core @@ -77,9 +77,9 @@ ${project.artifactId} ${carbon.device.mgt.version} SMS Management Core Bundle - io.entgra.sms.mgt.core.internal + io.entgra.transport.mgt.sms.handler.core.internal - io.entgra.sms.mgt.common.*, + io.entgra.transport.mgt.sms.handler.common.*, javax.xml.parsers;version="${javax.xml.parsers.import.pkg.version}";resolution:=optional, javax.xml.bind.annotation, javax.xml.bind, @@ -89,8 +89,8 @@ org.wso2.carbon.device.mgt.core.* - !io.entgra.sms.mgt.core.internal, - io.entgra.sms.mgt.core.* + !io.entgra.transport.mgt.sms.handler.core.internal, + io.entgra.transport.mgt.sms.handler.core.* * @@ -112,7 +112,7 @@ org.wso2.carbon.devicemgt - io.entgra.sms.mgt.common + io.entgra.transport.mgt.sms.handler.common provided diff --git a/components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/SMSSenderFactory.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/SMSSenderFactory.java similarity index 91% rename from components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/SMSSenderFactory.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/SMSSenderFactory.java index dd451075d6..27e7bc6802 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/SMSSenderFactory.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/SMSSenderFactory.java @@ -16,11 +16,11 @@ * under the License. */ -package io.entgra.sms.mgt.core; +package io.entgra.transport.mgt.sms.handler.core; -import io.entgra.sms.mgt.common.config.SMSGateway; -import io.entgra.sms.mgt.common.spi.SMSSender; -import io.entgra.sms.mgt.core.config.SMSConfigurationManager; +import io.entgra.transport.mgt.sms.handler.common.config.SMSGateway; +import io.entgra.transport.mgt.sms.handler.common.spi.SMSSender; +import io.entgra.transport.mgt.sms.handler.core.config.SMSConfigurationManager; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/config/SMSConfigurationManager.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/config/SMSConfigurationManager.java similarity index 93% rename from components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/config/SMSConfigurationManager.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/config/SMSConfigurationManager.java index bf90872d9b..aa1d64dde8 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/config/SMSConfigurationManager.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/config/SMSConfigurationManager.java @@ -16,10 +16,10 @@ * under the License. */ -package io.entgra.sms.mgt.core.config; +package io.entgra.transport.mgt.sms.handler.core.config; -import io.entgra.sms.mgt.common.SMSMgtConstants; -import io.entgra.sms.mgt.common.config.SMSConfiguration; +import io.entgra.transport.mgt.sms.handler.common.SMSHandlerConstants; +import io.entgra.transport.mgt.sms.handler.common.config.SMSConfiguration; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.w3c.dom.Document; @@ -41,7 +41,7 @@ public class SMSConfigurationManager { private static SMSConfigurationManager smsConfigurationManager; private SMSConfiguration smsConfiguration; private static final String SMS_CONFIG_PATH = CarbonUtils.getCarbonConfigDirPath() + File.separator - + SMSMgtConstants.SMS_CONFIG_XML_NAME; + + SMSHandlerConstants.SMS_CONFIG_XML_NAME; /** * Retrieve an instance of {@link SMSConfigurationManager} diff --git a/components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/impl/SampleSenderImpl.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/impl/SampleSenderImpl.java similarity index 81% rename from components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/impl/SampleSenderImpl.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/impl/SampleSenderImpl.java index c223ad92cd..a585433b95 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/impl/SampleSenderImpl.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/impl/SampleSenderImpl.java @@ -16,13 +16,13 @@ * under the License. */ -package io.entgra.sms.mgt.core.impl; +package io.entgra.transport.mgt.sms.handler.core.impl; -import io.entgra.sms.mgt.common.bean.SMSMessage; -import io.entgra.sms.mgt.common.config.SMSGateway; -import io.entgra.sms.mgt.common.exception.SMSSenderException; -import io.entgra.sms.mgt.common.spi.SMSSender; -import io.entgra.sms.mgt.core.config.SMSConfigurationManager; +import io.entgra.transport.mgt.sms.handler.common.bean.SMSMessage; +import io.entgra.transport.mgt.sms.handler.common.config.SMSGateway; +import io.entgra.transport.mgt.sms.handler.common.exception.SMSSenderException; +import io.entgra.transport.mgt.sms.handler.common.spi.SMSSender; +import io.entgra.transport.mgt.sms.handler.core.config.SMSConfigurationManager; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/internal/SMSMgtServiceComponent.java b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/internal/SMSHandlerServiceComponent.java similarity index 64% rename from components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/internal/SMSMgtServiceComponent.java rename to components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/internal/SMSHandlerServiceComponent.java index 849a76d59c..abaafee2b5 100644 --- a/components/sms-mgt/io.entgra.sms.mgt.core/src/main/java/io/entgra/sms/mgt/core/internal/SMSMgtServiceComponent.java +++ b/components/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.core/src/main/java/io/entgra/transport/mgt/sms/handler/core/internal/SMSHandlerServiceComponent.java @@ -16,40 +16,40 @@ * under the License. */ -package io.entgra.sms.mgt.core.internal; +package io.entgra.transport.mgt.sms.handler.core.internal; -import io.entgra.sms.mgt.core.config.SMSConfigurationManager; +import io.entgra.transport.mgt.sms.handler.core.config.SMSConfigurationManager; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.osgi.service.component.ComponentContext; /** * @scr.component - * name="io.entgra.sms.mgt.core.internal.SMSMgtServiceComponent" immediate="true" + * name="io.entgra.transport.mgt.sms.handler.core.internal.SMSHandlerServiceComponent" immediate="true" */ -public class SMSMgtServiceComponent { +public class SMSHandlerServiceComponent { - private static final Log log = LogFactory.getLog(SMSMgtServiceComponent.class); + private static final Log log = LogFactory.getLog(SMSHandlerServiceComponent.class); protected void activate(ComponentContext ctx) { if (log.isDebugEnabled()) { - log.debug("Activating SMS Management Service Component"); + log.debug("Activating SMS Handler Service Component"); } try { SMSConfigurationManager.getInstance().initConfig(); if (log.isDebugEnabled()) { - log.debug("SMS Management Service Component has been successfully activated"); + log.debug("SMS Handler Service Component has been successfully activated"); } } catch (Throwable e) { - log.error("Error occurred while activating SMS Management Service Component", e); + log.error("Error occurred while activating SMS Handler Service Component", e); } } protected void deactivate(ComponentContext ctx) { if (log.isDebugEnabled()) { - log.debug("De-activating SMS Management Service Component"); + log.debug("De-activating SMS Handler Service Component"); } } } diff --git a/components/sms-mgt/pom.xml b/components/transport-mgt/sms-handler/pom.xml similarity index 79% rename from components/sms-mgt/pom.xml rename to components/transport-mgt/sms-handler/pom.xml index 4a0d9a4e8f..04710ad6d8 100644 --- a/components/sms-mgt/pom.xml +++ b/components/transport-mgt/sms-handler/pom.xml @@ -23,22 +23,22 @@ org.wso2.carbon.devicemgt - carbon-devicemgt + transport-mgt 4.1.12-SNAPSHOT - ../../pom.xml + ../pom.xml 4.0.0 - sms-mgt + sms-handler pom Entgra IoT - SMS Management Component http://entgra.io - io.entgra.sms.mgt.core - io.entgra.sms.mgt.common - io.entgra.sms.mgt.api + io.entgra.transport.mgt.sms.handler.core + io.entgra.transport.mgt.sms.handler.common + io.entgra.transport.mgt.sms.handler.api diff --git a/features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/p2.inf b/features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/p2.inf deleted file mode 100644 index 8ed8daa469..0000000000 --- a/features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/p2.inf +++ /dev/null @@ -1,3 +0,0 @@ -instructions.configure = \ -org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/webapps/);\ -org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/io.entgra.sms.mgt.api_${feature.version}/webapps/api#sms-mgt#v1.0.war,target:${installFolder}/../../deployment/server/webapps/api#sms-mgt#v1.0.war,overwrite:true);\ diff --git a/features/sms-mgt/io.entgra.sms.mgt.server.feature/src/main/resources/p2.inf b/features/sms-mgt/io.entgra.sms.mgt.server.feature/src/main/resources/p2.inf deleted file mode 100644 index d5943e7fda..0000000000 --- a/features/sms-mgt/io.entgra.sms.mgt.server.feature/src/main/resources/p2.inf +++ /dev/null @@ -1,4 +0,0 @@ -instructions.configure = \ -org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/io.entgra.sms.mgt.server_${feature.version}/conf/sms-config.xml,target:${installFolder}/../../conf/sms-config.xml,overwrite:true);\ - -instructions.unconfigure = \ diff --git a/features/transport-mgt/pom.xml b/features/transport-mgt/pom.xml new file mode 100644 index 0000000000..d49c085590 --- /dev/null +++ b/features/transport-mgt/pom.xml @@ -0,0 +1,21 @@ + + + + carbon-devicemgt + org.wso2.carbon.devicemgt + 4.1.12-SNAPSHOT + ../../pom.xml + + + 4.0.0 + transport-mgt-feature + pom + Entgra IoT - Transport Feature + http://entgra.io + + + sms-handler + + diff --git a/features/sms-mgt/io.entgra.sms.mgt.api.feature/pom.xml b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api.feature/pom.xml similarity index 91% rename from features/sms-mgt/io.entgra.sms.mgt.api.feature/pom.xml rename to features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api.feature/pom.xml index 976b42937c..5cc5414343 100644 --- a/features/sms-mgt/io.entgra.sms.mgt.api.feature/pom.xml +++ b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api.feature/pom.xml @@ -23,13 +23,13 @@ org.wso2.carbon.devicemgt - sms-mgt-feature + sms-handler-feature 4.1.12-SNAPSHOT ../pom.xml 4.0.0 - io.entgra.sms.mgt.api.feature + io.entgra.transport.mgt.sms.handler.api.feature pom 4.1.12-SNAPSHOT Entgra IoT - SMS Management API Feature @@ -52,14 +52,14 @@ org.wso2.carbon.devicemgt - io.entgra.sms.mgt.api + io.entgra.transport.mgt.sms.handler.api ${project.version} war true ${project.build.directory}/maven-shared-archive-resources/webapps - api#sms-mgt#v1.0.war + api#sms-handler#v1.0.war @@ -102,8 +102,8 @@ p2-feature-gen - io.entgra.sms.mgt.api - ../../../features/etc/feature.properties + io.entgra.transport.mgt.sms.handler.api + ../../../etc/feature.properties diff --git a/features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/build.properties b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api.feature/src/main/resources/build.properties similarity index 100% rename from features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/build.properties rename to features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api.feature/src/main/resources/build.properties diff --git a/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api.feature/src/main/resources/p2.inf b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api.feature/src/main/resources/p2.inf new file mode 100644 index 0000000000..ee42576e14 --- /dev/null +++ b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.api.feature/src/main/resources/p2.inf @@ -0,0 +1,3 @@ +instructions.configure = \ +org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/webapps/);\ +org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/io.entgra.transport.mgt.sms.handler.api_${feature.version}/webapps/api#sms-handler#v1.0.war,target:${installFolder}/../../deployment/server/webapps/api#sms-handler#v1.0.war,overwrite:true);\ diff --git a/features/sms-mgt/io.entgra.sms.mgt.server.feature/pom.xml b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.server.feature/pom.xml similarity index 87% rename from features/sms-mgt/io.entgra.sms.mgt.server.feature/pom.xml rename to features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.server.feature/pom.xml index f53e6de8f2..cf28c0b803 100644 --- a/features/sms-mgt/io.entgra.sms.mgt.server.feature/pom.xml +++ b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.server.feature/pom.xml @@ -23,13 +23,13 @@ org.wso2.carbon.devicemgt - sms-mgt-feature + sms-handler-feature 4.1.12-SNAPSHOT ../pom.xml 4.0.0 - io.entgra.sms.mgt.server.feature + io.entgra.transport.mgt.sms.handler.server.feature pom 4.1.12-SNAPSHOT Entgra IoT - SMS Management Server Feature @@ -40,11 +40,11 @@ org.wso2.carbon.devicemgt - io.entgra.sms.mgt.core + io.entgra.transport.mgt.sms.handler.core org.wso2.carbon.devicemgt - io.entgra.sms.mgt.common + io.entgra.transport.mgt.sms.handler.common @@ -87,8 +87,8 @@ p2-feature-gen - io.entgra.sms.mgt.server - ../../../features/etc/feature.properties + io.entgra.transport.mgt.sms.handler.server + ../../../etc/feature.properties org.wso2.carbon.p2.category.type:server @@ -97,10 +97,10 @@ - org.wso2.carbon.devicemgt:io.entgra.sms.mgt.core:${carbon.device.mgt.version} + org.wso2.carbon.devicemgt:io.entgra.transport.mgt.sms.handler.core:${carbon.device.mgt.version} - org.wso2.carbon.devicemgt:io.entgra.sms.mgt.common:${carbon.device.mgt.version} + org.wso2.carbon.devicemgt:io.entgra.transport.mgt.sms.handler.common:${carbon.device.mgt.version} diff --git a/features/sms-mgt/io.entgra.sms.mgt.server.feature/src/main/resources/conf/sms-config.xml b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.server.feature/src/main/resources/conf/sms-config.xml similarity index 91% rename from features/sms-mgt/io.entgra.sms.mgt.server.feature/src/main/resources/conf/sms-config.xml rename to features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.server.feature/src/main/resources/conf/sms-config.xml index ddf2e86567..d225f912ec 100644 --- a/features/sms-mgt/io.entgra.sms.mgt.server.feature/src/main/resources/conf/sms-config.xml +++ b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.server.feature/src/main/resources/conf/sms-config.xml @@ -22,7 +22,7 @@ - + sample diff --git a/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.server.feature/src/main/resources/p2.inf b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.server.feature/src/main/resources/p2.inf new file mode 100644 index 0000000000..af486db59b --- /dev/null +++ b/features/transport-mgt/sms-handler/io.entgra.transport.mgt.sms.handler.server.feature/src/main/resources/p2.inf @@ -0,0 +1,4 @@ +instructions.configure = \ +org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/io.entgra.transport.mgt.sms.handler.server_${feature.version}/conf/sms-config.xml,target:${installFolder}/../../conf/sms-config.xml,overwrite:true);\ + +instructions.unconfigure = \ diff --git a/features/sms-mgt/pom.xml b/features/transport-mgt/sms-handler/pom.xml similarity index 80% rename from features/sms-mgt/pom.xml rename to features/transport-mgt/sms-handler/pom.xml index 63f0b6dbfc..c0c005f32c 100644 --- a/features/sms-mgt/pom.xml +++ b/features/transport-mgt/sms-handler/pom.xml @@ -23,19 +23,20 @@ org.wso2.carbon.devicemgt - carbon-devicemgt + transport-mgt-feature 4.1.12-SNAPSHOT - ../../pom.xml + ../pom.xml 4.0.0 - sms-mgt-feature + sms-handler-feature pom Entgra IoT - SMS Management Feature http://entgra.io + - io.entgra.sms.mgt.server.feature - io.entgra.sms.mgt.api.feature + io.entgra.transport.mgt.sms.handler.server.feature + io.entgra.transport.mgt.sms.handler.api.feature diff --git a/pom.xml b/pom.xml index 9276f0c579..7bb19f9f1f 100644 --- a/pom.xml +++ b/pom.xml @@ -46,7 +46,7 @@ components/webapp-authenticator-framework components/email-sender components/ui-request-interceptor - components/sms-mgt + components/transport-mgt features/device-mgt features/apimgt-extensions features/application-mgt @@ -59,7 +59,7 @@ features/ui-request-interceptor features/jwt-client features/device-mgt-extensions - features/sms-mgt + features/transport-mgt @@ -387,12 +387,12 @@ org.wso2.carbon.devicemgt - io.entgra.sms.mgt.core + io.entgra.transport.mgt.sms.handler.core ${carbon.device.mgt.version} org.wso2.carbon.devicemgt - io.entgra.sms.mgt.common + io.entgra.transport.mgt.sms.handler.common ${carbon.device.mgt.version}