1 /* 2 * Copyright 2009 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.service; 17 18 public interface PdpAuthorizationService { 19 20 /** 21 * This method checks if person has 'Cancel Payment' permission. 22 * @param principalId Principal ID 23 * @return true if it has permission, false otherwise 24 */ 25 public boolean hasCancelPaymentPermission(String principalId); 26 27 /** 28 * This method checks if the principal has 'Format' permission. 29 * @param principalId Principal ID 30 * @return true if it has permission, false otherwise 31 */ 32 public boolean hasFormatPermission(String principalId); 33 34 /** 35 * This method checks that the principal has the 'Hold Payment / Remove Non-Tax Payment Hold' permission. 36 * @param principalId Principal ID 37 * @return true if it has permission, false otherwise 38 */ 39 public boolean hasHoldPaymentPermission(String principalId); 40 41 /** 42 * This method checks that the principal has the 'Remove Format Lock' permission. 43 * @param principalId Principal ID 44 * @return true if it has permission, false otherwise 45 */ 46 public boolean hasRemoveFormatLockPermission(String principalId); 47 48 /** 49 * This method checks that the principal has 'Remove Payment Tax Hold' permission 50 * @param principalId Principal ID 51 * @return true if it has permission, false otherwise 52 */ 53 public boolean hasRemovePaymentTaxHoldPermission(String principalId); 54 55 /** 56 * This method checks that the principal has 'Set as Immmediate Pay' permission. 57 * @param principalId Principal ID 58 * @return true if it has permission, false otherwise 59 */ 60 public boolean hasSetAsImmediatePayPermission(String principalId); 61 62 }