001/*
002 * Copyright 2011 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.ole.select.document.web;
017
018import org.apache.struts.action.ActionMapping;
019import org.kuali.ole.select.document.OleDefaultTableColumnValueDocument;
020import org.kuali.rice.kew.doctype.bo.DocumentType;
021import org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase;
022
023import javax.servlet.http.HttpServletRequest;
024import java.math.BigDecimal;
025
026public class OleDefaultTableColumnValueForm extends KualiTransactionalDocumentFormBase {
027
028    private BigDecimal defaultTableColumnId;
029
030    private String documentTypeId;
031
032    private String documentColumn;
033
034    private String defaultValue;
035
036    private boolean active;
037
038    private DocumentType documentTypes;
039
040    /* //private String principalName;
041
042
043     public String getPrincipalName() {
044         return principalName;
045     }
046
047     public void setPrincipalName(String principalName) {
048         this.principalName = principalName;
049     }*/
050    public String getDefaultValue() {
051        return defaultValue;
052    }
053
054    public void setDefaultValue(String defaultValue) {
055        this.defaultValue = defaultValue;
056    }
057
058    public BigDecimal getDefaultTableColumnId() {
059        return defaultTableColumnId;
060    }
061
062    public void setDefaultTableColumnId(BigDecimal defaultTableColumnId) {
063        this.defaultTableColumnId = defaultTableColumnId;
064    }
065
066    public String getDocumentTypeId() {
067        return documentTypeId;
068    }
069
070    public void setDocumentTypeId(String documentTypeId) {
071        this.documentTypeId = documentTypeId;
072    }
073
074    public String getDocumentColumn() {
075        return documentColumn;
076    }
077
078    public void setDocumentColumn(String documentColumn) {
079        this.documentColumn = documentColumn;
080    }
081
082    public boolean isActive() {
083        return active;
084    }
085
086    public void setActive(boolean active) {
087        this.active = active;
088    }
089
090    public DocumentType getDocumentTypes() {
091        return documentTypes;
092    }
093
094    public void setDocumentTypes(DocumentType documentTypes) {
095        this.documentTypes = documentTypes;
096    }
097
098    public OleDefaultTableColumnValueForm() {
099        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}