1 /*
2 * Copyright 2007-2009 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.module.purap.businessobject;
17
18 import org.kuali.ole.sys.OLEConstants;
19 import org.kuali.rice.krad.bo.Note;
20
21 import java.util.List;
22
23 /**
24 * Electronic invoice View Business Object.
25 */
26 public class ElectronicInvoiceRejectView extends AbstractRelatedView {
27
28 private Integer paymentRequestIdentifier;
29 private Integer purchaseOrderIdentifier;
30
31 @Override
32 public String getDocumentIdentifierString() {
33 return getDocumentNumber();
34 }
35
36 /**
37 * Gets the paymentRequestIdentifier attribute.
38 *
39 * @return Returns the paymentRequestIdentifier.
40 */
41 public Integer getPaymentRequestIdentifier() {
42 return paymentRequestIdentifier;
43 }
44
45 /**
46 * Sets the paymentRequestIdentifier attribute value.
47 *
48 * @param paymentRequestIdentifier The paymentRequestIdentifier to set.
49 */
50 public void setPaymentRequestIdentifier(Integer paymentRequestIdentifier) {
51 this.paymentRequestIdentifier = paymentRequestIdentifier;
52 }
53
54 public Integer getPurchaseOrderIdentifier() {
55 return purchaseOrderIdentifier;
56 }
57
58 public void setPurchaseOrderIdentifier(Integer purchaseOrderIdentifier) {
59 this.purchaseOrderIdentifier = purchaseOrderIdentifier;
60 }
61
62 /**
63 * The next three methods are overridden but shouldn't be! If they aren't
64 * overridden, they don't show up in the tag, not sure why at this point! (AAP)
65 *
66 * @see org.kuali.ole.module.purap.businessobject.AbstractRelatedView#getPurapDocumentIdentifier()
67 */
68 @Override
69 public Integer getPurapDocumentIdentifier() {
70 return super.getPurapDocumentIdentifier();
71 }
72
73 /**
74 * @see org.kuali.ole.module.purap.businessobject.AbstractRelatedView#getNotes()
75 */
76 @Override
77 public List<Note> getNotes() {
78 return super.getNotes();
79 }
80
81 /**
82 * @see org.kuali.ole.module.purap.businessobject.AbstractRelatedView#getDocumentTypeName()
83 */
84 @Override
85 public String getDocumentTypeName() {
86 return OLEConstants.FinancialDocumentTypeCodes.ELECTRONIC_INVOICE_REJECT;
87 }
88
89 /**
90 * @see org.kuali.ole.module.purap.businessobject.AbstractRelatedView#getUrl()
91 */
92 @Override
93 public String getUrl() {
94 return super.getUrl();
95 }
96 }