示例#1
0
  /**
   * @throws InsufficientQuotaException
   * @throws AuthenticationFailed
   * @see org.esupportail.smsuapi.services.remote.SendSms#sendSMS(java.lang.Integer,
   *     java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String,
   *     java.lang.String, java.lang.String)
   */
  public Integer sendSMS(
      final Integer msgId,
      final Integer senderId,
      final Integer unused,
      final Integer unused2,
      final String[] smsPhones,
      final String labelAccount,
      final String msgContent)
      throws InsufficientQuotaException {

    logger.info(
        "Receive from SendSms client message : "
            + " - message id = "
            + msgId
            + " - sender id = "
            + senderId
            + " - recipient phone numbers = "
            + join(smsPhones, " ")
            + " - user label account = "
            + labelAccount
            + " - message = "
            + msgContent);

    return sendSmsManager.sendSMS(msgId, senderId, smsPhones, labelAccount, msgContent);
  }
示例#2
0
 /**
  * @see
  *     org.esupportail.smsuapi.services.remote.SendSms#mayCreateAccountCheckQuotaOk(java.lang.Integer,
  *     java.lang.String)
  */
 public void mayCreateAccountCheckQuotaOk(final Integer nbDest, final String labelAccount)
     throws InsufficientQuotaException {
   logger.info(
       "mayCreateAccountCheckQuotaOk method with parameters : "
           + " - nbDest = "
           + nbDest
           + " - labelAccount = "
           + labelAccount);
   sendSmsManager.mayCreateAccountAndCheckQuotaOk(nbDest, labelAccount);
 }