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