Coverage Report - org.kuali.rice.krad.uif.view.DocumentView
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentView
0%
0/20
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.krad.uif.view;
 17  
 
 18  
 import org.kuali.rice.krad.document.Document;
 19  
 import org.kuali.rice.krad.keyvalues.KeyValuesFinder;
 20  
 
 21  
 /**
 22  
  * View type for KRAD documents
 23  
  * 
 24  
  * <p>
 25  
  * Provides commons configuration and default behavior applicable to documents
 26  
  * in the KRAD module.
 27  
  * </p>
 28  
  * 
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  */
 31  
 public class DocumentView extends FormView {
 32  
         private static final long serialVersionUID = 2251983409572774175L;
 33  
 
 34  
         private Class<? extends Document> documentClass;
 35  
 
 36  0
         private boolean allowsNoteAttachments = true;
 37  0
         private boolean allowsNoteFYI = false;
 38  0
         private boolean displayTopicFieldInNotes = false;
 39  
 
 40  
         private Class<? extends KeyValuesFinder> attachmentTypesValuesFinderClass;
 41  
 
 42  
         public DocumentView() {
 43  0
                 super();
 44  0
         }
 45  
 
 46  
         public Class<? extends Document> getDocumentClass() {
 47  0
                 return this.documentClass;
 48  
         }
 49  
 
 50  
         public void setDocumentClass(Class<? extends Document> documentClass) {
 51  0
                 this.documentClass = documentClass;
 52  0
         }
 53  
 
 54  
         public boolean isAllowsNoteAttachments() {
 55  0
                 return this.allowsNoteAttachments;
 56  
         }
 57  
 
 58  
         public void setAllowsNoteAttachments(boolean allowsNoteAttachments) {
 59  0
                 this.allowsNoteAttachments = allowsNoteAttachments;
 60  0
         }
 61  
 
 62  
         public boolean isAllowsNoteFYI() {
 63  0
                 return this.allowsNoteFYI;
 64  
         }
 65  
 
 66  
         public void setAllowsNoteFYI(boolean allowsNoteFYI) {
 67  0
                 this.allowsNoteFYI = allowsNoteFYI;
 68  0
         }
 69  
 
 70  
         public boolean isDisplayTopicFieldInNotes() {
 71  0
                 return this.displayTopicFieldInNotes;
 72  
         }
 73  
 
 74  
         public void setDisplayTopicFieldInNotes(boolean displayTopicFieldInNotes) {
 75  0
                 this.displayTopicFieldInNotes = displayTopicFieldInNotes;
 76  0
         }
 77  
 
 78  
         public Class<? extends KeyValuesFinder> getAttachmentTypesValuesFinderClass() {
 79  0
                 return this.attachmentTypesValuesFinderClass;
 80  
         }
 81  
 
 82  
         public void setAttachmentTypesValuesFinderClass(Class<? extends KeyValuesFinder> attachmentTypesValuesFinderClass) {
 83  0
                 this.attachmentTypesValuesFinderClass = attachmentTypesValuesFinderClass;
 84  0
         }
 85  
 
 86  
 }