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.endow.businessobject; 017 018 import java.util.LinkedHashMap; 019 020 import org.kuali.kfs.module.endow.EndowPropertyConstants; 021 import org.kuali.rice.kns.bo.Inactivateable; 022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 023 import org.kuali.rice.kns.util.KualiInteger; 024 025 /** 026 * This KemidUseCriteria class defines the Donor restrictions. 027 */ 028 public class KemidUseCriteria extends PersistableBusinessObjectBase implements Inactivateable { 029 030 private String kemid; 031 private KualiInteger useCriteriaSeq; 032 private String useCriteriaCode; 033 private String useCriteriaAdditionalInfo; 034 private boolean active; 035 036 private KEMID kemidObjRef; 037 private UseCriteriaCode useCriteria; 038 039 /** 040 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 041 */ 042 @Override 043 protected LinkedHashMap toStringMapper() { 044 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>(); 045 m.put(EndowPropertyConstants.KEMID, this.kemid); 046 m.put(EndowPropertyConstants.KEMID_USE_CRIT_SEQ, String.valueOf(useCriteriaSeq)); 047 m.put(EndowPropertyConstants.KEMID_USE_CRIT_CD, String.valueOf(useCriteriaCode)); 048 return m; 049 } 050 051 /** 052 * Gets the kemid. 053 * 054 * @param kemidObjRef 055 */ 056 public String getKemid() { 057 return kemid; 058 } 059 060 /** 061 * Sets the kemid. 062 * 063 * @param kemid 064 */ 065 public void setKemid(String kemid) { 066 this.kemid = kemid; 067 } 068 069 /** 070 * Gets the kemidObjRef. 071 * 072 * @return kemidObjRef 073 */ 074 public KEMID getKemidObjRef() { 075 return kemidObjRef; 076 } 077 078 /** 079 * Sets the kemidObjRef. 080 * 081 * @param kemidObjRef 082 */ 083 public void setKemidObjRef(KEMID kemidObjRef) { 084 this.kemidObjRef = kemidObjRef; 085 } 086 087 /** 088 * Gets the useCriteria. 089 * 090 * @return useCriteria 091 */ 092 public UseCriteriaCode getUseCriteria() { 093 return useCriteria; 094 } 095 096 /** 097 * Sets the useCriteria. 098 * 099 * @param useCriteria 100 */ 101 public void setUseCriteria(UseCriteriaCode useCriteria) { 102 this.useCriteria = useCriteria; 103 } 104 105 /** 106 * Gets the useCriteriaAdditionalInfo. 107 * 108 * @return useCriteriaAdditionalInfo 109 */ 110 public String getUseCriteriaAdditionalInfo() { 111 return useCriteriaAdditionalInfo; 112 } 113 114 /** 115 * Sets the useCriteriaAdditionalInfo. 116 * 117 * @param useCriteriaAdditionalInfo 118 */ 119 public void setUseCriteriaAdditionalInfo(String useCriteriaAdditionalInfo) { 120 this.useCriteriaAdditionalInfo = useCriteriaAdditionalInfo; 121 } 122 123 /** 124 * Gets the useCriteriaCode. 125 * 126 * @return useCriteriaCode 127 */ 128 public String getUseCriteriaCode() { 129 return useCriteriaCode; 130 } 131 132 /** 133 * Sets the useCriteriaCode. 134 * 135 * @param useCriteriaCode 136 */ 137 public void setUseCriteriaCode(String useCriteriaCode) { 138 this.useCriteriaCode = useCriteriaCode; 139 } 140 141 /** 142 * Gets the useCriteriaSeq. 143 * 144 * @return useCriteriaSeq 145 */ 146 public KualiInteger getUseCriteriaSeq() { 147 return useCriteriaSeq; 148 } 149 150 /** 151 * Sets the useCriteriaSeq. 152 * 153 * @param useCriteriaSeq 154 */ 155 public void setUseCriteriaSeq(KualiInteger useCriteriaSeq) { 156 this.useCriteriaSeq = useCriteriaSeq; 157 } 158 159 160 /** 161 * @see org.kuali.rice.kns.bo.Inactivateable#isActive() 162 */ 163 public boolean isActive() { 164 return active; 165 } 166 167 /** 168 * @see org.kuali.rice.kns.bo.Inactivateable#setActive(boolean) 169 */ 170 public void setActive(boolean active) { 171 this.active = active; 172 173 } 174 175 }