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