View Javadoc

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  	private boolean allowsNoteAttachments = true;
37  	private boolean allowsNoteFYI = false;
38  	private boolean displayTopicFieldInNotes = false;
39  
40  	private Class<? extends KeyValuesFinder> attachmentTypesValuesFinderClass;
41  
42  	public DocumentView() {
43  		super();
44  	}
45  
46  	public Class<? extends Document> getDocumentClass() {
47  		return this.documentClass;
48  	}
49  
50  	public void setDocumentClass(Class<? extends Document> documentClass) {
51  		this.documentClass = documentClass;
52  	}
53  
54  	public boolean isAllowsNoteAttachments() {
55  		return this.allowsNoteAttachments;
56  	}
57  
58  	public void setAllowsNoteAttachments(boolean allowsNoteAttachments) {
59  		this.allowsNoteAttachments = allowsNoteAttachments;
60  	}
61  
62  	public boolean isAllowsNoteFYI() {
63  		return this.allowsNoteFYI;
64  	}
65  
66  	public void setAllowsNoteFYI(boolean allowsNoteFYI) {
67  		this.allowsNoteFYI = allowsNoteFYI;
68  	}
69  
70  	public boolean isDisplayTopicFieldInNotes() {
71  		return this.displayTopicFieldInNotes;
72  	}
73  
74  	public void setDisplayTopicFieldInNotes(boolean displayTopicFieldInNotes) {
75  		this.displayTopicFieldInNotes = displayTopicFieldInNotes;
76  	}
77  
78  	public Class<? extends KeyValuesFinder> getAttachmentTypesValuesFinderClass() {
79  		return this.attachmentTypesValuesFinderClass;
80  	}
81  
82  	public void setAttachmentTypesValuesFinderClass(Class<? extends KeyValuesFinder> attachmentTypesValuesFinderClass) {
83  		this.attachmentTypesValuesFinderClass = attachmentTypesValuesFinderClass;
84  	}
85  
86  }