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.ole.module.purap.businessobject.PurApItem;
19  import org.kuali.rice.core.api.util.type.KualiDecimal;
20  import org.kuali.rice.core.api.util.type.KualiInteger;
21  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22  
23  import java.util.LinkedHashMap;
24  
25  /**
26   * OLE RequisitionNotes Base Business Object.
27   */
28  public class OleRequisitionCopies extends PersistableBusinessObjectBase implements OleCopies {
29  
30      private Integer itemCopiesId;
31      private Integer itemIdentifier;
32      private KualiInteger parts;
33      private KualiDecimal itemCopies;
34      private String partEnumeration;
35      private String locationCopies;
36      private KualiInteger startingCopyNumber;
37      //private String       instanceId;
38      private String caption;
39      private String volumeNumber;
40  
41      private PurApItem purapItem;
42  
43      /**
44       * Constructs a OleRequisitionNotesBase.java.
45       */
46      public OleRequisitionCopies() {
47  
48      }
49  
50      public OleRequisitionCopies(KualiDecimal itemCopies, KualiInteger parts, String locationCopies,
51                                  KualiInteger startingCopyNumber) {
52          this.itemCopies = itemCopies;
53          this.parts = parts;
54          this.locationCopies = locationCopies;
55          this.startingCopyNumber = startingCopyNumber;
56      }
57  
58      /**
59       * get the RequisitionItem Copies Id
60       *
61       * @return itemCopiesId
62       * @see org.kuali.ole.select.businessobject.OleCopies#getItemCopiesId()
63       */
64      @Override
65      public Integer getItemCopiesId() {
66          return itemCopiesId;
67      }
68  
69  
70      @Override
71      public void setItemCopiesId(Integer itemCopiesId) {
72          this.itemCopiesId = itemCopiesId;
73      }
74  
75  
76      @Override
77      public Integer getItemIdentifier() {
78          return itemIdentifier;
79      }
80  
81  
82      @Override
83      public void setItemIdentifier(Integer itemIdentifier) {
84          this.itemIdentifier = itemIdentifier;
85      }
86  
87  
88      @Override
89      public String getPartEnumeration() {
90          return partEnumeration;
91      }
92  
93  
94      @Override
95      public void setPartEnumeration(String partEnumeration) {
96          this.partEnumeration = partEnumeration;
97      }
98  
99      @Override
100     public String getLocationCopies() {
101         return locationCopies;
102     }
103 
104     @Override
105     public void setLocationCopies(String locationCopies) {
106         this.locationCopies = locationCopies;
107     }
108 
109 
110     /**
111      * get the OleRequistionItem
112      *
113      * @return purapItem
114      * @see org.kuali.ole.select.businessobject.OleCopies#getPurapItem()
115      */
116 
117     public PurApItem getPurapItem() {
118         return purapItem;
119     }
120 
121     /**
122      * set the OleRequistionItem
123      *
124      * @param purapItem
125      * @see org.kuali.ole.select.businessobject.OleCopies#setReqItem(org.kuali.ole.module.purap.businessobject.PurApItem)
126      */
127 
128     public void setPurapItem(PurApItem purapItem) {
129         this.purapItem = purapItem;
130     }
131 
132     @Override
133     public KualiInteger getParts() {
134         return parts;
135     }
136 
137     @Override
138     public void setParts(KualiInteger parts) {
139         this.parts = parts;
140     }
141 
142     @Override
143     public KualiDecimal getItemCopies() {
144         return itemCopies;
145     }
146 
147     @Override
148     public void setItemCopies(KualiDecimal itemCopies) {
149         this.itemCopies = itemCopies;
150     }
151 
152     @Override
153     public KualiInteger getStartingCopyNumber() {
154         return startingCopyNumber;
155     }
156 
157     @Override
158     public void setStartingCopyNumber(KualiInteger startingCopyNumber) {
159         this.startingCopyNumber = startingCopyNumber;
160     }
161 
162     /*@Override
163     public String getInstanceId() {
164         return instanceId;
165     }
166 
167     @Override
168     public void setInstanceId(String instanceId) {
169         this.instanceId = instanceId;
170     }*/
171 
172     /**
173      * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
174      */
175     @SuppressWarnings("rawtypes")
176     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
177         LinkedHashMap map = new LinkedHashMap();
178         map.put("itemIdentifier", itemIdentifier);
179         map.put("itemCopiesId", itemCopiesId);
180         map.put("parts", parts);
181         map.put("itemCopies", itemCopies);
182         map.put("partEnumeration", partEnumeration);
183         map.put("locationCopies", locationCopies);
184         map.put("startingCopyNumber", startingCopyNumber);
185         map.put("caption", caption);
186         map.put("volumeNumber", volumeNumber);
187         // map.put("instanceId", instanceId);
188         return map;
189     }
190 
191 
192     public String getCaption() {
193         return caption;
194     }
195 
196     public void setCaption(String caption) {
197         this.caption = caption;
198     }
199 
200     public String getVolumeNumber() {
201         return volumeNumber;
202     }
203 
204     public void setVolumeNumber(String volumeNumber) {
205         this.volumeNumber = volumeNumber;
206     }
207 }