Coverage Report - org.kuali.rice.kew.preferences.Preferences
 
Classes in this File Line Coverage Branch Coverage Complexity
Preferences
0%
0/101
0%
0/4
1.046
 
 1  
 /*
 2  
  * Copyright 2005-2007 The Kuali Foundation
 3  
  * 
 4  
  * 
 5  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 6  
  * you may not use this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  * 
 9  
  * http://www.opensource.org/licenses/ecl2.php
 10  
  * 
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.kuali.rice.kew.preferences;
 18  
 
 19  
 import java.io.Serializable;
 20  
 
 21  
 import org.kuali.rice.kew.util.KEWConstants;
 22  
 
 23  
 /**
 24  
  * Model bean representing an individual user's Preferences within KEW.
 25  
  * 
 26  
  * <p>When loaded, Preferences could be in a state where they require being saved to the database.
 27  
  * If this is the case then {{@link #requiresSave} will evaluate to true.
 28  
  *
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  */
 31  0
 public class Preferences implements Serializable {
 32  
 
 33  
         static final long serialVersionUID = -5323719135590442782L;
 34  
    
 35  0
         private boolean requiresSave = false;
 36  
         
 37  
     private String emailNotification;
 38  
     private String notifyPrimaryDelegation;
 39  
     private String notifySecondaryDelegation;
 40  
     private String openNewWindow;
 41  
     private String showActionRequested;
 42  
     private String showDateCreated;
 43  
     private String showDocumentStatus;
 44  
     private String showAppDocStatus;
 45  
         private String showDocType;
 46  
     private String showInitiator;
 47  
     private String showDocTitle;
 48  
     private String showWorkgroupRequest;
 49  
     private String showDelegator;
 50  
     private String showClearFyi;
 51  
     private String pageSize;
 52  
     private String refreshRate;
 53  
     private String colorSaved;
 54  
     private String colorInitiated;
 55  
     private String colorDissaproved;
 56  
     private String colorEnroute;
 57  
     private String colorApproved;
 58  
     private String colorFinal;
 59  
     private String colorDissapproveCancel;
 60  
     private String colorProccessed;
 61  
     private String colorException;
 62  
     private String colorCanceled;
 63  
     private String delegatorFilter;
 64  
     private String useOutbox;
 65  
     private String showDateApproved;
 66  
     private String showCurrentNode;
 67  
     private String primaryDelegateFilter;
 68  
  
 69  
     /**
 70  
      * @return Returns the colorApproved.
 71  
      */
 72  
     public String getColorApproved() {
 73  0
         return colorApproved;
 74  
     }
 75  
     /**
 76  
      * @param colorApproved The colorApproved to set.
 77  
      */
 78  
     public void setColorApproved(String colorApproved) {
 79  0
         this.colorApproved = colorApproved;
 80  0
     }
 81  
     /**
 82  
      * @return Returns the colorCanceled.
 83  
      */
 84  
     public String getColorCanceled() {
 85  0
         return colorCanceled;
 86  
     }
 87  
     /**
 88  
      * @param colorCanceled The colorCanceled to set.
 89  
      */
 90  
     public void setColorCanceled(String colorCanceled) {
 91  0
         this.colorCanceled = colorCanceled;
 92  0
     }
 93  
     /**
 94  
      * @return Returns the colorDissapproveCancel.
 95  
      */
 96  
     public String getColorDissapproveCancel() {
 97  0
         return colorDissapproveCancel;
 98  
     }
 99  
     /**
 100  
      * @param colorDissapproveCancel The colorDissapproveCancel to set.
 101  
      */
 102  
     public void setColorDissapproveCancel(String colorDissapproveCancel) {
 103  0
         this.colorDissapproveCancel = colorDissapproveCancel;
 104  0
     }
 105  
     /**
 106  
      * @return Returns the colorDissaproved.
 107  
      */
 108  
     public String getColorDissaproved() {
 109  0
         return colorDissaproved;
 110  
     }
 111  
     /**
 112  
      * @param colorDissaproved The colorDissaproved to set.
 113  
      */
 114  
     public void setColorDissaproved(String colorDissaproved) {
 115  0
         this.colorDissaproved = colorDissaproved;
 116  0
     }
 117  
     /**
 118  
      * @return Returns the colorEnroute.
 119  
      */
 120  
     public String getColorEnroute() {
 121  0
         return colorEnroute;
 122  
     }
 123  
     /**
 124  
      * @param colorEnroute The colorEnroute to set.
 125  
      */
 126  
     public void setColorEnroute(String colorEnroute) {
 127  0
         this.colorEnroute = colorEnroute;
 128  0
     }
 129  
     /**
 130  
      * @return Returns the colorException.
 131  
      */
 132  
     public String getColorException() {
 133  0
         return colorException;
 134  
     }
 135  
     /**
 136  
      * @param colorException The colorException to set.
 137  
      */
 138  
     public void setColorException(String colorException) {
 139  0
         this.colorException = colorException;
 140  0
     }
 141  
     /**
 142  
      * @return Returns the colorFinal.
 143  
      */
 144  
     public String getColorFinal() {
 145  0
         return colorFinal;
 146  
     }
 147  
     /**
 148  
      * @param colorFinal The colorFinal to set.
 149  
      */
 150  
     public void setColorFinal(String colorFinal) {
 151  0
         this.colorFinal = colorFinal;
 152  0
     }
 153  
     /**
 154  
      * @return Returns the colorInitiated.
 155  
      */
 156  
     public String getColorInitiated() {
 157  0
         return colorInitiated;
 158  
     }
 159  
     /**
 160  
      * @param colorInitiated The colorInitiated to set.
 161  
      */
 162  
     public void setColorInitiated(String colorInitiated) {
 163  0
         this.colorInitiated = colorInitiated;
 164  0
     }
 165  
     /**
 166  
      * @return Returns the colorProccessed.
 167  
      */
 168  
     public String getColorProccessed() {
 169  0
         return colorProccessed;
 170  
     }
 171  
     /**
 172  
      * @param colorProccessed The colorProccessed to set.
 173  
      */
 174  
     public void setColorProccessed(String colorProccessed) {
 175  0
         this.colorProccessed = colorProccessed;
 176  0
     }
 177  
     /**
 178  
      * @return Returns the colorSaved.
 179  
      */
 180  
     public String getColorSaved() {
 181  0
         return colorSaved;
 182  
     }
 183  
     /**
 184  
      * @param colorSaved The colorSaved to set.
 185  
      */
 186  
     public void setColorSaved(String colorSaved) {
 187  0
         this.colorSaved = colorSaved;
 188  0
     }
 189  
     /**
 190  
      * @return Returns the emailNotification.
 191  
      */
 192  
     public String getEmailNotification() {
 193  0
         return emailNotification;
 194  
     }
 195  
     /**
 196  
      * @param emailNotification The emailNotification to set.
 197  
      */
 198  
     public void setEmailNotification(String emailNotification) {
 199  0
         this.emailNotification = emailNotification;
 200  0
     }
 201  
         /**
 202  
      * @return Whether or not to send email notifications for primary delegation requests.
 203  
      */
 204  
     public String getNotifyPrimaryDelegation() {
 205  0
                 return notifyPrimaryDelegation;
 206  
         }
 207  
         public void setNotifyPrimaryDelegation(String notifyPrimaryDelegation) {
 208  0
                 this.notifyPrimaryDelegation = notifyPrimaryDelegation;
 209  0
         }
 210  
         /**
 211  
          * @return Whether or not to send email notifications for secondary delegation requests.
 212  
          */
 213  
         public String getNotifySecondaryDelegation() {
 214  0
                 return notifySecondaryDelegation;
 215  
         }
 216  
         public void setNotifySecondaryDelegation(String notifySecondaryDelegation) {
 217  0
                 this.notifySecondaryDelegation = notifySecondaryDelegation;
 218  0
         }
 219  
         /**
 220  
      * @return Returns the openNewWindow.
 221  
      */
 222  
     public String getOpenNewWindow() {
 223  0
         return openNewWindow;
 224  
     }
 225  
     /**
 226  
      * @param openNewWindow The openNewWindow to set.
 227  
      */
 228  
     public void setOpenNewWindow(String openNewWindow) {
 229  0
         this.openNewWindow = openNewWindow;
 230  0
     }
 231  
     /**
 232  
      * @return Returns the pageSize.
 233  
      */
 234  
     public String getPageSize() {
 235  0
         return pageSize;
 236  
     }
 237  
     /**
 238  
      * @param pageSize The pageSize to set.
 239  
      */
 240  
     public void setPageSize(String pageSize) {
 241  0
         this.pageSize = pageSize;
 242  0
     }
 243  
     /**
 244  
      * @return Returns the refreshRate.
 245  
      */
 246  
     public String getRefreshRate() {
 247  0
         return refreshRate;
 248  
     }
 249  
     /**
 250  
      * @param refreshRate The refreshRate to set.
 251  
      */
 252  
     public void setRefreshRate(String refreshRate) {
 253  0
         this.refreshRate = refreshRate;
 254  0
     }
 255  
     /**
 256  
      * @return Returns the showActionRequested.
 257  
      */
 258  
     public String getShowActionRequested() {
 259  0
         return showActionRequested;
 260  
     }
 261  
     /**
 262  
      * @param showActionRequested The showActionRequested to set.
 263  
      */
 264  
     public void setShowActionRequested(String showActionRequested) {
 265  0
         this.showActionRequested = showActionRequested;
 266  0
     }
 267  
     /**
 268  
      * @return Returns the showDateCreated.
 269  
      */
 270  
     public String getShowDateCreated() {
 271  0
         return showDateCreated;
 272  
     }
 273  
     /**
 274  
      * @param showDateCreated The showDateCreated to set.
 275  
      */
 276  
     public void setShowDateCreated(String showDateCreated) {
 277  0
         this.showDateCreated = showDateCreated;
 278  0
     }
 279  
     /**
 280  
      * @return Returns the showDocType.
 281  
      */
 282  
     public String getShowDocType() {
 283  0
         return showDocType;
 284  
     }
 285  
     /**
 286  
      * @param showDocType The showDocType to set.
 287  
      */
 288  
     public void setShowDocType(String showDocType) {
 289  0
         this.showDocType = showDocType;
 290  0
     }
 291  
     /**
 292  
      * @return Returns the showDocumentStatus.
 293  
      */
 294  
     public String getShowDocumentStatus() {
 295  0
         return showDocumentStatus;
 296  
     }
 297  
     /**
 298  
      * @param showDocumentStatus The showDocumentStatus to set.
 299  
      */
 300  
     public void setShowDocumentStatus(String showDocumentStatus) {
 301  0
         this.showDocumentStatus = showDocumentStatus;
 302  0
     }
 303  
     /**
 304  
      * @return Returns the showAppDocumentStatus.
 305  
      */
 306  
     public String getShowAppDocStatus() {
 307  0
                 return this.showAppDocStatus;
 308  
         }
 309  
     /**
 310  
      * @param showAppDocStatus The showAppDocStatus to set.
 311  
      */
 312  
         public void setShowAppDocStatus(String showAppDocStatus) {
 313  0
                 this.showAppDocStatus = showAppDocStatus;
 314  0
         }
 315  
 
 316  
     /**
 317  
      * @return Returns the showInitiator.
 318  
      */
 319  
     public String getShowInitiator() {
 320  0
         return showInitiator;
 321  
     }
 322  
     /**
 323  
      * @param showInitiator The showInitiator to set.
 324  
      */
 325  
     public void setShowInitiator(String showInitiator) {
 326  0
         this.showInitiator = showInitiator;
 327  0
     }
 328  
     /**
 329  
      * @return Returns the showTitle.
 330  
      */
 331  
     public String getShowDocTitle() {
 332  0
         return showDocTitle;
 333  
     }
 334  
     /**
 335  
      * @param showTitle The showTitle to set.
 336  
      */
 337  
     public void setShowDocTitle(String showTitle) {
 338  0
         this.showDocTitle = showTitle;
 339  0
     }
 340  
     /**
 341  
      * @return Returns the showWorkGroupRequest.
 342  
      */
 343  
     public String getShowWorkgroupRequest() {
 344  0
         return showWorkgroupRequest;
 345  
     }
 346  
     /**
 347  
      * @param showWorkGroupRequest The showWorkGroupRequest to set.
 348  
      */
 349  
     public void setShowWorkgroupRequest(String showWorkGroupRequest) {
 350  0
         this.showWorkgroupRequest = showWorkGroupRequest;
 351  0
     }
 352  
     public String getShowDelegator() {
 353  0
         return showDelegator;
 354  
     }
 355  
     public void setShowDelegator(String showDelegator) {
 356  0
         this.showDelegator = showDelegator;
 357  0
     }
 358  
 
 359  
     public String getShowClearFyi() {
 360  0
         return showClearFyi;
 361  
     }
 362  
 
 363  
     public void setShowClearFyi(String showClearFyi) {
 364  0
         this.showClearFyi = showClearFyi;
 365  0
     }
 366  
 
 367  
     public String getDelegatorFilter() {
 368  0
         return delegatorFilter;
 369  
     }
 370  
 
 371  
     public void setDelegatorFilter(String delegatorFilter) {
 372  0
         this.delegatorFilter = delegatorFilter;
 373  0
     }
 374  
     public String getUseOutbox() {
 375  0
         return this.useOutbox;
 376  
     }
 377  
     public void setUseOutbox(String useOutbox) {
 378  0
         this.useOutbox = useOutbox;
 379  0
     }
 380  
     public boolean isUsingOutbox() {
 381  0
         if (this.getUseOutbox() != null && this.getUseOutbox().equals(KEWConstants.PREFERENCES_YES_VAL)) {
 382  0
             return true;
 383  
         }
 384  0
         return false;
 385  
     }
 386  
 
 387  
     public boolean isRequiresSave() {
 388  0
         return this.requiresSave;
 389  
     }
 390  
 
 391  
     public void setRequiresSave(boolean requiresSave) {
 392  0
         this.requiresSave = requiresSave;
 393  0
     }
 394  
         /**
 395  
          * @return the showDateApproved
 396  
          */
 397  
         public String getShowDateApproved() {
 398  0
                 return this.showDateApproved;
 399  
         }
 400  
         /**
 401  
          * @param showDateApproved the showDateApproved to set
 402  
          */
 403  
         public void setShowDateApproved(String showDateApproved) {
 404  0
                 this.showDateApproved = showDateApproved;
 405  0
         }
 406  
         /**
 407  
          * @return the showCurrentNode
 408  
          */
 409  
         public String getShowCurrentNode() {
 410  0
                 return this.showCurrentNode;
 411  
         }
 412  
         /**
 413  
          * @param currentNodes the currentNodes to set
 414  
          */
 415  
         public void setShowCurrentNode(String currentNode) {
 416  0
                 this.showCurrentNode = currentNode;
 417  0
         }
 418  
         /**
 419  
          * @return the primaryDelegateFilter
 420  
          */
 421  
         public String getPrimaryDelegateFilter() {
 422  0
                 return this.primaryDelegateFilter;
 423  
         }
 424  
         /**
 425  
          * @param primaryDelegateFilter the primaryDelegateFilter to set
 426  
          */
 427  
         public void setPrimaryDelegateFilter(String primaryDelegateFilter) {
 428  0
                 this.primaryDelegateFilter = primaryDelegateFilter;
 429  0
         }
 430  
 }