com.liferay.portlet.blogs.model.BlogsEntryWrapper 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.blogs.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 BlogsEntry}.
*
*
* @author Brian Wing Shun Chan
* @see BlogsEntry
* @generated
*/
@ProviderType
public class BlogsEntryWrapper implements BlogsEntry, ModelWrapper {
public BlogsEntryWrapper(BlogsEntry blogsEntry) {
_blogsEntry = blogsEntry;
}
@Override
public Class getModelClass() {
return BlogsEntry.class;
}
@Override
public String getModelClassName() {
return BlogsEntry.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("uuid", getUuid());
attributes.put("entryId", getEntryId());
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("title", getTitle());
attributes.put("urlTitle", getUrlTitle());
attributes.put("description", getDescription());
attributes.put("content", getContent());
attributes.put("displayDate", getDisplayDate());
attributes.put("allowPingbacks", getAllowPingbacks());
attributes.put("allowTrackbacks", getAllowTrackbacks());
attributes.put("trackbacks", getTrackbacks());
attributes.put("smallImage", getSmallImage());
attributes.put("smallImageId", getSmallImageId());
attributes.put("smallImageURL", getSmallImageURL());
attributes.put("status", getStatus());
attributes.put("statusByUserId", getStatusByUserId());
attributes.put("statusByUserName", getStatusByUserName());
attributes.put("statusDate", getStatusDate());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
String uuid = (String)attributes.get("uuid");
if (uuid != null) {
setUuid(uuid);
}
Long entryId = (Long)attributes.get("entryId");
if (entryId != null) {
setEntryId(entryId);
}
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 title = (String)attributes.get("title");
if (title != null) {
setTitle(title);
}
String urlTitle = (String)attributes.get("urlTitle");
if (urlTitle != null) {
setUrlTitle(urlTitle);
}
String description = (String)attributes.get("description");
if (description != null) {
setDescription(description);
}
String content = (String)attributes.get("content");
if (content != null) {
setContent(content);
}
Date displayDate = (Date)attributes.get("displayDate");
if (displayDate != null) {
setDisplayDate(displayDate);
}
Boolean allowPingbacks = (Boolean)attributes.get("allowPingbacks");
if (allowPingbacks != null) {
setAllowPingbacks(allowPingbacks);
}
Boolean allowTrackbacks = (Boolean)attributes.get("allowTrackbacks");
if (allowTrackbacks != null) {
setAllowTrackbacks(allowTrackbacks);
}
String trackbacks = (String)attributes.get("trackbacks");
if (trackbacks != null) {
setTrackbacks(trackbacks);
}
Boolean smallImage = (Boolean)attributes.get("smallImage");
if (smallImage != null) {
setSmallImage(smallImage);
}
Long smallImageId = (Long)attributes.get("smallImageId");
if (smallImageId != null) {
setSmallImageId(smallImageId);
}
String smallImageURL = (String)attributes.get("smallImageURL");
if (smallImageURL != null) {
setSmallImageURL(smallImageURL);
}
Integer status = (Integer)attributes.get("status");
if (status != null) {
setStatus(status);
}
Long statusByUserId = (Long)attributes.get("statusByUserId");
if (statusByUserId != null) {
setStatusByUserId(statusByUserId);
}
String statusByUserName = (String)attributes.get("statusByUserName");
if (statusByUserName != null) {
setStatusByUserName(statusByUserName);
}
Date statusDate = (Date)attributes.get("statusDate");
if (statusDate != null) {
setStatusDate(statusDate);
}
}
/**
* Returns the primary key of this blogs entry.
*
* @return the primary key of this blogs entry
*/
@Override
public long getPrimaryKey() {
return _blogsEntry.getPrimaryKey();
}
/**
* Sets the primary key of this blogs entry.
*
* @param primaryKey the primary key of this blogs entry
*/
@Override
public void setPrimaryKey(long primaryKey) {
_blogsEntry.setPrimaryKey(primaryKey);
}
/**
* Returns the uuid of this blogs entry.
*
* @return the uuid of this blogs entry
*/
@Override
public java.lang.String getUuid() {
return _blogsEntry.getUuid();
}
/**
* Sets the uuid of this blogs entry.
*
* @param uuid the uuid of this blogs entry
*/
@Override
public void setUuid(java.lang.String uuid) {
_blogsEntry.setUuid(uuid);
}
/**
* Returns the entry ID of this blogs entry.
*
* @return the entry ID of this blogs entry
*/
@Override
public long getEntryId() {
return _blogsEntry.getEntryId();
}
/**
* Sets the entry ID of this blogs entry.
*
* @param entryId the entry ID of this blogs entry
*/
@Override
public void setEntryId(long entryId) {
_blogsEntry.setEntryId(entryId);
}
/**
* Returns the group ID of this blogs entry.
*
* @return the group ID of this blogs entry
*/
@Override
public long getGroupId() {
return _blogsEntry.getGroupId();
}
/**
* Sets the group ID of this blogs entry.
*
* @param groupId the group ID of this blogs entry
*/
@Override
public void setGroupId(long groupId) {
_blogsEntry.setGroupId(groupId);
}
/**
* Returns the company ID of this blogs entry.
*
* @return the company ID of this blogs entry
*/
@Override
public long getCompanyId() {
return _blogsEntry.getCompanyId();
}
/**
* Sets the company ID of this blogs entry.
*
* @param companyId the company ID of this blogs entry
*/
@Override
public void setCompanyId(long companyId) {
_blogsEntry.setCompanyId(companyId);
}
/**
* Returns the user ID of this blogs entry.
*
* @return the user ID of this blogs entry
*/
@Override
public long getUserId() {
return _blogsEntry.getUserId();
}
/**
* Sets the user ID of this blogs entry.
*
* @param userId the user ID of this blogs entry
*/
@Override
public void setUserId(long userId) {
_blogsEntry.setUserId(userId);
}
/**
* Returns the user uuid of this blogs entry.
*
* @return the user uuid of this blogs entry
* @throws SystemException if a system exception occurred
*/
@Override
public java.lang.String getUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _blogsEntry.getUserUuid();
}
/**
* Sets the user uuid of this blogs entry.
*
* @param userUuid the user uuid of this blogs entry
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_blogsEntry.setUserUuid(userUuid);
}
/**
* Returns the user name of this blogs entry.
*
* @return the user name of this blogs entry
*/
@Override
public java.lang.String getUserName() {
return _blogsEntry.getUserName();
}
/**
* Sets the user name of this blogs entry.
*
* @param userName the user name of this blogs entry
*/
@Override
public void setUserName(java.lang.String userName) {
_blogsEntry.setUserName(userName);
}
/**
* Returns the create date of this blogs entry.
*
* @return the create date of this blogs entry
*/
@Override
public java.util.Date getCreateDate() {
return _blogsEntry.getCreateDate();
}
/**
* Sets the create date of this blogs entry.
*
* @param createDate the create date of this blogs entry
*/
@Override
public void setCreateDate(java.util.Date createDate) {
_blogsEntry.setCreateDate(createDate);
}
/**
* Returns the modified date of this blogs entry.
*
* @return the modified date of this blogs entry
*/
@Override
public java.util.Date getModifiedDate() {
return _blogsEntry.getModifiedDate();
}
/**
* Sets the modified date of this blogs entry.
*
* @param modifiedDate the modified date of this blogs entry
*/
@Override
public void setModifiedDate(java.util.Date modifiedDate) {
_blogsEntry.setModifiedDate(modifiedDate);
}
/**
* Returns the title of this blogs entry.
*
* @return the title of this blogs entry
*/
@Override
public java.lang.String getTitle() {
return _blogsEntry.getTitle();
}
/**
* Sets the title of this blogs entry.
*
* @param title the title of this blogs entry
*/
@Override
public void setTitle(java.lang.String title) {
_blogsEntry.setTitle(title);
}
/**
* Returns the url title of this blogs entry.
*
* @return the url title of this blogs entry
*/
@Override
public java.lang.String getUrlTitle() {
return _blogsEntry.getUrlTitle();
}
/**
* Sets the url title of this blogs entry.
*
* @param urlTitle the url title of this blogs entry
*/
@Override
public void setUrlTitle(java.lang.String urlTitle) {
_blogsEntry.setUrlTitle(urlTitle);
}
/**
* Returns the description of this blogs entry.
*
* @return the description of this blogs entry
*/
@Override
public java.lang.String getDescription() {
return _blogsEntry.getDescription();
}
/**
* Sets the description of this blogs entry.
*
* @param description the description of this blogs entry
*/
@Override
public void setDescription(java.lang.String description) {
_blogsEntry.setDescription(description);
}
/**
* Returns the content of this blogs entry.
*
* @return the content of this blogs entry
*/
@Override
public java.lang.String getContent() {
return _blogsEntry.getContent();
}
/**
* Sets the content of this blogs entry.
*
* @param content the content of this blogs entry
*/
@Override
public void setContent(java.lang.String content) {
_blogsEntry.setContent(content);
}
/**
* Returns the display date of this blogs entry.
*
* @return the display date of this blogs entry
*/
@Override
public java.util.Date getDisplayDate() {
return _blogsEntry.getDisplayDate();
}
/**
* Sets the display date of this blogs entry.
*
* @param displayDate the display date of this blogs entry
*/
@Override
public void setDisplayDate(java.util.Date displayDate) {
_blogsEntry.setDisplayDate(displayDate);
}
/**
* Returns the allow pingbacks of this blogs entry.
*
* @return the allow pingbacks of this blogs entry
*/
@Override
public boolean getAllowPingbacks() {
return _blogsEntry.getAllowPingbacks();
}
/**
* Returns true
if this blogs entry is allow pingbacks.
*
* @return true
if this blogs entry is allow pingbacks; false
otherwise
*/
@Override
public boolean isAllowPingbacks() {
return _blogsEntry.isAllowPingbacks();
}
/**
* Sets whether this blogs entry is allow pingbacks.
*
* @param allowPingbacks the allow pingbacks of this blogs entry
*/
@Override
public void setAllowPingbacks(boolean allowPingbacks) {
_blogsEntry.setAllowPingbacks(allowPingbacks);
}
/**
* Returns the allow trackbacks of this blogs entry.
*
* @return the allow trackbacks of this blogs entry
*/
@Override
public boolean getAllowTrackbacks() {
return _blogsEntry.getAllowTrackbacks();
}
/**
* Returns true
if this blogs entry is allow trackbacks.
*
* @return true
if this blogs entry is allow trackbacks; false
otherwise
*/
@Override
public boolean isAllowTrackbacks() {
return _blogsEntry.isAllowTrackbacks();
}
/**
* Sets whether this blogs entry is allow trackbacks.
*
* @param allowTrackbacks the allow trackbacks of this blogs entry
*/
@Override
public void setAllowTrackbacks(boolean allowTrackbacks) {
_blogsEntry.setAllowTrackbacks(allowTrackbacks);
}
/**
* Returns the trackbacks of this blogs entry.
*
* @return the trackbacks of this blogs entry
*/
@Override
public java.lang.String getTrackbacks() {
return _blogsEntry.getTrackbacks();
}
/**
* Sets the trackbacks of this blogs entry.
*
* @param trackbacks the trackbacks of this blogs entry
*/
@Override
public void setTrackbacks(java.lang.String trackbacks) {
_blogsEntry.setTrackbacks(trackbacks);
}
/**
* Returns the small image of this blogs entry.
*
* @return the small image of this blogs entry
*/
@Override
public boolean getSmallImage() {
return _blogsEntry.getSmallImage();
}
/**
* Returns true
if this blogs entry is small image.
*
* @return true
if this blogs entry is small image; false
otherwise
*/
@Override
public boolean isSmallImage() {
return _blogsEntry.isSmallImage();
}
/**
* Sets whether this blogs entry is small image.
*
* @param smallImage the small image of this blogs entry
*/
@Override
public void setSmallImage(boolean smallImage) {
_blogsEntry.setSmallImage(smallImage);
}
/**
* Returns the small image ID of this blogs entry.
*
* @return the small image ID of this blogs entry
*/
@Override
public long getSmallImageId() {
return _blogsEntry.getSmallImageId();
}
/**
* Sets the small image ID of this blogs entry.
*
* @param smallImageId the small image ID of this blogs entry
*/
@Override
public void setSmallImageId(long smallImageId) {
_blogsEntry.setSmallImageId(smallImageId);
}
/**
* Returns the small image u r l of this blogs entry.
*
* @return the small image u r l of this blogs entry
*/
@Override
public java.lang.String getSmallImageURL() {
return _blogsEntry.getSmallImageURL();
}
/**
* Sets the small image u r l of this blogs entry.
*
* @param smallImageURL the small image u r l of this blogs entry
*/
@Override
public void setSmallImageURL(java.lang.String smallImageURL) {
_blogsEntry.setSmallImageURL(smallImageURL);
}
/**
* Returns the status of this blogs entry.
*
* @return the status of this blogs entry
*/
@Override
public int getStatus() {
return _blogsEntry.getStatus();
}
/**
* Sets the status of this blogs entry.
*
* @param status the status of this blogs entry
*/
@Override
public void setStatus(int status) {
_blogsEntry.setStatus(status);
}
/**
* Returns the status by user ID of this blogs entry.
*
* @return the status by user ID of this blogs entry
*/
@Override
public long getStatusByUserId() {
return _blogsEntry.getStatusByUserId();
}
/**
* Sets the status by user ID of this blogs entry.
*
* @param statusByUserId the status by user ID of this blogs entry
*/
@Override
public void setStatusByUserId(long statusByUserId) {
_blogsEntry.setStatusByUserId(statusByUserId);
}
/**
* Returns the status by user uuid of this blogs entry.
*
* @return the status by user uuid of this blogs entry
* @throws SystemException if a system exception occurred
*/
@Override
public java.lang.String getStatusByUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _blogsEntry.getStatusByUserUuid();
}
/**
* Sets the status by user uuid of this blogs entry.
*
* @param statusByUserUuid the status by user uuid of this blogs entry
*/
@Override
public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
_blogsEntry.setStatusByUserUuid(statusByUserUuid);
}
/**
* Returns the status by user name of this blogs entry.
*
* @return the status by user name of this blogs entry
*/
@Override
public java.lang.String getStatusByUserName() {
return _blogsEntry.getStatusByUserName();
}
/**
* Sets the status by user name of this blogs entry.
*
* @param statusByUserName the status by user name of this blogs entry
*/
@Override
public void setStatusByUserName(java.lang.String statusByUserName) {
_blogsEntry.setStatusByUserName(statusByUserName);
}
/**
* Returns the status date of this blogs entry.
*
* @return the status date of this blogs entry
*/
@Override
public java.util.Date getStatusDate() {
return _blogsEntry.getStatusDate();
}
/**
* Sets the status date of this blogs entry.
*
* @param statusDate the status date of this blogs entry
*/
@Override
public void setStatusDate(java.util.Date statusDate) {
_blogsEntry.setStatusDate(statusDate);
}
/**
* Returns the trash entry created when this blogs entry was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this blogs entry.
*
* @return the trash entry created when this blogs entry was moved to the Recycle Bin
* @throws SystemException if a system exception occurred
*/
@Override
public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _blogsEntry.getTrashEntry();
}
/**
* Returns the class primary key of the trash entry for this blogs entry.
*
* @return the class primary key of the trash entry for this blogs entry
*/
@Override
public long getTrashEntryClassPK() {
return _blogsEntry.getTrashEntryClassPK();
}
/**
* Returns the trash handler for this blogs entry.
*
* @return the trash handler for this blogs entry
*/
@Override
public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
return _blogsEntry.getTrashHandler();
}
/**
* Returns true
if this blogs entry is in the Recycle Bin.
*
* @return true
if this blogs entry is in the Recycle Bin; false
otherwise
*/
@Override
public boolean isInTrash() {
return _blogsEntry.isInTrash();
}
/**
* Returns true
if the parent of this blogs entry is in the Recycle Bin.
*
* @return true
if the parent of this blogs entry is in the Recycle Bin; false
otherwise
* @throws SystemException if a system exception occurred
*/
@Override
public boolean isInTrashContainer() {
return _blogsEntry.isInTrashContainer();
}
/**
* @deprecated As of 6.1.0, replaced by {@link #isApproved()}
*/
@Override
public boolean getApproved() {
return _blogsEntry.getApproved();
}
/**
* Returns true
if this blogs entry is approved.
*
* @return true
if this blogs entry is approved; false
otherwise
*/
@Override
public boolean isApproved() {
return _blogsEntry.isApproved();
}
/**
* Returns true
if this blogs entry is denied.
*
* @return true
if this blogs entry is denied; false
otherwise
*/
@Override
public boolean isDenied() {
return _blogsEntry.isDenied();
}
/**
* Returns true
if this blogs entry is a draft.
*
* @return true
if this blogs entry is a draft; false
otherwise
*/
@Override
public boolean isDraft() {
return _blogsEntry.isDraft();
}
/**
* Returns true
if this blogs entry is expired.
*
* @return true
if this blogs entry is expired; false
otherwise
*/
@Override
public boolean isExpired() {
return _blogsEntry.isExpired();
}
/**
* Returns true
if this blogs entry is inactive.
*
* @return true
if this blogs entry is inactive; false
otherwise
*/
@Override
public boolean isInactive() {
return _blogsEntry.isInactive();
}
/**
* Returns true
if this blogs entry is incomplete.
*
* @return true
if this blogs entry is incomplete; false
otherwise
*/
@Override
public boolean isIncomplete() {
return _blogsEntry.isIncomplete();
}
/**
* Returns true
if this blogs entry is pending.
*
* @return true
if this blogs entry is pending; false
otherwise
*/
@Override
public boolean isPending() {
return _blogsEntry.isPending();
}
/**
* Returns true
if this blogs entry is scheduled.
*
* @return true
if this blogs entry is scheduled; false
otherwise
*/
@Override
public boolean isScheduled() {
return _blogsEntry.isScheduled();
}
@Override
public boolean isNew() {
return _blogsEntry.isNew();
}
@Override
public void setNew(boolean n) {
_blogsEntry.setNew(n);
}
@Override
public boolean isCachedModel() {
return _blogsEntry.isCachedModel();
}
@Override
public void setCachedModel(boolean cachedModel) {
_blogsEntry.setCachedModel(cachedModel);
}
@Override
public boolean isEscapedModel() {
return _blogsEntry.isEscapedModel();
}
@Override
public java.io.Serializable getPrimaryKeyObj() {
return _blogsEntry.getPrimaryKeyObj();
}
@Override
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_blogsEntry.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _blogsEntry.getExpandoBridge();
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.model.BaseModel baseModel) {
_blogsEntry.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
_blogsEntry.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_blogsEntry.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new BlogsEntryWrapper((BlogsEntry)_blogsEntry.clone());
}
@Override
public int compareTo(com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
return _blogsEntry.compareTo(blogsEntry);
}
@Override
public int hashCode() {
return _blogsEntry.hashCode();
}
@Override
public com.liferay.portal.model.CacheModel toCacheModel() {
return _blogsEntry.toCacheModel();
}
@Override
public com.liferay.portlet.blogs.model.BlogsEntry toEscapedModel() {
return new BlogsEntryWrapper(_blogsEntry.toEscapedModel());
}
@Override
public com.liferay.portlet.blogs.model.BlogsEntry toUnescapedModel() {
return new BlogsEntryWrapper(_blogsEntry.toUnescapedModel());
}
@Override
public java.lang.String toString() {
return _blogsEntry.toString();
}
@Override
public java.lang.String toXmlString() {
return _blogsEntry.toXmlString();
}
@Override
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_blogsEntry.persist();
}
@Override
public java.lang.String getEntryImageURL(
com.liferay.portal.theme.ThemeDisplay themeDisplay) {
return _blogsEntry.getEntryImageURL(themeDisplay);
}
@Override
public java.lang.String getSmallImageType()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _blogsEntry.getSmallImageType();
}
@Override
public boolean isVisible() {
return _blogsEntry.isVisible();
}
@Override
public void setSmallImageType(java.lang.String smallImageType) {
_blogsEntry.setSmallImageType(smallImageType);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof BlogsEntryWrapper)) {
return false;
}
BlogsEntryWrapper blogsEntryWrapper = (BlogsEntryWrapper)obj;
if (Validator.equals(_blogsEntry, blogsEntryWrapper._blogsEntry)) {
return true;
}
return false;
}
@Override
public StagedModelType getStagedModelType() {
return _blogsEntry.getStagedModelType();
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
*/
public BlogsEntry getWrappedBlogsEntry() {
return _blogsEntry;
}
@Override
public BlogsEntry getWrappedModel() {
return _blogsEntry;
}
@Override
public void resetOriginalValues() {
_blogsEntry.resetOriginalValues();
}
private BlogsEntry _blogsEntry;
}