refactored transport mgt component

apim420
Amalka Subasinghe 2 years ago
parent 8e26f3b4dd
commit f0380076c1

@ -279,7 +279,7 @@
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>org.wso2.carbon.email.sender.core</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.email.sender.core</artifactId>
</dependency> </dependency>
<dependency> <dependency>

@ -275,7 +275,7 @@
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>org.wso2.carbon.email.sender.core</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.email.sender.core</artifactId>
</dependency> </dependency>
<dependency> <dependency>

@ -38,7 +38,6 @@ import org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceInformationManag
import org.wso2.carbon.device.mgt.core.dto.DeviceType; import org.wso2.carbon.device.mgt.core.dto.DeviceType;
import org.wso2.carbon.device.mgt.core.dto.DeviceTypeServiceIdentifier; import org.wso2.carbon.device.mgt.core.dto.DeviceTypeServiceIdentifier;
import org.wso2.carbon.device.mgt.core.geo.task.GeoFenceEventOperationManager; import org.wso2.carbon.device.mgt.core.geo.task.GeoFenceEventOperationManager;
import org.wso2.carbon.device.mgt.core.metadata.mgt.MetadataManagementServiceImpl;
import org.wso2.carbon.device.mgt.core.operation.timeout.task.OperationTimeoutTaskManagerService; import org.wso2.carbon.device.mgt.core.operation.timeout.task.OperationTimeoutTaskManagerService;
import org.wso2.carbon.device.mgt.core.privacy.PrivacyComplianceProvider; import org.wso2.carbon.device.mgt.core.privacy.PrivacyComplianceProvider;
import org.wso2.carbon.device.mgt.core.push.notification.mgt.PushNotificationProviderRepository; import org.wso2.carbon.device.mgt.core.push.notification.mgt.PushNotificationProviderRepository;
@ -47,7 +46,7 @@ import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService;
import org.wso2.carbon.device.mgt.core.status.task.DeviceStatusTaskManagerService; import org.wso2.carbon.device.mgt.core.status.task.DeviceStatusTaskManagerService;
import org.wso2.carbon.device.mgt.core.task.DeviceTaskManagerService; import org.wso2.carbon.device.mgt.core.task.DeviceTaskManagerService;
import org.wso2.carbon.device.mgt.core.traccar.api.service.DeviceAPIClientService; import org.wso2.carbon.device.mgt.core.traccar.api.service.DeviceAPIClientService;
import org.wso2.carbon.email.sender.core.service.EmailSenderService; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.service.EmailSenderService;
import org.wso2.carbon.ntask.core.service.TaskService; import org.wso2.carbon.ntask.core.service.TaskService;
import org.wso2.carbon.registry.core.service.RegistryService; import org.wso2.carbon.registry.core.service.RegistryService;
import org.wso2.carbon.user.core.service.RealmService; import org.wso2.carbon.user.core.service.RealmService;

@ -86,7 +86,7 @@ import org.wso2.carbon.device.mgt.core.traccar.api.service.DeviceAPIClientServic
import org.wso2.carbon.device.mgt.core.traccar.api.service.impl.DeviceAPIClientServiceImpl; import org.wso2.carbon.device.mgt.core.traccar.api.service.impl.DeviceAPIClientServiceImpl;
import org.wso2.carbon.device.mgt.core.util.DeviceManagementSchemaInitializer; import org.wso2.carbon.device.mgt.core.util.DeviceManagementSchemaInitializer;
import org.wso2.carbon.device.mgt.core.util.DeviceManagerUtil; import org.wso2.carbon.device.mgt.core.util.DeviceManagerUtil;
import org.wso2.carbon.email.sender.core.service.EmailSenderService; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.service.EmailSenderService;
import org.wso2.carbon.ndatasource.core.DataSourceService; import org.wso2.carbon.ndatasource.core.DataSourceService;
import org.wso2.carbon.registry.core.service.RegistryService; import org.wso2.carbon.registry.core.service.RegistryService;
import org.wso2.carbon.user.core.service.RealmService; import org.wso2.carbon.user.core.service.RealmService;
@ -133,7 +133,7 @@ import java.util.concurrent.TimeUnit;
* bind="setConfigurationContextService" * bind="setConfigurationContextService"
* unbind="unsetConfigurationContextService" * unbind="unsetConfigurationContextService"
* @scr.reference name="email.sender.service" * @scr.reference name="email.sender.service"
* interface="org.wso2.carbon.email.sender.core.service.EmailSenderService" * interface="io.entgra.device.mgt.core.transport.mgt.email.sender.core.service.EmailSenderService"
* cardinality="0..1" * cardinality="0..1"
* policy="dynamic" * policy="dynamic"
* bind="setEmailSenderService" * bind="setEmailSenderService"

@ -152,12 +152,12 @@ import org.wso2.carbon.device.mgt.core.operation.mgt.CommandOperation;
import org.wso2.carbon.device.mgt.core.operation.mgt.ProfileOperation; import org.wso2.carbon.device.mgt.core.operation.mgt.ProfileOperation;
import org.wso2.carbon.device.mgt.core.util.DeviceManagerUtil; import org.wso2.carbon.device.mgt.core.util.DeviceManagerUtil;
import org.wso2.carbon.device.mgt.core.util.HttpReportingUtil; import org.wso2.carbon.device.mgt.core.util.HttpReportingUtil;
import org.wso2.carbon.email.sender.core.ContentProviderInfo; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.ContentProviderInfo;
import org.wso2.carbon.email.sender.core.EmailContext; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailContext;
import org.wso2.carbon.email.sender.core.EmailSendingFailedException; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailSendingFailedException;
import org.wso2.carbon.email.sender.core.EmailTransportNotConfiguredException; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailTransportNotConfiguredException;
import org.wso2.carbon.email.sender.core.TypedValue; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.TypedValue;
import org.wso2.carbon.email.sender.core.service.EmailSenderService; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.service.EmailSenderService;
import org.wso2.carbon.stratos.common.beans.TenantInfoBean; import org.wso2.carbon.stratos.common.beans.TenantInfoBean;
import org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService; import org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService;
import org.wso2.carbon.user.api.UserStoreException; import org.wso2.carbon.user.api.UserStoreException;

@ -18,10 +18,10 @@
*/ */
package org.wso2.carbon.device.mgt.core.common; package org.wso2.carbon.device.mgt.core.common;
import org.wso2.carbon.email.sender.core.EmailContext; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailContext;
import org.wso2.carbon.email.sender.core.EmailSendingFailedException; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailSendingFailedException;
import org.wso2.carbon.email.sender.core.EmailTransportNotConfiguredException; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailTransportNotConfiguredException;
import org.wso2.carbon.email.sender.core.service.EmailSenderService; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.service.EmailSenderService;
public class TestEmailSenderService implements EmailSenderService { public class TestEmailSenderService implements EmailSenderService {
@Override @Override

@ -95,7 +95,7 @@
</device.extensions.xmpp> </device.extensions.xmpp>
<!-- Email Sender component related properties --> <!-- Email Sender component related properties -->
<email.sender.core>${basedir}/../email-sender/org.wso2.carbon.email.sender.core</email.sender.core> <email.sender.core>${basedir}/../email-sender/io.entgra.device.mgt.core.transport.mgt.email.sender.core</email.sender.core>
<!-- identity extensions component related properties --> <!-- identity extensions component related properties -->
<identity.extensions>identity-extensions</identity.extensions> <identity.extensions>identity-extensions</identity.extensions>

@ -27,7 +27,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.email.sender.core</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.email.sender.core</artifactId>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>WSO2 Carbon - Email Sender Core</name> <name>WSO2 Carbon - Email Sender Core</name>
<description>WSO2 Carbon - Email Sender Core</description> <description>WSO2 Carbon - Email Sender Core</description>
@ -49,7 +49,7 @@
<Bundle-Name>${project.artifactId}</Bundle-Name> <Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>${carbon.device.mgt.version}</Bundle-Version> <Bundle-Version>${carbon.device.mgt.version}</Bundle-Version>
<Bundle-Description>Email Management Core Bundle</Bundle-Description> <Bundle-Description>Email Management Core Bundle</Bundle-Description>
<Private-Package>org.wso2.carbon.email.sender.core.internal</Private-Package> <Private-Package>io.entgra.device.mgt.core.transport.mgt.email.sender.core.internal</Private-Package>
<Import-Package> <Import-Package>
org.apache.axis2.*;version="${axis2.osgi.version.range}", org.apache.axis2.*;version="${axis2.osgi.version.range}",
org.apache.axiom.*; version="${axiom.osgi.version.range}", org.apache.axiom.*; version="${axiom.osgi.version.range}",
@ -74,8 +74,8 @@
org.apache.commons.collections org.apache.commons.collections
</Import-Package> </Import-Package>
<Export-Package> <Export-Package>
!org.wso2.carbon.email.sender.core.internal, !io.entgra.device.mgt.core.transport.mgt.email.sender.core.internal,
org.wso2.carbon.email.sender.core.* io.entgra.device.mgt.core.transport.mgt.email.sender.core.*
</Export-Package> </Export-Package>
</instructions> </instructions>
</configuration> </configuration>

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
public class ContentProcessingInterruptedException extends Exception { public class ContentProcessingInterruptedException extends Exception {

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
public class EmailContentProviderFactory { public class EmailContentProviderFactory {

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import org.wso2.carbon.utils.CarbonUtils; import org.wso2.carbon.utils.CarbonUtils;

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
public class EmailSenderConfigurationFailedException extends Exception { public class EmailSenderConfigurationFailedException extends Exception {

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
import org.w3c.dom.Document; import org.w3c.dom.Document;

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
public class EmailSendingFailedException extends Exception { public class EmailSendingFailedException extends Exception {

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
public class EmailTransportNotConfiguredException extends Exception { public class EmailTransportNotConfiguredException extends Exception {

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
public class InvalidConfigurationStateException extends RuntimeException { public class InvalidConfigurationStateException extends RuntimeException {

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
import org.apache.commons.collections.ExtendedProperties; import org.apache.commons.collections.ExtendedProperties;
import org.apache.velocity.exception.ResourceNotFoundException; import org.apache.velocity.exception.ResourceNotFoundException;

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
public class TypedValue<T, V> { public class TypedValue<T, V> {

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core; package io.entgra.device.mgt.core.transport.mgt.email.sender.core;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -47,7 +47,7 @@ public class VelocityBasedEmailContentProvider implements EmailContentProvider {
engine.setProperty("resource.loader", "registry"); engine.setProperty("resource.loader", "registry");
engine.setProperty("velocimacro.library", ""); engine.setProperty("velocimacro.library", "");
engine.setProperty("registry.resource.loader.class", engine.setProperty("registry.resource.loader.class",
"org.wso2.carbon.email.sender.core.RegistryBasedResourceLoader"); "io.entgra.device.mgt.core.transport.mgt.email.sender.core.RegistryBasedResourceLoader");
engine.init(); engine.init();
} }

@ -16,12 +16,12 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.email.sender.core.internal; package io.entgra.device.mgt.core.transport.mgt.email.sender.core.internal;
import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.context.ConfigurationContext;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.email.sender.core.EmailSenderConfigurationFailedException; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailSenderConfigurationFailedException;
import org.wso2.carbon.utils.Axis2ConfigurationContextObserver; import org.wso2.carbon.utils.Axis2ConfigurationContextObserver;
class EmailSenderAxis2ConfigContextObserver implements Axis2ConfigurationContextObserver { class EmailSenderAxis2ConfigContextObserver implements Axis2ConfigurationContextObserver {

@ -16,9 +16,9 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.email.sender.core.internal; package io.entgra.device.mgt.core.transport.mgt.email.sender.core.internal;
import org.wso2.carbon.email.sender.core.service.EmailSenderService; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.service.EmailSenderService;
import org.wso2.carbon.registry.core.service.RegistryService; import org.wso2.carbon.registry.core.service.RegistryService;
import org.wso2.carbon.utils.ConfigurationContextService; import org.wso2.carbon.utils.ConfigurationContextService;

@ -15,14 +15,14 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.email.sender.core.internal; package io.entgra.device.mgt.core.transport.mgt.email.sender.core.internal;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.osgi.service.component.ComponentContext; import org.osgi.service.component.ComponentContext;
import org.wso2.carbon.email.sender.core.EmailSenderConfig; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailSenderConfig;
import org.wso2.carbon.email.sender.core.service.EmailSenderService; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.service.EmailSenderService;
import org.wso2.carbon.email.sender.core.service.EmailSenderServiceImpl; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.service.EmailSenderServiceImpl;
import org.wso2.carbon.registry.core.service.RegistryService; import org.wso2.carbon.registry.core.service.RegistryService;
import org.wso2.carbon.utils.Axis2ConfigurationContextObserver; import org.wso2.carbon.utils.Axis2ConfigurationContextObserver;
import org.wso2.carbon.utils.ConfigurationContextService; import org.wso2.carbon.utils.ConfigurationContextService;

@ -15,13 +15,13 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.email.sender.core.internal; package io.entgra.device.mgt.core.transport.mgt.email.sender.core.internal;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.FileUtils;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.context.CarbonContext; import org.wso2.carbon.context.CarbonContext;
import org.wso2.carbon.email.sender.core.EmailSenderConfigurationFailedException; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailSenderConfigurationFailedException;
import org.wso2.carbon.registry.api.Collection; import org.wso2.carbon.registry.api.Collection;
import org.wso2.carbon.registry.api.Registry; import org.wso2.carbon.registry.api.Registry;
import org.wso2.carbon.registry.api.RegistryException; import org.wso2.carbon.registry.api.RegistryException;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.email.sender.core.service; package io.entgra.device.mgt.core.transport.mgt.email.sender.core.service;
import org.wso2.carbon.email.sender.core.EmailContext; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailContext;
import org.wso2.carbon.email.sender.core.EmailSendingFailedException; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailSendingFailedException;
import org.wso2.carbon.email.sender.core.EmailTransportNotConfiguredException; import io.entgra.device.mgt.core.transport.mgt.email.sender.core.EmailTransportNotConfiguredException;
public interface EmailSenderService { public interface EmailSenderService {

@ -16,8 +16,10 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.email.sender.core.service; package io.entgra.device.mgt.core.transport.mgt.email.sender.core.service;
import io.entgra.device.mgt.core.transport.mgt.email.sender.core.*;
import io.entgra.device.mgt.core.transport.mgt.email.sender.core.internal.EmailSenderDataHolder;
import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.impl.llom.util.AXIOMUtil; import org.apache.axiom.om.impl.llom.util.AXIOMUtil;
import org.apache.axis2.AxisFault; import org.apache.axis2.AxisFault;
@ -30,8 +32,6 @@ import org.apache.axis2.context.MessageContext;
import org.apache.axis2.transport.mail.MailConstants; import org.apache.axis2.transport.mail.MailConstants;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.email.sender.core.*;
import org.wso2.carbon.email.sender.core.internal.EmailSenderDataHolder;
import org.wso2.carbon.utils.ConfigurationContextService; import org.wso2.carbon.utils.ConfigurationContextService;
import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamException;

@ -33,7 +33,7 @@
<url>http://wso2.org</url> <url>http://wso2.org</url>
<modules> <modules>
<module>org.wso2.carbon.email.sender.core</module> <module>io.entgra.device.mgt.core.transport.mgt.email.sender.core</module>
</modules> </modules>
</project> </project>

@ -27,7 +27,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>io.entgra.transport.mgt.sms.handler.api</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.api</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<name>Entgra - SMS Handler API</name> <name>Entgra - SMS Handler API</name>
<description>Entgra - SMS Handler API</description> <description>Entgra - SMS Handler API</description>
@ -145,12 +145,12 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>io.entgra.transport.mgt.sms.handler.core</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.core</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>io.entgra.transport.mgt.sms.handler.common</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.common</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>

@ -16,9 +16,9 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.api.service; package io.entgra.device.mgt.core.transport.mgt.sms.handler.api;
import io.entgra.transport.mgt.sms.handler.common.SMSHandlerConstants; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.SMSHandlerConstants;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponse;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.api.service.addons; package io.entgra.device.mgt.core.transport.mgt.sms.handler.api.addons;
import javax.servlet.Filter; import javax.servlet.Filter;
import javax.servlet.FilterChain; import javax.servlet.FilterChain;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.api.service.addons; package io.entgra.device.mgt.core.transport.mgt.sms.handler.api.addons;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;

@ -16,10 +16,10 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.api.service.impl; package io.entgra.device.mgt.core.transport.mgt.sms.handler.api.impl;
import io.entgra.transport.mgt.sms.handler.api.service.ConfigurationManagementService; import io.entgra.device.mgt.core.transport.mgt.sms.handler.api.ConfigurationManagementService;
import io.entgra.transport.mgt.sms.handler.core.config.SMSConfigurationManager; import io.entgra.device.mgt.core.transport.mgt.sms.handler.core.config.SMSConfigurationManager;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;

@ -49,7 +49,7 @@
<property name="scan" value="true"/> <property name="scan" value="true"/>
</bean> </bean>
<bean id="configurationManagementService" class="io.entgra.transport.mgt.sms.handler.api.service.impl.ConfigurationManagementServiceImpl"/> <bean id="configurationManagementService" class="io.entgra.device.mgt.core.transport.mgt.sms.handler.api.impl.ConfigurationManagementServiceImpl"/>
<bean id="jsonProvider" class="io.entgra.transport.mgt.sms.handler.api.service.addons.GsonMessageBodyHandler"/> <bean id="jsonProvider" class="io.entgra.device.mgt.core.transport.mgt.sms.handler.api.addons.GsonMessageBodyHandler"/>
</beans> </beans>

@ -77,7 +77,7 @@
<filter> <filter>
<filter-name>ApiOriginFilter</filter-name> <filter-name>ApiOriginFilter</filter-name>
<filter-class>io.entgra.transport.mgt.sms.handler.api.service.addons.ApiOriginFilter</filter-class> <filter-class>io.entgra.device.mgt.core.transport.mgt.sms.handler.api.addons.ApiOriginFilter</filter-class>
</filter> </filter>
<filter-mapping> <filter-mapping>

@ -27,7 +27,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>io.entgra.transport.mgt.sms.handler.common</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.common</artifactId>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>Entgra - SMS Handler Common</name> <name>Entgra - SMS Handler Common</name>
<description>Entgra - SMS Handler Common</description> <description>Entgra - SMS Handler Common</description>
@ -46,7 +46,7 @@
<Bundle-Version>${carbon.device.mgt.version}</Bundle-Version> <Bundle-Version>${carbon.device.mgt.version}</Bundle-Version>
<Bundle-Description>SMS Management Common Bundle</Bundle-Description> <Bundle-Description>SMS Management Common Bundle</Bundle-Description>
<Export-Package> <Export-Package>
io.entgra.transport.mgt.sms.handler.common.* io.entgra.device.mgt.core.transport.mgt.sms.handler.common.*
</Export-Package> </Export-Package>
<Import-Package> <Import-Package>
io.swagger.annotations; version="${swagger.annotations.version}"; resolution:=optional, io.swagger.annotations; version="${swagger.annotations.version}"; resolution:=optional,

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.common.bean; package io.entgra.device.mgt.core.transport.mgt.sms.handler.common.bean;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.common.config; package io.entgra.device.mgt.core.transport.mgt.sms.handler.common.config;
import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.common.config; package io.entgra.device.mgt.core.transport.mgt.sms.handler.common.config;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlElementWrapper;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.common.config; package io.entgra.device.mgt.core.transport.mgt.sms.handler.common.config;
import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.common.exception; package io.entgra.device.mgt.core.transport.mgt.sms.handler.common.exception;
/** /**
* Exception that will be thrown during SMS Sender Management * Exception that will be thrown during SMS Sender Management

@ -16,10 +16,10 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.common.spi; package io.entgra.device.mgt.core.transport.mgt.sms.handler.common.spi;
import io.entgra.transport.mgt.sms.handler.common.bean.SMSMessage; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.bean.SMSMessage;
import io.entgra.transport.mgt.sms.handler.common.exception.SMSSenderException; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.exception.SMSSenderException;
/** /**
* Manages the sending of SMS. * Manages the sending of SMS.

@ -27,7 +27,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>io.entgra.transport.mgt.sms.handler.core</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.core</artifactId>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>Entgra - SMS Handler Core</name> <name>Entgra - SMS Handler Core</name>
<description>Entgra - SMS Handler Core</description> <description>Entgra - SMS Handler Core</description>
@ -75,9 +75,9 @@
<Bundle-Name>${project.artifactId}</Bundle-Name> <Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>${carbon.device.mgt.version}</Bundle-Version> <Bundle-Version>${carbon.device.mgt.version}</Bundle-Version>
<Bundle-Description>SMS Management Core Bundle</Bundle-Description> <Bundle-Description>SMS Management Core Bundle</Bundle-Description>
<Private-Package>io.entgra.transport.mgt.sms.handler.core.internal</Private-Package> <Private-Package>io.entgra.device.mgt.core.transport.mgt.sms.handler.core.internal</Private-Package>
<Import-Package> <Import-Package>
io.entgra.transport.mgt.sms.handler.common.*, io.entgra.device.mgt.core.transport.mgt.sms.handler.common.*,
javax.xml.parsers;version="${javax.xml.parsers.import.pkg.version}";resolution:=optional, javax.xml.parsers;version="${javax.xml.parsers.import.pkg.version}";resolution:=optional,
javax.xml.bind.annotation, javax.xml.bind.annotation,
javax.xml.bind, javax.xml.bind,
@ -87,8 +87,8 @@
org.wso2.carbon.device.mgt.core.* org.wso2.carbon.device.mgt.core.*
</Import-Package> </Import-Package>
<Export-Package> <Export-Package>
!io.entgra.transport.mgt.sms.handler.core.internal, !io.entgra.device.mgt.core.transport.mgt.sms.handler.core.internal,
io.entgra.transport.mgt.sms.handler.core.* io.entgra.device.mgt.core.transport.mgt.sms.handler.core.*
</Export-Package> </Export-Package>
<DynamicImport-Package>*</DynamicImport-Package> <DynamicImport-Package>*</DynamicImport-Package>
</instructions> </instructions>
@ -110,7 +110,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>io.entgra.transport.mgt.sms.handler.common</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.common</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

@ -16,11 +16,11 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.core; package io.entgra.device.mgt.core.transport.mgt.sms.handler.core;
import io.entgra.transport.mgt.sms.handler.common.config.SMSGateway; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.config.SMSGateway;
import io.entgra.transport.mgt.sms.handler.common.spi.SMSSender; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.spi.SMSSender;
import io.entgra.transport.mgt.sms.handler.core.config.SMSConfigurationManager; import io.entgra.device.mgt.core.transport.mgt.sms.handler.core.config.SMSConfigurationManager;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;

@ -16,10 +16,10 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.core.config; package io.entgra.device.mgt.core.transport.mgt.sms.handler.core.config;
import io.entgra.transport.mgt.sms.handler.common.SMSHandlerConstants; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.SMSHandlerConstants;
import io.entgra.transport.mgt.sms.handler.common.config.SMSConfiguration; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.config.SMSConfiguration;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.w3c.dom.Document; import org.w3c.dom.Document;

@ -16,13 +16,13 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.core.impl; package io.entgra.device.mgt.core.transport.mgt.sms.handler.core.impl;
import io.entgra.transport.mgt.sms.handler.common.bean.SMSMessage; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.bean.SMSMessage;
import io.entgra.transport.mgt.sms.handler.common.config.SMSGateway; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.config.SMSGateway;
import io.entgra.transport.mgt.sms.handler.common.exception.SMSSenderException; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.exception.SMSSenderException;
import io.entgra.transport.mgt.sms.handler.common.spi.SMSSender; import io.entgra.device.mgt.core.transport.mgt.sms.handler.common.spi.SMSSender;
import io.entgra.transport.mgt.sms.handler.core.config.SMSConfigurationManager; import io.entgra.device.mgt.core.transport.mgt.sms.handler.core.config.SMSConfigurationManager;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;

@ -16,16 +16,16 @@
* under the License. * under the License.
*/ */
package io.entgra.transport.mgt.sms.handler.core.internal; package io.entgra.device.mgt.core.transport.mgt.sms.handler.core.internal;
import io.entgra.transport.mgt.sms.handler.core.config.SMSConfigurationManager; import io.entgra.device.mgt.core.transport.mgt.sms.handler.core.config.SMSConfigurationManager;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.osgi.service.component.ComponentContext; import org.osgi.service.component.ComponentContext;
/** /**
* @scr.component * @scr.component
* name="io.entgra.transport.mgt.sms.handler.core.internal.SMSHandlerServiceComponent" immediate="true" * name="io.entgra.device.mgt.core.transport.mgt.sms.handler.core.internal.SMSHandlerServiceComponent" immediate="true"
*/ */
public class SMSHandlerServiceComponent { public class SMSHandlerServiceComponent {

@ -34,9 +34,9 @@
<modules> <modules>
<module>io.entgra.transport.mgt.sms.handler.core</module> <module>io.entgra.device.mgt.core.transport.mgt.sms.handler.core</module>
<module>io.entgra.transport.mgt.sms.handler.common</module> <module>io.entgra.device.mgt.core.transport.mgt.sms.handler.common</module>
<module>io.entgra.transport.mgt.sms.handler.api</module> <module>io.entgra.device.mgt.core.transport.mgt.sms.handler.api</module>
</modules> </modules>
</project> </project>

@ -37,7 +37,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>org.wso2.carbon.email.sender.core</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.email.sender.core</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.wso2.orbit.org.apache.velocity</groupId> <groupId>org.wso2.orbit.org.apache.velocity</groupId>
@ -95,7 +95,7 @@
</adviceFile> </adviceFile>
<bundles> <bundles>
<bundleDef> <bundleDef>
io.entgra.device.mgt.core:org.wso2.carbon.email.sender.core:${carbon.device.mgt.version} io.entgra.device.mgt.core:io.entgra.device.mgt.core.transport.mgt.email.sender.core:${carbon.device.mgt.version}
</bundleDef> </bundleDef>
<bundleDef> <bundleDef>
org.wso2.orbit.org.apache.velocity:velocity:${velocity.version} org.wso2.orbit.org.apache.velocity:velocity:${velocity.version}

@ -49,7 +49,7 @@
<artifactItems> <artifactItems>
<artifactItem> <artifactItem>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>io.entgra.transport.mgt.sms.handler.api</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.api</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<type>war</type> <type>war</type>
<overWrite>true</overWrite> <overWrite>true</overWrite>

@ -37,11 +37,11 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>io.entgra.transport.mgt.sms.handler.core</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.core</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>io.entgra.transport.mgt.sms.handler.common</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.common</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
@ -94,10 +94,10 @@
</adviceFile> </adviceFile>
<bundles> <bundles>
<bundleDef> <bundleDef>
io.entgra.device.mgt.core:io.entgra.transport.mgt.sms.handler.core:${carbon.device.mgt.version} io.entgra.device.mgt.core:io.entgra.device.mgt.core.transport.mgt.sms.handler.core:${carbon.device.mgt.version}
</bundleDef> </bundleDef>
<bundleDef> <bundleDef>
io.entgra.device.mgt.core:io.entgra.transport.mgt.sms.handler.common:${carbon.device.mgt.version} io.entgra.device.mgt.core:io.entgra.device.mgt.core.transport.mgt.sms.handler.common:${carbon.device.mgt.version}
</bundleDef> </bundleDef>
</bundles> </bundles>
<importBundles> <importBundles>

@ -22,7 +22,7 @@
<Gateways> <Gateways>
<!-- multiple gateways can be listed and the gateway having the isDefault=true is picked up or gateway <!-- multiple gateways can be listed and the gateway having the isDefault=true is picked up or gateway
extensionClass can be passed and relevant impl can be used--> extensionClass can be passed and relevant impl can be used-->
<Gateway name="sample" extensionClass="io.entgra.transport.mgt.sms.handler.core.impl.SampleSenderImpl" isDefault="true"> <Gateway name="sample" extensionClass="io.entgra.device.mgt.core.transport.mgt.sms.handler.core.impl.SampleSenderImpl" isDefault="true">
<!-- properties can be listed and can be picked up in the relevant implementation class as required--> <!-- properties can be listed and can be picked up in the relevant implementation class as required-->
<Properties> <Properties>
<Property name="sample-property">sample</Property> <Property name="sample-property">sample</Property>

@ -22,7 +22,7 @@
<Gateways> <Gateways>
<!-- multiple gateways can be listed and the gateway having the isDefault=true is picked up or gateway <!-- multiple gateways can be listed and the gateway having the isDefault=true is picked up or gateway
extensionClass can be passed and relevant impl can be used--> extensionClass can be passed and relevant impl can be used-->
<Gateway name="sample" extensionClass="io.entgra.transport.mgt.sms.handler.core.impl.SampleSenderImpl" {% if sms_conf.gateway.sample is defined %} isDefault="{{sms_conf.gateway.sample.is_default}}" {% else%} isDefault="true" {% endif %}> <Gateway name="sample" extensionClass="io.entgra.device.mgt.core.transport.mgt.sms.handler.core.impl.SampleSenderImpl" {% if sms_conf.gateway.sample is defined %} isDefault="{{sms_conf.gateway.sample.is_default}}" {% else%} isDefault="true" {% endif %}>
<!-- properties can be listed and can be picked up in the relevant implementation class as required--> <!-- properties can be listed and can be picked up in the relevant implementation class as required-->
<Properties> <Properties>
<Property name="sample-property">sample</Property> <Property name="sample-property">sample</Property>

@ -43,7 +43,7 @@
<!-- <module>components/policy-mgt</module>--> <!-- <module>components/policy-mgt</module>-->
<!-- <module>components/certificate-mgt</module>--> <!-- <module>components/certificate-mgt</module>-->
<!-- <module>components/ui-request-interceptor</module>--> <!-- <module>components/ui-request-interceptor</module>-->
<!-- <module>components/transport-mgt</module>--> <module>components/transport-mgt</module>
<module>components/analytics-mgt</module> <module>components/analytics-mgt</module>
<module>components/webapp-authenticator-framework</module> <module>components/webapp-authenticator-framework</module>
<!-- <module>components/logger</module>--> <!-- <module>components/logger</module>-->
@ -60,7 +60,7 @@
<!-- <module>features/ui-request-interceptor</module>--> <!-- <module>features/ui-request-interceptor</module>-->
<!-- <module>features/jwt-client</module>--> <!-- <module>features/jwt-client</module>-->
<!-- <module>features/device-mgt-extensions</module>--> <!-- <module>features/device-mgt-extensions</module>-->
<!-- <module>features/transport-mgt</module>--> <module>features/transport-mgt</module>
<module>features/analytics-mgt</module> <module>features/analytics-mgt</module>
<module>features/webapp-authenticator-framework</module> <module>features/webapp-authenticator-framework</module>
<!-- <module>features/logger</module>--> <!-- <module>features/logger</module>-->
@ -264,7 +264,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>org.wso2.carbon.email.sender.core</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.email.sender.core</artifactId>
<version>${carbon.device.mgt.version}</version> <version>${carbon.device.mgt.version}</version>
</dependency> </dependency>
<dependency> <dependency>
@ -312,12 +312,12 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>io.entgra.transport.mgt.sms.handler.core</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.core</artifactId>
<version>${carbon.device.mgt.version}</version> <version>${carbon.device.mgt.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.entgra.device.mgt.core</groupId> <groupId>io.entgra.device.mgt.core</groupId>
<artifactId>io.entgra.transport.mgt.sms.handler.common</artifactId> <artifactId>io.entgra.device.mgt.core.transport.mgt.sms.handler.common</artifactId>
<version>${carbon.device.mgt.version}</version> <version>${carbon.device.mgt.version}</version>
</dependency> </dependency>
<dependency> <dependency>

Loading…
Cancel
Save