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