--- /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.agenda.model;
+
+import com.liferay.portal.model.ModelWrapper;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link Ressource}.
+ * </p>
+ *
+ * @author Igor Barma
+ * @see Ressource
+ * @generated
+ */
+public class RessourceWrapper implements Ressource, ModelWrapper<Ressource> {
+ public RessourceWrapper(Ressource ressource) {
+ _ressource = ressource;
+ }
+
+ public Class<?> getModelClass() {
+ return Ressource.class;
+ }
+
+ public String getModelClassName() {
+ return Ressource.class.getName();
+ }
+
+ public Map<String, Object> getModelAttributes() {
+ Map<String, Object> attributes = new HashMap<String, Object>();
+
+ attributes.put("idRessource", getIdRessource());
+ attributes.put("idcreator", getIdcreator());
+ attributes.put("name", getName());
+ attributes.put("description", getDescription());
+ attributes.put("ressourceType", getRessourceType());
+ attributes.put("scope", getScope());
+ attributes.put("color", getColor());
+ attributes.put("etabId", getEtabId());
+ attributes.put("kind", getKind());
+ attributes.put("forcePubli", getForcePubli());
+ attributes.put("cdtUserId", getCdtUserId());
+ attributes.put("ressource", getRessource());
+ attributes.put("ecriture", getEcriture());
+ attributes.put("filtreCours", getFiltreCours());
+ attributes.put("classe", getClasse());
+ attributes.put("matiere", getMatiere());
+ attributes.put("onlyMyClass", getOnlyMyClass());
+
+ return attributes;
+ }
+
+ public void setModelAttributes(Map<String, Object> attributes) {
+ Long idRessource = (Long)attributes.get("idRessource");
+
+ if (idRessource != null) {
+ setIdRessource(idRessource);
+ }
+
+ Long idcreator = (Long)attributes.get("idcreator");
+
+ if (idcreator != null) {
+ setIdcreator(idcreator);
+ }
+
+ String name = (String)attributes.get("name");
+
+ if (name != null) {
+ setName(name);
+ }
+
+ String description = (String)attributes.get("description");
+
+ if (description != null) {
+ setDescription(description);
+ }
+
+ Integer ressourceType = (Integer)attributes.get("ressourceType");
+
+ if (ressourceType != null) {
+ setRessourceType(ressourceType);
+ }
+
+ Integer scope = (Integer)attributes.get("scope");
+
+ if (scope != null) {
+ setScope(scope);
+ }
+
+ String color = (String)attributes.get("color");
+
+ if (color != null) {
+ setColor(color);
+ }
+
+ Long etabId = (Long)attributes.get("etabId");
+
+ if (etabId != null) {
+ setEtabId(etabId);
+ }
+
+ Integer kind = (Integer)attributes.get("kind");
+
+ if (kind != null) {
+ setKind(kind);
+ }
+
+ Boolean forcePubli = (Boolean)attributes.get("forcePubli");
+
+ if (forcePubli != null) {
+ setForcePubli(forcePubli);
+ }
+
+ Long cdtUserId = (Long)attributes.get("cdtUserId");
+
+ if (cdtUserId != null) {
+ setCdtUserId(cdtUserId);
+ }
+
+ Boolean ressource = (Boolean)attributes.get("ressource");
+
+ if (ressource != null) {
+ setRessource(ressource);
+ }
+
+ Boolean ecriture = (Boolean)attributes.get("ecriture");
+
+ if (ecriture != null) {
+ setEcriture(ecriture);
+ }
+
+ Integer filtreCours = (Integer)attributes.get("filtreCours");
+
+ if (filtreCours != null) {
+ setFiltreCours(filtreCours);
+ }
+
+ Long classe = (Long)attributes.get("classe");
+
+ if (classe != null) {
+ setClasse(classe);
+ }
+
+ String matiere = (String)attributes.get("matiere");
+
+ if (matiere != null) {
+ setMatiere(matiere);
+ }
+
+ Boolean onlyMyClass = (Boolean)attributes.get("onlyMyClass");
+
+ if (onlyMyClass != null) {
+ setOnlyMyClass(onlyMyClass);
+ }
+ }
+
+ /**
+ * Returns the primary key of this ressource.
+ *
+ * @return the primary key of this ressource
+ */
+ public long getPrimaryKey() {
+ return _ressource.getPrimaryKey();
+ }
+
+ /**
+ * Sets the primary key of this ressource.
+ *
+ * @param primaryKey the primary key of this ressource
+ */
+ public void setPrimaryKey(long primaryKey) {
+ _ressource.setPrimaryKey(primaryKey);
+ }
+
+ /**
+ * Returns the id ressource of this ressource.
+ *
+ * @return the id ressource of this ressource
+ */
+ public long getIdRessource() {
+ return _ressource.getIdRessource();
+ }
+
+ /**
+ * Sets the id ressource of this ressource.
+ *
+ * @param idRessource the id ressource of this ressource
+ */
+ public void setIdRessource(long idRessource) {
+ _ressource.setIdRessource(idRessource);
+ }
+
+ /**
+ * Returns the idcreator of this ressource.
+ *
+ * @return the idcreator of this ressource
+ */
+ public long getIdcreator() {
+ return _ressource.getIdcreator();
+ }
+
+ /**
+ * Sets the idcreator of this ressource.
+ *
+ * @param idcreator the idcreator of this ressource
+ */
+ public void setIdcreator(long idcreator) {
+ _ressource.setIdcreator(idcreator);
+ }
+
+ /**
+ * Returns the name of this ressource.
+ *
+ * @return the name of this ressource
+ */
+ public java.lang.String getName() {
+ return _ressource.getName();
+ }
+
+ /**
+ * Sets the name of this ressource.
+ *
+ * @param name the name of this ressource
+ */
+ public void setName(java.lang.String name) {
+ _ressource.setName(name);
+ }
+
+ /**
+ * Returns the description of this ressource.
+ *
+ * @return the description of this ressource
+ */
+ public java.lang.String getDescription() {
+ return _ressource.getDescription();
+ }
+
+ /**
+ * Sets the description of this ressource.
+ *
+ * @param description the description of this ressource
+ */
+ public void setDescription(java.lang.String description) {
+ _ressource.setDescription(description);
+ }
+
+ /**
+ * Returns the ressource type of this ressource.
+ *
+ * @return the ressource type of this ressource
+ */
+ public int getRessourceType() {
+ return _ressource.getRessourceType();
+ }
+
+ /**
+ * Sets the ressource type of this ressource.
+ *
+ * @param ressourceType the ressource type of this ressource
+ */
+ public void setRessourceType(int ressourceType) {
+ _ressource.setRessourceType(ressourceType);
+ }
+
+ /**
+ * Returns the scope of this ressource.
+ *
+ * @return the scope of this ressource
+ */
+ public int getScope() {
+ return _ressource.getScope();
+ }
+
+ /**
+ * Sets the scope of this ressource.
+ *
+ * @param scope the scope of this ressource
+ */
+ public void setScope(int scope) {
+ _ressource.setScope(scope);
+ }
+
+ /**
+ * Returns the color of this ressource.
+ *
+ * @return the color of this ressource
+ */
+ public java.lang.String getColor() {
+ return _ressource.getColor();
+ }
+
+ /**
+ * Sets the color of this ressource.
+ *
+ * @param color the color of this ressource
+ */
+ public void setColor(java.lang.String color) {
+ _ressource.setColor(color);
+ }
+
+ /**
+ * Returns the etab ID of this ressource.
+ *
+ * @return the etab ID of this ressource
+ */
+ public long getEtabId() {
+ return _ressource.getEtabId();
+ }
+
+ /**
+ * Sets the etab ID of this ressource.
+ *
+ * @param etabId the etab ID of this ressource
+ */
+ public void setEtabId(long etabId) {
+ _ressource.setEtabId(etabId);
+ }
+
+ /**
+ * Returns the kind of this ressource.
+ *
+ * @return the kind of this ressource
+ */
+ public int getKind() {
+ return _ressource.getKind();
+ }
+
+ /**
+ * Sets the kind of this ressource.
+ *
+ * @param kind the kind of this ressource
+ */
+ public void setKind(int kind) {
+ _ressource.setKind(kind);
+ }
+
+ /**
+ * Returns the force publi of this ressource.
+ *
+ * @return the force publi of this ressource
+ */
+ public boolean getForcePubli() {
+ return _ressource.getForcePubli();
+ }
+
+ /**
+ * Returns <code>true</code> if this ressource is force publi.
+ *
+ * @return <code>true</code> if this ressource is force publi; <code>false</code> otherwise
+ */
+ public boolean isForcePubli() {
+ return _ressource.isForcePubli();
+ }
+
+ /**
+ * Sets whether this ressource is force publi.
+ *
+ * @param forcePubli the force publi of this ressource
+ */
+ public void setForcePubli(boolean forcePubli) {
+ _ressource.setForcePubli(forcePubli);
+ }
+
+ /**
+ * Returns the cdt user ID of this ressource.
+ *
+ * @return the cdt user ID of this ressource
+ */
+ public long getCdtUserId() {
+ return _ressource.getCdtUserId();
+ }
+
+ /**
+ * Sets the cdt user ID of this ressource.
+ *
+ * @param cdtUserId the cdt user ID of this ressource
+ */
+ public void setCdtUserId(long cdtUserId) {
+ _ressource.setCdtUserId(cdtUserId);
+ }
+
+ /**
+ * Returns the cdt user uuid of this ressource.
+ *
+ * @return the cdt user uuid of this ressource
+ * @throws SystemException if a system exception occurred
+ */
+ public java.lang.String getCdtUserUuid()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressource.getCdtUserUuid();
+ }
+
+ /**
+ * Sets the cdt user uuid of this ressource.
+ *
+ * @param cdtUserUuid the cdt user uuid of this ressource
+ */
+ public void setCdtUserUuid(java.lang.String cdtUserUuid) {
+ _ressource.setCdtUserUuid(cdtUserUuid);
+ }
+
+ /**
+ * Returns the ressource of this ressource.
+ *
+ * @return the ressource of this ressource
+ */
+ public boolean getRessource() {
+ return _ressource.getRessource();
+ }
+
+ /**
+ * Returns <code>true</code> if this ressource is ressource.
+ *
+ * @return <code>true</code> if this ressource is ressource; <code>false</code> otherwise
+ */
+ public boolean isRessource() {
+ return _ressource.isRessource();
+ }
+
+ /**
+ * Sets whether this ressource is ressource.
+ *
+ * @param ressource the ressource of this ressource
+ */
+ public void setRessource(boolean ressource) {
+ _ressource.setRessource(ressource);
+ }
+
+ /**
+ * Returns the ecriture of this ressource.
+ *
+ * @return the ecriture of this ressource
+ */
+ public boolean getEcriture() {
+ return _ressource.getEcriture();
+ }
+
+ /**
+ * Returns <code>true</code> if this ressource is ecriture.
+ *
+ * @return <code>true</code> if this ressource is ecriture; <code>false</code> otherwise
+ */
+ public boolean isEcriture() {
+ return _ressource.isEcriture();
+ }
+
+ /**
+ * Sets whether this ressource is ecriture.
+ *
+ * @param ecriture the ecriture of this ressource
+ */
+ public void setEcriture(boolean ecriture) {
+ _ressource.setEcriture(ecriture);
+ }
+
+ /**
+ * Returns the filtre cours of this ressource.
+ *
+ * @return the filtre cours of this ressource
+ */
+ public int getFiltreCours() {
+ return _ressource.getFiltreCours();
+ }
+
+ /**
+ * Sets the filtre cours of this ressource.
+ *
+ * @param filtreCours the filtre cours of this ressource
+ */
+ public void setFiltreCours(int filtreCours) {
+ _ressource.setFiltreCours(filtreCours);
+ }
+
+ /**
+ * Returns the classe of this ressource.
+ *
+ * @return the classe of this ressource
+ */
+ public long getClasse() {
+ return _ressource.getClasse();
+ }
+
+ /**
+ * Sets the classe of this ressource.
+ *
+ * @param classe the classe of this ressource
+ */
+ public void setClasse(long classe) {
+ _ressource.setClasse(classe);
+ }
+
+ /**
+ * Returns the matiere of this ressource.
+ *
+ * @return the matiere of this ressource
+ */
+ public java.lang.String getMatiere() {
+ return _ressource.getMatiere();
+ }
+
+ /**
+ * Sets the matiere of this ressource.
+ *
+ * @param matiere the matiere of this ressource
+ */
+ public void setMatiere(java.lang.String matiere) {
+ _ressource.setMatiere(matiere);
+ }
+
+ /**
+ * Returns the only my class of this ressource.
+ *
+ * @return the only my class of this ressource
+ */
+ public boolean getOnlyMyClass() {
+ return _ressource.getOnlyMyClass();
+ }
+
+ /**
+ * Returns <code>true</code> if this ressource is only my class.
+ *
+ * @return <code>true</code> if this ressource is only my class; <code>false</code> otherwise
+ */
+ public boolean isOnlyMyClass() {
+ return _ressource.isOnlyMyClass();
+ }
+
+ /**
+ * Sets whether this ressource is only my class.
+ *
+ * @param onlyMyClass the only my class of this ressource
+ */
+ public void setOnlyMyClass(boolean onlyMyClass) {
+ _ressource.setOnlyMyClass(onlyMyClass);
+ }
+
+ public boolean isNew() {
+ return _ressource.isNew();
+ }
+
+ public void setNew(boolean n) {
+ _ressource.setNew(n);
+ }
+
+ public boolean isCachedModel() {
+ return _ressource.isCachedModel();
+ }
+
+ public void setCachedModel(boolean cachedModel) {
+ _ressource.setCachedModel(cachedModel);
+ }
+
+ public boolean isEscapedModel() {
+ return _ressource.isEscapedModel();
+ }
+
+ public java.io.Serializable getPrimaryKeyObj() {
+ return _ressource.getPrimaryKeyObj();
+ }
+
+ public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
+ _ressource.setPrimaryKeyObj(primaryKeyObj);
+ }
+
+ public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
+ return _ressource.getExpandoBridge();
+ }
+
+ public void setExpandoBridgeAttributes(
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ _ressource.setExpandoBridgeAttributes(serviceContext);
+ }
+
+ @Override
+ public java.lang.Object clone() {
+ return new RessourceWrapper((Ressource)_ressource.clone());
+ }
+
+ public int compareTo(com.pentila.entSavoie.agenda.model.Ressource ressource) {
+ return _ressource.compareTo(ressource);
+ }
+
+ @Override
+ public int hashCode() {
+ return _ressource.hashCode();
+ }
+
+ public com.liferay.portal.model.CacheModel<com.pentila.entSavoie.agenda.model.Ressource> toCacheModel() {
+ return _ressource.toCacheModel();
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource toEscapedModel() {
+ return new RessourceWrapper(_ressource.toEscapedModel());
+ }
+
+ @Override
+ public java.lang.String toString() {
+ return _ressource.toString();
+ }
+
+ public java.lang.String toXmlString() {
+ return _ressource.toXmlString();
+ }
+
+ public void persist()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ _ressource.persist();
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedModel}
+ */
+ public Ressource getWrappedRessource() {
+ return _ressource;
+ }
+
+ public Ressource getWrappedModel() {
+ return _ressource;
+ }
+
+ public void resetOriginalValues() {
+ _ressource.resetOriginalValues();
+ }
+
+ private Ressource _ressource;
+}
\ No newline at end of file