--- /dev/null
+/**
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ */
+
+package com.pentila.entSavoie.administrationTools.model;
+
+import com.liferay.portal.model.ModelWrapper;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link CommunicationPrefs}.
+ * </p>
+ *
+ * @author Cédric Lecarpentier
+ * @see CommunicationPrefs
+ * @generated
+ */
+public class CommunicationPrefsWrapper implements CommunicationPrefs,
+ ModelWrapper<CommunicationPrefs> {
+ public CommunicationPrefsWrapper(CommunicationPrefs communicationPrefs) {
+ _communicationPrefs = communicationPrefs;
+ }
+
+ public Class<?> getModelClass() {
+ return CommunicationPrefs.class;
+ }
+
+ public String getModelClassName() {
+ return CommunicationPrefs.class.getName();
+ }
+
+ public Map<String, Object> getModelAttributes() {
+ Map<String, Object> attributes = new HashMap<String, Object>();
+
+ attributes.put("commPrefsId", getCommPrefsId());
+ attributes.put("schoolId", getSchoolId());
+ attributes.put("roleType", getRoleType());
+ attributes.put("classStudents", getClassStudents());
+ attributes.put("allStudents", getAllStudents());
+ attributes.put("classParents", getClassParents());
+ attributes.put("allParents", getAllParents());
+ attributes.put("classTeachers", getClassTeachers());
+ attributes.put("allTeachers", getAllTeachers());
+ attributes.put("allPersonals", getAllPersonals());
+ attributes.put("allOthers", getAllOthers());
+ attributes.put("myChildren", getMyChildren());
+ attributes.put("myParents", getMyParents());
+ attributes.put("externalMail", getExternalMail());
+
+ return attributes;
+ }
+
+ public void setModelAttributes(Map<String, Object> attributes) {
+ Long commPrefsId = (Long)attributes.get("commPrefsId");
+
+ if (commPrefsId != null) {
+ setCommPrefsId(commPrefsId);
+ }
+
+ Long schoolId = (Long)attributes.get("schoolId");
+
+ if (schoolId != null) {
+ setSchoolId(schoolId);
+ }
+
+ Integer roleType = (Integer)attributes.get("roleType");
+
+ if (roleType != null) {
+ setRoleType(roleType);
+ }
+
+ Boolean classStudents = (Boolean)attributes.get("classStudents");
+
+ if (classStudents != null) {
+ setClassStudents(classStudents);
+ }
+
+ Boolean allStudents = (Boolean)attributes.get("allStudents");
+
+ if (allStudents != null) {
+ setAllStudents(allStudents);
+ }
+
+ Boolean classParents = (Boolean)attributes.get("classParents");
+
+ if (classParents != null) {
+ setClassParents(classParents);
+ }
+
+ Boolean allParents = (Boolean)attributes.get("allParents");
+
+ if (allParents != null) {
+ setAllParents(allParents);
+ }
+
+ Boolean classTeachers = (Boolean)attributes.get("classTeachers");
+
+ if (classTeachers != null) {
+ setClassTeachers(classTeachers);
+ }
+
+ Boolean allTeachers = (Boolean)attributes.get("allTeachers");
+
+ if (allTeachers != null) {
+ setAllTeachers(allTeachers);
+ }
+
+ Boolean allPersonals = (Boolean)attributes.get("allPersonals");
+
+ if (allPersonals != null) {
+ setAllPersonals(allPersonals);
+ }
+
+ Boolean allOthers = (Boolean)attributes.get("allOthers");
+
+ if (allOthers != null) {
+ setAllOthers(allOthers);
+ }
+
+ Boolean myChildren = (Boolean)attributes.get("myChildren");
+
+ if (myChildren != null) {
+ setMyChildren(myChildren);
+ }
+
+ Boolean myParents = (Boolean)attributes.get("myParents");
+
+ if (myParents != null) {
+ setMyParents(myParents);
+ }
+
+ Boolean externalMail = (Boolean)attributes.get("externalMail");
+
+ if (externalMail != null) {
+ setExternalMail(externalMail);
+ }
+ }
+
+ /**
+ * Returns the primary key of this communication prefs.
+ *
+ * @return the primary key of this communication prefs
+ */
+ public long getPrimaryKey() {
+ return _communicationPrefs.getPrimaryKey();
+ }
+
+ /**
+ * Sets the primary key of this communication prefs.
+ *
+ * @param primaryKey the primary key of this communication prefs
+ */
+ public void setPrimaryKey(long primaryKey) {
+ _communicationPrefs.setPrimaryKey(primaryKey);
+ }
+
+ /**
+ * Returns the comm prefs ID of this communication prefs.
+ *
+ * @return the comm prefs ID of this communication prefs
+ */
+ public long getCommPrefsId() {
+ return _communicationPrefs.getCommPrefsId();
+ }
+
+ /**
+ * Sets the comm prefs ID of this communication prefs.
+ *
+ * @param commPrefsId the comm prefs ID of this communication prefs
+ */
+ public void setCommPrefsId(long commPrefsId) {
+ _communicationPrefs.setCommPrefsId(commPrefsId);
+ }
+
+ /**
+ * Returns the school ID of this communication prefs.
+ *
+ * @return the school ID of this communication prefs
+ */
+ public long getSchoolId() {
+ return _communicationPrefs.getSchoolId();
+ }
+
+ /**
+ * Sets the school ID of this communication prefs.
+ *
+ * @param schoolId the school ID of this communication prefs
+ */
+ public void setSchoolId(long schoolId) {
+ _communicationPrefs.setSchoolId(schoolId);
+ }
+
+ /**
+ * Returns the role type of this communication prefs.
+ *
+ * @return the role type of this communication prefs
+ */
+ public int getRoleType() {
+ return _communicationPrefs.getRoleType();
+ }
+
+ /**
+ * Sets the role type of this communication prefs.
+ *
+ * @param roleType the role type of this communication prefs
+ */
+ public void setRoleType(int roleType) {
+ _communicationPrefs.setRoleType(roleType);
+ }
+
+ /**
+ * Returns the class students of this communication prefs.
+ *
+ * @return the class students of this communication prefs
+ */
+ public boolean getClassStudents() {
+ return _communicationPrefs.getClassStudents();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is class students.
+ *
+ * @return <code>true</code> if this communication prefs is class students; <code>false</code> otherwise
+ */
+ public boolean isClassStudents() {
+ return _communicationPrefs.isClassStudents();
+ }
+
+ /**
+ * Sets whether this communication prefs is class students.
+ *
+ * @param classStudents the class students of this communication prefs
+ */
+ public void setClassStudents(boolean classStudents) {
+ _communicationPrefs.setClassStudents(classStudents);
+ }
+
+ /**
+ * Returns the all students of this communication prefs.
+ *
+ * @return the all students of this communication prefs
+ */
+ public boolean getAllStudents() {
+ return _communicationPrefs.getAllStudents();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is all students.
+ *
+ * @return <code>true</code> if this communication prefs is all students; <code>false</code> otherwise
+ */
+ public boolean isAllStudents() {
+ return _communicationPrefs.isAllStudents();
+ }
+
+ /**
+ * Sets whether this communication prefs is all students.
+ *
+ * @param allStudents the all students of this communication prefs
+ */
+ public void setAllStudents(boolean allStudents) {
+ _communicationPrefs.setAllStudents(allStudents);
+ }
+
+ /**
+ * Returns the class parents of this communication prefs.
+ *
+ * @return the class parents of this communication prefs
+ */
+ public boolean getClassParents() {
+ return _communicationPrefs.getClassParents();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is class parents.
+ *
+ * @return <code>true</code> if this communication prefs is class parents; <code>false</code> otherwise
+ */
+ public boolean isClassParents() {
+ return _communicationPrefs.isClassParents();
+ }
+
+ /**
+ * Sets whether this communication prefs is class parents.
+ *
+ * @param classParents the class parents of this communication prefs
+ */
+ public void setClassParents(boolean classParents) {
+ _communicationPrefs.setClassParents(classParents);
+ }
+
+ /**
+ * Returns the all parents of this communication prefs.
+ *
+ * @return the all parents of this communication prefs
+ */
+ public boolean getAllParents() {
+ return _communicationPrefs.getAllParents();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is all parents.
+ *
+ * @return <code>true</code> if this communication prefs is all parents; <code>false</code> otherwise
+ */
+ public boolean isAllParents() {
+ return _communicationPrefs.isAllParents();
+ }
+
+ /**
+ * Sets whether this communication prefs is all parents.
+ *
+ * @param allParents the all parents of this communication prefs
+ */
+ public void setAllParents(boolean allParents) {
+ _communicationPrefs.setAllParents(allParents);
+ }
+
+ /**
+ * Returns the class teachers of this communication prefs.
+ *
+ * @return the class teachers of this communication prefs
+ */
+ public boolean getClassTeachers() {
+ return _communicationPrefs.getClassTeachers();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is class teachers.
+ *
+ * @return <code>true</code> if this communication prefs is class teachers; <code>false</code> otherwise
+ */
+ public boolean isClassTeachers() {
+ return _communicationPrefs.isClassTeachers();
+ }
+
+ /**
+ * Sets whether this communication prefs is class teachers.
+ *
+ * @param classTeachers the class teachers of this communication prefs
+ */
+ public void setClassTeachers(boolean classTeachers) {
+ _communicationPrefs.setClassTeachers(classTeachers);
+ }
+
+ /**
+ * Returns the all teachers of this communication prefs.
+ *
+ * @return the all teachers of this communication prefs
+ */
+ public boolean getAllTeachers() {
+ return _communicationPrefs.getAllTeachers();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is all teachers.
+ *
+ * @return <code>true</code> if this communication prefs is all teachers; <code>false</code> otherwise
+ */
+ public boolean isAllTeachers() {
+ return _communicationPrefs.isAllTeachers();
+ }
+
+ /**
+ * Sets whether this communication prefs is all teachers.
+ *
+ * @param allTeachers the all teachers of this communication prefs
+ */
+ public void setAllTeachers(boolean allTeachers) {
+ _communicationPrefs.setAllTeachers(allTeachers);
+ }
+
+ /**
+ * Returns the all personals of this communication prefs.
+ *
+ * @return the all personals of this communication prefs
+ */
+ public boolean getAllPersonals() {
+ return _communicationPrefs.getAllPersonals();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is all personals.
+ *
+ * @return <code>true</code> if this communication prefs is all personals; <code>false</code> otherwise
+ */
+ public boolean isAllPersonals() {
+ return _communicationPrefs.isAllPersonals();
+ }
+
+ /**
+ * Sets whether this communication prefs is all personals.
+ *
+ * @param allPersonals the all personals of this communication prefs
+ */
+ public void setAllPersonals(boolean allPersonals) {
+ _communicationPrefs.setAllPersonals(allPersonals);
+ }
+
+ /**
+ * Returns the all others of this communication prefs.
+ *
+ * @return the all others of this communication prefs
+ */
+ public boolean getAllOthers() {
+ return _communicationPrefs.getAllOthers();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is all others.
+ *
+ * @return <code>true</code> if this communication prefs is all others; <code>false</code> otherwise
+ */
+ public boolean isAllOthers() {
+ return _communicationPrefs.isAllOthers();
+ }
+
+ /**
+ * Sets whether this communication prefs is all others.
+ *
+ * @param allOthers the all others of this communication prefs
+ */
+ public void setAllOthers(boolean allOthers) {
+ _communicationPrefs.setAllOthers(allOthers);
+ }
+
+ /**
+ * Returns the my children of this communication prefs.
+ *
+ * @return the my children of this communication prefs
+ */
+ public boolean getMyChildren() {
+ return _communicationPrefs.getMyChildren();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is my children.
+ *
+ * @return <code>true</code> if this communication prefs is my children; <code>false</code> otherwise
+ */
+ public boolean isMyChildren() {
+ return _communicationPrefs.isMyChildren();
+ }
+
+ /**
+ * Sets whether this communication prefs is my children.
+ *
+ * @param myChildren the my children of this communication prefs
+ */
+ public void setMyChildren(boolean myChildren) {
+ _communicationPrefs.setMyChildren(myChildren);
+ }
+
+ /**
+ * Returns the my parents of this communication prefs.
+ *
+ * @return the my parents of this communication prefs
+ */
+ public boolean getMyParents() {
+ return _communicationPrefs.getMyParents();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is my parents.
+ *
+ * @return <code>true</code> if this communication prefs is my parents; <code>false</code> otherwise
+ */
+ public boolean isMyParents() {
+ return _communicationPrefs.isMyParents();
+ }
+
+ /**
+ * Sets whether this communication prefs is my parents.
+ *
+ * @param myParents the my parents of this communication prefs
+ */
+ public void setMyParents(boolean myParents) {
+ _communicationPrefs.setMyParents(myParents);
+ }
+
+ /**
+ * Returns the external mail of this communication prefs.
+ *
+ * @return the external mail of this communication prefs
+ */
+ public boolean getExternalMail() {
+ return _communicationPrefs.getExternalMail();
+ }
+
+ /**
+ * Returns <code>true</code> if this communication prefs is external mail.
+ *
+ * @return <code>true</code> if this communication prefs is external mail; <code>false</code> otherwise
+ */
+ public boolean isExternalMail() {
+ return _communicationPrefs.isExternalMail();
+ }
+
+ /**
+ * Sets whether this communication prefs is external mail.
+ *
+ * @param externalMail the external mail of this communication prefs
+ */
+ public void setExternalMail(boolean externalMail) {
+ _communicationPrefs.setExternalMail(externalMail);
+ }
+
+ public boolean isNew() {
+ return _communicationPrefs.isNew();
+ }
+
+ public void setNew(boolean n) {
+ _communicationPrefs.setNew(n);
+ }
+
+ public boolean isCachedModel() {
+ return _communicationPrefs.isCachedModel();
+ }
+
+ public void setCachedModel(boolean cachedModel) {
+ _communicationPrefs.setCachedModel(cachedModel);
+ }
+
+ public boolean isEscapedModel() {
+ return _communicationPrefs.isEscapedModel();
+ }
+
+ public java.io.Serializable getPrimaryKeyObj() {
+ return _communicationPrefs.getPrimaryKeyObj();
+ }
+
+ public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
+ _communicationPrefs.setPrimaryKeyObj(primaryKeyObj);
+ }
+
+ public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
+ return _communicationPrefs.getExpandoBridge();
+ }
+
+ public void setExpandoBridgeAttributes(
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ _communicationPrefs.setExpandoBridgeAttributes(serviceContext);
+ }
+
+ @Override
+ public java.lang.Object clone() {
+ return new CommunicationPrefsWrapper((CommunicationPrefs)_communicationPrefs.clone());
+ }
+
+ public int compareTo(
+ com.pentila.entSavoie.administrationTools.model.CommunicationPrefs communicationPrefs) {
+ return _communicationPrefs.compareTo(communicationPrefs);
+ }
+
+ @Override
+ public int hashCode() {
+ return _communicationPrefs.hashCode();
+ }
+
+ public com.liferay.portal.model.CacheModel<com.pentila.entSavoie.administrationTools.model.CommunicationPrefs> toCacheModel() {
+ return _communicationPrefs.toCacheModel();
+ }
+
+ public com.pentila.entSavoie.administrationTools.model.CommunicationPrefs toEscapedModel() {
+ return new CommunicationPrefsWrapper(_communicationPrefs.toEscapedModel());
+ }
+
+ @Override
+ public java.lang.String toString() {
+ return _communicationPrefs.toString();
+ }
+
+ public java.lang.String toXmlString() {
+ return _communicationPrefs.toXmlString();
+ }
+
+ public void persist()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ _communicationPrefs.persist();
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedModel}
+ */
+ public CommunicationPrefs getWrappedCommunicationPrefs() {
+ return _communicationPrefs;
+ }
+
+ public CommunicationPrefs getWrappedModel() {
+ return _communicationPrefs;
+ }
+
+ public void resetOriginalValues() {
+ _communicationPrefs.resetOriginalValues();
+ }
+
+ private CommunicationPrefs _communicationPrefs;
+}
\ No newline at end of file