1 25 26 package net.killingar.forum.actions; 27 28 import net.killingar.forum.internal.Group; 29 import net.killingar.forum.internal.User; 30 import net.killingar.forum.internal.managers.ForumManager; 31 32 import java.sql.SQLException ; 33 34 public class UserData extends User 35 { 36 Group groups[]; 37 long daysSinceRead; 38 39 public UserData(ForumManager manager, User user) 40 throws SQLException 41 { 42 super(user); 43 44 groups = manager.getGroupsOfUser(ID); 45 46 daysSinceRead = manager.daysSinceUserRead(ID); 47 } 48 49 public UserData() 50 { 51 groups = new Group[0]; 52 } 53 54 public Group[] getGroups() { return groups; } 55 public long getDaysSinceRead() { return daysSinceRead; } 56 } | Popular Tags |