Coverage Report - org.paneris.bibliomania.Board
 
Classes in this File Line Coverage Branch Coverage Complexity
Board
0%
0/6
0%
0/4
1.6
 
 1  
 package org.paneris.bibliomania;
 2  
 
 3  
 import org.melati.poem.AccessPoemException;
 4  
 import org.melati.poem.NoSuchRowPoemException;
 5  
 import org.paneris.bibliomania.generated.BoardBase;
 6  
 import org.paneris.melati.boards.model.Message;
 7  
 import org.paneris.melati.boards.model.SettingNotFoundException;
 8  
 
 9  
 public class Board extends BoardBase {
 10  0
   public Board() {}
 11  
 
 12  
   // programmer's domain-specific code here
 13  
 
 14  
   public String getBoardURL() throws SettingNotFoundException {
 15  0
     return getBoardTable().getBoardsSystemURL() + "/board/" +  
 16  
              troid() +"/frameset.html";
 17  
   }
 18  
 
 19  
   public String getMessageURL(Message m) throws SettingNotFoundException {
 20  0
     return getBoardTable().getBoardsSystemURL() + "/message/" +
 21  
            m.troid() +"/frameset.html";
 22  
   }
 23  
   
 24  
   public boolean isActive() {
 25  0
     if ((getMemberCount() > 1) && (getMessageCount() > 0)) return true;
 26  0
     return false;
 27  
   }
 28  
 
 29  
   public Layout getLayout() throws AccessPoemException, NoSuchRowPoemException {
 30  0
  return getBibliomaniaDatabaseTables().getLayoutTable().getLayoutObject(new Integer(0));
 31  
   }
 32  
 }