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.businessobject; 017 018import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 019 020import java.util.LinkedHashMap; 021 022/** 023 * This class is the business object class for OLE Line Item Receiving Receipt Notes. 024 */ 025 026public class OleLineItemReceivingReceiptNotes extends PersistableBusinessObjectBase { 027 028 private Integer receivingLineItemNoteId; 029 private Integer receivingLineItemIdentifier; 030 private Integer noteTypeId; 031 private String notes; 032 private OleNoteType noteType; 033 private OleLineItemReceivingItem receivingLineItem; 034 private boolean notesAck = false; 035 036 /** 037 * Default Constructor 038 */ 039 public OleLineItemReceivingReceiptNotes() { 040 041 } 042 043 /** 044 * Constructs a OleLineItemReceivingReceiptNotes with notes populated from Ole PurchaseOrder 045 * 046 * @param olePoNotes 047 */ 048 public OleLineItemReceivingReceiptNotes(OleNotes olePoNotes) { 049 this.setNoteTypeId(olePoNotes.getNoteTypeId().intValue()); 050 this.setNotes(olePoNotes.getNote()); 051 } 052 053 /** 054 * Gets receiving lineitem noteId. 055 * 056 * @return receivingLineItemNoteId. 057 */ 058 public Integer getReceivingLineItemNoteId() { 059 return receivingLineItemNoteId; 060 } 061 062 /** 063 * Sets receiving lineitem noteId. 064 * 065 * @param receivingLineItemNoteId to set. 066 */ 067 public void setReceivingLineItemNoteId(Integer receivingLineItemNoteId) { 068 this.receivingLineItemNoteId = receivingLineItemNoteId; 069 } 070 071 /** 072 * Gets receiving lineitem identifier. 073 * 074 * @return receivingLineItemIdentifier. 075 */ 076 public Integer getReceivingLineItemIdentifier() { 077 return receivingLineItemIdentifier; 078 } 079 080 /** 081 * Sets receiving lineitem identifier. 082 * 083 * @param receivingLineItemIdentifier to set. 084 */ 085 public void setReceivingLineItemIdentifier(Integer receivingLineItemIdentifier) { 086 this.receivingLineItemIdentifier = receivingLineItemIdentifier; 087 } 088 089 /** 090 * Gets note type id. 091 * 092 * @return noteTypeId. 093 */ 094 public Integer getNoteTypeId() { 095 return noteTypeId; 096 } 097 098 /** 099 * Sets note type id. 100 * 101 * @param noteTypeId to set. 102 */ 103 public void setNoteTypeId(Integer noteTypeId) { 104 this.noteTypeId = noteTypeId; 105 } 106 107 /** 108 * Gets Notes. 109 * 110 * @return notes. 111 */ 112 public String getNotes() { 113 return notes; 114 } 115 116 /** 117 * Sets Notes. 118 * 119 * @param notes to set. 120 */ 121 public void setNotes(String notes) { 122 this.notes = notes; 123 } 124 125 /** 126 * Gets OleNoteType. 127 * 128 * @return noteType. 129 */ 130 public OleNoteType getNoteType() { 131 return noteType; 132 } 133 134 /** 135 * Sets OleNoteType. 136 * 137 * @param noteType to set. 138 */ 139 public void setNoteType(OleNoteType noteType) { 140 this.noteType = noteType; 141 } 142 143 /** 144 * Gets OleLineItemReceivingItem. 145 * 146 * @return receivingLineItem. 147 */ 148 public OleLineItemReceivingItem getReceivingLineItem() { 149 return receivingLineItem; 150 } 151 152 /** 153 * Sets OleLineItemReceivingItem. 154 * 155 * @param receivingLineItem. 156 */ 157 public void setReceivingLineItem(OleLineItemReceivingItem receivingLineItem) { 158 this.receivingLineItem = receivingLineItem; 159 } 160 161 /** 162 * Gets acknowledgement flag for special handling notes 163 * 164 * @return notesAck 165 */ 166 public boolean isNotesAck() { 167 return notesAck; 168 } 169 170 /** 171 * Sets acknowledgement flag for special handling notes 172 * 173 * @param notesAck 174 */ 175 public void setNotesAck(boolean notesAck) { 176 this.notesAck = notesAck; 177 } 178 179 /** 180 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper() 181 */ 182 183 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() { 184 LinkedHashMap map = new LinkedHashMap(); 185 map.put("receivingLineItemIdentifier", receivingLineItemIdentifier); 186 map.put("receivingLineItemNoteId", receivingLineItemNoteId); 187 map.put("noteTypeId", noteTypeId); 188 map.put("notes", notes); 189 190 return map; 191 } 192}