Examples of deleteMessage()


Examples of org.apache.james.imapserver.store.ImapMailbox.deleteMessage()

        if ( store.getChildren( toDelete ).isEmpty() ) {
            long[] uids = toDelete.getMessageUids();
            for ( int i = 0; i < uids.length; i++ ) {
                long uid = uids[i];
                SimpleImapMessage imapMessage = toDelete.getMessage( uid );
                toDelete.deleteMessage( imapMessage.getUid() );
            }
            store.deleteMailbox( toDelete );
        }
        else {
            if ( toDelete.isSelectable() ) {
View Full Code Here

Examples of org.apache.james.imapserver.store.ImapMailbox.deleteMessage()

        if ( store.getChildren( toDelete ).isEmpty() ) {
            long[] uids = toDelete.getMessageUids();
            for ( int i = 0; i < uids.length; i++ ) {
                long uid = uids[i];
                SimpleImapMessage imapMessage = toDelete.getMessage( uid );
                toDelete.deleteMessage( imapMessage.getUid() );
            }
            store.deleteMailbox( toDelete );
        }
        else {
            if ( toDelete.isSelectable() ) {
View Full Code Here

Examples of org.hornetq.core.persistence.impl.journal.JournalStorageManager.deleteMessage()

                           {
                              try
                              {
                                 for (long messageID : values)
                                 {
                                    storage.deleteMessage(messageID);
                                 }
                              }
                              catch (Exception e)
                              {
                                 e.printStackTrace();
View Full Code Here

Examples of org.hornetq.core.persistence.impl.journal.JournalStorageManager.deleteMessage()

                           {
                              try
                              {
                                 for (long messageID : values)
                                 {
                                    storage.deleteMessage(messageID);
                                 }
                              }
                              catch (Exception e)
                              {
                                 e.printStackTrace();
View Full Code Here

Examples of org.hornetq.core.persistence.impl.journal.JournalStorageManager.deleteMessage()

                           {
                              try
                              {
                                 for (long messageID : values)
                                 {
                                    storage.deleteMessage(messageID);
                                 }
                              }
                              catch (Exception e)
                              {
                                 e.printStackTrace();
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.deleteMessage()

    try {
     
      Message mess = dao.getMessage(pmForm.getMid());
      log(request, "logs.LOG14", "mid=" + pmForm.getMid());
      if (mess != null) {
        dao.deleteMessage(pmForm);
      }
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
      throw new SystemException(sqle);
    }
View Full Code Here

Examples of org.nemesis.forum.ForumThread.deleteMessage()

            try {
              Message message = (Message) messages.next();
              if (/*message.getSubject() == null ||*/
                message.getBody() == null) {
               
                thread.deleteMessage(message);
              }
            } catch (Exception me) {
              log.error("",me);
            }
          }
View Full Code Here

Examples of org.nemesis.forum.ForumThread.deleteMessage()

      ForumThread t=forum.getThread( Integer.parseInt(request.getParameter("threadID")));
      Message m=t.getMessage( Integer.parseInt(request.getParameter("messageID")));
     
      if(t.getRootMessage().getID()==(m.getID()))isRootmessage=true;
     
      t.deleteMessage(m);
     

    } catch (ForumNotFoundException e) {
      errors.add("general", new ActionError("content.forumNotFound"));
    } catch (ForumThreadNotFoundException e) {
View Full Code Here

Examples of org.objectweb.joram.client.jms.Queue.deleteMessage()

  try{
      checkConnected();
      if (dConfig.getDomain() == Domain.QUEUE.getId()){
    Queue queue = (Queue) getHermes().getSession().createQueue(dConfig.getName());
    for (Iterator iter = messageIds.iterator(); iter.hasNext();) {
        queue.deleteMessage((String)iter.next());
    }
      }else if ( dConfig.isDurable()){
    Topic topic = (Topic) getHermes().getSession().createTopic(dConfig.getName());
    int fin =0;
    String[] ids = topic.getSubscriberIds();
View Full Code Here

Examples of org.objectweb.joram.client.jms.admin.User.deleteMessage()

      final Subscription[] subs = u.getSubscriptions() ;
      for (int j = 0 ; j < subs.length && fin == 0 ; j++) {
          if( (subs[j].getName()).equals(dConfig.getClientID()) ){
        final String[] msgids = u.getMessageIds(dConfig.getClientID()) ;
        for(int k=0;k< msgids.length;k++)
            u.deleteMessage(dConfig.getClientID(),msgids[k]);
        fin++;
          }
      }
        }else if(dConfig.getShortName() ==null){
      throw new HermesException(new Exception("ShortName(userID) is null")) ;
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.