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