View Javadoc
1   /******************************************************************************
2    * User.java - Extend BSAccountUser with PicMan specific attributes
3    * 
4    * PicMan - The BuckoSoft Picture Manager in Java
5    * Copyright(c) 2007 - Dick Balaska
6    * 
7    */
8   package com.buckosoft.PicMan.domain;
9   
10  import java.io.Serializable;
11  
12  import com.buckosoft.BSAccount.domain.BSAccount;
13  import com.buckosoft.BSAccount.domain.BSAccountUser;
14  
15  /** Extend BSAccountUser with PicMan specific attributes
16   * @author Dick Balaska
17   * @since 2007/09/26
18   * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/com/buckosoft/PicMan/domain/User.java">User.java</a>
19   */
20  public class User extends BSAccountUser implements Serializable {
21  	private static final long serialVersionUID = 1L;
22  
23  	private	boolean showRatings = false;
24  	private	int		authLevel = 0;
25  	private	String	mosaicTestPic = "";
26  	private	String	mosaicSetName = "";
27  	private	int		mosaicTileHeight = 50;
28  	private	int		mosaicPreviewHeight = 700;
29  	private	String	mosaicOutputFile = "/tmp/blah.jpg";
30  	private	int		mosaicDisplayDelay = 2;
31  	private	boolean	setManShowInactiveSets = false;
32  	private	int		filterPagePicCount = 6;
33  	private	int		homePageThumbWidth = 186;
34  	private	int		homeThumbDelay = 10;
35  	private	String	homeThumbSetName = "";
36  	private	boolean	homeDebug = false;
37  	private	int		slideShowSid = 0;
38  	private	int		slideShowDelay = 10;
39  	private	boolean	slideShowRandom = false;
40  	private	int		posterPid = 0;
41  	
42  	private	int		picBrowserPicsPerPage = 20;
43  	private	boolean	picBrowserShowRatings = true; 
44  
45  	private	boolean	editorShowFileDates = true;
46  	private	boolean editorShowChangedFilters = true;
47  	private	boolean	showInactiveChains = false;
48  	private	boolean	showInactiveRoots = false;
49  	
50  	private	int		engineReportColumns = 3;
51  	private int		engineReportRows = 33;
52  
53  
54  	public User() {
55  		super(null);
56  	}
57  	public User(BSAccount account) {
58  		super(account);
59  	}
60  
61  	/**
62  	 * @return Returns the showRatings.
63  	 */
64  	public boolean isShowRatings() {
65  		return showRatings;
66  	}
67  
68  	/**
69  	 * @param showRatings The showRatings to set.
70  	 */
71  	public void setShowRatings(boolean showRatings) {
72  		this.showRatings = showRatings;
73  	}
74  
75  	/**
76  	 * @return the mosaicTestPic
77  	 */
78  	public String getMosaicTestPic() {
79  		return mosaicTestPic;
80  	}
81  
82  	/**
83  	 * @param mosaicTestPic the mosaicTestPic to set
84  	 */
85  	public void setMosaicTestPic(String mosaicTestPic) {
86  		this.mosaicTestPic = mosaicTestPic;
87  	}
88  
89  	/**
90  	 * @return the mosaicSetName
91  	 */
92  	public String getMosaicSetName() {
93  		return mosaicSetName;
94  	}
95  
96  	/**
97  	 * @param mosaicSetName the mosaicSetName to set
98  	 */
99  	public void setMosaicSetName(String mosaicSetName) {
100 		this.mosaicSetName = mosaicSetName;
101 	}
102 
103 	/**
104 	 * @return the authLevel
105 	 */
106 	public int getAuthLevel() {
107 		return authLevel;
108 	}
109 
110 	/**
111 	 * @param authLevel the authLevel to set
112 	 */
113 	public void setAuthLevel(int authLevel) {
114 		this.authLevel = authLevel;
115 	}
116 
117 	/**
118 	 * @return the mosaicHeight
119 	 */
120 	public int getMosaicTileHeight() {
121 		return mosaicTileHeight;
122 	}
123 
124 	/**
125 	 * @param mosaicTileHeight the mosaicTileHeight to set
126 	 */
127 	public void setMosaicTileHeight(int mosaicTileHeight) {
128 		this.mosaicTileHeight = mosaicTileHeight;
129 	}
130 
131 	/**
132 	 * @return the mosaicPreviewHeight
133 	 */
134 	public int getMosaicPreviewHeight() {
135 		return mosaicPreviewHeight;
136 	}
137 
138 	/**
139 	 * @param mosaicPreviewHeight the mosaicPreviewHeight to set
140 	 */
141 	public void setMosaicPreviewHeight(int mosaicPreviewHeight) {
142 		this.mosaicPreviewHeight = mosaicPreviewHeight;
143 	}
144 
145 	/**
146 	 * @return the mosaicOutputFile
147 	 */
148 	public String getMosaicOutputFile() {
149 		return mosaicOutputFile;
150 	}
151 
152 	/**
153 	 * @param mosaicOutputFile the mosaicOutputFile to set
154 	 */
155 	public void setMosaicOutputFile(String mosaicOutputFile) {
156 		this.mosaicOutputFile = mosaicOutputFile;
157 	}
158 
159 	/**
160 	 * @return the mosaicDisplayDelay
161 	 */
162 	public int getMosaicDisplayDelay() {
163 		return mosaicDisplayDelay;
164 	}
165 
166 	/**
167 	 * @param mosaicDisplayDelay the mosaicDisplayDelay to set
168 	 */
169 	public void setMosaicDisplayDelay(int mosaicDisplayDelay) {
170 		this.mosaicDisplayDelay = mosaicDisplayDelay;
171 	}
172 
173 	/**
174 	 * @return the setManShowInactiveSets
175 	 */
176 	public boolean isSetManShowInactiveSets() {
177 		return setManShowInactiveSets;
178 	}
179 
180 	/**
181 	 * @param setManShowInactiveSets the setManShowInactiveSets to set
182 	 */
183 	public void setSetManShowInactiveSets(boolean setManShowInactiveSets) {
184 		this.setManShowInactiveSets = setManShowInactiveSets;
185 	}
186 
187 	/** Get the number of filters to display on a page, given a choice.
188 	 * @return the filterPagePicCount
189 	 */
190 	public int getFilterPagePicCount() {
191 		return filterPagePicCount;
192 	}
193 
194 	/** Set the number of filters to display on a page, given a choice.
195 	 * @param filterPagePicCount the filterPagePicCount to set
196 	 */
197 	public void setFilterPagePicCount(int filterPagePicCount) {
198 		this.filterPagePicCount = filterPagePicCount;
199 	}
200 
201 	/**
202 	 * @return the homePageThumbWidth
203 	 */
204 	public int getHomePageThumbWidth() {
205 		return homePageThumbWidth;
206 	}
207 
208 	/**
209 	 * @param homePageThumbWidth the homePageThumbHeight to set
210 	 */
211 	public void setHomePageThumbWidth(int homePageThumbWidth) {
212 		this.homePageThumbWidth = homePageThumbWidth;
213 	}
214 
215 	/**
216 	 * @return the homeThumbDelay
217 	 */
218 	public int getHomeThumbDelay() {
219 		return homeThumbDelay;
220 	}
221 
222 	/**
223 	 * @param homeThumbDelay the homeThumbDelay to set
224 	 */
225 	public void setHomeThumbDelay(int homeThumbDelay) {
226 		this.homeThumbDelay = homeThumbDelay;
227 	}
228 
229 	/** Get the number of thumbnails displayed in a page in the PicBrowser.
230 	 * @return the picBrowserPicsPerPage
231 	 */
232 	public int getPicBrowserPicsPerPage() {
233 		return picBrowserPicsPerPage;
234 	}
235 
236 	/** Set the number of thumbnails displayed in a page in the PicBrowser. 
237 	 * @param picBrowserPicsPerPage the picBrowserPicsPerPage to set
238 	 */
239 	public void setPicBrowserPicsPerPage(int picBrowserPicsPerPage) {
240 		this.picBrowserPicsPerPage = picBrowserPicsPerPage;
241 	}
242 
243 	
244 	/** Are we displaying the picture ratings in the PicBrowser?
245 	 * @return the picBrowserShowRatings
246 	 */
247 	public boolean isPicBrowserShowRatings() {
248 		return picBrowserShowRatings;
249 	}
250 
251 	/**
252 	 * @param picBrowserShowRatings the picBrowserShowRatings to set
253 	 */
254 	public void setPicBrowserShowRatings(boolean picBrowserShowRatings) {
255 		this.picBrowserShowRatings = picBrowserShowRatings;
256 	}
257 
258 	/** Should the filter editor display the file dates?
259 	 * @return the editorShowFileDates
260 	 */
261 	public boolean isEditorShowFileDates() {
262 		return editorShowFileDates;
263 	}
264 
265 	/** Should the filter editor display the file dates?
266 	 * @param editorShowFileDates the editorShowFileDates to set
267 	 */
268 	public void setEditorShowFileDates(boolean editorShowFileDates) {
269 		this.editorShowFileDates = editorShowFileDates;
270 	}
271 
272 	/** Should the filter editor display a div of filters that changed as a result of your editing?
273 	 * @return the editorShowChangedFilters
274 	 */
275 	public boolean isEditorShowChangedFilters() {
276 		return editorShowChangedFilters;
277 	}
278 
279 	/** Should the filter editor display a div of filters that changed as a result of your editing?
280 	 * @param editorShowChangedFilters the editorShowChangedFilters to set
281 	 */
282 	public void setEditorShowChangedFilters(boolean editorShowChangedFilters) {
283 		this.editorShowChangedFilters = editorShowChangedFilters;
284 	}
285 
286 	/**
287 	 * @return the homeThumbSetName
288 	 */
289 	public String getHomeThumbSetName() {
290 		return homeThumbSetName;
291 	}
292 
293 	/**
294 	 * @param homeThumbSetName the homeThumbSetName to set
295 	 */
296 	public void setHomeThumbSetName(String homeThumbSetName) {
297 		this.homeThumbSetName = homeThumbSetName;
298 	}
299 
300 	
301 	/** Display the javascript debug on the home page?
302 	 * @return the homeDebug
303 	 */
304 	public boolean isHomeDebug() {
305 		return homeDebug;
306 	}
307 	/** Display the javascript debug on the home page
308 	 * @param homeDebug the homeDebug to set
309 	 */
310 	public void setHomeDebug(boolean homeDebug) {
311 		this.homeDebug = homeDebug;
312 	}
313 	/**
314 	 * @return the slideShowSid
315 	 */
316 	public int getSlideShowSid() {
317 		return slideShowSid;
318 	}
319 
320 	/**
321 	 * @param slideShowSid the slideShowSid to set
322 	 */
323 	public void setSlideShowSid(int slideShowSid) {
324 		this.slideShowSid = slideShowSid;
325 	}
326 
327 	/**
328 	 * @return the slideShowDelay
329 	 */
330 	public int getSlideShowDelay() {
331 		return slideShowDelay;
332 	}
333 
334 	/**
335 	 * @param slideShowDelay the slideShowDelay to set
336 	 */
337 	public void setSlideShowDelay(int slideShowDelay) {
338 		this.slideShowDelay = slideShowDelay;
339 	}
340 
341 	/** Are we randomizing the slide show pics?
342 	 * @return true if true
343 	 */
344 	public boolean isSlideShowRandom() {
345 		return slideShowRandom;
346 	}
347 
348 	/** Set whether to randomize the slide show pics or not
349 	 * @param slideShowRandom the slideShowRandom to set
350 	 */
351 	public void setSlideShowRandom(boolean slideShowRandom) {
352 		this.slideShowRandom = slideShowRandom;
353 	}
354 
355 	/**
356 	 * @return the showInactiveChains
357 	 */
358 	public boolean isShowInactiveChains() {
359 		return showInactiveChains;
360 	}
361 
362 	/**
363 	 * @param showInactiveChains the showInactiveChains to set
364 	 */
365 	public void setShowInactiveChains(boolean showInactiveChains) {
366 		this.showInactiveChains = showInactiveChains;
367 	}
368 
369 	/**
370 	 * @return the showInactiveRoots
371 	 */
372 	public boolean isShowInactiveRoots() {
373 		return showInactiveRoots;
374 	}
375 
376 	/**
377 	 * @param showInactiveRoots the showInactiveRoots to set
378 	 */
379 	public void setShowInactiveRoots(boolean showInactiveRoots) {
380 		this.showInactiveRoots = showInactiveRoots;
381 	}
382 
383 	public int getEngineReportColumns() {
384 		return engineReportColumns;
385 	}
386 
387 	public void setEngineReportColumns(int engineReportColumns) {
388 		this.engineReportColumns = engineReportColumns;
389 	}
390 
391 	public int getEngineReportRows() {
392 		return engineReportRows;
393 	}
394 
395 	public void setEngineReportRows(int engineReportRows) {
396 		this.engineReportRows = engineReportRows;
397 	}
398 
399 	/**
400 	 * @return the posterPid
401 	 */
402 	public int getPosterPid() {
403 		return posterPid;
404 	}
405 
406 	/** The last poster the user submitted
407 	 * @param posterPid the posterPid to set
408 	 */
409 	public void setPosterPid(int posterPid) {
410 		this.posterPid = posterPid;
411 	}
412 
413 
414 }