Package org.nemesis.forum

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


      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

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.