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