001 /** 002 * Copyright 2005-2014 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.rice.kim.bo.ui; 017 018 import org.hibernate.annotations.Type; 019 020 import javax.persistence.Column; 021 import javax.persistence.Entity; 022 import javax.persistence.Table; 023 024 /** 025 * This is a description of what this class does - shyu don't forget to fill this in. 026 * 027 * @author Kuali Rice Team (rice.collab@kuali.org) 028 * 029 */ 030 @Entity 031 @Table(name = "KRIM_PND_PRIV_PREF_MT") 032 public class PersonDocumentPrivacy extends KimDocumentBoEditableBase { 033 034 @Type(type="yes_no") 035 @Column(name="SUPPRESS_NM_IND") 036 protected boolean suppressName; 037 038 @Type(type="yes_no") 039 @Column(name="SUPPRESS_EMAIL_IND") 040 protected boolean suppressEmail; 041 042 @Type(type="yes_no") 043 @Column(name="SUPPRESS_ADDR_IND") 044 protected boolean suppressAddress; 045 046 @Type(type="yes_no") 047 @Column(name="SUPPRESS_PHONE_IND") 048 protected boolean suppressPhone; 049 050 @Type(type="yes_no") 051 @Column(name="SUPPRESS_PRSNL_IND") 052 protected boolean suppressPersonal; 053 054 /** 055 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#isSuppressAddress() 056 */ 057 public boolean isSuppressAddress() { 058 return suppressAddress; 059 } 060 061 /** 062 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#isSuppressEmail() 063 */ 064 public boolean isSuppressEmail() { 065 return suppressEmail; 066 } 067 068 /** 069 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#isSuppressName() 070 */ 071 public boolean isSuppressName() { 072 return suppressName; 073 } 074 075 /** 076 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#isSuppressPersonal() 077 */ 078 public boolean isSuppressPersonal() { 079 return suppressPersonal; 080 } 081 082 /** 083 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#isSuppressPhone() 084 */ 085 public boolean isSuppressPhone() { 086 return suppressPhone; 087 } 088 089 /** 090 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#setSuppressAddress(boolean) 091 */ 092 public void setSuppressAddress(boolean suppressAddress) { 093 this.suppressAddress = suppressAddress; 094 } 095 096 /** 097 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#setSuppressEmail(boolean) 098 */ 099 public void setSuppressEmail(boolean suppressEmail) { 100 this.suppressEmail = suppressEmail; 101 } 102 103 /** 104 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#setSuppressName(boolean) 105 */ 106 public void setSuppressName(boolean suppressName) { 107 this.suppressName = suppressName; 108 } 109 110 /** 111 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#setSuppressPersonal(boolean) 112 */ 113 public void setSuppressPersonal(boolean suppressPersonal) { 114 this.suppressPersonal = suppressPersonal; 115 } 116 117 /** 118 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#setSuppressPhone(boolean) 119 */ 120 public void setSuppressPhone(boolean suppressPhone) { 121 this.suppressPhone = suppressPhone; 122 } 123 }