| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| PersonDocumentPrivacy |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2007-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.rice.kim.bo.ui; | |
| 17 | ||
| 18 | import java.util.LinkedHashMap; | |
| 19 | ||
| 20 | import javax.persistence.Column; | |
| 21 | import javax.persistence.Entity; | |
| 22 | import javax.persistence.Id; | |
| 23 | import javax.persistence.Table; | |
| 24 | ||
| 25 | import org.hibernate.annotations.Type; | |
| 26 | ||
| 27 | /** | |
| 28 | * This is a description of what this class does - shyu don't forget to fill this in. | |
| 29 | * | |
| 30 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 31 | * | |
| 32 | */ | |
| 33 | @Entity | |
| 34 | @Table(name = "KRIM_PND_PRIV_PREF_MT") | |
| 35 | 0 | public class PersonDocumentPrivacy extends KimDocumentBoBase { |
| 36 | ||
| 37 | @Type(type="yes_no") | |
| 38 | @Column(name="SUPPRESS_NM_IND") | |
| 39 | protected boolean suppressName; | |
| 40 | ||
| 41 | @Type(type="yes_no") | |
| 42 | @Column(name="SUPPRESS_EMAIL_IND") | |
| 43 | protected boolean suppressEmail; | |
| 44 | ||
| 45 | @Type(type="yes_no") | |
| 46 | @Column(name="SUPPRESS_ADDR_IND") | |
| 47 | protected boolean suppressAddress; | |
| 48 | ||
| 49 | @Type(type="yes_no") | |
| 50 | @Column(name="SUPPRESS_PHONE_IND") | |
| 51 | protected boolean suppressPhone; | |
| 52 | ||
| 53 | @Type(type="yes_no") | |
| 54 | @Column(name="SUPPRESS_PRSNL_IND") | |
| 55 | protected boolean suppressPersonal; | |
| 56 | ||
| 57 | /** | |
| 58 | * @see org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences#isSuppressAddress() | |
| 59 | */ | |
| 60 | public boolean isSuppressAddress() { | |
| 61 | 0 | return suppressAddress; |
| 62 | } | |
| 63 | ||
| 64 | /** | |
| 65 | * @see org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences#isSuppressEmail() | |
| 66 | */ | |
| 67 | public boolean isSuppressEmail() { | |
| 68 | 0 | return suppressEmail; |
| 69 | } | |
| 70 | ||
| 71 | /** | |
| 72 | * @see org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences#isSuppressName() | |
| 73 | */ | |
| 74 | public boolean isSuppressName() { | |
| 75 | 0 | return suppressName; |
| 76 | } | |
| 77 | ||
| 78 | /** | |
| 79 | * @see org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences#isSuppressPersonal() | |
| 80 | */ | |
| 81 | public boolean isSuppressPersonal() { | |
| 82 | 0 | return suppressPersonal; |
| 83 | } | |
| 84 | ||
| 85 | /** | |
| 86 | * @see org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences#isSuppressPhone() | |
| 87 | */ | |
| 88 | public boolean isSuppressPhone() { | |
| 89 | 0 | return suppressPhone; |
| 90 | } | |
| 91 | ||
| 92 | /** | |
| 93 | * @see org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences#setSuppressAddress(boolean) | |
| 94 | */ | |
| 95 | public void setSuppressAddress(boolean suppressAddress) { | |
| 96 | 0 | this.suppressAddress = suppressAddress; |
| 97 | 0 | } |
| 98 | ||
| 99 | /** | |
| 100 | * @see org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences#setSuppressEmail(boolean) | |
| 101 | */ | |
| 102 | public void setSuppressEmail(boolean suppressEmail) { | |
| 103 | 0 | this.suppressEmail = suppressEmail; |
| 104 | 0 | } |
| 105 | ||
| 106 | /** | |
| 107 | * @see org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences#setSuppressName(boolean) | |
| 108 | */ | |
| 109 | public void setSuppressName(boolean suppressName) { | |
| 110 | 0 | this.suppressName = suppressName; |
| 111 | 0 | } |
| 112 | ||
| 113 | /** | |
| 114 | * @see org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences#setSuppressPersonal(boolean) | |
| 115 | */ | |
| 116 | public void setSuppressPersonal(boolean suppressPersonal) { | |
| 117 | 0 | this.suppressPersonal = suppressPersonal; |
| 118 | 0 | } |
| 119 | ||
| 120 | /** | |
| 121 | * @see org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences#setSuppressPhone(boolean) | |
| 122 | */ | |
| 123 | public void setSuppressPhone(boolean suppressPhone) { | |
| 124 | 0 | this.suppressPhone = suppressPhone; |
| 125 | 0 | } |
| 126 | ||
| 127 | /** | |
| 128 | * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() | |
| 129 | */ | |
| 130 | @Override | |
| 131 | protected LinkedHashMap toStringMapper() { | |
| 132 | 0 | LinkedHashMap m = new LinkedHashMap(); |
| 133 | 0 | m.put( "suppressName", suppressName ); |
| 134 | 0 | m.put( "suppressEmail", suppressEmail ); |
| 135 | 0 | m.put( "suppressAddress", suppressAddress ); |
| 136 | 0 | m.put( "suppressPhone", suppressPhone ); |
| 137 | 0 | m.put( "suppressPersonal", suppressPersonal ); |
| 138 | 0 | return m; |
| 139 | } | |
| 140 | ||
| 141 | } |