Kawai Wiki

Rev

Rev 63 | Rev 78 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11 soliveira 1
package org.kawai.dao;
2
 
49 soliveira 3
import java.util.List;
4
 
22 soliveira 5
import org.kawai.model.Language;
11 soliveira 6
import org.kawai.model.Page;
60 soliveira 7
import org.kawai.model.Preview;
11 soliveira 8
 
9
public interface PageDAO {
10
 
11
        public Page load(int id);
12
 
13
        public void update(Page p);
14
 
22 soliveira 15
        public Page loadByName(String name, Language lang);
24 soliveira 16
 
61 soliveira 17
        public Page loadByNameWithPreview(int userId, String name, Language lang);
18
 
24 soliveira 19
        public Page loadFrontPage(Language lang);
38 soliveira 20
 
21
        public void insert(Page p);
39 soliveira 22
 
23
        public boolean exists(String name, Language lang);
24
 
25
        public boolean isSystemPage(String name);
49 soliveira 26
 
77 soliveira 27
        public List<Page> loadAll(boolean includeSystemPages);
56 soliveira 28
 
29
        public boolean setNewFrontPage(Page p);
57 soliveira 30
 
31
        public boolean delete(Page p);
60 soliveira 32
 
61 soliveira 33
        public String getFrontPage(Language lang);
60 soliveira 34
 
61 soliveira 35
        public Preview loadPreview(int userId, String name, Language lang);
60 soliveira 36
 
61 soliveira 37
        public Preview insertPreview(int userId, Page p);
63 soliveira 38
 
39
        public void deletePreview(int userId, String name, Language lang);
11 soliveira 40
}