| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| MaintenanceForm |
|
| 1.0;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.web.form; | |
| 17 | ||
| 18 | import org.kuali.rice.krad.document.MaintenanceDocument; | |
| 19 | import org.kuali.rice.krad.uif.UifConstants.ViewType; | |
| 20 | ||
| 21 | /** | |
| 22 | * Form class for <code>MaintenanceView</code> screens | |
| 23 | * | |
| 24 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 25 | */ | |
| 26 | 0 | public class MaintenanceForm extends DocumentFormBase { |
| 27 | private static final long serialVersionUID = -5805825500852498048L; | |
| 28 | ||
| 29 | protected String dataObjectClassName; | |
| 30 | protected String maintenanceAction; | |
| 31 | ||
| 32 | public MaintenanceForm() { | |
| 33 | 0 | super(); |
| 34 | 0 | setViewTypeName(ViewType.MAINTENANCE); |
| 35 | 0 | } |
| 36 | ||
| 37 | @Override | |
| 38 | public MaintenanceDocument getDocument() { | |
| 39 | 0 | return (MaintenanceDocument) super.getDocument(); |
| 40 | } | |
| 41 | ||
| 42 | // This is to provide a setter with matching type to | |
| 43 | // public MaintenanceDocument getDocument() so that no | |
| 44 | // issues occur with spring 3.1-M2 bean wrappers | |
| 45 | public void setDocument(MaintenanceDocument document) { | |
| 46 | 0 | super.setDocument(document); |
| 47 | 0 | } |
| 48 | ||
| 49 | public String getDataObjectClassName() { | |
| 50 | 0 | return this.dataObjectClassName; |
| 51 | } | |
| 52 | ||
| 53 | public void setDataObjectClassName(String dataObjectClassName) { | |
| 54 | 0 | this.dataObjectClassName = dataObjectClassName; |
| 55 | 0 | } |
| 56 | ||
| 57 | public String getMaintenanceAction() { | |
| 58 | 0 | return this.maintenanceAction; |
| 59 | } | |
| 60 | ||
| 61 | public void setMaintenanceAction(String maintenanceAction) { | |
| 62 | 0 | this.maintenanceAction = maintenanceAction; |
| 63 | 0 | } |
| 64 | ||
| 65 | } |