View Javadoc

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