Package evolaris.framework.smsservices.datamodel

Examples of evolaris.framework.smsservices.datamodel.Sender


    if (smsSenders.isEmpty() && existingSender == null){
      senderList.add("("+getResources(req).getMessage(locale,"smssvc.noSenderNumbers")+")");
    } else {
      Iterator<Sender> iterator = smsSenders.iterator();
      while (iterator.hasNext()) {
        Sender sender = iterator.next();
        senderList.add(sender.getMsisdn() + "");
        if (sender == existingSender){
          existingSender = null;
        }
      }
      if (existingSender != null){
View Full Code Here


    String messageText = msgForm.getMessage();
    if (grossSmsMessageLength(messageText) > MAX_MESSAGE_TEXT_LENGTH){
      throw new InputException(getResources(req).getMessage(locale,"smssvc.messageLongerThan450characters"));
    }
    Sender sender = senderFromMsisdn(req, msgForm.getSendingMsisdn(), group);
    SmsTextValidator.checkForValidLatin1AndSmsAllowingPlaceholders(msgForm.getMessage(), locale);
    smsCommandEntry.setSender(sender);
    smsCommandEntry.setTextContent(messageText);
    smsCommandEntry.setDelayInSeconds(msgForm.getDelayInSeconds());
   
View Full Code Here

    if (sendingMsisdnSelection == null || sendingMsisdnSelection.startsWith("(")){
      throw new InputException(getResources(req).getMessage(locale,"smssvc.noSenderNumberSelected"));
    }
    long sendingMsisdn = Long.parseLong(sendingMsisdnSelection);
    SmsSenderManager smsSenderManager = new SmsSenderManager(locale,session);
    Sender sender = smsSenderManager.getSmsSenderByMsisdn(sendingMsisdn);
    if (!smsSenderManager.isValidForGroup(sender,group)){
      throw new InputException(getResources(req).getMessage(locale,"smssvc.invalidSender"));
    }
    return sender;
  }
View Full Code Here

      throw new InputException(getResources(req).getMessage(locale,"smssvc.messageLongerThan450characters"));
    }
    SmsCommandEntry smsCommandEntry = new SmsCommandEntry();
    Group group = groupFromSession(req);
    checkAccessRights(req, group);
    Sender sender = senderFromMsisdn(req, msgForm.getSendingMsisdn(), group);
    SmsTextValidator.checkForValidLatin1AndSmsAllowingPlaceholders(msgForm.getMessage(), locale);
    smsCommandEntry.setSender(sender);
    smsCommandEntry.setTextContent(messageText);
    smsCommandEntry.setDelayInSeconds(msgForm.getDelayInSeconds());   
View Full Code Here

TOP

Related Classes of evolaris.framework.smsservices.datamodel.Sender

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.