001: /*
002: * Copyright 2006-2007 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: */
016:
017: package org.kuali.module.purap.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.module.purap.document.PurchaseOrderDocument;
023:
024: /**
025: * Purchase Order Restricted Material Business Object.
026: */
027: public class PurchaseOrderRestrictedMaterial extends
028: PersistableBusinessObjectBase {
029:
030: private String documentNumber;
031: private String restrictedMaterialCode;
032: private Integer requisitionIdentifier;
033:
034: private PurchaseOrderDocument purchaseOrder;
035: private RestrictedMaterial restrictedMaterial;
036:
037: /**
038: * Default constructor.
039: */
040: public PurchaseOrderRestrictedMaterial() {
041:
042: }
043:
044: public String getDocumentNumber() {
045: return documentNumber;
046: }
047:
048: public void setDocumentNumber(String documentNumber) {
049: this .documentNumber = documentNumber;
050: }
051:
052: public String getRestrictedMaterialCode() {
053: return restrictedMaterialCode;
054: }
055:
056: public void setRestrictedMaterialCode(String restrictedMaterialCode) {
057: this .restrictedMaterialCode = restrictedMaterialCode;
058: }
059:
060: public Integer getRequisitionIdentifier() {
061: return requisitionIdentifier;
062: }
063:
064: public void setRequisitionIdentifier(Integer requisitionIdentifier) {
065: this .requisitionIdentifier = requisitionIdentifier;
066: }
067:
068: public PurchaseOrderDocument getPurchaseOrder() {
069: return purchaseOrder;
070: }
071:
072: public void setPurchaseOrder(PurchaseOrderDocument purchaseOrder) {
073: this .purchaseOrder = purchaseOrder;
074: }
075:
076: public RestrictedMaterial getRestrictedMaterial() {
077: return restrictedMaterial;
078: }
079:
080: /**
081: * Sets the restrictedMaterial attribute value.
082: *
083: * @param restrictedMaterial The restrictedMaterial to set.
084: * @deprecated
085: */
086: public void setRestrictedMaterial(
087: RestrictedMaterial restrictedMaterial) {
088: this .restrictedMaterial = restrictedMaterial;
089: }
090:
091: /**
092: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
093: */
094: protected LinkedHashMap toStringMapper() {
095: LinkedHashMap m = new LinkedHashMap();
096: m.put("documentNumber", this .documentNumber);
097: m.put("restrictedMaterialCode", this.restrictedMaterialCode);
098: return m;
099: }
100:
101: }
|