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 public Board() {}
11
12
13
14 public String getBoardURL() throws SettingNotFoundException {
15 return getBoardTable().getBoardsSystemURL() + "/board/" +
16 troid() +"/frameset.html";
17 }
18
19 public String getMessageURL(Message m) throws SettingNotFoundException {
20 return getBoardTable().getBoardsSystemURL() + "/message/" +
21 m.troid() +"/frameset.html";
22 }
23
24 public boolean isActive() {
25 if ((getMemberCount() > 1) && (getMessageCount() > 0)) return true;
26 return false;
27 }
28
29 public Layout getLayout() throws AccessPoemException, NoSuchRowPoemException {
30 return getBibliomaniaDatabaseTables().getLayoutTable().getLayoutObject(new Integer(0));
31 }
32 }