1 /* 2 * The Kuali Financial System, a comprehensive financial management system for higher education. 3 * 4 * Copyright 2005-2014 The Kuali Foundation 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU Affero General Public License as 8 * published by the Free Software Foundation, either version 3 of the 9 * License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU Affero General Public License for more details. 15 * 16 * You should have received a copy of the GNU Affero General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 package org.kuali.kfs.module.purap.dataaccess; 20 21 import java.util.List; 22 23 import org.kuali.kfs.module.purap.businessobject.SensitiveData; 24 import org.kuali.kfs.module.purap.businessobject.SensitiveDataAssignment; 25 26 public interface SensitiveDataDao { 27 28 /** 29 * Gets all sensitive data entries assigned to the specified purchase order. 30 * @param poId the ID of the specified purchase order 31 * @return a list of sensitive data entries assigned to the PO 32 */ 33 public List<SensitiveData> getSensitiveDatasAssignedByPoId(Integer poId); 34 35 /** 36 * Gets all sensitive data entries assigned to the specified purchase order. 37 * @param reqId the ID of the requisition that's associated with the purchase order 38 * @return a list of sensitive data entries assigned to the PO 39 */ 40 public List<SensitiveData> getSensitiveDatasAssignedByReqId(Integer reqId); 41 42 /** 43 * Deletes all sensitive data entries assigned to the specified purchase order. 44 * @param poId the ID of the PO 45 */ 46 public void deletePurchaseOrderSensitiveDatas(Integer poId); 47 48 /** 49 * Gets the latest sensitive data assignment for the specified purchase order. 50 * @param poId the ID of the specified PO 51 * @return the latest sensitive data assignment for the PO 52 */ 53 public SensitiveDataAssignment getLastSensitiveDataAssignment(Integer poId); 54 55 //public void savePurchaseOrderSensitiveData(String poId, String reqId, String sensitiveDataCode); 56 //public void savePurchaseOrderSensitiveData(PurchaseOrderSensitiveData posd); 57 //public Integer getSensitiveDataAssignmentId(Integer poId); 58 //public void saveSensitiveDataAssignment(String sdaId, String poId, String userId, Date date); 59 //public void saveSensitiveDataAssignmentDetail(String sdaId, String sensitiveDataCode); 60 //public void saveSensitiveDataAssignmentDetail(SensitiveDataAssignmentDetail sdad); 61 62 }