001/**
002 * Copyright 2005-2017 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.kew.notes.web;
017
018import java.util.List;
019
020import org.kuali.rice.kew.notes.Note;
021import org.kuali.rice.kns.web.struts.form.KualiForm;
022
023/**
024 * Struts ActionForm for {@link NoteAction}.
025 *
026 * @author Kuali Rice Team (rice.collab@kuali.org)
027 */
028public class NoteForm extends KualiForm {
029
030        private static final long serialVersionUID = 1L;
031        private Note note;
032    private Note existingNote;
033    private String methodToCall = "";
034    private String showEdit;
035    private Boolean showAdd;
036    private String docId;
037    private String noteIdNumber;
038    private Integer numberOfNotes;
039    private String sortOrder = "DESCENDING";
040    private Boolean sortNotes;
041    private String currentUserName;
042    private String currentDate;
043    private Boolean authorizedToAdd;
044    private List<Note> noteList;
045    private String addText;
046    private Long idInEdit;
047    private Boolean showAttachments;
048    private String attachmentTarget;
049
050
051    private Object file;
052
053    public NoteForm() {
054        note = new Note();
055    }
056
057    public String getMethodToCall() {
058        return methodToCall;
059    }
060
061    public void setMethodToCall(String methodToCall) {
062        this.methodToCall = methodToCall;
063    }
064
065    public Note getNote() {
066        return note;
067    }
068
069    public void setNote(Note note) {
070        this.note = note;
071    }
072
073    public Note getExistingNote() {
074        return existingNote;
075    }
076
077    public void setExistingNote(Note existingNote) {
078        this.existingNote = existingNote;
079    }
080
081    public String getShowEdit() {
082        return showEdit;
083    }
084
085    public void setShowEdit(String showEdit) {
086        this.showEdit = showEdit;
087    }
088
089    public String getDocId() {
090        return docId;
091    }
092
093    public void setDocId(String docId) {
094        this.docId = docId;
095    }
096
097    public Integer getNumberOfNotes() {
098        return numberOfNotes;
099    }
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}