001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/profile/tags/sakai_2-4-1/common-composite-component-data/src/java/org/sakaiproject/component/common/edu/person/SakaiPersonImpl.java $
003: * $Id: SakaiPersonImpl.java 8424 2006-04-27 20:23:44Z ggolden@umich.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.component.common.edu.person;
021:
022: import org.apache.commons.logging.Log;
023: import org.apache.commons.logging.LogFactory;
024: import org.sakaiproject.api.common.edu.person.InetOrgPerson;
025: import org.sakaiproject.api.common.edu.person.OrganizationalPerson;
026: import org.sakaiproject.api.common.edu.person.Person;
027: import org.sakaiproject.api.common.edu.person.SakaiPerson;
028:
029: /**
030: * @author <a href="mailto:lance@indiana.edu">Lance Speelmon </a>
031: */
032: public class SakaiPersonImpl extends EduPersonImpl implements Person,
033: OrganizationalPerson, InetOrgPerson, SakaiPerson {
034: private static final Log LOG = LogFactory
035: .getLog(SakaiPersonImpl.class);
036:
037: /**
038: * Empty constuctor for hibernate
039: */
040: public SakaiPersonImpl() {
041: super ();
042: }
043:
044: protected String pictureUrl;
045:
046: /*
047: * @see org.sakaiproject.service.profile.SakaiPerson#getPictureUrl()
048: */
049: public String getPictureUrl() {
050: return pictureUrl;
051: }
052:
053: /*
054: * @see org.sakaiproject.service.profile.SakaiPerson#setPictureUrl(java.lang.String)
055: */
056: public void setPictureUrl(String pictureURL) {
057: this .pictureUrl = pictureURL;
058: }
059:
060: protected Boolean systemPicturePreferred;
061:
062: /*
063: * @see org.sakaiproject.service.profile.SakaiPerson#isSystemPicturePreferred()
064: */
065: public Boolean isSystemPicturePreferred() {
066: return this .systemPicturePreferred;
067: }
068:
069: /*
070: * @see org.sakaiproject.service.profile.SakaiPerson#setSystemPicturePreferred(java.lang.Boolean)
071: */
072: public void setSystemPicturePreferred(Boolean systemPicturePreferred) {
073: this .systemPicturePreferred = systemPicturePreferred;
074: }
075:
076: protected String notes;
077:
078: /*
079: * @see org.sakaiproject.service.profile.SakaiPerson#getNotes()
080: */
081: public String getNotes() {
082: return this .notes;
083: }
084:
085: /*
086: * @see org.sakaiproject.service.profile.SakaiPerson#setNotes(java.lang.String)
087: */
088: public void setNotes(String notes) {
089: this .notes = notes;
090: }
091:
092: protected String campus;
093:
094: /*
095: * @see org.sakaiproject.service.profile.SakaiPerson#getCampus()
096: */
097: public String getCampus() {
098: return this .campus;
099: }
100:
101: /*
102: * @see org.sakaiproject.service.profile.SakaiPerson#setCampus(java.lang.String)
103: */
104: public void setCampus(String school) {
105: this .campus = school;
106: }
107:
108: /**
109: * Comment for <code>isPrivateInfoViewable</code>
110: */
111: protected Boolean hidePrivateInfo;
112:
113: /*
114: * (non-Javadoc)
115: *
116: * @see org.sakaiproject.service.profile.SakaiPerson#getIsPrivateInfoViewable()
117: */
118: public Boolean getHidePrivateInfo() {
119: return hidePrivateInfo;
120: }
121:
122: /*
123: * (non-Javadoc)
124: *
125: * @see org.sakaiproject.service.profile.SakaiPerson#setIsPrivateInfoViewable(java.lang.Boolean)
126: */
127: public void setHidePrivateInfo(Boolean hidePrivateInfo) {
128: this .hidePrivateInfo = hidePrivateInfo;
129: }
130:
131: protected Boolean hidePublicInfo;
132:
133: /**
134: * @see org.sakaiproject.service.profile.SakaiPerson#getIsPublicInfoViewable()
135: */
136: public Boolean getHidePublicInfo() {
137: return hidePublicInfo;
138: }
139:
140: /**
141: * @see org.sakaiproject.service.profile.SakaiPerson#setIsPublicInfoViewable(java.lang.Boolean)
142: */
143: public void setHidePublicInfo(Boolean hidePublicInfo) {
144: this .hidePublicInfo = hidePublicInfo;
145: }
146:
147: private Boolean ferpaEnabled;
148:
149: /**
150: * @see org.sakaiproject.service.profile.SakaiPerson#getFerpaEnabled()
151: * @return Returns the ferpaEnabled.
152: */
153: public Boolean getFerpaEnabled() {
154: return ferpaEnabled;
155: }
156:
157: /**
158: * @see org.sakaiproject.service.profile.SakaiPerson#setFerpaEnabled(Boolean)
159: * @param ferpaEnabled
160: * The ferpaEnabled to set.
161: */
162: public void setFerpaEnabled(Boolean ferpaEnabled) {
163: this.ferpaEnabled = ferpaEnabled;
164: }
165:
166: }
|