Kawai Wiki

Rev

Rev 77 | Rev 79 | 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;
78 soliveira 8
import org.kawai.model.Revision;
11 soliveira 9
 
10
public interface PageDAO {
11
 
12
        public Page load(int id);
13
 
14
        public void update(Page p);
15
 
22 soliveira 16
        public Page loadByName(String name, Language lang);
24 soliveira 17
 
61 soliveira 18
        public Page loadByNameWithPreview(int userId, String name, Language lang);
19
 
24 soliveira 20
        public Page loadFrontPage(Language lang);
38 soliveira 21
 
22
        public void insert(Page p);
39 soliveira 23
 
24
        public boolean exists(String name, Language lang);
25
 
26
        public boolean isSystemPage(String name);
49 soliveira 27
 
77 soliveira 28
        public List<Page> loadAll(boolean includeSystemPages);
56 soliveira 29
 
30
        public boolean setNewFrontPage(Page p);
57 soliveira 31
 
32
        public boolean delete(Page p);
60 soliveira 33
 
61 soliveira 34
        public String getFrontPage(Language lang);
60 soliveira 35
 
61 soliveira 36
        public Preview loadPreview(int userId, String name, Language lang);
60 soliveira 37
 
61 soliveira 38
        public Preview insertPreview(int userId, Page p);
63 soliveira 39
 
40
        public void deletePreview(int userId, String name, Language lang);
78 soliveira 41
 
42
        public Revision loadRevision(int revision, String name, Language lang);
43
 
44
        public void insertRevision(Revision r);
11 soliveira 45
}