1 /*
2 * Copyright 2008 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.module.purap.dataaccess;
17
18 import org.kuali.ole.module.purap.businessobject.SensitiveData;
19 import org.kuali.ole.module.purap.businessobject.SensitiveDataAssignment;
20
21 import java.util.List;
22
23 public interface SensitiveDataDao {
24
25 /**
26 * Gets all sensitive data entries assigned to the specified purchase order.
27 *
28 * @param poId the ID of the specified purchase order
29 * @return a list of sensitive data entries assigned to the PO
30 */
31 public List<SensitiveData> getSensitiveDatasAssignedByPoId(Integer poId);
32
33 /**
34 * Gets all sensitive data entries assigned to the specified purchase order.
35 *
36 * @param reqId the ID of the requisition that's associated with the purchase order
37 * @return a list of sensitive data entries assigned to the PO
38 */
39 public List<SensitiveData> getSensitiveDatasAssignedByReqId(Integer reqId);
40
41 /**
42 * Deletes all sensitive data entries assigned to the specified purchase order.
43 *
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 *
51 * @param poId the ID of the specified PO
52 * @return the latest sensitive data assignment for the PO
53 */
54 public SensitiveDataAssignment getLastSensitiveDataAssignment(Integer poId);
55
56 //public void savePurchaseOrderSensitiveData(String poId, String reqId, String sensitiveDataCode);
57 //public void savePurchaseOrderSensitiveData(PurchaseOrderSensitiveData posd);
58 //public Integer getSensitiveDataAssignmentId(Integer poId);
59 //public void saveSensitiveDataAssignment(String sdaId, String poId, String userId, Date date);
60 //public void saveSensitiveDataAssignmentDetail(String sdaId, String sensitiveDataCode);
61 //public void saveSensitiveDataAssignmentDetail(SensitiveDataAssignmentDetail sdad);
62
63 }