Examples of JPAMessage


Examples of org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage

    protected MessageMetaData copy(Mailbox<Long> mailbox, long uid, long modSeq, Message<Long> original) throws MailboxException {
        Message<Long> copy;
        if (original instanceof JPAStreamingMessage) {
            copy = new JPAStreamingMessage((JPAMailbox) mailbox, uid, modSeq, original);
        } else {
            copy = new JPAMessage((JPAMailbox) mailbox, uid, modSeq, original);
        }
        return save(mailbox, copy);       
    }
View Full Code Here

Examples of org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage

   
    @Override
    protected Message<Long> createMessage(Date internalDate, final int size, int bodyStartOctet, final SharedInputStream content,
            final Flags flags, PropertyBuilder propertyBuilder) throws MailboxException{

        final Message<Long> message = new JPAMessage((JPAMailbox) getMailboxEntity(), internalDate, size, flags, content,  bodyStartOctet,  propertyBuilder);
        return message;
    }
View Full Code Here

Examples of org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage

            final Flags flags, final List<Header> headers, PropertyBuilder propertyBuilder) throws MailboxException{
        final List<JPAHeader> jpaHeaders = new ArrayList<JPAHeader>(headers.size());
        for (Header header: headers) {
            jpaHeaders.add((JPAHeader) header);
        }
        final Message<Long> message = new JPAMessage((JPAMailbox) getMailboxEntity(), uid, internalDate, size, flags, document, bodyStartOctet, jpaHeaders, propertyBuilder);
        return message;
    }
View Full Code Here

Examples of org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage

    public long copy(Mailbox<Long> mailbox, long uid, Message<Long> original) throws MailboxException {
        Message<Long> copy;
        if (original instanceof JPAStreamingMessage) {
            copy = new JPAStreamingMessage((JPAMailbox) mailbox, uid, original);
        } else {
            copy = new JPAMessage((JPAMailbox) mailbox, uid,  original);
        }
        return add(mailbox, copy);
    }
View Full Code Here

Examples of org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage

   
    @Override
    protected Message<Long> createMessage(Date internalDate, final int size, int bodyStartOctet, final SharedInputStream content,
            final Flags flags, PropertyBuilder propertyBuilder) throws MailboxException{

        final Message<Long> message = new JPAMessage((JPAMailbox) getMailboxEntity(), internalDate, size, flags, content,  bodyStartOctet,  propertyBuilder);
        return message;
    }
View Full Code Here

Examples of org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage

        if (original instanceof JPAStreamingMessage) {
            copy = new JPAStreamingMessage((JPAMailbox) mailbox, uid, modSeq, original);
        } else if (original instanceof JPAEncryptedMessage) {
            copy = new JPAEncryptedMessage((JPAMailbox) mailbox, uid, modSeq, original);
        } else {
            copy = new JPAMessage((JPAMailbox) mailbox, uid, modSeq, original);
        }
        return save(mailbox, copy);
    }
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.