Coverage Report - com.buckosoft.PicMan.domain.User
 
Classes in this File Line Coverage Branch Coverage Complexity
User
0%
0/108
N/A
1
 
 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  0
         private        boolean showRatings = false;
 24  0
         private        int                authLevel = 0;
 25  0
         private        String        mosaicTestPic = "";
 26  0
         private        String        mosaicSetName = "";
 27  0
         private        int                mosaicTileHeight = 50;
 28  0
         private        int                mosaicPreviewHeight = 700;
 29  0
         private        String        mosaicOutputFile = "/tmp/blah.jpg";
 30  0
         private        int                mosaicDisplayDelay = 2;
 31  0
         private        boolean        setManShowInactiveSets = false;
 32  0
         private        int                filterPagePicCount = 6;
 33  0
         private        int                homePageThumbWidth = 186;
 34  0
         private        int                homeThumbDelay = 10;
 35  0
         private        String        homeThumbSetName = "";
 36  0
         private        boolean        homeDebug = false;
 37  0
         private        int                slideShowSid = 0;
 38  0
         private        int                slideShowDelay = 10;
 39  0
         private        boolean        slideShowRandom = false;
 40  0
         private        int                posterPid = 0;
 41  
         
 42  0
         private        int                picBrowserPicsPerPage = 20;
 43  0
         private        boolean        picBrowserShowRatings = true; 
 44  
 
 45  0
         private        boolean        editorShowFileDates = true;
 46  0
         private        boolean editorShowChangedFilters = true;
 47  0
         private        boolean        showInactiveChains = false;
 48  0
         private        boolean        showInactiveRoots = false;
 49  
         
 50  0
         private        int                engineReportColumns = 3;
 51  0
         private int                engineReportRows = 33;
 52  
 
 53  
 
 54  
         public User() {
 55  0
                 super(null);
 56  0
         }
 57  
         public User(BSAccount account) {
 58  0
                 super(account);
 59  0
         }
 60  
 
 61  
         /**
 62  
          * @return Returns the showRatings.
 63  
          */
 64  
         public boolean isShowRatings() {
 65  0
                 return showRatings;
 66  
         }
 67  
 
 68  
         /**
 69  
          * @param showRatings The showRatings to set.
 70  
          */
 71  
         public void setShowRatings(boolean showRatings) {
 72  0
                 this.showRatings = showRatings;
 73  0
         }
 74  
 
 75  
         /**
 76  
          * @return the mosaicTestPic
 77  
          */
 78  
         public String getMosaicTestPic() {
 79  0
                 return mosaicTestPic;
 80  
         }
 81  
 
 82  
         /**
 83  
          * @param mosaicTestPic the mosaicTestPic to set
 84  
          */
 85  
         public void setMosaicTestPic(String mosaicTestPic) {
 86  0
                 this.mosaicTestPic = mosaicTestPic;
 87  0
         }
 88  
 
 89  
         /**
 90  
          * @return the mosaicSetName
 91  
          */
 92  
         public String getMosaicSetName() {
 93  0
                 return mosaicSetName;
 94  
         }
 95  
 
 96  
         /**
 97  
          * @param mosaicSetName the mosaicSetName to set
 98  
          */
 99  
         public void setMosaicSetName(String mosaicSetName) {
 100  0
                 this.mosaicSetName = mosaicSetName;
 101  0
         }
 102  
 
 103  
         /**
 104  
          * @return the authLevel
 105  
          */
 106  
         public int getAuthLevel() {
 107  0
                 return authLevel;
 108  
         }
 109  
 
 110  
         /**
 111  
          * @param authLevel the authLevel to set
 112  
          */
 113  
         public void setAuthLevel(int authLevel) {
 114  0
                 this.authLevel = authLevel;
 115  0
         }
 116  
 
 117  
         /**
 118  
          * @return the mosaicHeight
 119  
          */
 120  
         public int getMosaicTileHeight() {
 121  0
                 return mosaicTileHeight;
 122  
         }
 123  
 
 124  
         /**
 125  
          * @param mosaicTileHeight the mosaicTileHeight to set
 126  
          */
 127  
         public void setMosaicTileHeight(int mosaicTileHeight) {
 128  0
                 this.mosaicTileHeight = mosaicTileHeight;
 129  0
         }
 130  
 
 131  
         /**
 132  
          * @return the mosaicPreviewHeight
 133  
          */
 134  
         public int getMosaicPreviewHeight() {
 135  0
                 return mosaicPreviewHeight;
 136  
         }
 137  
 
 138  
         /**
 139  
          * @param mosaicPreviewHeight the mosaicPreviewHeight to set
 140  
          */
 141  
         public void setMosaicPreviewHeight(int mosaicPreviewHeight) {
 142  0
                 this.mosaicPreviewHeight = mosaicPreviewHeight;
 143  0
         }
 144  
 
 145  
         /**
 146  
          * @return the mosaicOutputFile
 147  
          */
 148  
         public String getMosaicOutputFile() {
 149  0
                 return mosaicOutputFile;
 150  
         }
 151  
 
 152  
         /**
 153  
          * @param mosaicOutputFile the mosaicOutputFile to set
 154  
          */
 155  
         public void setMosaicOutputFile(String mosaicOutputFile) {
 156  0
                 this.mosaicOutputFile = mosaicOutputFile;
 157  0
         }
 158  
 
 159  
         /**
 160  
          * @return the mosaicDisplayDelay
 161  
          */
 162  
         public int getMosaicDisplayDelay() {
 163  0
                 return mosaicDisplayDelay;
 164  
         }
 165  
 
 166  
         /**
 167  
          * @param mosaicDisplayDelay the mosaicDisplayDelay to set
 168  
          */
 169  
         public void setMosaicDisplayDelay(int mosaicDisplayDelay) {
 170  0
                 this.mosaicDisplayDelay = mosaicDisplayDelay;
 171  0
         }
 172  
 
 173  
         /**
 174  
          * @return the setManShowInactiveSets
 175  
          */
 176  
         public boolean isSetManShowInactiveSets() {
 177  0
                 return setManShowInactiveSets;
 178  
         }
 179  
 
 180  
         /**
 181  
          * @param setManShowInactiveSets the setManShowInactiveSets to set
 182  
          */
 183  
         public void setSetManShowInactiveSets(boolean setManShowInactiveSets) {
 184  0
                 this.setManShowInactiveSets = setManShowInactiveSets;
 185  0
         }
 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  0
                 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  0
                 this.filterPagePicCount = filterPagePicCount;
 199  0
         }
 200  
 
 201  
         /**
 202  
          * @return the homePageThumbWidth
 203  
          */
 204  
         public int getHomePageThumbWidth() {
 205  0
                 return homePageThumbWidth;
 206  
         }
 207  
 
 208  
         /**
 209  
          * @param homePageThumbWidth the homePageThumbHeight to set
 210  
          */
 211  
         public void setHomePageThumbWidth(int homePageThumbWidth) {
 212  0
                 this.homePageThumbWidth = homePageThumbWidth;
 213  0
         }
 214  
 
 215  
         /**
 216  
          * @return the homeThumbDelay
 217  
          */
 218  
         public int getHomeThumbDelay() {
 219  0
                 return homeThumbDelay;
 220  
         }
 221  
 
 222  
         /**
 223  
          * @param homeThumbDelay the homeThumbDelay to set
 224  
          */
 225  
         public void setHomeThumbDelay(int homeThumbDelay) {
 226  0
                 this.homeThumbDelay = homeThumbDelay;
 227  0
         }
 228  
 
 229  
         /** Get the number of thumbnails displayed in a page in the PicBrowser.
 230  
          * @return the picBrowserPicsPerPage
 231  
          */
 232  
         public int getPicBrowserPicsPerPage() {
 233  0
                 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  0
                 this.picBrowserPicsPerPage = picBrowserPicsPerPage;
 241  0
         }
 242  
 
 243  
         
 244  
         /** Are we displaying the picture ratings in the PicBrowser?
 245  
          * @return the picBrowserShowRatings
 246  
          */
 247  
         public boolean isPicBrowserShowRatings() {
 248  0
                 return picBrowserShowRatings;
 249  
         }
 250  
 
 251  
         /**
 252  
          * @param picBrowserShowRatings the picBrowserShowRatings to set
 253  
          */
 254  
         public void setPicBrowserShowRatings(boolean picBrowserShowRatings) {
 255  0
                 this.picBrowserShowRatings = picBrowserShowRatings;
 256  0
         }
 257  
 
 258  
         /** Should the filter editor display the file dates?
 259  
          * @return the editorShowFileDates
 260  
          */
 261  
         public boolean isEditorShowFileDates() {
 262  0
                 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  0
                 this.editorShowFileDates = editorShowFileDates;
 270  0
         }
 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  0
                 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  0
                 this.editorShowChangedFilters = editorShowChangedFilters;
 284  0
         }
 285  
 
 286  
         /**
 287  
          * @return the homeThumbSetName
 288  
          */
 289  
         public String getHomeThumbSetName() {
 290  0
                 return homeThumbSetName;
 291  
         }
 292  
 
 293  
         /**
 294  
          * @param homeThumbSetName the homeThumbSetName to set
 295  
          */
 296  
         public void setHomeThumbSetName(String homeThumbSetName) {
 297  0
                 this.homeThumbSetName = homeThumbSetName;
 298  0
         }
 299  
 
 300  
         
 301  
         /** Display the javascript debug on the home page?
 302  
          * @return the homeDebug
 303  
          */
 304  
         public boolean isHomeDebug() {
 305  0
                 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  0
                 this.homeDebug = homeDebug;
 312  0
         }
 313  
         /**
 314  
          * @return the slideShowSid
 315  
          */
 316  
         public int getSlideShowSid() {
 317  0
                 return slideShowSid;
 318  
         }
 319  
 
 320  
         /**
 321  
          * @param slideShowSid the slideShowSid to set
 322  
          */
 323  
         public void setSlideShowSid(int slideShowSid) {
 324  0
                 this.slideShowSid = slideShowSid;
 325  0
         }
 326  
 
 327  
         /**
 328  
          * @return the slideShowDelay
 329  
          */
 330  
         public int getSlideShowDelay() {
 331  0
                 return slideShowDelay;
 332  
         }
 333  
 
 334  
         /**
 335  
          * @param slideShowDelay the slideShowDelay to set
 336  
          */
 337  
         public void setSlideShowDelay(int slideShowDelay) {
 338  0
                 this.slideShowDelay = slideShowDelay;
 339  0
         }
 340  
 
 341  
         /** Are we randomizing the slide show pics?
 342  
          * @return true if true
 343  
          */
 344  
         public boolean isSlideShowRandom() {
 345  0
                 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  0
                 this.slideShowRandom = slideShowRandom;
 353  0
         }
 354  
 
 355  
         /**
 356  
          * @return the showInactiveChains
 357  
          */
 358  
         public boolean isShowInactiveChains() {
 359  0
                 return showInactiveChains;
 360  
         }
 361  
 
 362  
         /**
 363  
          * @param showInactiveChains the showInactiveChains to set
 364  
          */
 365  
         public void setShowInactiveChains(boolean showInactiveChains) {
 366  0
                 this.showInactiveChains = showInactiveChains;
 367  0
         }
 368  
 
 369  
         /**
 370  
          * @return the showInactiveRoots
 371  
          */
 372  
         public boolean isShowInactiveRoots() {
 373  0
                 return showInactiveRoots;
 374  
         }
 375  
 
 376  
         /**
 377  
          * @param showInactiveRoots the showInactiveRoots to set
 378  
          */
 379  
         public void setShowInactiveRoots(boolean showInactiveRoots) {
 380  0
                 this.showInactiveRoots = showInactiveRoots;
 381  0
         }
 382  
 
 383  
         public int getEngineReportColumns() {
 384  0
                 return engineReportColumns;
 385  
         }
 386  
 
 387  
         public void setEngineReportColumns(int engineReportColumns) {
 388  0
                 this.engineReportColumns = engineReportColumns;
 389  0
         }
 390  
 
 391  
         public int getEngineReportRows() {
 392  0
                 return engineReportRows;
 393  
         }
 394  
 
 395  
         public void setEngineReportRows(int engineReportRows) {
 396  0
                 this.engineReportRows = engineReportRows;
 397  0
         }
 398  
 
 399  
         /**
 400  
          * @return the posterPid
 401  
          */
 402  
         public int getPosterPid() {
 403  0
                 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  0
                 this.posterPid = posterPid;
 411  0
         }
 412  
 
 413  
 
 414  
 }