001/* 002 * Copyright 2007 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.ole.module.purap; 017 018 019/** 020 * Defines constants used in authorization-related code. 021 */ 022public class PurapAuthorizationConstants { 023 024 public static class RequisitionEditMode { 025 public static final String ALLOW_POSTING_YEAR_ENTRY = "allowPostingYearEntry"; 026 public static final String LOCK_VENDOR_ENTRY = "lockVendorEntry"; 027 public static final String LOCK_CONTENT_ENTRY = "lockContentEntry"; 028 public static final String ALLOW_FISCAL_ENTRY = "allowFiscalEntry"; 029 public static final String ALLOW_ITEM_ENTRY = "allowItemEntry"; 030 public static final String DISPLAY_RECEIVING_ADDRESS = "displayReceivingAddress"; 031 public static final String LOCK_ADDRESS_TO_VENDOR = "lockAddressToVendor"; 032 public static final String LOCK_TAX_AMOUNT_ENTRY = "lockTaxAmountEntry"; 033 public static final String CLEAR_ALL_TAXES = "clearAllTaxes"; 034 public static final String LOCK_B2B_ENTRY = "lockB2BEntry"; 035 public static final String RESTRICT_FISCAL_ENTRY = "restrictFiscalEntry"; 036 public static final String ENABLE_COMMODITY_CODE = "enableCommodityCode"; 037 public static final String ENABLE_CREATE_BIBEDITOR = "enableCreateBibEditor"; 038 public static final String ENABLE_EDIT_BIBEDITOR = "enableEditBibEditor"; 039 //public static final String ENABLE_LICENSE_INDICATOR = "enableLicenseIndicator"; 040 public static final String ENABLE_ROUTE_BUTTONS = "enableRouteButtons"; 041 042 } 043 044 public static class PurchaseOrderEditMode { 045 public static final String ALLOW_POSTING_YEAR_ENTRY = "allowPostingYearEntry"; 046 public static final String LOCK_VENDOR_ENTRY = "lockVendorEntry"; 047 public static final String LOCK_INTERNAL_PURCHASING_ENTRY = "lockInternalPurchasingEntry"; 048 public static final String DISPLAY_RETRANSMIT_TAB = "displayRetransmitTab"; 049 public static final String AMENDMENT_ENTRY = "amendmentEntry"; 050 public static final String PRE_ROUTE_CHANGEABLE = "preRoute"; 051 public static final String DISPLAY_RECEIVING_ADDRESS = "displayReceivingAddress"; 052 public static final String SPLITTING_ITEM_SELECTION = "splittingItemSelection"; 053 public static final String UNORDERED_ITEM_ACCOUNT_ENTRY = "unorderedItemAccountEntry"; 054 public static final String LOCK_TAX_AMOUNT_ENTRY = "lockTaxAmountEntry"; 055 public static final String CLEAR_ALL_TAXES = "clearAllTaxes"; 056 public static final String LOCK_B2B_ENTRY = "lockB2BEntry"; 057 public static final String PRINT_PURCHASE_ORDER = "printPurchaseOrder"; 058 public static final String PREVIEW_PRINT_PURCHASE_ORDER = "previewPrintPurchaseOrder"; 059 public static final String RESEND_PURCHASE_ORDER = "resendPurchaseOrder"; 060 public static final String ASSIGN_SENSITIVE_DATA = "assignSensitiveData"; 061 public static final String ENABLE_COMMODITY_CODE = "enableCommodityCode"; 062 public static final String EDITABLE_FUNDING_SOURCE = "editableFundingSource"; 063 } 064 065 public static class PaymentRequestEditMode { 066 public static final String PURAP_TAX_ENABLED = "purapTaxEnabled"; 067 public static final String LOCK_VENDOR_ENTRY = "lockVendorEntry"; 068 public static final String DISPLAY_INIT_TAB = "displayInitTab"; 069 public static final String ALLOW_FISCAL_ENTRY = "allowFiscalEntry"; 070 public static final String EDIT_PRE_EXTRACT = "editPreExtract"; 071 public static final String LOCK_TAX_AMOUNT_ENTRY = "lockTaxAmountEntry"; 072 public static final String CLEAR_ALL_TAXES = "clearAllTaxes"; 073 public static final String TAX_INFO_VIEWABLE = "taxInfoViewable"; 074 public static final String TAX_AREA_EDITABLE = "taxAreaEditable"; 075 public static final String RESTRICT_FISCAL_ENTRY = "restrictFiscalEntry"; 076 public static final String ALLOW_CLOSE_PURCHASE_ORDER = "allowClosePurchaseOrder"; 077 public static final String ACCOUNTS_PAYABLE_PROCESSOR_CANCEL = "processorCancel"; 078 public static final String ACCOUNTS_PAYABLE_MANAGER_CANCEL = "managerCancel"; 079 public static final String REQUEST_CANCEL = "requestPaymentRequestCancel"; 080 public static final String HOLD = "requestPaymentRequestHold"; 081 public static final String REMOVE_HOLD = "paymentRequestHoldCancelRemoval"; 082 public static final String REMOVE_REQUEST_CANCEL = "paymentRequestHoldCancelRemoval"; 083 public static final String FULL_DOCUMENT_ENTRY_COMPLETED = "fullDocumentEntryCompleted"; 084 } 085 086 public static class InvoiceEditMode { 087 public static final String PURAP_TAX_ENABLED = "purapTaxEnabled"; 088 public static final String LOCK_VENDOR_ENTRY = "lockVendorEntry"; 089 public static final String DISPLAY_INIT_TAB = "displayInitTab"; 090 public static final String ALLOW_FISCAL_ENTRY = "allowFiscalEntry"; 091 public static final String EDIT_PRE_EXTRACT = "editPreExtract"; 092 public static final String LOCK_TAX_AMOUNT_ENTRY = "lockTaxAmountEntry"; 093 public static final String CLEAR_ALL_TAXES = "clearAllTaxes"; 094 public static final String TAX_INFO_VIEWABLE = "taxInfoViewable"; 095 public static final String TAX_AREA_EDITABLE = "taxAreaEditable"; 096 public static final String RESTRICT_FISCAL_ENTRY = "restrictFiscalEntry"; 097 public static final String ALLOW_CLOSE_PURCHASE_ORDER = "allowClosePurchaseOrder"; 098 public static final String ACCOUNTS_PAYABLE_PROCESSOR_CANCEL = "processorCancel"; 099 public static final String ACCOUNTS_PAYABLE_MANAGER_CANCEL = "managerCancel"; 100 public static final String REQUEST_CANCEL = "requestPaymentRequestCancel"; 101 public static final String HOLD = "requestPaymentRequestHold"; 102 public static final String REMOVE_HOLD = "paymentRequestHoldCancelRemoval"; 103 public static final String REMOVE_REQUEST_CANCEL = "paymentRequestHoldCancelRemoval"; 104 public static final String FULL_DOCUMENT_ENTRY_COMPLETED = "fullDocumentEntryCompleted"; 105 } 106 107 108 public static class CreditMemoEditMode { 109 public static final String LOCK_VENDOR_ENTRY = "lockVendorEntry"; 110 public static final String DISPLAY_INIT_TAB = "displayInitTab"; 111 public static final String EDIT_PRE_EXTRACT = "editPreExtract"; 112 public static final String ALLOW_FISCAL_ENTRY = "allowFiscalEntry"; 113 public static final String LOCK_TAX_AMOUNT_ENTRY = "lockTaxAmountEntry"; 114 public static final String CLEAR_ALL_TAXES = "clearAllTaxes"; 115 public static final String ALLOW_REOPEN_PURCHASE_ORDER = "allowReopenPurchaseOrder"; 116 public static final String HOLD = "requestVendorCreditMemoHold"; 117 public static final String REMOVE_HOLD = "vendorCreditMemoHoldRemoval"; 118 public static final String ACCOUNTS_PAYABLE_PROCESSOR_CANCEL = "processorCancel"; 119 public static final String FULL_DOCUMENT_ENTRY_COMPLETED = "fullDocumentEntryCompleted"; 120 } 121 122 public static class LineItemReceivingEditMode { 123 public static final String DISPLAY_INIT_TAB = "displayInitTab"; 124 } 125 126 public static class CorrectionReceivingEditMode { 127 public static final String LOCK_VENDOR_ENTRY = "lockVendorEntry"; 128 } 129 130 public static class BulkReceivingEditMode { 131 public static final String DISPLAY_INIT_TAB = "displayInitTab"; 132 public static final String LOCK_PO_DETAILS = "lockPODetails"; 133 public static final String LOCK_VENDOR_ENTRY = "lockVendorEntry"; 134 } 135 136 public static final String PURAP_TAX_ENABLED = "purapTaxEnabled"; 137 138 139}