Coverage Report - org.kuali.rice.kns.uif.container.DocumentView
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentView
0%
0/23
N/A
1
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.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/ecl1.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.kns.uif.container;
 17  
 
 18  
 import org.kuali.rice.kns.document.Document;
 19  
 import org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder;
 20  
 import org.kuali.rice.kns.web.derivedvaluesetter.DerivedValuesSetter;
 21  
 
 22  
 /**
 23  
  * View type for KRAD documents
 24  
  * 
 25  
  * <p>
 26  
  * Provides commons configuration and default behavior applicable to documents
 27  
  * in the KRAD module.
 28  
  * </p>
 29  
  * 
 30  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 31  
  */
 32  
 public class DocumentView extends FormView {
 33  
         private static final long serialVersionUID = 2251983409572774175L;
 34  
 
 35  
         private Class<? extends Document> documentClass;
 36  
 
 37  0
         private boolean allowsNoteAttachments = true;
 38  0
         private boolean allowsNoteFYI = false;
 39  0
         private boolean displayTopicFieldInNotes = false;
 40  
 
 41  
         // TODO: figure out what this is used for
 42  
         protected Class<? extends DerivedValuesSetter> derivedValuesSetterClass;
 43  
         private Class<? extends KeyValuesFinder> attachmentTypesValuesFinderClass;
 44  
 
 45  
         public DocumentView() {
 46  0
                 super();
 47  0
         }
 48  
 
 49  
         public Class<? extends Document> getDocumentClass() {
 50  0
                 return this.documentClass;
 51  
         }
 52  
 
 53  
         public void setDocumentClass(Class<? extends Document> documentClass) {
 54  0
                 this.documentClass = documentClass;
 55  0
         }
 56  
 
 57  
         public boolean isAllowsNoteAttachments() {
 58  0
                 return this.allowsNoteAttachments;
 59  
         }
 60  
 
 61  
         public void setAllowsNoteAttachments(boolean allowsNoteAttachments) {
 62  0
                 this.allowsNoteAttachments = allowsNoteAttachments;
 63  0
         }
 64  
 
 65  
         public boolean isAllowsNoteFYI() {
 66  0
                 return this.allowsNoteFYI;
 67  
         }
 68  
 
 69  
         public void setAllowsNoteFYI(boolean allowsNoteFYI) {
 70  0
                 this.allowsNoteFYI = allowsNoteFYI;
 71  0
         }
 72  
 
 73  
         public boolean isDisplayTopicFieldInNotes() {
 74  0
                 return this.displayTopicFieldInNotes;
 75  
         }
 76  
 
 77  
         public void setDisplayTopicFieldInNotes(boolean displayTopicFieldInNotes) {
 78  0
                 this.displayTopicFieldInNotes = displayTopicFieldInNotes;
 79  0
         }
 80  
 
 81  
         public Class<? extends KeyValuesFinder> getAttachmentTypesValuesFinderClass() {
 82  0
                 return this.attachmentTypesValuesFinderClass;
 83  
         }
 84  
 
 85  
         public void setAttachmentTypesValuesFinderClass(Class<? extends KeyValuesFinder> attachmentTypesValuesFinderClass) {
 86  0
                 this.attachmentTypesValuesFinderClass = attachmentTypesValuesFinderClass;
 87  0
         }
 88  
 
 89  
         public Class<? extends DerivedValuesSetter> getDerivedValuesSetterClass() {
 90  0
                 return this.derivedValuesSetterClass;
 91  
         }
 92  
 
 93  
         public void setDerivedValuesSetterClass(Class<? extends DerivedValuesSetter> derivedValuesSetterClass) {
 94  0
                 this.derivedValuesSetterClass = derivedValuesSetterClass;
 95  0
         }
 96  
 
 97  
 }