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.module.purap.businessobject; 017 018 import java.util.LinkedHashMap; 019 020 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 021 022 public class PurchaseOrderSensitiveData extends PersistableBusinessObjectBase { 023 024 private Integer purapDocumentIdentifier; 025 private Integer requisitionIdentifier; 026 private String sensitiveDataCode; 027 028 private SensitiveData sensitiveData; 029 030 public PurchaseOrderSensitiveData() { 031 super(); 032 } 033 034 public PurchaseOrderSensitiveData(Integer poId, Integer reqId, String newSensitiveDataCode) { 035 super(); 036 purapDocumentIdentifier = poId; 037 requisitionIdentifier = reqId; 038 sensitiveDataCode = newSensitiveDataCode; 039 } 040 041 042 public Integer getPurapDocumentIdentifier() { 043 return purapDocumentIdentifier; 044 } 045 046 public void setPurapDocumentIdentifier(Integer purapDocumentIdentifier) { 047 this.purapDocumentIdentifier = purapDocumentIdentifier; 048 } 049 public Integer getRequisitionIdentifier() { 050 return requisitionIdentifier; 051 } 052 053 public void setRequisitionIdentifier(Integer requisitionIdentifier) { 054 this.requisitionIdentifier = requisitionIdentifier; 055 } 056 057 public String getSensitiveDataCode() { 058 return sensitiveDataCode; 059 } 060 061 public void setSensitiveDataCode(String sensitiveDataCode) { 062 this.sensitiveDataCode = sensitiveDataCode; 063 } 064 065 public SensitiveData getSensitiveData() { 066 return sensitiveData; 067 } 068 069 public void setSensitiveData(SensitiveData sensitiveData) { 070 this.sensitiveData = sensitiveData; 071 } 072 073 protected LinkedHashMap toStringMapper() { 074 LinkedHashMap m = new LinkedHashMap(); 075 m.put("purapDocumentIdentifier", this.purapDocumentIdentifier); 076 return m; 077 } 078 079 }