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.module.labor.web.inquirable;
17:
18: import java.util.Properties;
19:
20: import org.kuali.kfs.KFSConstants;
21: import org.kuali.module.labor.LaborConstants;
22: import org.kuali.module.labor.bo.LedgerEntryForExpenseTransfer;
23:
24: /**
25: * Inquirable Implementation for Ledger Balance for Expense Transfer. This class is used to generate the URL for the user-defined
26: * attributes for the Ledger Balance screen. It is entended the KualiInquirableImpl class, so it covers both the default
27: * implementation and customized implemetnation.
28: */
29: public class LedgerBalanceForExpenseTransferInquirableImpl extends
30: LedgerBalanceInquirableImpl {
31: private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger
32: .getLogger(LedgerBalanceForExpenseTransferInquirableImpl.class);
33:
34: /**
35: * @see org.kuali.module.labor.web.inquirable.AbstractGLInquirableImpl#getLookupableImplAttributeName()
36: */
37: protected String getLookupableImplAttributeName() {
38: return LaborConstants.BalanceInquiries.LEDGER_ENTRY_LOOKUPABLE_FOR_EXPENSE_TRANSFER;
39: }
40:
41: /**
42: * @see org.kuali.module.labor.web.inquirable.AbstractGLInquirableImpl#getInquiryBusinessObjectClass(String)
43: */
44: protected Class getInquiryBusinessObjectClass(String attributeName) {
45: return LedgerEntryForExpenseTransfer.class;
46: }
47:
48: /**
49: * @see org.kuali.module.labor.web.inquirable.AbstractGLInquirableImpl#addMoreParameters(java.util.Properties, java.lang.String)
50: */
51: protected void addMoreParameters(Properties parameter,
52: String attributeName) {
53: parameter.put(KFSConstants.LOOKUPABLE_IMPL_ATTRIBUTE_NAME,
54: getLookupableImplAttributeName());
55:
56: String periodCode = (String) getUserDefinedAttributeMap().get(
57: attributeName);
58: parameter
59: .put(
60: KFSConstants.UNIVERSITY_FISCAL_PERIOD_CODE_PROPERTY_NAME,
61: periodCode);
62: }
63: }
|