]> git.mxchange.org Git - jphone-core.git/commitdiff
added regex for mail gateway
authorRoland Haeder <roland@mxchange.org>
Mon, 11 Apr 2016 10:04:19 +0000 (12:04 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 11 Apr 2016 10:04:19 +0000 (12:04 +0200)
src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java
src/org/mxchange/jphone/phonenumbers/smsprovider/SmsProvider.java

index 19506928809408a2d5f919d227286373ee575b9c..09816e557bd12c9fdfbde00bcd5d7c8141fd9b7a 100644 (file)
@@ -82,6 +82,12 @@ public class CellphoneProvider implements SmsProvider {
        @Column (name = "provider_id", nullable = false, updatable = false)
        private Long providerId;
 
+       /**
+        * Regular expression for mail gateway
+        */
+       @Column (name = "provider_mail_regex", length = 30)
+       private String providerMailRegex;
+
        /**
         * Name of the provider
         */
@@ -194,4 +200,14 @@ public class CellphoneProvider implements SmsProvider {
                this.providerName = providerName;
        }
 
+       @Override
+       public String getProviderMailRegex () {
+               return this.providerMailRegex;
+       }
+
+       @Override
+       public void setProviderMailRegex (final String providerMailRegex) {
+               this.providerMailRegex = providerMailRegex;
+       }
+
 }
index 4d40fa9e6af8c004834cbd729afb83b7785cc68e..18de431f1566e3488f129c6e7a77d78264e60011 100644 (file)
@@ -97,9 +97,24 @@ public interface SmsProvider extends Serializable {
         */
        void setProviderEntryCreated (final Calendar providerEntryCreated);
 
+       /**
+        * Getter for regular expression for mail gateway
+        * <p>
+        * @return Regular expression for mail gateway
+        */
+       String getProviderMailRegex ();
+
+       /**
+        * Setter for regular expression for mail gateway
+        * <p>
+        * @param providerMailRegex Regular expression for mail gateway
+        */
+       void setProviderMailRegex (final String providerMailRegex);
+
        @Override
        boolean equals (final Object object);
 
        @Override
        int hashCode ();
+
 }