@Override public void updateMessageNetworkId(MProcMessage message, int newNetworkId) { MProcMessageImpl msg = (MProcMessageImpl) message; Sms sms = msg.getSmsContent(); sms.getSmsSet().setNetworkId(newNetworkId); sms.getSmsSet().setCorrelationId(null); }
@Override public void updateMessageDestAddrTon(MProcMessage message, int newDestTon) throws MProcRuleException { MProcUtility.checkDestAddrTon(newDestTon); MProcMessageImpl msg = (MProcMessageImpl) message; Sms sms = msg.getSmsContent(); sms.getSmsSet().setDestAddrTon(newDestTon); sms.getSmsSet().setCorrelationId(null); }
@Override public void updateMessageDestAddrNpi(MProcMessage message, int newDestNpi) throws MProcRuleException { MProcUtility.checkDestAddrNpi(newDestNpi); MProcMessageImpl msg = (MProcMessageImpl) message; Sms sms = msg.getSmsContent(); sms.getSmsSet().setDestAddrNpi(newDestNpi); sms.getSmsSet().setCorrelationId(null); }
@Override public void updateMessageDestAddr(MProcMessage message, String newDigits) throws MProcRuleException { MProcUtility.checkDestAddr(newDigits); MProcMessageImpl msg = (MProcMessageImpl) message; Sms sms = msg.getSmsContent(); sms.getSmsSet().setDestAddr(newDigits); sms.getSmsSet().setCorrelationId(null); }
if (smsSet2.getCorrelationId() == null) { smsSet2.setCorrelationId(smsSet.getCorrelationId());
/** * Creating a new SmsSet for Sms * @param sms */ public static void createNewSmsSetForSms(Sms sms) { SmsSet smsSet = new SmsSet(); smsSet.setDestAddr(sms.getSmsSet().getDestAddr()); smsSet.setDestAddrNpi(sms.getSmsSet().getDestAddrNpi()); smsSet.setDestAddrTon(sms.getSmsSet().getDestAddrTon()); smsSet.setCorrelationId(sms.getSmsSet().getCorrelationId()); smsSet.setNetworkId(sms.getSmsSet().getNetworkId()); smsSet.addSms(sms); }
smsSet.setCorrelationId(row.getString(Schema.COLUMN_CORR_ID)); else smsSet.setCorrelationId(row.getString(Schema.COLUMN_IMSI));
smsSet.setCorrelationId(null); smsSet.addSms(sms);
smsSet.setDestAddrNpi(sms0.getSmsSet().getDestAddrNpi()); smsSet.setDestAddrTon(sms0.getSmsSet().getDestAddrTon()); smsSet.setCorrelationId(sms0.getSmsSet().getCorrelationId());