View Javadoc
1   /**
2    * Copyright 2005-2014 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.data.util.Link;
19  import org.kuali.rice.krad.maintenance.MaintenanceDocument;
20  import org.kuali.rice.krad.uif.UifConstants.ViewType;
21  import org.kuali.rice.krad.web.bind.ChangeTracking;
22  import org.kuali.rice.krad.web.bind.RequestAccessible;
23  
24  /**
25   * Form class for <code>MaintenanceDocumentView</code> screens
26   *
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   */
29  @ChangeTracking
30  @Link(path = "document.newMaintainableObject.dataObject")
31  public class MaintenanceDocumentForm extends DocumentFormBase {
32  	private static final long serialVersionUID = -5805825500852498048L;
33  
34      @RequestAccessible
35  	protected String dataObjectClassName;
36  
37      @RequestAccessible
38  	protected String maintenanceAction;
39  
40  	public MaintenanceDocumentForm() {
41  		super();
42  		setViewTypeName(ViewType.MAINTENANCE);
43  	}
44  
45  	@Override
46  	public MaintenanceDocument getDocument() {
47  		return (MaintenanceDocument) super.getDocument();
48  	}
49  
50  	// This is to provide a setter with matching type to
51  	// public MaintenanceDocument getDocument() so that no
52  	// issues occur with spring 3.1-M2 bean wrappers
53  	public void setDocument(MaintenanceDocument document) {
54  	    super.setDocument(document);
55  	}
56  
57  	public String getDataObjectClassName() {
58  		return this.dataObjectClassName;
59  	}
60  
61  	public void setDataObjectClassName(String dataObjectClassName) {
62  		this.dataObjectClassName = dataObjectClassName;
63  	}
64  
65  	public String getMaintenanceAction() {
66  		return this.maintenanceAction;
67  	}
68  
69  	public void setMaintenanceAction(String maintenanceAction) {
70  		this.maintenanceAction = maintenanceAction;
71  	}
72  
73  }