01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.kfs.document;
17:
18: import org.kuali.core.document.TransactionalDocument;
19: import org.kuali.module.chart.bo.AccountingPeriod;
20:
21: /**
22: * This defines methods common for all ledger posting.
23: */
24: public interface LedgerPostingDocument extends TransactionalDocument {
25: /**
26: * @return posting year for this document
27: */
28: public Integer getPostingYear();
29:
30: /**
31: * Sets the posting year for this document
32: *
33: * @param postingYear
34: */
35: public void setPostingYear(Integer postingYear);
36:
37: /**
38: * Gets the postingPeriodCode attribute. Part of <code>AccountingPeriod</code> Primary Key.
39: *
40: * @return Returns the postingPeriodCode.
41: */
42: public String getPostingPeriodCode();
43:
44: /**
45: * Sets the postingPeriodCode attribute value. Part of <code>AccountingPeriod</code> Primary Key.
46: *
47: * @param postingPeriodCode The postingPeriodCode to set.
48: */
49: public void setPostingPeriodCode(String postingPeriodCode);
50:
51: /**
52: * This method retrieves the accounting period associated with this document.
53: */
54: public AccountingPeriod getAccountingPeriod();
55:
56: /**
57: * This method sets the accounting period associated with this document.
58: *
59: * @param accountingPeriod
60: */
61: public void setAccountingPeriod(AccountingPeriod accountingPeriod);
62: }
|