View Javadoc
1   /*
2    * Copyright 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.ole.select.document.web;
17  
18  import org.apache.struts.action.ActionMapping;
19  import org.kuali.ole.select.document.OleDefaultTableColumnValueDocument;
20  import org.kuali.rice.kew.doctype.bo.DocumentType;
21  import org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase;
22  
23  import javax.servlet.http.HttpServletRequest;
24  import java.math.BigDecimal;
25  
26  public class OleDefaultTableColumnValueForm extends KualiTransactionalDocumentFormBase {
27  
28      private BigDecimal defaultTableColumnId;
29  
30      private String documentTypeId;
31  
32      private String documentColumn;
33  
34      private String defaultValue;
35  
36      private boolean active;
37  
38      private DocumentType documentTypes;
39  
40      /* //private String principalName;
41  
42  
43       public String getPrincipalName() {
44           return principalName;
45       }
46  
47       public void setPrincipalName(String principalName) {
48           this.principalName = principalName;
49       }*/
50      public String getDefaultValue() {
51          return defaultValue;
52      }
53  
54      public void setDefaultValue(String defaultValue) {
55          this.defaultValue = defaultValue;
56      }
57  
58      public BigDecimal getDefaultTableColumnId() {
59          return defaultTableColumnId;
60      }
61  
62      public void setDefaultTableColumnId(BigDecimal defaultTableColumnId) {
63          this.defaultTableColumnId = defaultTableColumnId;
64      }
65  
66      public String getDocumentTypeId() {
67          return documentTypeId;
68      }
69  
70      public void setDocumentTypeId(String documentTypeId) {
71          this.documentTypeId = documentTypeId;
72      }
73  
74      public String getDocumentColumn() {
75          return documentColumn;
76      }
77  
78      public void setDocumentColumn(String documentColumn) {
79          this.documentColumn = documentColumn;
80      }
81  
82      public boolean isActive() {
83          return active;
84      }
85  
86      public void setActive(boolean active) {
87          this.active = active;
88      }
89  
90      public DocumentType getDocumentTypes() {
91          return documentTypes;
92      }
93  
94      public void setDocumentTypes(DocumentType documentTypes) {
95          this.documentTypes = documentTypes;
96      }
97  
98      public OleDefaultTableColumnValueForm() {
99          super();
100 
101         setDocument(new OleDefaultTableColumnValueDocument());
102         setDocTypeName("OLE_DFTTABCL");
103     }
104 
105     public void populate(HttpServletRequest req) {
106         super.populate(req);
107     }
108 
109     @Override
110     public String getRefreshCaller() {
111         return "refreshCaller";
112     }
113 
114     @Override
115     public void reset(ActionMapping mapping, HttpServletRequest request) {
116         super.reset(mapping, request);
117     }
118 
119 }