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.gl.businessobject;
017
018 import java.util.LinkedHashMap;
019 import java.util.List;
020
021 import org.apache.commons.lang.ArrayUtils;
022 import org.kuali.kfs.coa.service.ObjectTypeService;
023 import org.kuali.kfs.sys.KFSConstants;
024 import org.kuali.kfs.sys.context.SpringContext;
025 import org.kuali.rice.kns.bo.TransientBusinessObjectBase;
026 import org.kuali.rice.kns.service.KualiConfigurationService;
027 import org.kuali.rice.kns.util.KualiDecimal;
028
029 /**
030 * This class represents a poster output summary entry
031 */
032 public class PosterOutputSummaryEntry extends PosterOutputSummaryBalanceTypeFiscalYearAndPeriodTotal {
033 private String fundGroup;
034
035 /**
036 * Constructs a PosterOutputSummaryEntry object
037 * @param balanceTypeCode the balance type code to set
038 * @param universityFiscalYear the fiscal year to set
039 * @param fiscalPeriodCode the fiscal period code to set
040 * @param fundGroupCode the fund group code to set
041 */
042 public PosterOutputSummaryEntry(String balanceTypeCode, Integer universityFiscalYear, String fiscalPeriodCode, String fundGroupCode) {
043 super(balanceTypeCode, universityFiscalYear, fiscalPeriodCode);
044 this.fundGroup = fundGroupCode;
045 }
046
047 public String getFundGroup() {
048 return fundGroup;
049 }
050
051 /**
052 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
053 */
054 @Override
055 protected LinkedHashMap toStringMapper() {
056 LinkedHashMap pks = new LinkedHashMap<String, Object>();
057 pks.put("universityFiscalYear", this.getUniversityFiscalYear());
058 pks.put("fiscalPeriodCode",this.getFiscalPeriodCode());
059 pks.put("balanceTypeCode",this.getBalanceTypeCode());
060 pks.put("fundGroup",this.getFundGroup());
061 pks.put("objectTypeCode",this.getObjectTypeCode());
062 pks.put("creditAmount",this.getCreditAmount());
063 pks.put("debitAmount",this.getDebitAmount());
064 pks.put("budgetAmount",this.getBudgetAmount());
065 pks.put("netAmount",this.getNetAmount());
066 return pks;
067 }
068
069 }