001/*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 1.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/ecl1.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.vnd.businessobject;
017
018import java.util.LinkedHashMap;
019
020import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
021import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
022
023public class VendorTransmissionFormatDetail extends PersistableBusinessObjectBase implements MutableInactivatable {
024
025    private Long vendorTransmissionFormatId;
026    private Integer vendorHeaderGeneratedIdentifier;
027    private Integer vendorDetailAssignedIdentifier;
028    private boolean vendorPreferredTransmissionFormat;
029    private Integer vendorTransmissionTypeId;
030    //private String vendorEDITypeConnection;
031    private String vendorEDIConnectionAddress;
032    private String vendorEDIConnectionUserName;
033    private String vendorEDIConnectionPassword;
034    private boolean active;
035    private VendorDetail vendorDetail;
036    private OleVendorTransmissionFormat vendorTransmissionFormat;
037    private OleVendorTransmissionType vendorTransmissionTypes;
038
039    public Integer getVendorHeaderGeneratedIdentifier() {
040        return vendorHeaderGeneratedIdentifier;
041    }
042    public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) {
043        this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
044    }
045    public Integer getVendorDetailAssignedIdentifier() {
046        return vendorDetailAssignedIdentifier;
047    }
048    public void setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedIdentifier) {
049        this.vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
050    }
051
052    public String getVendorEDIConnectionAddress() {
053        return vendorEDIConnectionAddress;
054    }
055    public void setVendorEDIConnectionAddress(String vendorEDIConnectionAddress) {
056        this.vendorEDIConnectionAddress = vendorEDIConnectionAddress;
057    }
058    public String getVendorEDIConnectionUserName() {
059        return vendorEDIConnectionUserName;
060    }
061    public void setVendorEDIConnectionUserName(String vendorEDIConnectionUserName) {
062        this.vendorEDIConnectionUserName = vendorEDIConnectionUserName;
063    }
064    public String getVendorEDIConnectionPassword() {
065        return vendorEDIConnectionPassword;
066    }
067    public void setVendorEDIConnectionPassword(String vendorEDIConnectionPassword) {
068        this.vendorEDIConnectionPassword = vendorEDIConnectionPassword;
069    }
070    @Override
071    public boolean isActive() {
072        return active;
073    }
074    @Override
075    public void setActive(boolean active) {
076        this.active = active;
077    }
078
079    /**
080     * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
081     */
082    protected LinkedHashMap toStringMapper() {
083        LinkedHashMap m = new LinkedHashMap();
084        if (this.vendorHeaderGeneratedIdentifier != null) {
085            m.put("vendorHeaderGeneratedIdentifier", this.vendorHeaderGeneratedIdentifier.toString());
086        }
087        if (this.vendorDetailAssignedIdentifier != null) {
088            m.put("vendorDetailAssignedIdentifier", this.vendorDetailAssignedIdentifier.toString());
089        }
090        if (this.vendorTransmissionFormatId != null) {
091            m.put("vendorTransmissionFormatIdentifier", this.vendorTransmissionFormatId.toString());
092        }
093        return m;
094    }
095
096    public boolean isVendorPreferredTransmissionFormat() {
097        return vendorPreferredTransmissionFormat;
098    }
099    public void setVendorPreferredTransmissionFormat(boolean vendorPreferredTransmissionFormat) {
100        this.vendorPreferredTransmissionFormat = vendorPreferredTransmissionFormat;
101    }
102    public Long getVendorTransmissionFormatId() {
103        return vendorTransmissionFormatId;
104    }
105    public void setVendorTransmissionFormatId(Long vendorTransmissionFormatId) {
106        this.vendorTransmissionFormatId = vendorTransmissionFormatId;
107    }
108    public VendorDetail getVendorDetail() {
109        return vendorDetail;
110    }
111    public void setVendorDetail(VendorDetail vendorDetail) {
112        this.vendorDetail = vendorDetail;
113    }
114    public OleVendorTransmissionFormat getVendorTransmissionFormat() {
115        return vendorTransmissionFormat;
116    }
117    public void setVendorTransmissionFormat(OleVendorTransmissionFormat vendorTransmissionFormat) {
118        this.vendorTransmissionFormat = vendorTransmissionFormat;
119    }
120
121
122    public Integer getVendorTransmissionTypeId() {
123        return vendorTransmissionTypeId;
124    }
125    public void setVendorTransmissionTypeId(Integer vendorTransmissionTypeId) {
126        this.vendorTransmissionTypeId = vendorTransmissionTypeId;
127    }
128    public OleVendorTransmissionType getVendorTransmissionTypes() {
129        return vendorTransmissionTypes;
130    }
131    public void setVendorTransmissionTypes(OleVendorTransmissionType vendorTransmissionTypes) {
132        this.vendorTransmissionTypes = vendorTransmissionTypes;
133    }
134
135}