View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
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.ole.pdp;
17  
18  import org.kuali.ole.sys.OLEConstants;
19  
20  /**
21   * Contains general PDP constants.
22   */
23  public class PdpConstants {
24      public static final String PDP_FILE_UPLOAD_FILE_PREFIX = "pdp_payment_file";
25      public static final String PAYMENT_FILE_TYPE_INDENTIFIER = "paymentInputFileType";
26      public static final String PAYMENT_LOAD_CREATE_DATE_SEPARATOR = "T";
27      public static final String PAYMENT_LOAD_CREATE_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
28      public static final String PDP_FDOC_TYPE_CODE = "PDP";
29      public static final String PDP_FDOC_ORIGIN_CODE = "01";
30      public static final String ACH_ACCOUNT_IDENTIFIER_SEQUENCE_NAME = "PDP_ACH_ACCT_GNRTD_ID_SEQ";
31      public static final String PDP_EXTRACT_JOB_NAME = "pdpExtractChecksJob";
32      public static final String ACH_TRANSACTION_TYPE_DEFAULT = "22";
33      public static final String ACH_BANK_DATA_VIEW_CODE_DEFAULT = "1";
34      public static final String ACH_BANK_INSTITUTION_CODE_DEFAULT = "1";
35      public static final String PDP_CUST_ID_SEQUENCE_NAME = "PDP_CUST_ID_SEQ";
36      public static final String SECURE_SOCKET_PROTOCOL = "SSL";
37      
38      public static final int CHECK_NUMBER_PLACEHOLDER_VALUE = -1;
39  
40      public static class PayeeIdTypeCodes {
41          public static String SSN = "S";
42          public static String EMPLOYEE = "E";
43          public static String ENTITY = "T";
44          public static String FEIN = "F";
45          public static String VENDOR_ID = "V";
46          public static String OTHER = "X";
47      }
48  
49      public static class DisbursementTypeCodes {
50          public static String CHECK = "CHCK";
51          public static String ACH = "ACH";
52      }
53  
54      public static class PaymentChangeCodes {
55          public static final String CANCEL_DISBURSEMENT = "CD";
56          public static final String CANCEL_REISSUE_DISBURSEMENT = "CRD";
57          public static final String REISSUE_DISBURSEMENT = "RC";
58          public static final String CANCEL_BATCH_CHNG_CD = "CB";
59          public static final String HOLD_BATCH_CHNG_CD = "HB";
60          public static final String REMOVE_HOLD_BATCH_CHNG_CD = "RHB";
61          public static final String CANCEL_PAYMENT_CHNG_CD = "CP";
62          public static final String HOLD_CHNG_CD = "HP";
63          public static final String CHANGE_IMMEDIATE_CHNG_CD = "IMP";
64          public static final String REMOVE_HOLD_CHNG_CD = "RHP";
65          public static final String BANK_CHNG_CD = "BC";
66      }
67  
68      public static class PaymentStatusCodes {
69          public static String FORMAT = "FORM";
70          public static String OPEN = OLEConstants.PdpConstants.PAYMENT_OPEN_STATUS_CODE;
71          public static String CANCEL_DISBURSEMENT = "CDIS";
72          public static String CANCEL_PAYMENT = "CPAY";
73          public static String EXTRACTED = "EXTR";
74          public static String PENDING_ACH = "PACH";
75          public static String PENDING_CHECK = "PCHK";
76          public static final String HELD_TAX_ALL = "HTXA";
77          public static final String HELD_TAX_ALL_FOR_SEARCH = "HTX*";
78          public static final String HELD_CD = "HELD";
79          public static final String HELD_TAX_EMPLOYEE_CD = "HTXE";
80          public static final String HELD_TAX_NRA_CD = "HTXN";
81          public static final String HELD_TAX_NRA_EMPL_CD = "HTXB";
82      }
83      
84      public static class Actions{
85          public static final String BATCH_SEARCH_DETAIL_ACTION = "batchDetail.do";
86          public static final String PAYMENT_DETAIL_ACTION = "pdp/paymentdetail.do";
87          public static final String FORMAT_PROCESS_ACTION = "pdp/format.do";
88      }
89      
90      public static class ActionMethods{
91          public static final String CONFIRM_CANCEL_ACTION = "confirmAndCancel";
92          public static final String CONFIRM_REMOVE_HOLD_ACTION = "confirmAndRemoveHold";
93          public static final String CONFIRM_HOLD_ACTION = "confirmAndHold";
94          public static final String CONFIRM_REMOVE_IMMEDIATE_PRINT_ACTION = "confirmAndRemoveImmediate";
95          public static final String CONFIRM_SET_IMMEDIATE_PRINT_ACTION = "confirmAndSetImmediate";
96          public static final String CONFIRM_DISBURSEMENT_CANCEL_ACTION = "confirmAndCancelDisbursement";
97          public static final String CONFIRM_REISSUE_ACTION = "confirmAndReIssue";
98          public static final String CONFIRM_REISSUE_CANCEL_ACTION = "confirmAndReIssueCancel";
99          public static final String CLEAR_FORMAT_PROCESS_ACTION = "clearUnfinishedFormat";
100     }
101     
102     public static class AccountChangeCodes {
103         public static final String INVALID_ACCOUNT = "ACCT";
104         public static final String INVALID_SUB_ACCOUNT = "SA";
105         public static final String INVALID_OBJECT = "OBJ";
106         public static final String INVALID_SUB_OBJECT = "SO";
107         public static final String INVALID_PROJECT = "PROJ";
108     }
109     
110     public static class PaymentTypes {
111         public static final String ALL = "all";
112         public static final String DISBURSEMENTS_WITH_ATTACHMENTS = "pymtAttachment";
113         public static final String DISBURSEMENTS_NO_ATTACHMENTS = "pymtAttachmentFalse";
114         public static final String DISBURSEMENTS_WITH_SPECIAL_HANDLING = "pymtSpecialHandling";
115         public static final String DISBURSEMENTS_NO_SPECIAL_HANDLING = "pymtSpecialHandlingFalse";
116         public static final String PROCESS_IMMEDIATE = "immediate";
117     }
118     
119     public static final String MAPPING_SELECTION = "selection";
120     public static final String MAPPING_CONTINUE = "continue";
121     public static final String MAPPING_FINISHED = "finished";
122     
123     public static class PDPEditMode {
124         public static final String ENTRY = "entry";
125     }
126     
127     public static class AchBankOfficeCodes {
128         public static final String AchBankOfficeCode_O = "O";
129         public static final String AchBankOfficeCode_B = "B";
130     }
131     
132     public static class AchBankTypeCodes {
133         public static final String AchBankTypeCode_0 = "0";
134         public static final String AchBankTypeCode_1 = "1";
135         public static final String AchBankTypeCode_2 = "2";
136     }
137     
138     public static class PermissionNames{
139         public static final String CANCEL_PAYMENT = "Cancel Payment";
140         public static final String FORMAT = "Format";
141         public static final String HOLD_PAYMENT_REMOVE_NON_TAX_PAYMENT_HOLD = "Hold Payment / Remove Non-Tax Payment Hold";
142         public static final String REMOVE_FORMAT_LOCK = "Remove Format Lock";
143         public static final String REMOVE_PAYMENT_TAX_HOLD = "Remove Payment Tax Hold";
144         public static final String SET_AS_IMMEDIATE_PAY = "Set as Immmediate Pay";
145     }
146     
147     public static class MethodToCallNames {
148         public static final String START = "start";
149         
150     }
151 }