Coverage Report - org.kuali.rice.kim.bo.entity.dto.KimEntityPrivacyPreferencesInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
KimEntityPrivacyPreferencesInfo
0%
0/32
0%
0/2
1.071
 
 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.entity.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 
 20  
 import org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences;
 21  
 
 22  
 /**
 23  
  * This is a description of what this class does - nathanieljohnson don't forget to fill this in. 
 24  
  * 
 25  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 26  
  *
 27  
  */
 28  
 public class KimEntityPrivacyPreferencesInfo implements KimEntityPrivacyPreferences, Serializable {
 29  
 
 30  
         private static final long serialVersionUID = 1L;
 31  
 
 32  0
         protected boolean suppressName = false;
 33  0
         protected boolean suppressEmail = false;
 34  0
         protected boolean suppressAddress = false;
 35  0
         protected boolean suppressPhone = false;
 36  0
         protected boolean suppressPersonal = false;
 37  
 
 38  
         /**
 39  
          * 
 40  
          */
 41  0
         public KimEntityPrivacyPreferencesInfo() {
 42  0
         }
 43  
         
 44  
         /**
 45  
          * 
 46  
          */
 47  0
         public KimEntityPrivacyPreferencesInfo( KimEntityPrivacyPreferences prefs ) {
 48  0
                 if ( prefs != null ) {
 49  0
                         suppressName = prefs.isSuppressName();
 50  0
                         suppressEmail = prefs.isSuppressEmail();
 51  0
                         suppressAddress = prefs.isSuppressAddress();
 52  0
                         suppressPhone = prefs.isSuppressPhone();
 53  0
                         suppressPersonal = prefs.isSuppressPersonal();
 54  
                 }
 55  0
         }
 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  
         public void setSuppressAddress(boolean suppressAddress) {
 93  0
                 this.suppressAddress = suppressAddress;
 94  0
         }
 95  
 
 96  
         public void setSuppressEmail(boolean suppressEmail) {
 97  0
                 this.suppressEmail = suppressEmail;
 98  0
         }
 99  
 
 100  
         public void setSuppressName(boolean suppressName) {
 101  0
                 this.suppressName = suppressName;
 102  0
         }
 103  
 
 104  
         public void setSuppressPersonal(boolean suppressPersonal) {
 105  0
                 this.suppressPersonal = suppressPersonal;
 106  0
         }
 107  
 
 108  
         public void setSuppressPhone(boolean suppressPhone) {
 109  0
                 this.suppressPhone = suppressPhone;
 110  0
         }
 111  
 
 112  
         /** {@inheritDoc} */
 113  
     public void refresh(){
 114  
             
 115  0
     }
 116  
     
 117  
     /** {@inheritDoc} */
 118  
     public void prepareForWorkflow(){
 119  
             
 120  0
     }
 121  
 }