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 Exception Notes.
24   */
25  
26  public class OleCorrectionReceivingItemExceptionNotes extends PersistableBusinessObjectBase {
27  
28      private Integer receivingCorrectionItemExceptionId;
29      private Integer receivingItemIdentifier;
30      private Integer exceptionTypeId;
31      private String exceptionNotes;
32      private OleExceptionType exceptionType;
33      private OleLineItemReceivingItem receivingLineItem;
34  
35      /**
36       * Default Constructor
37       */
38      public OleCorrectionReceivingItemExceptionNotes() {
39  
40      }
41  
42      /**
43       * Constructs a OleCorrectionReceivingItemReceiptNotes with notes populated from Line Item Receiving
44       *
45       * @param oleReceivingNotes
46       */
47      public OleCorrectionReceivingItemExceptionNotes(OleReceivingLineExceptionNotes oleExceptionNotes) {
48          this.setExceptionTypeId(oleExceptionNotes.getExceptionTypeId());
49          this.setExceptionNotes(oleExceptionNotes.getExceptionNotes());
50      }
51  
52      /**
53       * Gets receiving correction lineitem exceptionId.
54       *
55       * @return receivingCorrectionItemExceptionId.
56       */
57      public Integer getReceivingCorrectionItemExceptionId() {
58          return receivingCorrectionItemExceptionId;
59      }
60  
61      /**
62       * Sets receiving correction lineitem exceptionId.
63       *
64       * @param receivingCorrectionItemExceptionId
65       *         to set.
66       */
67      public void setReceivingCorrectionItemExceptionId(Integer receivingCorrectionItemExceptionId) {
68          this.receivingCorrectionItemExceptionId = receivingCorrectionItemExceptionId;
69      }
70  
71      /**
72       * Gets receiving correction lineitem identifier.
73       *
74       * @return receivingCorrectionItemIdentifier.
75       */
76      public Integer getReceivingItemIdentifier() {
77          return receivingItemIdentifier;
78      }
79  
80      /**
81       * Sets receiving correction lineitem identifier.
82       *
83       * @param receivingCorrectionItemIdentifier
84       *         to set.
85       */
86      public void setReceivingItemIdentifier(Integer receivingItemIdentifier) {
87          this.receivingItemIdentifier = receivingItemIdentifier;
88      }
89  
90      /**
91       * Gets exception type id.
92       *
93       * @return exceptionTypeId.
94       */
95      public Integer getExceptionTypeId() {
96          return exceptionTypeId;
97      }
98  
99      /**
100      * Sets exception type id.
101      *
102      * @param exceptionTypeId to set.
103      */
104     public void setExceptionTypeId(Integer exceptionTypeId) {
105         this.exceptionTypeId = exceptionTypeId;
106     }
107 
108     /**
109      * Gets exception notes.
110      *
111      * @return exceptionNotes.
112      */
113     public String getExceptionNotes() {
114         return exceptionNotes;
115     }
116 
117     /**
118      * Sets exception notes.
119      *
120      * @param exceptionNotes to set.
121      */
122     public void setExceptionNotes(String exceptionNotes) {
123         this.exceptionNotes = exceptionNotes;
124     }
125 
126     /**
127      * Gets OleExceptionType.
128      *
129      * @return exceptionType.
130      */
131     public OleExceptionType getExceptionType() {
132         return exceptionType;
133     }
134 
135     /**
136      * Sets OleExceptionType.
137      *
138      * @param exceptionType to set.
139      */
140     public void setExceptionType(OleExceptionType exceptionType) {
141         this.exceptionType = exceptionType;
142     }
143 
144     /**
145      * Gets OleLineItemReceivingItem.
146      *
147      * @return receivingLineItem.
148      */
149     public OleLineItemReceivingItem getReceivingLineItem() {
150         return receivingLineItem;
151     }
152 
153     /**
154      * Sets OleLineItemReceivingItem.
155      *
156      * @param receivingLineItem.
157      */
158     public void setReceivingLineItem(OleLineItemReceivingItem receivingLineItem) {
159         this.receivingLineItem = receivingLineItem;
160     }
161 
162     /**
163      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
164      */
165 
166     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
167         LinkedHashMap map = new LinkedHashMap();
168         map.put("receivingCorrectionItemExceptionId", receivingCorrectionItemExceptionId);
169         map.put("receivingItemIdentifier", receivingItemIdentifier);
170         map.put("exceptionTypeId", exceptionTypeId);
171         map.put("exceptionNotes", exceptionNotes);
172 
173         return map;
174     }
175 }