Package org.apache.james.mailbox.jcr.mail.model

Examples of org.apache.james.mailbox.jcr.mail.model.JCRMessage.merge()


                long uid = membership.getUid();
                messageNode = mailboxNode.addNode(String.valueOf(uid), "nt:file");
                messageNode.addMixin("jamesMailbox:message");
                try {
                    membership.merge(messageNode);

                } catch (IOException e) {
                    throw new RepositoryException("Unable to merge message in to tree", e);
                }               
            } else {
View Full Code Here


                } catch (IOException e) {
                    throw new RepositoryException("Unable to merge message in to tree", e);
                }               
            } else {
                membership.merge(messageNode);
            }
            return new SimpleMessageMetaData(membership);
        } catch (RepositoryException e) {
            throw new MailboxException("Unable to save message " + message + " in mailbox " + mailbox, e);
        } catch (IOException e) {
View Full Code Here

                long uid = membership.getUid();
                messageNode = mailboxNode.addNode(String.valueOf(uid), "nt:file");
                messageNode.addMixin("jamesMailbox:message");
                try {
                    membership.merge(messageNode);
                    messageNode.setProperty(JCRMessage.UID_PROPERTY, uid);

                } catch (IOException e) {
                    throw new RepositoryException("Unable to merge message in to tree", e);
                }
View Full Code Here

                    throw new RepositoryException("Unable to merge message in to tree", e);
                }
                return uid;
               
            } else {
                membership.merge(messageNode);
                return membership.getUid();
            }
        } catch (RepositoryException e) {
            throw new MailboxException("Unable to save message " + message + " in mailbox " + mailbox, e);
        } catch (IOException e) {
View Full Code Here

               
                JCRMessage membership = (JCRMessage) member;
                if (membership.isPersistent()) {
                    try {
                        Node messageNode = getSession().getNodeByIdentifier(membership.getId());
                        membership.merge(messageNode);
                    } catch (RepositoryException e) {
                        throw new MailboxException("Unable to update flags for message " + membership + " in mailbox " + mailbox, e);

                    } catch (IOException e) {
                        throw new MailboxException("Unable to update flags for message " + membership + " in mailbox " + mailbox, e);
View Full Code Here

   
                long uid = membership.getUid();
                messageNode = mailboxNode.addNode(String.valueOf(uid), "nt:file");
                messageNode.addMixin("jamesMailbox:message");
                try {
                    membership.merge(messageNode);
   
                } catch (IOException e) {
                    throw new RepositoryException("Unable to merge message in to tree", e);
                }
            } else {
View Full Code Here

   
                } catch (IOException e) {
                    throw new RepositoryException("Unable to merge message in to tree", e);
                }
            } else {
                membership.merge(messageNode);
            }
            return new SimpleMessageMetaData(membership);
        } catch (RepositoryException e) {
            throw new MailboxException("Unable to save message " + message + " in mailbox " + mailbox, e);
        } catch (IOException e) {
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.