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