View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.kuali.kfs.module.ld.businessobject;
20  
21  import org.kuali.kfs.module.ld.LaborPropertyConstants;
22  import org.kuali.kfs.sys.KFSPropertyConstants;
23  import org.kuali.kfs.sys.businessobject.BusinessObjectStringParserFieldUtils;
24  import org.kuali.rice.krad.bo.BusinessObject;
25  
26  /**
27   * This class has utility methods for OriginEntry
28   */
29  public class LaborOriginEntryFieldUtil extends BusinessObjectStringParserFieldUtils {
30  
31      /**
32       * Returns the class to parse into LaborOriginEntry
33       * @see org.kuali.kfs.sys.businessobject.BusinessObjectStringParserFieldUtils#getBusinessObjectClass()
34       */
35      @Override
36      public Class<? extends BusinessObject> getBusinessObjectClass() {
37          return LaborOriginEntry.class;
38      }
39  
40      /**
41       * Returns the fields, in order, to parse to create a LaborOriginEntry
42       * @see org.kuali.kfs.sys.businessobject.BusinessObjectStringParserFieldUtils#getOrderedProperties()
43       */
44      @Override
45      public String[] getOrderedProperties() {
46          return new String[] {
47                  KFSPropertyConstants.UNIVERSITY_FISCAL_YEAR,
48                  KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE,
49                  KFSPropertyConstants.ACCOUNT_NUMBER,
50                  KFSPropertyConstants.SUB_ACCOUNT_NUMBER,
51                  KFSPropertyConstants.FINANCIAL_OBJECT_CODE,
52                  KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE,
53                  KFSPropertyConstants.FINANCIAL_BALANCE_TYPE_CODE,
54                  KFSPropertyConstants.FINANCIAL_OBJECT_TYPE_CODE,
55                  KFSPropertyConstants.UNIVERSITY_FISCAL_PERIOD_CODE,
56                  KFSPropertyConstants.FINANCIAL_DOCUMENT_TYPE_CODE,
57                  KFSPropertyConstants.FINANCIAL_SYSTEM_ORIGINATION_CODE,
58                  KFSPropertyConstants.DOCUMENT_NUMBER,
59                  KFSPropertyConstants.TRANSACTION_ENTRY_SEQUENCE_NUMBER,
60                  KFSPropertyConstants.POSITION_NUMBER,
61                  KFSPropertyConstants.PROJECT_CODE,
62                  KFSPropertyConstants.TRANSACTION_LEDGER_ENTRY_DESC,
63                  KFSPropertyConstants.TRANSACTION_LEDGER_ENTRY_AMOUNT,
64                  KFSPropertyConstants.TRANSACTION_DEBIT_CREDIT_CODE,
65                  
66                  KFSPropertyConstants.TRANSACTION_DATE,
67                  KFSPropertyConstants.ORGANIZATION_DOCUMENT_NUMBER,
68                  KFSPropertyConstants.ORGANIZATION_REFERENCE_ID,
69                  KFSPropertyConstants.REFERENCE_FIN_DOCUMENT_TYPE_CODE,
70                  KFSPropertyConstants.FIN_SYSTEM_REF_ORIGINATION_CODE,
71                  KFSPropertyConstants.FINANCIAL_DOCUMENT_REFERENCE_NBR,
72                  KFSPropertyConstants.FINANCIAL_DOCUMENT_REVERSAL_DATE,
73                  KFSPropertyConstants.TRANSACTION_ENCUMBRANCE_UPDT_CD,
74                  
75                  KFSPropertyConstants.TRANSACTION_POSTING_DATE,
76                  KFSPropertyConstants.PAY_PERIOD_END_DATE,
77                  KFSPropertyConstants.TRANSACTION_TOTAL_HOURS,
78                  KFSPropertyConstants.PAYROLL_END_DATE_FISCAL_YEAR,
79                  LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_PERIOD_CODE,
80                  KFSPropertyConstants.EMPLID, 
81                  KFSPropertyConstants.EMPLOYEE_RECORD, 
82                  KFSPropertyConstants.EARN_CODE, 
83                  KFSPropertyConstants.PAY_GROUP, 
84                  LaborPropertyConstants.SALARY_ADMINISTRATION_PLAN, 
85                  LaborPropertyConstants.GRADE, 
86                  LaborPropertyConstants.RUN_IDENTIFIER, 
87                  LaborPropertyConstants.LABORLEDGER_ORIGINAL_CHART_OF_ACCOUNTS_CODE, 
88                  LaborPropertyConstants.LABORLEDGER_ORIGINAL_ACCOUNT_NUMBER, 
89                  LaborPropertyConstants.LABORLEDGER_ORIGINAL_SUB_ACCOUNT_NUMBER, 
90                  LaborPropertyConstants.LABORLEDGER_ORIGINAL_FINANCIAL_OBJECT_CODE, 
91                  LaborPropertyConstants.LABORLEDGER_ORIGINAL_FINANCIAL_SUB_OBJECT_CODE, 
92                  LaborPropertyConstants.HRMS_COMPANY, 
93                  LaborPropertyConstants.SET_ID
94                  };
95      }
96  }