001/** 002 * Copyright 2005-2016 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.krad.web.form; 017 018import org.kuali.rice.krad.maintenance.MaintenanceDocument; 019import org.kuali.rice.krad.uif.UifConstants.ViewType; 020 021/** 022 * Form class for <code>MaintenanceView</code> screens 023 * 024 * @author Kuali Rice Team (rice.collab@kuali.org) 025 */ 026public class MaintenanceForm extends DocumentFormBase { 027 private static final long serialVersionUID = -5805825500852498048L; 028 029 protected String dataObjectClassName; 030 protected String maintenanceAction; 031 032 public MaintenanceForm() { 033 super(); 034 setViewTypeName(ViewType.MAINTENANCE); 035 } 036 037 @Override 038 public MaintenanceDocument getDocument() { 039 return (MaintenanceDocument) super.getDocument(); 040 } 041 042 // This is to provide a setter with matching type to 043 // public MaintenanceDocument getDocument() so that no 044 // issues occur with spring 3.1-M2 bean wrappers 045 public void setDocument(MaintenanceDocument document) { 046 super.setDocument(document); 047 } 048 049 public String getDataObjectClassName() { 050 return this.dataObjectClassName; 051 } 052 053 public void setDataObjectClassName(String dataObjectClassName) { 054 this.dataObjectClassName = dataObjectClassName; 055 } 056 057 public String getMaintenanceAction() { 058 return this.maintenanceAction; 059 } 060 061 public void setMaintenanceAction(String maintenanceAction) { 062 this.maintenanceAction = maintenanceAction; 063 } 064 065}