Examples of EmailType


Examples of com.tuscanyscatours.emailgateway.EmailType

            String status = creditCardPayment.authorize(customer.getCreditCard(), amount);

            com.tuscanyscatours.emailgateway.ObjectFactory emailFactory =
                new com.tuscanyscatours.emailgateway.ObjectFactory();
            EmailType email = emailFactory.createEmailType();
            email.setTitle("Payment Received");
            email.setTo(customerId);

            emailGateway.sendEmail(email);

            return status;
        } catch (CustomerNotFoundException ex) {
View Full Code Here

Examples of com.tuscanyscatours.emailgateway.EmailType

    @Test
    public void testEmailGateway() {
        SCAClient client = (SCAClient)node;
        EmailGateway cc = client.getService(EmailGateway.class, "EmailGatewayClient");
        ObjectFactory objectFactory = new ObjectFactory();
        EmailType email = objectFactory.createEmailType();
        email.setTo("Fred");
        email.setTitle("An email");
        email.setBody("A message");
        System.out.println(cc.sendEmail(email));
    }
View Full Code Here

Examples of com.tuscanyscatours.emailgateway.EmailType

        String status = creditCardPayment.authorize(ccDetails, amount);

        com.tuscanyscatours.emailgateway.ObjectFactory emailFactory =
            new com.tuscanyscatours.emailgateway.ObjectFactory();
        EmailType email = emailFactory.createEmailType();
        email.setTitle("Payment Received");
        email.setTo(customerId);

        emailGateway.sendEmail(email);

        return status;
    }
View Full Code Here

Examples of hudson.plugins.emailext.EmailType

        Message message = Mailbox.get("mickey@disney.com").get(0);
        assertEquals(PreBuildTrigger.TRIGGER_NAME, message.getSubject());
    }
   
    private void addEmailType(EmailTrigger trigger) {
        trigger.setEmail(new EmailType() {
            {
                setRecipientList("mickey@disney.com");
                setSubject("${TRIGGER_NAME}");
            }
        });
View Full Code Here

Examples of hudson.plugins.emailext.EmailType

       
        if(sendToCulprits) {
            providers.add(new CulpritsRecipientProvider());
        }
       
        email = new EmailType();
        email.addRecipientProviders(providers);
        email.setRecipientList(recipientList);
        email.setReplyTo(replyTo);
        email.setSubject(subject);
        email.setBody(body);
View Full Code Here

Examples of hudson.plugins.emailext.EmailType

        email.setContentType(contentType);
    }
   
    protected EmailTrigger(List<RecipientProvider> recipientProviders, String recipientList, String replyTo,
            String subject, String body, String attachmentsPattern, int attachBuildLog, String contentType) {
        email = new EmailType();
        email.addRecipientProviders(recipientProviders);
        email.setRecipientList(recipientList);
        email.setReplyTo(replyTo);
        email.setSubject(subject);
        email.setBody(body);
View Full Code Here

Examples of hudson.plugins.emailext.EmailType

        return email;
    }
   
    public void setEmail(EmailType email) {
        if (email == null) {
            email = new EmailType();
            email.setBody(ExtendedEmailPublisher.PROJECT_DEFAULT_BODY_TEXT);
            email.setSubject(ExtendedEmailPublisher.PROJECT_DEFAULT_SUBJECT_TEXT);
        }
        this.email = email;
    }
View Full Code Here

Examples of hudson.plugins.emailext.EmailType

    protected EmailType createMailType(JSONObject formData) {
        return createMailType(Stapler.getCurrentRequest(), formData);
    }
   
    protected EmailType createMailType(StaplerRequest req, JSONObject formData) {
        EmailType m = (EmailType)req.bindJSON(EmailType.class, formData);
        return m;
    }
View Full Code Here

Examples of net.sourceforge.cardme.vcard.types.EmailType

    telephone2.addParam(TelParamType.FAX)
    .addParam(TelParamType.WORK)
    .setParameterTypeStyle(ParameterTypeStyle.PARAMETER_LIST);
    vcard.addTel(telephone2);
   
    EmailType email = new EmailType();
    email.setEmail("john.doe@ibm.com");
    email.addParam(EmailParamType.IBMMAIL)
    .addParam(EmailParamType.INTERNET)
    .addParam(EmailParamType.PREF)
    .setCharset("UTF-8");
    vcard.addEmail(email);
    vcard.addEmail(new EmailType("billy_bob@gmail.com"));
   
    NoteType note = new NoteType();
    note.setNote("THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE.");
    vcard.addNote(note);
   
View Full Code Here

Examples of net.sourceforge.cardme.vcard.types.EmailType

   * @param vcard
   * @throws VCardParseException
   */
  private void parseEmailType(String group, String value, List<ParameterType> paramTypeList, VCardImpl vcard) throws VCardParseException {
    try {
      EmailType emailType = new EmailType();
      parseParamTypes(emailType, paramTypeList, value, VCardTypeName.EMAIL);
     
      if(EncodingType.BINARY.equals(emailType.getEncodingType())) {
        byte[] emailBytes = Base64Wrapper.decode(value);
       
        if(emailType.hasCharset()) {
          emailType.setEmail(new String(emailBytes, emailType.getCharset()));
        }
        else {
          emailType.setEmail(new String(emailBytes, Charset.defaultCharset()));
        }
      }
      else {
        if(emailType.isQuotedPrintable()) {
          value = decodeQuotedPrintableValue(emailType, value);
        }
       
        emailType.setEmail(VCardUtils.unescapeString(value));
      }
     
      if(group != null) {
        emailType.setGroup(group);
      }
     
      vcard.addEmail(emailType);
    }
    catch(Exception ex) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.