com.liferay.portlet.journal.model.JournalArticleImageWrapper 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.util.Validator;
import com.liferay.portal.model.ModelWrapper;
import java.util.HashMap;
import java.util.Map;
/**
*
* This class is a wrapper for {@link JournalArticleImage}.
*
*
* @author Brian Wing Shun Chan
* @see JournalArticleImage
* @generated
*/
@ProviderType
public class JournalArticleImageWrapper implements JournalArticleImage,
ModelWrapper {
public JournalArticleImageWrapper(JournalArticleImage journalArticleImage) {
_journalArticleImage = journalArticleImage;
}
@Override
public Class getModelClass() {
return JournalArticleImage.class;
}
@Override
public String getModelClassName() {
return JournalArticleImage.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("articleImageId", getArticleImageId());
attributes.put("groupId", getGroupId());
attributes.put("articleId", getArticleId());
attributes.put("version", getVersion());
attributes.put("elInstanceId", getElInstanceId());
attributes.put("elName", getElName());
attributes.put("languageId", getLanguageId());
attributes.put("tempImage", getTempImage());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
Long articleImageId = (Long)attributes.get("articleImageId");
if (articleImageId != null) {
setArticleImageId(articleImageId);
}
Long groupId = (Long)attributes.get("groupId");
if (groupId != null) {
setGroupId(groupId);
}
String articleId = (String)attributes.get("articleId");
if (articleId != null) {
setArticleId(articleId);
}
Double version = (Double)attributes.get("version");
if (version != null) {
setVersion(version);
}
String elInstanceId = (String)attributes.get("elInstanceId");
if (elInstanceId != null) {
setElInstanceId(elInstanceId);
}
String elName = (String)attributes.get("elName");
if (elName != null) {
setElName(elName);
}
String languageId = (String)attributes.get("languageId");
if (languageId != null) {
setLanguageId(languageId);
}
Boolean tempImage = (Boolean)attributes.get("tempImage");
if (tempImage != null) {
setTempImage(tempImage);
}
}
/**
* Returns the primary key of this journal article image.
*
* @return the primary key of this journal article image
*/
@Override
public long getPrimaryKey() {
return _journalArticleImage.getPrimaryKey();
}
/**
* Sets the primary key of this journal article image.
*
* @param primaryKey the primary key of this journal article image
*/
@Override
public void setPrimaryKey(long primaryKey) {
_journalArticleImage.setPrimaryKey(primaryKey);
}
/**
* Returns the article image ID of this journal article image.
*
* @return the article image ID of this journal article image
*/
@Override
public long getArticleImageId() {
return _journalArticleImage.getArticleImageId();
}
/**
* Sets the article image ID of this journal article image.
*
* @param articleImageId the article image ID of this journal article image
*/
@Override
public void setArticleImageId(long articleImageId) {
_journalArticleImage.setArticleImageId(articleImageId);
}
/**
* Returns the group ID of this journal article image.
*
* @return the group ID of this journal article image
*/
@Override
public long getGroupId() {
return _journalArticleImage.getGroupId();
}
/**
* Sets the group ID of this journal article image.
*
* @param groupId the group ID of this journal article image
*/
@Override
public void setGroupId(long groupId) {
_journalArticleImage.setGroupId(groupId);
}
/**
* Returns the article ID of this journal article image.
*
* @return the article ID of this journal article image
*/
@Override
public java.lang.String getArticleId() {
return _journalArticleImage.getArticleId();
}
/**
* Sets the article ID of this journal article image.
*
* @param articleId the article ID of this journal article image
*/
@Override
public void setArticleId(java.lang.String articleId) {
_journalArticleImage.setArticleId(articleId);
}
/**
* Returns the version of this journal article image.
*
* @return the version of this journal article image
*/
@Override
public double getVersion() {
return _journalArticleImage.getVersion();
}
/**
* Sets the version of this journal article image.
*
* @param version the version of this journal article image
*/
@Override
public void setVersion(double version) {
_journalArticleImage.setVersion(version);
}
/**
* Returns the el instance ID of this journal article image.
*
* @return the el instance ID of this journal article image
*/
@Override
public java.lang.String getElInstanceId() {
return _journalArticleImage.getElInstanceId();
}
/**
* Sets the el instance ID of this journal article image.
*
* @param elInstanceId the el instance ID of this journal article image
*/
@Override
public void setElInstanceId(java.lang.String elInstanceId) {
_journalArticleImage.setElInstanceId(elInstanceId);
}
/**
* Returns the el name of this journal article image.
*
* @return the el name of this journal article image
*/
@Override
public java.lang.String getElName() {
return _journalArticleImage.getElName();
}
/**
* Sets the el name of this journal article image.
*
* @param elName the el name of this journal article image
*/
@Override
public void setElName(java.lang.String elName) {
_journalArticleImage.setElName(elName);
}
/**
* Returns the language ID of this journal article image.
*
* @return the language ID of this journal article image
*/
@Override
public java.lang.String getLanguageId() {
return _journalArticleImage.getLanguageId();
}
/**
* Sets the language ID of this journal article image.
*
* @param languageId the language ID of this journal article image
*/
@Override
public void setLanguageId(java.lang.String languageId) {
_journalArticleImage.setLanguageId(languageId);
}
/**
* Returns the temp image of this journal article image.
*
* @return the temp image of this journal article image
*/
@Override
public boolean getTempImage() {
return _journalArticleImage.getTempImage();
}
/**
* Returns true
if this journal article image is temp image.
*
* @return true
if this journal article image is temp image; false
otherwise
*/
@Override
public boolean isTempImage() {
return _journalArticleImage.isTempImage();
}
/**
* Sets whether this journal article image is temp image.
*
* @param tempImage the temp image of this journal article image
*/
@Override
public void setTempImage(boolean tempImage) {
_journalArticleImage.setTempImage(tempImage);
}
@Override
public boolean isNew() {
return _journalArticleImage.isNew();
}
@Override
public void setNew(boolean n) {
_journalArticleImage.setNew(n);
}
@Override
public boolean isCachedModel() {
return _journalArticleImage.isCachedModel();
}
@Override
public void setCachedModel(boolean cachedModel) {
_journalArticleImage.setCachedModel(cachedModel);
}
@Override
public boolean isEscapedModel() {
return _journalArticleImage.isEscapedModel();
}
@Override
public java.io.Serializable getPrimaryKeyObj() {
return _journalArticleImage.getPrimaryKeyObj();
}
@Override
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_journalArticleImage.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _journalArticleImage.getExpandoBridge();
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.model.BaseModel baseModel) {
_journalArticleImage.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
_journalArticleImage.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_journalArticleImage.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new JournalArticleImageWrapper((JournalArticleImage)_journalArticleImage.clone());
}
@Override
public int compareTo(
com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage) {
return _journalArticleImage.compareTo(journalArticleImage);
}
@Override
public int hashCode() {
return _journalArticleImage.hashCode();
}
@Override
public com.liferay.portal.model.CacheModel toCacheModel() {
return _journalArticleImage.toCacheModel();
}
@Override
public com.liferay.portlet.journal.model.JournalArticleImage toEscapedModel() {
return new JournalArticleImageWrapper(_journalArticleImage.toEscapedModel());
}
@Override
public com.liferay.portlet.journal.model.JournalArticleImage toUnescapedModel() {
return new JournalArticleImageWrapper(_journalArticleImage.toUnescapedModel());
}
@Override
public java.lang.String toString() {
return _journalArticleImage.toString();
}
@Override
public java.lang.String toXmlString() {
return _journalArticleImage.toXmlString();
}
@Override
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_journalArticleImage.persist();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof JournalArticleImageWrapper)) {
return false;
}
JournalArticleImageWrapper journalArticleImageWrapper = (JournalArticleImageWrapper)obj;
if (Validator.equals(_journalArticleImage,
journalArticleImageWrapper._journalArticleImage)) {
return true;
}
return false;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
*/
public JournalArticleImage getWrappedJournalArticleImage() {
return _journalArticleImage;
}
@Override
public JournalArticleImage getWrappedModel() {
return _journalArticleImage;
}
@Override
public void resetOriginalValues() {
_journalArticleImage.resetOriginalValues();
}
private JournalArticleImage _journalArticleImage;
}