View Javadoc
1   /**
2    * Copyright 2005-2015 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.ui;
17  
18  import javax.persistence.Column;
19  import javax.persistence.Convert;
20  import javax.persistence.Entity;
21  import javax.persistence.Table;
22  
23  import org.kuali.rice.krad.data.jpa.converters.BooleanYNConverter;
24  
25  /**
26   * This is a description of what this class does - shyu don't forget to fill this in. 
27   * 
28   * @author Kuali Rice Team (rice.collab@kuali.org)
29   *
30   */
31  @Entity
32  @Table(name = "KRIM_PND_PRIV_PREF_MT")
33  public class PersonDocumentPrivacy extends KimDocumentBoEditableBase {
34      private static final long serialVersionUID = 1L;
35  
36      @Column(name = "SUPPRESS_NM_IND")
37      @Convert(converter = BooleanYNConverter.class)
38      protected boolean suppressName;
39  
40      @Column(name = "SUPPRESS_EMAIL_IND")
41      @Convert(converter = BooleanYNConverter.class)
42      protected boolean suppressEmail;
43  
44      @Column(name = "SUPPRESS_ADDR_IND")
45      @Convert(converter = BooleanYNConverter.class)
46      protected boolean suppressAddress;
47  
48      @Column(name = "SUPPRESS_PHONE_IND")
49      @Convert(converter = BooleanYNConverter.class)
50      protected boolean suppressPhone;
51  
52      @Column(name = "SUPPRESS_PRSNL_IND")
53      @Convert(converter = BooleanYNConverter.class)
54      protected boolean suppressPersonal;
55  
56      /**
57  	 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#isSuppressAddress()
58  	 */
59      public boolean isSuppressAddress() {
60          return suppressAddress;
61      }
62  
63      /**
64  	 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#isSuppressEmail()
65  	 */
66      public boolean isSuppressEmail() {
67          return suppressEmail;
68      }
69  
70      /**
71  	 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#isSuppressName()
72  	 */
73      public boolean isSuppressName() {
74          return suppressName;
75      }
76  
77      /**
78  	 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#isSuppressPersonal()
79  	 */
80      public boolean isSuppressPersonal() {
81          return suppressPersonal;
82      }
83  
84      /**
85  	 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#isSuppressPhone()
86  	 */
87      public boolean isSuppressPhone() {
88          return suppressPhone;
89      }
90  
91      /**
92  	 * @see org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferencesContract#setSuppressAddress(boolean)
93  	 */
94      public void setSuppressAddress(boolean suppressAddress) {
95          this.suppressAddress = suppressAddress;
96      }
97  
98      /**
99  	 * @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 }