View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  
20  package org.kuali.kfs.vnd.businessobject;
21  
22  import java.util.LinkedHashMap;
23  
24  import org.kuali.kfs.coa.businessobject.Chart;
25  import org.kuali.kfs.coa.businessobject.Organization;
26  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
27  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
28  
29  /**
30   * Customer numbers that may have been assigned by the Vendor to various <code>Chart</code> and/or <code>Org</code>.
31   * 
32   * @see org.kuali.kfs.coa.businessobject.Chart
33   * @see org.kuali.kfs.coa.businessobject.Org
34   */
35  public class VendorCustomerNumber extends PersistableBusinessObjectBase implements MutableInactivatable {
36  
37      private Integer vendorCustomerNumberGeneratedIdentifier;
38      private Integer vendorHeaderGeneratedIdentifier;
39      private Integer vendorDetailAssignedIdentifier;
40      private String vendorCustomerNumber;
41      private String chartOfAccountsCode;
42      private String vendorOrganizationCode;
43      private boolean active;
44  
45      private VendorDetail vendorDetail;
46      private Organization vendorOrganization;
47      private Chart chartOfAccounts;
48  
49      /**
50       * Default constructor.
51       */
52      public VendorCustomerNumber() {
53  
54      }
55  
56      public Integer getVendorCustomerNumberGeneratedIdentifier() {
57  
58          return vendorCustomerNumberGeneratedIdentifier;
59      }
60  
61      public void setVendorCustomerNumberGeneratedIdentifier(Integer vendorCustomerNumberGeneratedIdentifier) {
62          this.vendorCustomerNumberGeneratedIdentifier = vendorCustomerNumberGeneratedIdentifier;
63      }
64  
65      public Integer getVendorHeaderGeneratedIdentifier() {
66  
67          return vendorHeaderGeneratedIdentifier;
68      }
69  
70      public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) {
71          this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
72      }
73  
74      public Integer getVendorDetailAssignedIdentifier() {
75  
76          return vendorDetailAssignedIdentifier;
77      }
78  
79      public void setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedIdentifier) {
80          this.vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
81      }
82  
83      public String getVendorCustomerNumber() {
84  
85          return vendorCustomerNumber;
86      }
87  
88      public void setVendorCustomerNumber(String vendorCustomerNumber) {
89          this.vendorCustomerNumber = vendorCustomerNumber;
90      }
91  
92      public String getChartOfAccountsCode() {
93  
94          return chartOfAccountsCode;
95      }
96  
97      public void setChartOfAccountsCode(String chartOfAccountsCode) {
98          this.chartOfAccountsCode = chartOfAccountsCode;
99      }
100 
101     public String getVendorOrganizationCode() {
102 
103         return vendorOrganizationCode;
104     }
105 
106     public void setVendorOrganizationCode(String vendorOrganizationCode) {
107         this.vendorOrganizationCode = vendorOrganizationCode;
108     }
109 
110     public boolean isActive() {
111 
112         return active;
113     }
114 
115     public void setActive(boolean active) {
116         this.active = active;
117     }
118 
119     public VendorDetail getVendorDetail() {
120 
121         return vendorDetail;
122     }
123 
124     /**
125      * Sets the vendorDetail attribute.
126      * 
127      * @param vendorDetail The vendorDetail to set.
128      * @deprecated
129      */
130     public void setVendorDetail(VendorDetail vendorDetail) {
131         this.vendorDetail = vendorDetail;
132     }
133 
134     public Organization getVendorOrganization() {
135 
136         return vendorOrganization;
137     }
138 
139     /**
140      * Sets the vendorOrganization attribute.
141      * 
142      * @param vendorOrganization The vendorOrganization to set.
143      * @deprecated
144      */
145     public void setVendorOrganization(Organization vendorOrganization) {
146         this.vendorOrganization = vendorOrganization;
147     }
148 
149     public Chart getChartOfAccounts() {
150 
151         return chartOfAccounts;
152     }
153 
154     /**
155      * Sets the chartOfAccounts attribute.
156      * 
157      * @param chartOfAccounts The chartOfAccounts to set.
158      * @deprecated
159      */
160     public void setChartOfAccounts(Chart chartOfAccounts) {
161         this.chartOfAccounts = chartOfAccounts;
162     }
163 
164     /**
165      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
166      */
167     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
168         LinkedHashMap m = new LinkedHashMap();
169         if (this.vendorCustomerNumberGeneratedIdentifier != null) {
170             m.put("vendorCustomerNumberGeneratedIdentifier", this.vendorCustomerNumberGeneratedIdentifier.toString());
171         }
172 
173         return m;
174     }
175 }