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.pdp.service; 017 018 public interface PdpAuthorizationService { 019 020 /** 021 * This method checks if person has 'Cancel Payment' permission. 022 * @param principalId Principal ID 023 * @return true if it has permission, false otherwise 024 */ 025 public boolean hasCancelPaymentPermission(String principalId); 026 027 /** 028 * This method checks if the principal has 'Format' permission. 029 * @param principalId Principal ID 030 * @return true if it has permission, false otherwise 031 */ 032 public boolean hasFormatPermission(String principalId); 033 034 /** 035 * This method checks that the principal has the 'Hold Payment / Remove Non-Tax Payment Hold' permission. 036 * @param principalId Principal ID 037 * @return true if it has permission, false otherwise 038 */ 039 public boolean hasHoldPaymentPermission(String principalId); 040 041 /** 042 * This method checks that the principal has the 'Remove Format Lock' permission. 043 * @param principalId Principal ID 044 * @return true if it has permission, false otherwise 045 */ 046 public boolean hasRemoveFormatLockPermission(String principalId); 047 048 /** 049 * This method checks that the principal has 'Remove Payment Tax Hold' permission 050 * @param principalId Principal ID 051 * @return true if it has permission, false otherwise 052 */ 053 public boolean hasRemovePaymentTaxHoldPermission(String principalId); 054 055 /** 056 * This method checks that the principal has 'Set as Immmediate Pay' permission. 057 * @param principalId Principal ID 058 * @return true if it has permission, false otherwise 059 */ 060 public boolean hasSetAsImmediatePayPermission(String principalId); 061 062 }