All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portlet.messageboards.model.MBBanWrapper Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 7.0.0-nightly
Show newest version
/**
 * 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.messageboards.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 MBBan}. *

* * @author Brian Wing Shun Chan * @see MBBan * @generated */ @ProviderType public class MBBanWrapper implements MBBan, ModelWrapper { public MBBanWrapper(MBBan mbBan) { _mbBan = mbBan; } @Override public Class getModelClass() { return MBBan.class; } @Override public String getModelClassName() { return MBBan.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("uuid", getUuid()); attributes.put("banId", getBanId()); 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("banUserId", getBanUserId()); return attributes; } @Override public void setModelAttributes(Map attributes) { String uuid = (String)attributes.get("uuid"); if (uuid != null) { setUuid(uuid); } Long banId = (Long)attributes.get("banId"); if (banId != null) { setBanId(banId); } 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); } Long banUserId = (Long)attributes.get("banUserId"); if (banUserId != null) { setBanUserId(banUserId); } } /** * Returns the primary key of this message boards ban. * * @return the primary key of this message boards ban */ @Override public long getPrimaryKey() { return _mbBan.getPrimaryKey(); } /** * Sets the primary key of this message boards ban. * * @param primaryKey the primary key of this message boards ban */ @Override public void setPrimaryKey(long primaryKey) { _mbBan.setPrimaryKey(primaryKey); } /** * Returns the uuid of this message boards ban. * * @return the uuid of this message boards ban */ @Override public java.lang.String getUuid() { return _mbBan.getUuid(); } /** * Sets the uuid of this message boards ban. * * @param uuid the uuid of this message boards ban */ @Override public void setUuid(java.lang.String uuid) { _mbBan.setUuid(uuid); } /** * Returns the ban ID of this message boards ban. * * @return the ban ID of this message boards ban */ @Override public long getBanId() { return _mbBan.getBanId(); } /** * Sets the ban ID of this message boards ban. * * @param banId the ban ID of this message boards ban */ @Override public void setBanId(long banId) { _mbBan.setBanId(banId); } /** * Returns the group ID of this message boards ban. * * @return the group ID of this message boards ban */ @Override public long getGroupId() { return _mbBan.getGroupId(); } /** * Sets the group ID of this message boards ban. * * @param groupId the group ID of this message boards ban */ @Override public void setGroupId(long groupId) { _mbBan.setGroupId(groupId); } /** * Returns the company ID of this message boards ban. * * @return the company ID of this message boards ban */ @Override public long getCompanyId() { return _mbBan.getCompanyId(); } /** * Sets the company ID of this message boards ban. * * @param companyId the company ID of this message boards ban */ @Override public void setCompanyId(long companyId) { _mbBan.setCompanyId(companyId); } /** * Returns the user ID of this message boards ban. * * @return the user ID of this message boards ban */ @Override public long getUserId() { return _mbBan.getUserId(); } /** * Sets the user ID of this message boards ban. * * @param userId the user ID of this message boards ban */ @Override public void setUserId(long userId) { _mbBan.setUserId(userId); } /** * Returns the user uuid of this message boards ban. * * @return the user uuid of this message boards ban * @throws SystemException if a system exception occurred */ @Override public java.lang.String getUserUuid() throws com.liferay.portal.kernel.exception.SystemException { return _mbBan.getUserUuid(); } /** * Sets the user uuid of this message boards ban. * * @param userUuid the user uuid of this message boards ban */ @Override public void setUserUuid(java.lang.String userUuid) { _mbBan.setUserUuid(userUuid); } /** * Returns the user name of this message boards ban. * * @return the user name of this message boards ban */ @Override public java.lang.String getUserName() { return _mbBan.getUserName(); } /** * Sets the user name of this message boards ban. * * @param userName the user name of this message boards ban */ @Override public void setUserName(java.lang.String userName) { _mbBan.setUserName(userName); } /** * Returns the create date of this message boards ban. * * @return the create date of this message boards ban */ @Override public java.util.Date getCreateDate() { return _mbBan.getCreateDate(); } /** * Sets the create date of this message boards ban. * * @param createDate the create date of this message boards ban */ @Override public void setCreateDate(java.util.Date createDate) { _mbBan.setCreateDate(createDate); } /** * Returns the modified date of this message boards ban. * * @return the modified date of this message boards ban */ @Override public java.util.Date getModifiedDate() { return _mbBan.getModifiedDate(); } /** * Sets the modified date of this message boards ban. * * @param modifiedDate the modified date of this message boards ban */ @Override public void setModifiedDate(java.util.Date modifiedDate) { _mbBan.setModifiedDate(modifiedDate); } /** * Returns the ban user ID of this message boards ban. * * @return the ban user ID of this message boards ban */ @Override public long getBanUserId() { return _mbBan.getBanUserId(); } /** * Sets the ban user ID of this message boards ban. * * @param banUserId the ban user ID of this message boards ban */ @Override public void setBanUserId(long banUserId) { _mbBan.setBanUserId(banUserId); } /** * Returns the ban user uuid of this message boards ban. * * @return the ban user uuid of this message boards ban * @throws SystemException if a system exception occurred */ @Override public java.lang.String getBanUserUuid() throws com.liferay.portal.kernel.exception.SystemException { return _mbBan.getBanUserUuid(); } /** * Sets the ban user uuid of this message boards ban. * * @param banUserUuid the ban user uuid of this message boards ban */ @Override public void setBanUserUuid(java.lang.String banUserUuid) { _mbBan.setBanUserUuid(banUserUuid); } @Override public boolean isNew() { return _mbBan.isNew(); } @Override public void setNew(boolean n) { _mbBan.setNew(n); } @Override public boolean isCachedModel() { return _mbBan.isCachedModel(); } @Override public void setCachedModel(boolean cachedModel) { _mbBan.setCachedModel(cachedModel); } @Override public boolean isEscapedModel() { return _mbBan.isEscapedModel(); } @Override public java.io.Serializable getPrimaryKeyObj() { return _mbBan.getPrimaryKeyObj(); } @Override public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _mbBan.setPrimaryKeyObj(primaryKeyObj); } @Override public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _mbBan.getExpandoBridge(); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.model.BaseModel baseModel) { _mbBan.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes( com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { _mbBan.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _mbBan.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new MBBanWrapper((MBBan)_mbBan.clone()); } @Override public int compareTo(com.liferay.portlet.messageboards.model.MBBan mbBan) { return _mbBan.compareTo(mbBan); } @Override public int hashCode() { return _mbBan.hashCode(); } @Override public com.liferay.portal.model.CacheModel toCacheModel() { return _mbBan.toCacheModel(); } @Override public com.liferay.portlet.messageboards.model.MBBan toEscapedModel() { return new MBBanWrapper(_mbBan.toEscapedModel()); } @Override public com.liferay.portlet.messageboards.model.MBBan toUnescapedModel() { return new MBBanWrapper(_mbBan.toUnescapedModel()); } @Override public java.lang.String toString() { return _mbBan.toString(); } @Override public java.lang.String toXmlString() { return _mbBan.toXmlString(); } @Override public void persist() throws com.liferay.portal.kernel.exception.SystemException { _mbBan.persist(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof MBBanWrapper)) { return false; } MBBanWrapper mbBanWrapper = (MBBanWrapper)obj; if (Validator.equals(_mbBan, mbBanWrapper._mbBan)) { return true; } return false; } @Override public StagedModelType getStagedModelType() { return _mbBan.getStagedModelType(); } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} */ public MBBan getWrappedMBBan() { return _mbBan; } @Override public MBBan getWrappedModel() { return _mbBan; } @Override public void resetOriginalValues() { _mbBan.resetOriginalValues(); } private MBBan _mbBan; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy