001 /* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.kfs.module.ld.businessobject.inquiry; 017 018 import java.util.Properties; 019 020 import org.kuali.kfs.module.ld.LaborConstants; 021 import org.kuali.kfs.module.ld.businessobject.LedgerEntryForExpenseTransfer; 022 import org.kuali.kfs.sys.KFSConstants; 023 024 /** 025 * Inquirable Implementation for Ledger Balance for Expense Transfer. This class is used to generate the URL for the user-defined 026 * attributes for the Ledger Balance screen. It is entended the KualiInquirableImpl class, so it covers both the default 027 * implementation and customized implemetnation. 028 */ 029 public class LedgerBalanceForExpenseTransferInquirableImpl extends LedgerBalanceInquirableImpl { 030 private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(LedgerBalanceForExpenseTransferInquirableImpl.class); 031 032 /** 033 * @see org.kuali.module.labor.web.inquirable.AbstractGeneralLedgerInquirableImpl#getLookupableImplAttributeName() 034 */ 035 protected String getLookupableImplAttributeName() { 036 return LaborConstants.BalanceInquiries.LEDGER_ENTRY_LOOKUPABLE_FOR_EXPENSE_TRANSFER; 037 } 038 039 /** 040 * @see org.kuali.module.labor.web.inquirable.AbstractGeneralLedgerInquirableImpl#getInquiryBusinessObjectClass(String) 041 */ 042 protected Class getInquiryBusinessObjectClass(String attributeName) { 043 return LedgerEntryForExpenseTransfer.class; 044 } 045 046 /** 047 * @see org.kuali.module.labor.web.inquirable.AbstractGeneralLedgerInquirableImpl#addMoreParameters(java.util.Properties, java.lang.String) 048 */ 049 protected void addMoreParameters(Properties parameter, String attributeName) { 050 parameter.put(KFSConstants.LOOKUPABLE_IMPL_ATTRIBUTE_NAME, getLookupableImplAttributeName()); 051 052 String periodCode = (String) getUserDefinedAttributeMap().get(attributeName); 053 parameter.put(KFSConstants.UNIVERSITY_FISCAL_PERIOD_CODE_PROPERTY_NAME, periodCode); 054 } 055 }