1 2 3 24 package com.geinuke.vo; 25 26 import java.io.Serializable ; 27 import java.util.ArrayList ; 28 import java.util.Date ; 29 import java.util.GregorianCalendar ; 30 31 import com.geinuke.util.CountArrayList; 32 33 34 public class ForumVO implements Serializable { 35 public static final int STATE_CREATED=0; 36 public static final int STATE_VISIBLE=1; 37 public static final int STATE_MIDDLE=2; 38 public static final int STATE_BLOCKED=3; 39 40 protected int fId=0; 41 42 protected String fName=null; 43 protected String fDescription=null; 44 protected int fType=0; 45 protected int fState=0; 46 protected int fImage=0; 47 protected CountArrayList topics=null; 49 protected ArrayList moderators=null; 50 protected ArrayList categories=null; 51 protected UserVO lastUser=null; 52 protected long lastEntry=0; 53 protected boolean visited=false; 54 protected int commentCount=0; 55 56 public ForumVO(){ 57 this.moderators=new ArrayList (); 58 this.topics=new CountArrayList(); 59 this.categories=new ArrayList (); 60 } 61 public String getFDescription() { 62 return fDescription; 63 } 64 public void setFDescription(String description) { 65 fDescription = description; 66 } 67 public int getFId() { 68 return fId; 69 } 70 public void setFId(int id) { 71 fId = id; 72 } 73 public int getFImage() { 74 return fImage; 75 } 76 public void setFImage(int image) { 77 fImage = image; 78 } 79 public String getFName() { 80 return fName; 81 } 82 public void setFName(String name) { 83 fName = name; 84 } 85 public int getFState() { 86 return fState; 87 } 88 public void setFState(int state) { 89 fState = state; 90 } 91 public int getFType() { 92 return fType; 93 } 94 public void setFType(int type) { 95 fType = type; 96 } 97 98 99 public CountArrayList getTopics() { 100 return topics; 101 } 102 public void setTopics(CountArrayList topics) { 103 this.topics = topics; 104 } 105 public ArrayList getModerators() { 106 return moderators; 107 } 108 public void setModerators(ArrayList moderators) { 109 this.moderators = moderators; 110 } 111 114 public ArrayList getCategories() { 115 return categories; 116 } 117 120 public void setCategories(ArrayList categories) { 121 this.categories = categories; 122 } 123 public long getLastEntry() { 124 return lastEntry; 125 } 126 127 public GregorianCalendar getLastDateTime() { 128 GregorianCalendar gc=null; 129 Date d=new Date (this.lastEntry); 130 gc=new GregorianCalendar (); 131 gc.setTime(d); 132 return gc; 133 } 134 135 public void setLastEntry(long lastEntry) { 136 this.lastEntry = lastEntry; 137 } 138 public UserVO getLastUser() { 139 return lastUser; 140 } 141 public void setLastUser(UserVO lastUser) { 142 this.lastUser = lastUser; 143 } 144 public boolean isVisited() { 145 return visited; 146 } 147 public void setVisited(boolean visited) { 148 this.visited = visited; 149 } 150 public int getCommentCount() { 151 return commentCount; 152 } 153 public void setCommentCount(int commentCount) { 154 this.commentCount = commentCount; 155 } 156 } 157 | Popular Tags |