View Javadoc

1   /**
2    * Copyright 2005-2012 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.kew.notes.web;
17  
18  import java.util.List;
19  
20  import org.kuali.rice.kew.notes.Note;
21  import org.kuali.rice.kns.web.struts.form.KualiForm;
22  
23  /**
24   * Struts ActionForm for {@link NoteAction}.
25   *
26   * @author Kuali Rice Team (rice.collab@kuali.org)
27   */
28  public class NoteForm extends KualiForm {
29  
30  	private static final long serialVersionUID = 1L;
31  	private Note note;
32      private Note existingNote;
33      private String methodToCall = "";
34      private String showEdit;
35      private Boolean showAdd;
36      private String docId;
37      private String noteIdNumber;
38      private Integer numberOfNotes;
39      private String sortOrder = "DESCENDING";
40      private Boolean sortNotes;
41      private String currentUserName;
42      private String currentDate;
43      private Boolean authorizedToAdd;
44      private List<Note> noteList;
45      private String addText;
46      private Long idInEdit;
47      private Boolean showAttachments;
48      private String attachmentTarget;
49  
50  
51      private Object file;
52  
53      public NoteForm() {
54          note = new Note();
55      }
56  
57      public String getMethodToCall() {
58          return methodToCall;
59      }
60  
61      public void setMethodToCall(String methodToCall) {
62          this.methodToCall = methodToCall;
63      }
64  
65      public Note getNote() {
66          return note;
67      }
68  
69      public void setNote(Note note) {
70          this.note = note;
71      }
72  
73      public Note getExistingNote() {
74          return existingNote;
75      }
76  
77      public void setExistingNote(Note existingNote) {
78          this.existingNote = existingNote;
79      }
80  
81      public String getShowEdit() {
82          return showEdit;
83      }
84  
85      public void setShowEdit(String showEdit) {
86          this.showEdit = showEdit;
87      }
88  
89      public String getDocId() {
90          return docId;
91      }
92  
93      public void setDocId(String docId) {
94          this.docId = docId;
95      }
96  
97      public Integer getNumberOfNotes() {
98          return numberOfNotes;
99      }
100 
101     public void setNumberOfNotes(Integer numberOfNotes) {
102         this.numberOfNotes = numberOfNotes;
103     }
104 
105     public Boolean getShowAdd() {
106         return showAdd;
107     }
108 
109     public void setShowAdd(Boolean showAdd) {
110         this.showAdd = showAdd;
111     }
112 
113     public String getNoteIdNumber() {
114         return noteIdNumber;
115     }
116 
117     public void setNoteIdNumber(String noteIdNumber) {
118         this.noteIdNumber = noteIdNumber;
119     }
120 
121     public String getSortOrder() {
122         return sortOrder;
123     }
124 
125     public void setSortOrder(String sortOrder) {
126         this.sortOrder = sortOrder;
127     }
128 
129     public Boolean getSortNotes() {
130         return sortNotes;
131     }
132 
133     public void setSortNotes(Boolean sortNotes) {
134         this.sortNotes = sortNotes;
135     }
136 
137     public String getCurrentDate() {
138         return currentDate;
139     }
140 
141     public void setCurrentDate(String currentDate) {
142         this.currentDate = currentDate;
143     }
144 
145     public String getCurrentUserName() {
146         return currentUserName;
147     }
148 
149     public void setCurrentUserName(String currentUserName) {
150         this.currentUserName = currentUserName;
151     }
152 
153     public Boolean getAuthorizedToAdd() {
154         return authorizedToAdd;
155     }
156 
157     public void setAuthorizedToAdd(Boolean authorizedToAdd) {
158         this.authorizedToAdd = authorizedToAdd;
159     }
160 
161     public List<Note> getNoteList() {
162         return noteList;
163     }
164 
165     public void setNoteList(List<Note> noteList) {
166         this.noteList = noteList;
167     }
168 
169     public String getAddText() {
170         return addText;
171     }
172 
173     public void setAddText(String addText) {
174         this.addText = addText;
175     }
176 
177     public Long getIdInEdit() {
178         return idInEdit;
179     }
180 
181     public void setIdInEdit(Long idInEdit) {
182         this.idInEdit = idInEdit;
183     }
184 
185 	public Object getFile() {
186 		return file;
187 	}
188 
189 	public void setFile(Object file) {
190 		this.file = file;
191 	}
192 
193 	public Boolean getShowAttachments() {
194 		return showAttachments;
195 	}
196 
197 	public void setShowAttachments(Boolean showAttachments) {
198 		this.showAttachments = showAttachments;
199 	}
200 
201 	public String getAttachmentTarget() {
202 		return attachmentTarget;
203 	}
204 
205 	public void setAttachmentTarget(String attachmentTarget) {
206 		this.attachmentTarget = attachmentTarget;
207 	}
208 }