VotingBeanLocal.java
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package fi.codecrew.moya.beans;
import java.util.List;
import javax.ejb.Local;
import fi.codecrew.moya.model.Compo;
import fi.codecrew.moya.model.CompoEntry;
import fi.codecrew.moya.model.CompoEntryFile;
import fi.codecrew.moya.model.Vote;
@Local
public interface VotingBeanLocal {
public void createCompo(Compo c);
public void addEntry(CompoEntry compoEntry, CompoEntryFile compoEntryFile);
public List<Compo> getCompoList(boolean showHidden);
public Compo getCompoById(Integer compoId);
public Compo addEntry(CompoEntry entry);
public CompoEntry saveEntry(CompoEntry entry);
public List<CompoEntryFile> getEntryFiles(CompoEntry entry);
public CompoEntryFile findEntryFile(Integer id);
public CompoEntry findEntry(Integer entryId);
public CompoEntry saveSort(CompoEntry e);
public Vote saveVote(CompoEntry entry, Integer vote);
//public CompoEntry findEntryWithFiles(Integer entryId);
public Compo saveCompo(Compo compo);
public void create(CompoEntryFile cef);
public List<CompoEntry> getEntriesForCurrentUser();
}