--- /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.internalMessaging.model;
+
+import com.liferay.portal.model.ModelWrapper;
+
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link RssItem}.
+ * </p>
+ *
+ * @author Igor Barma - Mathieu Amblard
+ * @see RssItem
+ * @generated
+ */
+public class RssItemWrapper implements RssItem, ModelWrapper<RssItem> {
+ public RssItemWrapper(RssItem rssItem) {
+ _rssItem = rssItem;
+ }
+
+ public Class<?> getModelClass() {
+ return RssItem.class;
+ }
+
+ public String getModelClassName() {
+ return RssItem.class.getName();
+ }
+
+ public Map<String, Object> getModelAttributes() {
+ Map<String, Object> attributes = new HashMap<String, Object>();
+
+ attributes.put("itemId", getItemId());
+ attributes.put("companyId", getCompanyId());
+ attributes.put("userId", getUserId());
+ attributes.put("chanelId", getChanelId());
+ attributes.put("chanelTitle", getChanelTitle());
+ attributes.put("guid", getGuid());
+ attributes.put("title", getTitle());
+ attributes.put("body", getBody());
+ attributes.put("pubDate", getPubDate());
+ attributes.put("schemaType", getSchemaType());
+ attributes.put("state", getState());
+ attributes.put("canBeDelete", getCanBeDelete());
+
+ return attributes;
+ }
+
+ public void setModelAttributes(Map<String, Object> attributes) {
+ Long itemId = (Long)attributes.get("itemId");
+
+ if (itemId != null) {
+ setItemId(itemId);
+ }
+
+ Long companyId = (Long)attributes.get("companyId");
+
+ if (companyId != null) {
+ setCompanyId(companyId);
+ }
+
+ Long userId = (Long)attributes.get("userId");
+
+ if (userId != null) {
+ setUserId(userId);
+ }
+
+ Long chanelId = (Long)attributes.get("chanelId");
+
+ if (chanelId != null) {
+ setChanelId(chanelId);
+ }
+
+ String chanelTitle = (String)attributes.get("chanelTitle");
+
+ if (chanelTitle != null) {
+ setChanelTitle(chanelTitle);
+ }
+
+ Integer guid = (Integer)attributes.get("guid");
+
+ if (guid != null) {
+ setGuid(guid);
+ }
+
+ String title = (String)attributes.get("title");
+
+ if (title != null) {
+ setTitle(title);
+ }
+
+ String body = (String)attributes.get("body");
+
+ if (body != null) {
+ setBody(body);
+ }
+
+ Date pubDate = (Date)attributes.get("pubDate");
+
+ if (pubDate != null) {
+ setPubDate(pubDate);
+ }
+
+ String schemaType = (String)attributes.get("schemaType");
+
+ if (schemaType != null) {
+ setSchemaType(schemaType);
+ }
+
+ String state = (String)attributes.get("state");
+
+ if (state != null) {
+ setState(state);
+ }
+
+ Boolean canBeDelete = (Boolean)attributes.get("canBeDelete");
+
+ if (canBeDelete != null) {
+ setCanBeDelete(canBeDelete);
+ }
+ }
+
+ /**
+ * Returns the primary key of this rss item.
+ *
+ * @return the primary key of this rss item
+ */
+ public long getPrimaryKey() {
+ return _rssItem.getPrimaryKey();
+ }
+
+ /**
+ * Sets the primary key of this rss item.
+ *
+ * @param primaryKey the primary key of this rss item
+ */
+ public void setPrimaryKey(long primaryKey) {
+ _rssItem.setPrimaryKey(primaryKey);
+ }
+
+ /**
+ * Returns the item ID of this rss item.
+ *
+ * @return the item ID of this rss item
+ */
+ public long getItemId() {
+ return _rssItem.getItemId();
+ }
+
+ /**
+ * Sets the item ID of this rss item.
+ *
+ * @param itemId the item ID of this rss item
+ */
+ public void setItemId(long itemId) {
+ _rssItem.setItemId(itemId);
+ }
+
+ /**
+ * Returns the company ID of this rss item.
+ *
+ * @return the company ID of this rss item
+ */
+ public long getCompanyId() {
+ return _rssItem.getCompanyId();
+ }
+
+ /**
+ * Sets the company ID of this rss item.
+ *
+ * @param companyId the company ID of this rss item
+ */
+ public void setCompanyId(long companyId) {
+ _rssItem.setCompanyId(companyId);
+ }
+
+ /**
+ * Returns the user ID of this rss item.
+ *
+ * @return the user ID of this rss item
+ */
+ public long getUserId() {
+ return _rssItem.getUserId();
+ }
+
+ /**
+ * Sets the user ID of this rss item.
+ *
+ * @param userId the user ID of this rss item
+ */
+ public void setUserId(long userId) {
+ _rssItem.setUserId(userId);
+ }
+
+ /**
+ * Returns the user uuid of this rss item.
+ *
+ * @return the user uuid of this rss item
+ * @throws SystemException if a system exception occurred
+ */
+ public java.lang.String getUserUuid()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _rssItem.getUserUuid();
+ }
+
+ /**
+ * Sets the user uuid of this rss item.
+ *
+ * @param userUuid the user uuid of this rss item
+ */
+ public void setUserUuid(java.lang.String userUuid) {
+ _rssItem.setUserUuid(userUuid);
+ }
+
+ /**
+ * Returns the chanel ID of this rss item.
+ *
+ * @return the chanel ID of this rss item
+ */
+ public long getChanelId() {
+ return _rssItem.getChanelId();
+ }
+
+ /**
+ * Sets the chanel ID of this rss item.
+ *
+ * @param chanelId the chanel ID of this rss item
+ */
+ public void setChanelId(long chanelId) {
+ _rssItem.setChanelId(chanelId);
+ }
+
+ /**
+ * Returns the chanel title of this rss item.
+ *
+ * @return the chanel title of this rss item
+ */
+ public java.lang.String getChanelTitle() {
+ return _rssItem.getChanelTitle();
+ }
+
+ /**
+ * Sets the chanel title of this rss item.
+ *
+ * @param chanelTitle the chanel title of this rss item
+ */
+ public void setChanelTitle(java.lang.String chanelTitle) {
+ _rssItem.setChanelTitle(chanelTitle);
+ }
+
+ /**
+ * Returns the guid of this rss item.
+ *
+ * @return the guid of this rss item
+ */
+ public int getGuid() {
+ return _rssItem.getGuid();
+ }
+
+ /**
+ * Sets the guid of this rss item.
+ *
+ * @param guid the guid of this rss item
+ */
+ public void setGuid(int guid) {
+ _rssItem.setGuid(guid);
+ }
+
+ /**
+ * Returns the title of this rss item.
+ *
+ * @return the title of this rss item
+ */
+ public java.lang.String getTitle() {
+ return _rssItem.getTitle();
+ }
+
+ /**
+ * Sets the title of this rss item.
+ *
+ * @param title the title of this rss item
+ */
+ public void setTitle(java.lang.String title) {
+ _rssItem.setTitle(title);
+ }
+
+ /**
+ * Returns the body of this rss item.
+ *
+ * @return the body of this rss item
+ */
+ public java.lang.String getBody() {
+ return _rssItem.getBody();
+ }
+
+ /**
+ * Sets the body of this rss item.
+ *
+ * @param body the body of this rss item
+ */
+ public void setBody(java.lang.String body) {
+ _rssItem.setBody(body);
+ }
+
+ /**
+ * Returns the pub date of this rss item.
+ *
+ * @return the pub date of this rss item
+ */
+ public java.util.Date getPubDate() {
+ return _rssItem.getPubDate();
+ }
+
+ /**
+ * Sets the pub date of this rss item.
+ *
+ * @param pubDate the pub date of this rss item
+ */
+ public void setPubDate(java.util.Date pubDate) {
+ _rssItem.setPubDate(pubDate);
+ }
+
+ /**
+ * Returns the schema type of this rss item.
+ *
+ * @return the schema type of this rss item
+ */
+ public java.lang.String getSchemaType() {
+ return _rssItem.getSchemaType();
+ }
+
+ /**
+ * Sets the schema type of this rss item.
+ *
+ * @param schemaType the schema type of this rss item
+ */
+ public void setSchemaType(java.lang.String schemaType) {
+ _rssItem.setSchemaType(schemaType);
+ }
+
+ /**
+ * Returns the state of this rss item.
+ *
+ * @return the state of this rss item
+ */
+ public java.lang.String getState() {
+ return _rssItem.getState();
+ }
+
+ /**
+ * Sets the state of this rss item.
+ *
+ * @param state the state of this rss item
+ */
+ public void setState(java.lang.String state) {
+ _rssItem.setState(state);
+ }
+
+ /**
+ * Returns the can be delete of this rss item.
+ *
+ * @return the can be delete of this rss item
+ */
+ public boolean getCanBeDelete() {
+ return _rssItem.getCanBeDelete();
+ }
+
+ /**
+ * Returns <code>true</code> if this rss item is can be delete.
+ *
+ * @return <code>true</code> if this rss item is can be delete; <code>false</code> otherwise
+ */
+ public boolean isCanBeDelete() {
+ return _rssItem.isCanBeDelete();
+ }
+
+ /**
+ * Sets whether this rss item is can be delete.
+ *
+ * @param canBeDelete the can be delete of this rss item
+ */
+ public void setCanBeDelete(boolean canBeDelete) {
+ _rssItem.setCanBeDelete(canBeDelete);
+ }
+
+ public boolean isNew() {
+ return _rssItem.isNew();
+ }
+
+ public void setNew(boolean n) {
+ _rssItem.setNew(n);
+ }
+
+ public boolean isCachedModel() {
+ return _rssItem.isCachedModel();
+ }
+
+ public void setCachedModel(boolean cachedModel) {
+ _rssItem.setCachedModel(cachedModel);
+ }
+
+ public boolean isEscapedModel() {
+ return _rssItem.isEscapedModel();
+ }
+
+ public java.io.Serializable getPrimaryKeyObj() {
+ return _rssItem.getPrimaryKeyObj();
+ }
+
+ public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
+ _rssItem.setPrimaryKeyObj(primaryKeyObj);
+ }
+
+ public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
+ return _rssItem.getExpandoBridge();
+ }
+
+ public void setExpandoBridgeAttributes(
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ _rssItem.setExpandoBridgeAttributes(serviceContext);
+ }
+
+ @Override
+ public java.lang.Object clone() {
+ return new RssItemWrapper((RssItem)_rssItem.clone());
+ }
+
+ public int compareTo(
+ com.pentila.entSavoie.internalMessaging.model.RssItem rssItem) {
+ return _rssItem.compareTo(rssItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return _rssItem.hashCode();
+ }
+
+ public com.liferay.portal.model.CacheModel<com.pentila.entSavoie.internalMessaging.model.RssItem> toCacheModel() {
+ return _rssItem.toCacheModel();
+ }
+
+ public com.pentila.entSavoie.internalMessaging.model.RssItem toEscapedModel() {
+ return new RssItemWrapper(_rssItem.toEscapedModel());
+ }
+
+ @Override
+ public java.lang.String toString() {
+ return _rssItem.toString();
+ }
+
+ public java.lang.String toXmlString() {
+ return _rssItem.toXmlString();
+ }
+
+ public void persist()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ _rssItem.persist();
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedModel}
+ */
+ public RssItem getWrappedRssItem() {
+ return _rssItem;
+ }
+
+ public RssItem getWrappedModel() {
+ return _rssItem;
+ }
+
+ public void resetOriginalValues() {
+ _rssItem.resetOriginalValues();
+ }
+
+ private RssItem _rssItem;
+}
\ No newline at end of file