1 43 package net.jforum.dao; 44 45 import java.util.Date ; 46 import java.util.List ; 47 import java.util.Map ; 48 49 import net.jforum.entities.Karma; 50 import net.jforum.entities.KarmaStatus; 51 import net.jforum.entities.User; 52 53 57 public interface KarmaDAO 58 { 59 67 public void addKarma(Karma karma) throws Exception ; 68 69 75 public KarmaStatus getUserKarma(int userId) throws Exception ; 76 77 85 public void updateUserKarma(int userId) throws Exception ; 86 87 101 public boolean userCanAddKarma(int userId, int postId) throws Exception ; 102 103 110 public KarmaStatus getPostKarma(int postId) throws Exception ; 111 112 116 public void update(Karma karma) throws Exception ; 117 118 127 public Map getUserVotes(int topicId, int userId) throws Exception ; 128 129 133 public void getUserTotalKarma(User user) throws Exception ; 134 135 136 144 public List getMostRatedUserByPeriod(int start, Date firstPeriod, Date lastPeriod, String orderField) throws Exception ; 145 } 146 | Popular Tags |