001/** 002 * Copyright 2004-2014 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 */ 016package org.kuali.kpme.pm; 017 018import java.util.ArrayList; 019import java.util.LinkedHashMap; 020import java.util.List; 021import java.util.Map; 022 023import org.kuali.kpme.core.api.KPMEConstants; 024 025public class PMConstants { 026 027 public static final String WILDCARD_CHARACTER = "*"; 028 029 public static final String PSTN_QLFR_TEXT = "Text"; 030 public static final String PSTN_QLFR_NUMBER = "Number"; 031 public static final String PSTN_QLFR_SELECT = "Select"; 032 033 034 public static final List<String> PSTN_QLFR_TYPE_VALUE_LIST = new ArrayList<String>(); 035 036 static { 037 PSTN_QLFR_TYPE_VALUE_LIST.add(PSTN_QLFR_TEXT); 038 PSTN_QLFR_TYPE_VALUE_LIST.add(PSTN_QLFR_NUMBER); 039 PSTN_QLFR_TYPE_VALUE_LIST.add(PSTN_QLFR_SELECT); 040 } 041 042 043 public static final class PSTN_CLSS_QLFR_VALUE { 044 public static final String EQUAL = "="; 045 public static final String GREATER_THAN = ">"; 046 public static final String GREATER_EQUAL = ">="; 047 public static final String LESS_THAN = "<"; 048 public static final String LESS_EQUAL = "<="; 049 } 050 051 public static final class PSTN_CLSS_QLFR_STRING_VALUE { 052 public static final String EQUAL = "Equal to"; 053 public static final String GREATER_THAN = "Greater than"; 054 public static final String GREATER_EQUAL = "Greater than or equal to"; 055 public static final String LESS_THAN = "Less than"; 056 public static final String LESS_EQUAL = "Less than or equal to"; 057 } 058 059 public static final Map<String, String> PSTN_CLSS_QLFR_VALUE_MAP = new LinkedHashMap<String, String>(2); 060 static { 061 PSTN_CLSS_QLFR_VALUE_MAP.put(PSTN_CLSS_QLFR_VALUE.EQUAL, PSTN_CLSS_QLFR_VALUE.EQUAL); 062 PSTN_CLSS_QLFR_VALUE_MAP.put(PSTN_CLSS_QLFR_VALUE.GREATER_THAN, PSTN_CLSS_QLFR_VALUE.GREATER_THAN); 063 PSTN_CLSS_QLFR_VALUE_MAP.put(PSTN_CLSS_QLFR_VALUE.GREATER_EQUAL, PSTN_CLSS_QLFR_VALUE.GREATER_EQUAL); 064 PSTN_CLSS_QLFR_VALUE_MAP.put(PSTN_CLSS_QLFR_VALUE.LESS_THAN, PSTN_CLSS_QLFR_VALUE.LESS_THAN); 065 PSTN_CLSS_QLFR_VALUE_MAP.put(PSTN_CLSS_QLFR_VALUE.LESS_EQUAL, PSTN_CLSS_QLFR_VALUE.LESS_EQUAL); 066 } 067 068 public static final class CacheNamespace { 069 public static final String MODULE_NAME = "pm"; 070 public static final String NAMESPACE_PREFIX = KPMEConstants.CacheNamespace.ROOT_NAMESPACE_PREFIX + "/" 071 + MODULE_NAME + "/"; 072 } 073 074 075 // Position Process Category 076 public static final String PSTN_PROCESS_NEW = "New"; 077 public static final String PSTN_PROCESS_REORG = "Reorganization"; 078 public static final String PSTN_PROCESS_RECLASS = "Reclassification"; 079 public static final String PSTN_PROCESS_UPDATE = "Data Update"; 080 public static final String PSTN_PROCESS_STATUS = "Change Status"; 081 082 public static final List<String> PSTN_PROCESS_LIST = new ArrayList<String>(); 083 static { 084 PSTN_PROCESS_LIST.add(PSTN_PROCESS_NEW); 085 PSTN_PROCESS_LIST.add(PSTN_PROCESS_REORG); 086 PSTN_PROCESS_LIST.add(PSTN_PROCESS_RECLASS); 087 PSTN_PROCESS_LIST.add(PSTN_PROCESS_UPDATE); 088 PSTN_PROCESS_LIST.add(PSTN_PROCESS_STATUS); 089 } 090 091 // Position Status 092 public static final class PSTN_STATUS { 093 public static final String NEW = "New"; 094 public static final String FILLED = "Filled"; 095 public static final String VACANT = "Vacant"; 096 public static final String INACTIVE = "Inactive"; 097 } 098 099 public static final Map<String, String> PSTN_STATUS_MAP = new LinkedHashMap<String, String>(2); 100 static { 101 PSTN_STATUS_MAP.put(PSTN_STATUS.NEW, PSTN_STATUS.NEW); 102 PSTN_STATUS_MAP.put(PSTN_STATUS.FILLED, PSTN_STATUS.FILLED); 103 PSTN_STATUS_MAP.put(PSTN_STATUS.VACANT, PSTN_STATUS.VACANT); 104 PSTN_STATUS_MAP.put(PSTN_STATUS.INACTIVE, PSTN_STATUS.INACTIVE); 105 } 106}