View Javadoc
1   /*
2    * Copyright 2011 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.select.businessobject;
17  
18  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
19  
20  import java.util.LinkedHashMap;
21  
22  /**
23   * This class is the business object class for OLE Receiving Correction Line Item Receipt Notes.
24   */
25  
26  public class OleCorrectionReceivingItemReceiptNotes extends PersistableBusinessObjectBase {
27  
28      private Integer receivingCorrectionLineItemNoteId;
29      private Integer receivingItemIdentifier;
30      private Integer noteTypeId;
31      private String notes;
32      private OleNoteType noteType;
33      private OleCorrectionReceivingItem correctionReceivingItem;
34      private boolean notesAck = false;
35  
36      /**
37       * Default Constructor
38       */
39      public OleCorrectionReceivingItemReceiptNotes() {
40  
41      }
42  
43      /**
44       * Constructs a OleCorrectionReceivingItemReceiptNotes with notes populated from Line Item Receiving
45       *
46       * @param oleReceivingNotes
47       */
48      public OleCorrectionReceivingItemReceiptNotes(OleLineItemReceivingReceiptNotes oleReceivingNotes) {
49          this.setNoteTypeId(oleReceivingNotes.getNoteTypeId());
50          this.setNotes(oleReceivingNotes.getNotes());
51      }
52  
53      /**
54       * Gets receiving correction lineitem noteId.
55       *
56       * @return receivingCorrectionLineItemNoteId.
57       */
58      public Integer getReceivingCorrectionLineItemNoteId() {
59          return receivingCorrectionLineItemNoteId;
60      }
61  
62      /**
63       * Sets correction receiving lineitem noteId.
64       *
65       * @param receivingCorrectionLineItemNoteId
66       *         to set.
67       */
68      public void setReceivingCorrectionLineItemNoteId(Integer receivingCorrectionLineItemNoteId) {
69          this.receivingCorrectionLineItemNoteId = receivingCorrectionLineItemNoteId;
70      }
71  
72      /**
73       * Gets receiving correction lineitem identifier.
74       *
75       * @return receivingCorrectionItemIdentifier.
76       */
77      public Integer getReceivingItemIdentifier() {
78          return receivingItemIdentifier;
79      }
80  
81      /**
82       * Sets receiving correction lineitem identifier.
83       *
84       * @param receivingCorrectionItemIdentifier
85       *         to set.
86       */
87      public void setReceivingItemIdentifier(Integer receivingItemIdentifier) {
88          this.receivingItemIdentifier = receivingItemIdentifier;
89      }
90  
91      /**
92       * Gets note type id.
93       *
94       * @return noteTypeId.
95       */
96      public Integer getNoteTypeId() {
97          return noteTypeId;
98      }
99  
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 }