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; 017 018 import java.util.HashMap; 019 import java.util.List; 020 import java.util.Map; 021 022 import org.kuali.kfs.module.ld.LaborPropertyConstants; 023 import org.kuali.kfs.sys.KFSPropertyConstants; 024 import org.kuali.kfs.sys.businessobject.BusinessObjectStringParserFieldUtils; 025 import org.kuali.kfs.sys.context.SpringContext; 026 import org.kuali.rice.kns.bo.BusinessObject; 027 import org.kuali.rice.kns.datadictionary.AttributeDefinition; 028 import org.kuali.rice.kns.service.DataDictionaryService; 029 030 /** 031 * This class has utility methods for OriginEntry 032 */ 033 public class LaborOriginEntryFieldUtil extends BusinessObjectStringParserFieldUtils { 034 035 /** 036 * Returns the class to parse into LaborOriginEntry 037 * @see org.kuali.kfs.sys.businessobject.BusinessObjectStringParserFieldUtils#getBusinessObjectClass() 038 */ 039 @Override 040 public Class<? extends BusinessObject> getBusinessObjectClass() { 041 return LaborOriginEntry.class; 042 } 043 044 /** 045 * Returns the fields, in order, to parse to create a LaborOriginEntry 046 * @see org.kuali.kfs.sys.businessobject.BusinessObjectStringParserFieldUtils#getOrderedProperties() 047 */ 048 @Override 049 public String[] getOrderedProperties() { 050 return new String[] { 051 KFSPropertyConstants.UNIVERSITY_FISCAL_YEAR, 052 KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE, 053 KFSPropertyConstants.ACCOUNT_NUMBER, 054 KFSPropertyConstants.SUB_ACCOUNT_NUMBER, 055 KFSPropertyConstants.FINANCIAL_OBJECT_CODE, 056 KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE, 057 KFSPropertyConstants.FINANCIAL_BALANCE_TYPE_CODE, 058 KFSPropertyConstants.FINANCIAL_OBJECT_TYPE_CODE, 059 KFSPropertyConstants.UNIVERSITY_FISCAL_PERIOD_CODE, 060 KFSPropertyConstants.FINANCIAL_DOCUMENT_TYPE_CODE, 061 KFSPropertyConstants.FINANCIAL_SYSTEM_ORIGINATION_CODE, 062 KFSPropertyConstants.DOCUMENT_NUMBER, 063 KFSPropertyConstants.TRANSACTION_ENTRY_SEQUENCE_NUMBER, 064 KFSPropertyConstants.POSITION_NUMBER, 065 KFSPropertyConstants.PROJECT_CODE, 066 KFSPropertyConstants.TRANSACTION_LEDGER_ENTRY_DESC, 067 KFSPropertyConstants.TRANSACTION_LEDGER_ENTRY_AMOUNT, 068 KFSPropertyConstants.TRANSACTION_DEBIT_CREDIT_CODE, 069 070 KFSPropertyConstants.TRANSACTION_DATE, 071 KFSPropertyConstants.ORGANIZATION_DOCUMENT_NUMBER, 072 KFSPropertyConstants.ORGANIZATION_REFERENCE_ID, 073 KFSPropertyConstants.REFERENCE_FIN_DOCUMENT_TYPE_CODE, 074 KFSPropertyConstants.FIN_SYSTEM_REF_ORIGINATION_CODE, 075 KFSPropertyConstants.FINANCIAL_DOCUMENT_REFERENCE_NBR, 076 KFSPropertyConstants.FINANCIAL_DOCUMENT_REVERSAL_DATE, 077 KFSPropertyConstants.TRANSACTION_ENCUMBRANCE_UPDT_CD, 078 079 KFSPropertyConstants.TRANSACTION_POSTING_DATE, 080 KFSPropertyConstants.PAY_PERIOD_END_DATE, 081 KFSPropertyConstants.TRANSACTION_TOTAL_HOURS, 082 KFSPropertyConstants.PAYROLL_END_DATE_FISCAL_YEAR, 083 LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_PERIOD_CODE, 084 KFSPropertyConstants.EMPLID, 085 KFSPropertyConstants.EMPLOYEE_RECORD, 086 KFSPropertyConstants.EARN_CODE, 087 KFSPropertyConstants.PAY_GROUP, 088 LaborPropertyConstants.SALARY_ADMINISTRATION_PLAN, 089 LaborPropertyConstants.GRADE, 090 LaborPropertyConstants.RUN_IDENTIFIER, 091 LaborPropertyConstants.LABORLEDGER_ORIGINAL_CHART_OF_ACCOUNTS_CODE, 092 LaborPropertyConstants.LABORLEDGER_ORIGINAL_ACCOUNT_NUMBER, 093 LaborPropertyConstants.LABORLEDGER_ORIGINAL_SUB_ACCOUNT_NUMBER, 094 LaborPropertyConstants.LABORLEDGER_ORIGINAL_FINANCIAL_OBJECT_CODE, 095 LaborPropertyConstants.LABORLEDGER_ORIGINAL_FINANCIAL_SUB_OBJECT_CODE, 096 LaborPropertyConstants.HRMS_COMPANY, 097 LaborPropertyConstants.SET_ID 098 }; 099 } 100 }