com.liferay.portlet.journal.model.JournalFeedWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 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.liferay.portlet.journal.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.lar.StagedModelType;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
*
* This class is a wrapper for {@link JournalFeed}.
*
*
* @author Brian Wing Shun Chan
* @see JournalFeed
* @generated
*/
@ProviderType
public class JournalFeedWrapper implements JournalFeed,
ModelWrapper {
public JournalFeedWrapper(JournalFeed journalFeed) {
_journalFeed = journalFeed;
}
@Override
public Class getModelClass() {
return JournalFeed.class;
}
@Override
public String getModelClassName() {
return JournalFeed.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("uuid", getUuid());
attributes.put("id", getId());
attributes.put("groupId", getGroupId());
attributes.put("companyId", getCompanyId());
attributes.put("userId", getUserId());
attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate());
attributes.put("feedId", getFeedId());
attributes.put("name", getName());
attributes.put("description", getDescription());
attributes.put("type", getType());
attributes.put("structureId", getStructureId());
attributes.put("templateId", getTemplateId());
attributes.put("rendererTemplateId", getRendererTemplateId());
attributes.put("delta", getDelta());
attributes.put("orderByCol", getOrderByCol());
attributes.put("orderByType", getOrderByType());
attributes.put("targetLayoutFriendlyUrl", getTargetLayoutFriendlyUrl());
attributes.put("targetPortletId", getTargetPortletId());
attributes.put("contentField", getContentField());
attributes.put("feedFormat", getFeedFormat());
attributes.put("feedVersion", getFeedVersion());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
String uuid = (String)attributes.get("uuid");
if (uuid != null) {
setUuid(uuid);
}
Long id = (Long)attributes.get("id");
if (id != null) {
setId(id);
}
Long groupId = (Long)attributes.get("groupId");
if (groupId != null) {
setGroupId(groupId);
}
Long companyId = (Long)attributes.get("companyId");
if (companyId != null) {
setCompanyId(companyId);
}
Long userId = (Long)attributes.get("userId");
if (userId != null) {
setUserId(userId);
}
String userName = (String)attributes.get("userName");
if (userName != null) {
setUserName(userName);
}
Date createDate = (Date)attributes.get("createDate");
if (createDate != null) {
setCreateDate(createDate);
}
Date modifiedDate = (Date)attributes.get("modifiedDate");
if (modifiedDate != null) {
setModifiedDate(modifiedDate);
}
String feedId = (String)attributes.get("feedId");
if (feedId != null) {
setFeedId(feedId);
}
String name = (String)attributes.get("name");
if (name != null) {
setName(name);
}
String description = (String)attributes.get("description");
if (description != null) {
setDescription(description);
}
String type = (String)attributes.get("type");
if (type != null) {
setType(type);
}
String structureId = (String)attributes.get("structureId");
if (structureId != null) {
setStructureId(structureId);
}
String templateId = (String)attributes.get("templateId");
if (templateId != null) {
setTemplateId(templateId);
}
String rendererTemplateId = (String)attributes.get("rendererTemplateId");
if (rendererTemplateId != null) {
setRendererTemplateId(rendererTemplateId);
}
Integer delta = (Integer)attributes.get("delta");
if (delta != null) {
setDelta(delta);
}
String orderByCol = (String)attributes.get("orderByCol");
if (orderByCol != null) {
setOrderByCol(orderByCol);
}
String orderByType = (String)attributes.get("orderByType");
if (orderByType != null) {
setOrderByType(orderByType);
}
String targetLayoutFriendlyUrl = (String)attributes.get(
"targetLayoutFriendlyUrl");
if (targetLayoutFriendlyUrl != null) {
setTargetLayoutFriendlyUrl(targetLayoutFriendlyUrl);
}
String targetPortletId = (String)attributes.get("targetPortletId");
if (targetPortletId != null) {
setTargetPortletId(targetPortletId);
}
String contentField = (String)attributes.get("contentField");
if (contentField != null) {
setContentField(contentField);
}
String feedFormat = (String)attributes.get("feedFormat");
if (feedFormat != null) {
setFeedFormat(feedFormat);
}
Double feedVersion = (Double)attributes.get("feedVersion");
if (feedVersion != null) {
setFeedVersion(feedVersion);
}
}
/**
* Returns the primary key of this journal feed.
*
* @return the primary key of this journal feed
*/
@Override
public long getPrimaryKey() {
return _journalFeed.getPrimaryKey();
}
/**
* Sets the primary key of this journal feed.
*
* @param primaryKey the primary key of this journal feed
*/
@Override
public void setPrimaryKey(long primaryKey) {
_journalFeed.setPrimaryKey(primaryKey);
}
/**
* Returns the uuid of this journal feed.
*
* @return the uuid of this journal feed
*/
@Override
public java.lang.String getUuid() {
return _journalFeed.getUuid();
}
/**
* Sets the uuid of this journal feed.
*
* @param uuid the uuid of this journal feed
*/
@Override
public void setUuid(java.lang.String uuid) {
_journalFeed.setUuid(uuid);
}
/**
* Returns the ID of this journal feed.
*
* @return the ID of this journal feed
*/
@Override
public long getId() {
return _journalFeed.getId();
}
/**
* Sets the ID of this journal feed.
*
* @param id the ID of this journal feed
*/
@Override
public void setId(long id) {
_journalFeed.setId(id);
}
/**
* Returns the group ID of this journal feed.
*
* @return the group ID of this journal feed
*/
@Override
public long getGroupId() {
return _journalFeed.getGroupId();
}
/**
* Sets the group ID of this journal feed.
*
* @param groupId the group ID of this journal feed
*/
@Override
public void setGroupId(long groupId) {
_journalFeed.setGroupId(groupId);
}
/**
* Returns the company ID of this journal feed.
*
* @return the company ID of this journal feed
*/
@Override
public long getCompanyId() {
return _journalFeed.getCompanyId();
}
/**
* Sets the company ID of this journal feed.
*
* @param companyId the company ID of this journal feed
*/
@Override
public void setCompanyId(long companyId) {
_journalFeed.setCompanyId(companyId);
}
/**
* Returns the user ID of this journal feed.
*
* @return the user ID of this journal feed
*/
@Override
public long getUserId() {
return _journalFeed.getUserId();
}
/**
* Sets the user ID of this journal feed.
*
* @param userId the user ID of this journal feed
*/
@Override
public void setUserId(long userId) {
_journalFeed.setUserId(userId);
}
/**
* Returns the user uuid of this journal feed.
*
* @return the user uuid of this journal feed
* @throws SystemException if a system exception occurred
*/
@Override
public java.lang.String getUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _journalFeed.getUserUuid();
}
/**
* Sets the user uuid of this journal feed.
*
* @param userUuid the user uuid of this journal feed
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_journalFeed.setUserUuid(userUuid);
}
/**
* Returns the user name of this journal feed.
*
* @return the user name of this journal feed
*/
@Override
public java.lang.String getUserName() {
return _journalFeed.getUserName();
}
/**
* Sets the user name of this journal feed.
*
* @param userName the user name of this journal feed
*/
@Override
public void setUserName(java.lang.String userName) {
_journalFeed.setUserName(userName);
}
/**
* Returns the create date of this journal feed.
*
* @return the create date of this journal feed
*/
@Override
public java.util.Date getCreateDate() {
return _journalFeed.getCreateDate();
}
/**
* Sets the create date of this journal feed.
*
* @param createDate the create date of this journal feed
*/
@Override
public void setCreateDate(java.util.Date createDate) {
_journalFeed.setCreateDate(createDate);
}
/**
* Returns the modified date of this journal feed.
*
* @return the modified date of this journal feed
*/
@Override
public java.util.Date getModifiedDate() {
return _journalFeed.getModifiedDate();
}
/**
* Sets the modified date of this journal feed.
*
* @param modifiedDate the modified date of this journal feed
*/
@Override
public void setModifiedDate(java.util.Date modifiedDate) {
_journalFeed.setModifiedDate(modifiedDate);
}
/**
* Returns the feed ID of this journal feed.
*
* @return the feed ID of this journal feed
*/
@Override
public java.lang.String getFeedId() {
return _journalFeed.getFeedId();
}
/**
* Sets the feed ID of this journal feed.
*
* @param feedId the feed ID of this journal feed
*/
@Override
public void setFeedId(java.lang.String feedId) {
_journalFeed.setFeedId(feedId);
}
/**
* Returns the name of this journal feed.
*
* @return the name of this journal feed
*/
@Override
public java.lang.String getName() {
return _journalFeed.getName();
}
/**
* Sets the name of this journal feed.
*
* @param name the name of this journal feed
*/
@Override
public void setName(java.lang.String name) {
_journalFeed.setName(name);
}
/**
* Returns the description of this journal feed.
*
* @return the description of this journal feed
*/
@Override
public java.lang.String getDescription() {
return _journalFeed.getDescription();
}
/**
* Sets the description of this journal feed.
*
* @param description the description of this journal feed
*/
@Override
public void setDescription(java.lang.String description) {
_journalFeed.setDescription(description);
}
/**
* Returns the type of this journal feed.
*
* @return the type of this journal feed
*/
@Override
public java.lang.String getType() {
return _journalFeed.getType();
}
/**
* Sets the type of this journal feed.
*
* @param type the type of this journal feed
*/
@Override
public void setType(java.lang.String type) {
_journalFeed.setType(type);
}
/**
* Returns the structure ID of this journal feed.
*
* @return the structure ID of this journal feed
*/
@Override
public java.lang.String getStructureId() {
return _journalFeed.getStructureId();
}
/**
* Sets the structure ID of this journal feed.
*
* @param structureId the structure ID of this journal feed
*/
@Override
public void setStructureId(java.lang.String structureId) {
_journalFeed.setStructureId(structureId);
}
/**
* Returns the template ID of this journal feed.
*
* @return the template ID of this journal feed
*/
@Override
public java.lang.String getTemplateId() {
return _journalFeed.getTemplateId();
}
/**
* Sets the template ID of this journal feed.
*
* @param templateId the template ID of this journal feed
*/
@Override
public void setTemplateId(java.lang.String templateId) {
_journalFeed.setTemplateId(templateId);
}
/**
* Returns the renderer template ID of this journal feed.
*
* @return the renderer template ID of this journal feed
*/
@Override
public java.lang.String getRendererTemplateId() {
return _journalFeed.getRendererTemplateId();
}
/**
* Sets the renderer template ID of this journal feed.
*
* @param rendererTemplateId the renderer template ID of this journal feed
*/
@Override
public void setRendererTemplateId(java.lang.String rendererTemplateId) {
_journalFeed.setRendererTemplateId(rendererTemplateId);
}
/**
* Returns the delta of this journal feed.
*
* @return the delta of this journal feed
*/
@Override
public int getDelta() {
return _journalFeed.getDelta();
}
/**
* Sets the delta of this journal feed.
*
* @param delta the delta of this journal feed
*/
@Override
public void setDelta(int delta) {
_journalFeed.setDelta(delta);
}
/**
* Returns the order by col of this journal feed.
*
* @return the order by col of this journal feed
*/
@Override
public java.lang.String getOrderByCol() {
return _journalFeed.getOrderByCol();
}
/**
* Sets the order by col of this journal feed.
*
* @param orderByCol the order by col of this journal feed
*/
@Override
public void setOrderByCol(java.lang.String orderByCol) {
_journalFeed.setOrderByCol(orderByCol);
}
/**
* Returns the order by type of this journal feed.
*
* @return the order by type of this journal feed
*/
@Override
public java.lang.String getOrderByType() {
return _journalFeed.getOrderByType();
}
/**
* Sets the order by type of this journal feed.
*
* @param orderByType the order by type of this journal feed
*/
@Override
public void setOrderByType(java.lang.String orderByType) {
_journalFeed.setOrderByType(orderByType);
}
/**
* Returns the target layout friendly url of this journal feed.
*
* @return the target layout friendly url of this journal feed
*/
@Override
public java.lang.String getTargetLayoutFriendlyUrl() {
return _journalFeed.getTargetLayoutFriendlyUrl();
}
/**
* Sets the target layout friendly url of this journal feed.
*
* @param targetLayoutFriendlyUrl the target layout friendly url of this journal feed
*/
@Override
public void setTargetLayoutFriendlyUrl(
java.lang.String targetLayoutFriendlyUrl) {
_journalFeed.setTargetLayoutFriendlyUrl(targetLayoutFriendlyUrl);
}
/**
* Returns the target portlet ID of this journal feed.
*
* @return the target portlet ID of this journal feed
*/
@Override
public java.lang.String getTargetPortletId() {
return _journalFeed.getTargetPortletId();
}
/**
* Sets the target portlet ID of this journal feed.
*
* @param targetPortletId the target portlet ID of this journal feed
*/
@Override
public void setTargetPortletId(java.lang.String targetPortletId) {
_journalFeed.setTargetPortletId(targetPortletId);
}
/**
* Returns the content field of this journal feed.
*
* @return the content field of this journal feed
*/
@Override
public java.lang.String getContentField() {
return _journalFeed.getContentField();
}
/**
* Sets the content field of this journal feed.
*
* @param contentField the content field of this journal feed
*/
@Override
public void setContentField(java.lang.String contentField) {
_journalFeed.setContentField(contentField);
}
/**
* Returns the feed format of this journal feed.
*
* @return the feed format of this journal feed
*/
@Override
public java.lang.String getFeedFormat() {
return _journalFeed.getFeedFormat();
}
/**
* Sets the feed format of this journal feed.
*
* @param feedFormat the feed format of this journal feed
*/
@Override
public void setFeedFormat(java.lang.String feedFormat) {
_journalFeed.setFeedFormat(feedFormat);
}
/**
* Returns the feed version of this journal feed.
*
* @return the feed version of this journal feed
*/
@Override
public double getFeedVersion() {
return _journalFeed.getFeedVersion();
}
/**
* Sets the feed version of this journal feed.
*
* @param feedVersion the feed version of this journal feed
*/
@Override
public void setFeedVersion(double feedVersion) {
_journalFeed.setFeedVersion(feedVersion);
}
@Override
public boolean isNew() {
return _journalFeed.isNew();
}
@Override
public void setNew(boolean n) {
_journalFeed.setNew(n);
}
@Override
public boolean isCachedModel() {
return _journalFeed.isCachedModel();
}
@Override
public void setCachedModel(boolean cachedModel) {
_journalFeed.setCachedModel(cachedModel);
}
@Override
public boolean isEscapedModel() {
return _journalFeed.isEscapedModel();
}
@Override
public java.io.Serializable getPrimaryKeyObj() {
return _journalFeed.getPrimaryKeyObj();
}
@Override
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_journalFeed.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _journalFeed.getExpandoBridge();
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.model.BaseModel baseModel) {
_journalFeed.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
_journalFeed.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_journalFeed.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new JournalFeedWrapper((JournalFeed)_journalFeed.clone());
}
@Override
public int compareTo(
com.liferay.portlet.journal.model.JournalFeed journalFeed) {
return _journalFeed.compareTo(journalFeed);
}
@Override
public int hashCode() {
return _journalFeed.hashCode();
}
@Override
public com.liferay.portal.model.CacheModel toCacheModel() {
return _journalFeed.toCacheModel();
}
@Override
public com.liferay.portlet.journal.model.JournalFeed toEscapedModel() {
return new JournalFeedWrapper(_journalFeed.toEscapedModel());
}
@Override
public com.liferay.portlet.journal.model.JournalFeed toUnescapedModel() {
return new JournalFeedWrapper(_journalFeed.toUnescapedModel());
}
@Override
public java.lang.String toString() {
return _journalFeed.toString();
}
@Override
public java.lang.String toXmlString() {
return _journalFeed.toXmlString();
}
@Override
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_journalFeed.persist();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof JournalFeedWrapper)) {
return false;
}
JournalFeedWrapper journalFeedWrapper = (JournalFeedWrapper)obj;
if (Validator.equals(_journalFeed, journalFeedWrapper._journalFeed)) {
return true;
}
return false;
}
@Override
public StagedModelType getStagedModelType() {
return _journalFeed.getStagedModelType();
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
*/
public JournalFeed getWrappedJournalFeed() {
return _journalFeed;
}
@Override
public JournalFeed getWrappedModel() {
return _journalFeed;
}
@Override
public void resetOriginalValues() {
_journalFeed.resetOriginalValues();
}
private JournalFeed _journalFeed;
}