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 Line Item Receiving Receipt Notes.
24   */
25  
26  public class OleLineItemReceivingReceiptNotes extends PersistableBusinessObjectBase {
27  
28      private Integer receivingLineItemNoteId;
29      private Integer receivingLineItemIdentifier;
30      private Integer noteTypeId;
31      private String notes;
32      private OleNoteType noteType;
33      private OleLineItemReceivingItem receivingLineItem;
34      private boolean notesAck = false;
35  
36      /**
37       * Default Constructor
38       */
39      public OleLineItemReceivingReceiptNotes() {
40  
41      }
42  
43      /**
44       * Constructs a OleLineItemReceivingReceiptNotes with notes populated from Ole PurchaseOrder
45       *
46       * @param olePoNotes
47       */
48      public OleLineItemReceivingReceiptNotes(OleNotes olePoNotes) {
49          this.setNoteTypeId(olePoNotes.getNoteTypeId().intValue());
50          this.setNotes(olePoNotes.getNote());
51      }
52  
53      /**
54       * Gets receiving lineitem noteId.
55       *
56       * @return receivingLineItemNoteId.
57       */
58      public Integer getReceivingLineItemNoteId() {
59          return receivingLineItemNoteId;
60      }
61  
62      /**
63       * Sets receiving lineitem noteId.
64       *
65       * @param receivingLineItemNoteId to set.
66       */
67      public void setReceivingLineItemNoteId(Integer receivingLineItemNoteId) {
68          this.receivingLineItemNoteId = receivingLineItemNoteId;
69      }
70  
71      /**
72       * Gets receiving lineitem identifier.
73       *
74       * @return receivingLineItemIdentifier.
75       */
76      public Integer getReceivingLineItemIdentifier() {
77          return receivingLineItemIdentifier;
78      }
79  
80      /**
81       * Sets receiving lineitem identifier.
82       *
83       * @param receivingLineItemIdentifier to set.
84       */
85      public void setReceivingLineItemIdentifier(Integer receivingLineItemIdentifier) {
86          this.receivingLineItemIdentifier = receivingLineItemIdentifier;
87      }
88  
89      /**
90       * Gets note type id.
91       *
92       * @return noteTypeId.
93       */
94      public Integer getNoteTypeId() {
95          return noteTypeId;
96      }
97  
98      /**
99       * 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() {
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 }