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

com.liferay.portlet.documentlibrary.model.DLFileRankWrapper 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.documentlibrary.model;

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 DLFileRank}. *

* * @author Brian Wing Shun Chan * @see DLFileRank * @generated */ public class DLFileRankWrapper implements DLFileRank, ModelWrapper { public DLFileRankWrapper(DLFileRank dlFileRank) { _dlFileRank = dlFileRank; } @Override public Class getModelClass() { return DLFileRank.class; } @Override public String getModelClassName() { return DLFileRank.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("fileRankId", getFileRankId()); attributes.put("groupId", getGroupId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("createDate", getCreateDate()); attributes.put("fileEntryId", getFileEntryId()); attributes.put("active", getActive()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long fileRankId = (Long)attributes.get("fileRankId"); if (fileRankId != null) { setFileRankId(fileRankId); } 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); } Date createDate = (Date)attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } Long fileEntryId = (Long)attributes.get("fileEntryId"); if (fileEntryId != null) { setFileEntryId(fileEntryId); } Boolean active = (Boolean)attributes.get("active"); if (active != null) { setActive(active); } } /** * Returns the primary key of this document library file rank. * * @return the primary key of this document library file rank */ @Override public long getPrimaryKey() { return _dlFileRank.getPrimaryKey(); } /** * Sets the primary key of this document library file rank. * * @param primaryKey the primary key of this document library file rank */ @Override public void setPrimaryKey(long primaryKey) { _dlFileRank.setPrimaryKey(primaryKey); } /** * Returns the file rank ID of this document library file rank. * * @return the file rank ID of this document library file rank */ @Override public long getFileRankId() { return _dlFileRank.getFileRankId(); } /** * Sets the file rank ID of this document library file rank. * * @param fileRankId the file rank ID of this document library file rank */ @Override public void setFileRankId(long fileRankId) { _dlFileRank.setFileRankId(fileRankId); } /** * Returns the group ID of this document library file rank. * * @return the group ID of this document library file rank */ @Override public long getGroupId() { return _dlFileRank.getGroupId(); } /** * Sets the group ID of this document library file rank. * * @param groupId the group ID of this document library file rank */ @Override public void setGroupId(long groupId) { _dlFileRank.setGroupId(groupId); } /** * Returns the company ID of this document library file rank. * * @return the company ID of this document library file rank */ @Override public long getCompanyId() { return _dlFileRank.getCompanyId(); } /** * Sets the company ID of this document library file rank. * * @param companyId the company ID of this document library file rank */ @Override public void setCompanyId(long companyId) { _dlFileRank.setCompanyId(companyId); } /** * Returns the user ID of this document library file rank. * * @return the user ID of this document library file rank */ @Override public long getUserId() { return _dlFileRank.getUserId(); } /** * Sets the user ID of this document library file rank. * * @param userId the user ID of this document library file rank */ @Override public void setUserId(long userId) { _dlFileRank.setUserId(userId); } /** * Returns the user uuid of this document library file rank. * * @return the user uuid of this document library file rank * @throws SystemException if a system exception occurred */ @Override public java.lang.String getUserUuid() throws com.liferay.portal.kernel.exception.SystemException { return _dlFileRank.getUserUuid(); } /** * Sets the user uuid of this document library file rank. * * @param userUuid the user uuid of this document library file rank */ @Override public void setUserUuid(java.lang.String userUuid) { _dlFileRank.setUserUuid(userUuid); } /** * Returns the create date of this document library file rank. * * @return the create date of this document library file rank */ @Override public java.util.Date getCreateDate() { return _dlFileRank.getCreateDate(); } /** * Sets the create date of this document library file rank. * * @param createDate the create date of this document library file rank */ @Override public void setCreateDate(java.util.Date createDate) { _dlFileRank.setCreateDate(createDate); } /** * Returns the file entry ID of this document library file rank. * * @return the file entry ID of this document library file rank */ @Override public long getFileEntryId() { return _dlFileRank.getFileEntryId(); } /** * Sets the file entry ID of this document library file rank. * * @param fileEntryId the file entry ID of this document library file rank */ @Override public void setFileEntryId(long fileEntryId) { _dlFileRank.setFileEntryId(fileEntryId); } /** * Returns the active of this document library file rank. * * @return the active of this document library file rank */ @Override public boolean getActive() { return _dlFileRank.getActive(); } /** * Returns true if this document library file rank is active. * * @return true if this document library file rank is active; false otherwise */ @Override public boolean isActive() { return _dlFileRank.isActive(); } /** * Sets whether this document library file rank is active. * * @param active the active of this document library file rank */ @Override public void setActive(boolean active) { _dlFileRank.setActive(active); } @Override public boolean isNew() { return _dlFileRank.isNew(); } @Override public void setNew(boolean n) { _dlFileRank.setNew(n); } @Override public boolean isCachedModel() { return _dlFileRank.isCachedModel(); } @Override public void setCachedModel(boolean cachedModel) { _dlFileRank.setCachedModel(cachedModel); } @Override public boolean isEscapedModel() { return _dlFileRank.isEscapedModel(); } @Override public java.io.Serializable getPrimaryKeyObj() { return _dlFileRank.getPrimaryKeyObj(); } @Override public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _dlFileRank.setPrimaryKeyObj(primaryKeyObj); } @Override public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _dlFileRank.getExpandoBridge(); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.model.BaseModel baseModel) { _dlFileRank.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes( com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { _dlFileRank.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _dlFileRank.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new DLFileRankWrapper((DLFileRank)_dlFileRank.clone()); } @Override public int compareTo( com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) { return _dlFileRank.compareTo(dlFileRank); } @Override public int hashCode() { return _dlFileRank.hashCode(); } @Override public com.liferay.portal.model.CacheModel toCacheModel() { return _dlFileRank.toCacheModel(); } @Override public com.liferay.portlet.documentlibrary.model.DLFileRank toEscapedModel() { return new DLFileRankWrapper(_dlFileRank.toEscapedModel()); } @Override public com.liferay.portlet.documentlibrary.model.DLFileRank toUnescapedModel() { return new DLFileRankWrapper(_dlFileRank.toUnescapedModel()); } @Override public java.lang.String toString() { return _dlFileRank.toString(); } @Override public java.lang.String toXmlString() { return _dlFileRank.toXmlString(); } @Override public void persist() throws com.liferay.portal.kernel.exception.SystemException { _dlFileRank.persist(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DLFileRankWrapper)) { return false; } DLFileRankWrapper dlFileRankWrapper = (DLFileRankWrapper)obj; if (Validator.equals(_dlFileRank, dlFileRankWrapper._dlFileRank)) { return true; } return false; } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} */ public DLFileRank getWrappedDLFileRank() { return _dlFileRank; } @Override public DLFileRank getWrappedModel() { return _dlFileRank; } @Override public void resetOriginalValues() { _dlFileRank.resetOriginalValues(); } private DLFileRank _dlFileRank; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy