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

com.liferay.portlet.documentlibrary.model.DLFileVersionWrapper 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.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 DLFileVersion}. *

* * @author Brian Wing Shun Chan * @see DLFileVersion * @generated */ public class DLFileVersionWrapper implements DLFileVersion, ModelWrapper { public DLFileVersionWrapper(DLFileVersion dlFileVersion) { _dlFileVersion = dlFileVersion; } @Override public Class getModelClass() { return DLFileVersion.class; } @Override public String getModelClassName() { return DLFileVersion.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("uuid", getUuid()); attributes.put("fileVersionId", getFileVersionId()); 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("repositoryId", getRepositoryId()); attributes.put("folderId", getFolderId()); attributes.put("fileEntryId", getFileEntryId()); attributes.put("treePath", getTreePath()); attributes.put("extension", getExtension()); attributes.put("mimeType", getMimeType()); attributes.put("title", getTitle()); attributes.put("description", getDescription()); attributes.put("changeLog", getChangeLog()); attributes.put("extraSettings", getExtraSettings()); attributes.put("fileEntryTypeId", getFileEntryTypeId()); attributes.put("version", getVersion()); attributes.put("size", getSize()); attributes.put("checksum", getChecksum()); 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 fileVersionId = (Long)attributes.get("fileVersionId"); if (fileVersionId != null) { setFileVersionId(fileVersionId); } 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 repositoryId = (Long)attributes.get("repositoryId"); if (repositoryId != null) { setRepositoryId(repositoryId); } Long folderId = (Long)attributes.get("folderId"); if (folderId != null) { setFolderId(folderId); } Long fileEntryId = (Long)attributes.get("fileEntryId"); if (fileEntryId != null) { setFileEntryId(fileEntryId); } String treePath = (String)attributes.get("treePath"); if (treePath != null) { setTreePath(treePath); } String extension = (String)attributes.get("extension"); if (extension != null) { setExtension(extension); } String mimeType = (String)attributes.get("mimeType"); if (mimeType != null) { setMimeType(mimeType); } String title = (String)attributes.get("title"); if (title != null) { setTitle(title); } String description = (String)attributes.get("description"); if (description != null) { setDescription(description); } String changeLog = (String)attributes.get("changeLog"); if (changeLog != null) { setChangeLog(changeLog); } String extraSettings = (String)attributes.get("extraSettings"); if (extraSettings != null) { setExtraSettings(extraSettings); } Long fileEntryTypeId = (Long)attributes.get("fileEntryTypeId"); if (fileEntryTypeId != null) { setFileEntryTypeId(fileEntryTypeId); } String version = (String)attributes.get("version"); if (version != null) { setVersion(version); } Long size = (Long)attributes.get("size"); if (size != null) { setSize(size); } String checksum = (String)attributes.get("checksum"); if (checksum != null) { setChecksum(checksum); } 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 document library file version. * * @return the primary key of this document library file version */ @Override public long getPrimaryKey() { return _dlFileVersion.getPrimaryKey(); } /** * Sets the primary key of this document library file version. * * @param primaryKey the primary key of this document library file version */ @Override public void setPrimaryKey(long primaryKey) { _dlFileVersion.setPrimaryKey(primaryKey); } /** * Returns the uuid of this document library file version. * * @return the uuid of this document library file version */ @Override public java.lang.String getUuid() { return _dlFileVersion.getUuid(); } /** * Sets the uuid of this document library file version. * * @param uuid the uuid of this document library file version */ @Override public void setUuid(java.lang.String uuid) { _dlFileVersion.setUuid(uuid); } /** * Returns the file version ID of this document library file version. * * @return the file version ID of this document library file version */ @Override public long getFileVersionId() { return _dlFileVersion.getFileVersionId(); } /** * Sets the file version ID of this document library file version. * * @param fileVersionId the file version ID of this document library file version */ @Override public void setFileVersionId(long fileVersionId) { _dlFileVersion.setFileVersionId(fileVersionId); } /** * Returns the group ID of this document library file version. * * @return the group ID of this document library file version */ @Override public long getGroupId() { return _dlFileVersion.getGroupId(); } /** * Sets the group ID of this document library file version. * * @param groupId the group ID of this document library file version */ @Override public void setGroupId(long groupId) { _dlFileVersion.setGroupId(groupId); } /** * Returns the company ID of this document library file version. * * @return the company ID of this document library file version */ @Override public long getCompanyId() { return _dlFileVersion.getCompanyId(); } /** * Sets the company ID of this document library file version. * * @param companyId the company ID of this document library file version */ @Override public void setCompanyId(long companyId) { _dlFileVersion.setCompanyId(companyId); } /** * Returns the user ID of this document library file version. * * @return the user ID of this document library file version */ @Override public long getUserId() { return _dlFileVersion.getUserId(); } /** * Sets the user ID of this document library file version. * * @param userId the user ID of this document library file version */ @Override public void setUserId(long userId) { _dlFileVersion.setUserId(userId); } /** * Returns the user uuid of this document library file version. * * @return the user uuid of this document library file version * @throws SystemException if a system exception occurred */ @Override public java.lang.String getUserUuid() throws com.liferay.portal.kernel.exception.SystemException { return _dlFileVersion.getUserUuid(); } /** * Sets the user uuid of this document library file version. * * @param userUuid the user uuid of this document library file version */ @Override public void setUserUuid(java.lang.String userUuid) { _dlFileVersion.setUserUuid(userUuid); } /** * Returns the user name of this document library file version. * * @return the user name of this document library file version */ @Override public java.lang.String getUserName() { return _dlFileVersion.getUserName(); } /** * Sets the user name of this document library file version. * * @param userName the user name of this document library file version */ @Override public void setUserName(java.lang.String userName) { _dlFileVersion.setUserName(userName); } /** * Returns the create date of this document library file version. * * @return the create date of this document library file version */ @Override public java.util.Date getCreateDate() { return _dlFileVersion.getCreateDate(); } /** * Sets the create date of this document library file version. * * @param createDate the create date of this document library file version */ @Override public void setCreateDate(java.util.Date createDate) { _dlFileVersion.setCreateDate(createDate); } /** * Returns the modified date of this document library file version. * * @return the modified date of this document library file version */ @Override public java.util.Date getModifiedDate() { return _dlFileVersion.getModifiedDate(); } /** * Sets the modified date of this document library file version. * * @param modifiedDate the modified date of this document library file version */ @Override public void setModifiedDate(java.util.Date modifiedDate) { _dlFileVersion.setModifiedDate(modifiedDate); } /** * Returns the repository ID of this document library file version. * * @return the repository ID of this document library file version */ @Override public long getRepositoryId() { return _dlFileVersion.getRepositoryId(); } /** * Sets the repository ID of this document library file version. * * @param repositoryId the repository ID of this document library file version */ @Override public void setRepositoryId(long repositoryId) { _dlFileVersion.setRepositoryId(repositoryId); } /** * Returns the folder ID of this document library file version. * * @return the folder ID of this document library file version */ @Override public long getFolderId() { return _dlFileVersion.getFolderId(); } /** * Sets the folder ID of this document library file version. * * @param folderId the folder ID of this document library file version */ @Override public void setFolderId(long folderId) { _dlFileVersion.setFolderId(folderId); } /** * Returns the file entry ID of this document library file version. * * @return the file entry ID of this document library file version */ @Override public long getFileEntryId() { return _dlFileVersion.getFileEntryId(); } /** * Sets the file entry ID of this document library file version. * * @param fileEntryId the file entry ID of this document library file version */ @Override public void setFileEntryId(long fileEntryId) { _dlFileVersion.setFileEntryId(fileEntryId); } /** * Returns the tree path of this document library file version. * * @return the tree path of this document library file version */ @Override public java.lang.String getTreePath() { return _dlFileVersion.getTreePath(); } /** * Sets the tree path of this document library file version. * * @param treePath the tree path of this document library file version */ @Override public void setTreePath(java.lang.String treePath) { _dlFileVersion.setTreePath(treePath); } /** * Returns the extension of this document library file version. * * @return the extension of this document library file version */ @Override public java.lang.String getExtension() { return _dlFileVersion.getExtension(); } /** * Sets the extension of this document library file version. * * @param extension the extension of this document library file version */ @Override public void setExtension(java.lang.String extension) { _dlFileVersion.setExtension(extension); } /** * Returns the mime type of this document library file version. * * @return the mime type of this document library file version */ @Override public java.lang.String getMimeType() { return _dlFileVersion.getMimeType(); } /** * Sets the mime type of this document library file version. * * @param mimeType the mime type of this document library file version */ @Override public void setMimeType(java.lang.String mimeType) { _dlFileVersion.setMimeType(mimeType); } /** * Returns the title of this document library file version. * * @return the title of this document library file version */ @Override public java.lang.String getTitle() { return _dlFileVersion.getTitle(); } /** * Sets the title of this document library file version. * * @param title the title of this document library file version */ @Override public void setTitle(java.lang.String title) { _dlFileVersion.setTitle(title); } /** * Returns the description of this document library file version. * * @return the description of this document library file version */ @Override public java.lang.String getDescription() { return _dlFileVersion.getDescription(); } /** * Sets the description of this document library file version. * * @param description the description of this document library file version */ @Override public void setDescription(java.lang.String description) { _dlFileVersion.setDescription(description); } /** * Returns the change log of this document library file version. * * @return the change log of this document library file version */ @Override public java.lang.String getChangeLog() { return _dlFileVersion.getChangeLog(); } /** * Sets the change log of this document library file version. * * @param changeLog the change log of this document library file version */ @Override public void setChangeLog(java.lang.String changeLog) { _dlFileVersion.setChangeLog(changeLog); } /** * Returns the extra settings of this document library file version. * * @return the extra settings of this document library file version */ @Override public java.lang.String getExtraSettings() { return _dlFileVersion.getExtraSettings(); } /** * Sets the extra settings of this document library file version. * * @param extraSettings the extra settings of this document library file version */ @Override public void setExtraSettings(java.lang.String extraSettings) { _dlFileVersion.setExtraSettings(extraSettings); } /** * Returns the file entry type ID of this document library file version. * * @return the file entry type ID of this document library file version */ @Override public long getFileEntryTypeId() { return _dlFileVersion.getFileEntryTypeId(); } /** * Sets the file entry type ID of this document library file version. * * @param fileEntryTypeId the file entry type ID of this document library file version */ @Override public void setFileEntryTypeId(long fileEntryTypeId) { _dlFileVersion.setFileEntryTypeId(fileEntryTypeId); } /** * Returns the version of this document library file version. * * @return the version of this document library file version */ @Override public java.lang.String getVersion() { return _dlFileVersion.getVersion(); } /** * Sets the version of this document library file version. * * @param version the version of this document library file version */ @Override public void setVersion(java.lang.String version) { _dlFileVersion.setVersion(version); } /** * Returns the size of this document library file version. * * @return the size of this document library file version */ @Override public long getSize() { return _dlFileVersion.getSize(); } /** * Sets the size of this document library file version. * * @param size the size of this document library file version */ @Override public void setSize(long size) { _dlFileVersion.setSize(size); } /** * Returns the checksum of this document library file version. * * @return the checksum of this document library file version */ @Override public java.lang.String getChecksum() { return _dlFileVersion.getChecksum(); } /** * Sets the checksum of this document library file version. * * @param checksum the checksum of this document library file version */ @Override public void setChecksum(java.lang.String checksum) { _dlFileVersion.setChecksum(checksum); } /** * Returns the status of this document library file version. * * @return the status of this document library file version */ @Override public int getStatus() { return _dlFileVersion.getStatus(); } /** * Sets the status of this document library file version. * * @param status the status of this document library file version */ @Override public void setStatus(int status) { _dlFileVersion.setStatus(status); } /** * Returns the status by user ID of this document library file version. * * @return the status by user ID of this document library file version */ @Override public long getStatusByUserId() { return _dlFileVersion.getStatusByUserId(); } /** * Sets the status by user ID of this document library file version. * * @param statusByUserId the status by user ID of this document library file version */ @Override public void setStatusByUserId(long statusByUserId) { _dlFileVersion.setStatusByUserId(statusByUserId); } /** * Returns the status by user uuid of this document library file version. * * @return the status by user uuid of this document library file version * @throws SystemException if a system exception occurred */ @Override public java.lang.String getStatusByUserUuid() throws com.liferay.portal.kernel.exception.SystemException { return _dlFileVersion.getStatusByUserUuid(); } /** * Sets the status by user uuid of this document library file version. * * @param statusByUserUuid the status by user uuid of this document library file version */ @Override public void setStatusByUserUuid(java.lang.String statusByUserUuid) { _dlFileVersion.setStatusByUserUuid(statusByUserUuid); } /** * Returns the status by user name of this document library file version. * * @return the status by user name of this document library file version */ @Override public java.lang.String getStatusByUserName() { return _dlFileVersion.getStatusByUserName(); } /** * Sets the status by user name of this document library file version. * * @param statusByUserName the status by user name of this document library file version */ @Override public void setStatusByUserName(java.lang.String statusByUserName) { _dlFileVersion.setStatusByUserName(statusByUserName); } /** * Returns the status date of this document library file version. * * @return the status date of this document library file version */ @Override public java.util.Date getStatusDate() { return _dlFileVersion.getStatusDate(); } /** * Sets the status date of this document library file version. * * @param statusDate the status date of this document library file version */ @Override public void setStatusDate(java.util.Date statusDate) { _dlFileVersion.setStatusDate(statusDate); } /** * @deprecated As of 6.1.0, replaced by {@link #isApproved()} */ @Override public boolean getApproved() { return _dlFileVersion.getApproved(); } /** * Returns true if this document library file version is approved. * * @return true if this document library file version is approved; false otherwise */ @Override public boolean isApproved() { return _dlFileVersion.isApproved(); } /** * Returns true if this document library file version is denied. * * @return true if this document library file version is denied; false otherwise */ @Override public boolean isDenied() { return _dlFileVersion.isDenied(); } /** * Returns true if this document library file version is a draft. * * @return true if this document library file version is a draft; false otherwise */ @Override public boolean isDraft() { return _dlFileVersion.isDraft(); } /** * Returns true if this document library file version is expired. * * @return true if this document library file version is expired; false otherwise */ @Override public boolean isExpired() { return _dlFileVersion.isExpired(); } /** * Returns true if this document library file version is inactive. * * @return true if this document library file version is inactive; false otherwise */ @Override public boolean isInactive() { return _dlFileVersion.isInactive(); } /** * Returns true if this document library file version is incomplete. * * @return true if this document library file version is incomplete; false otherwise */ @Override public boolean isIncomplete() { return _dlFileVersion.isIncomplete(); } /** * Returns true if this document library file version is pending. * * @return true if this document library file version is pending; false otherwise */ @Override public boolean isPending() { return _dlFileVersion.isPending(); } /** * Returns true if this document library file version is scheduled. * * @return true if this document library file version is scheduled; false otherwise */ @Override public boolean isScheduled() { return _dlFileVersion.isScheduled(); } @Override public boolean isNew() { return _dlFileVersion.isNew(); } @Override public void setNew(boolean n) { _dlFileVersion.setNew(n); } @Override public boolean isCachedModel() { return _dlFileVersion.isCachedModel(); } @Override public void setCachedModel(boolean cachedModel) { _dlFileVersion.setCachedModel(cachedModel); } @Override public boolean isEscapedModel() { return _dlFileVersion.isEscapedModel(); } @Override public java.io.Serializable getPrimaryKeyObj() { return _dlFileVersion.getPrimaryKeyObj(); } @Override public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _dlFileVersion.setPrimaryKeyObj(primaryKeyObj); } @Override public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _dlFileVersion.getExpandoBridge(); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.model.BaseModel baseModel) { _dlFileVersion.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes( com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { _dlFileVersion.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _dlFileVersion.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new DLFileVersionWrapper((DLFileVersion)_dlFileVersion.clone()); } @Override public int compareTo( com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) { return _dlFileVersion.compareTo(dlFileVersion); } @Override public int hashCode() { return _dlFileVersion.hashCode(); } @Override public com.liferay.portal.model.CacheModel toCacheModel() { return _dlFileVersion.toCacheModel(); } @Override public com.liferay.portlet.documentlibrary.model.DLFileVersion toEscapedModel() { return new DLFileVersionWrapper(_dlFileVersion.toEscapedModel()); } @Override public com.liferay.portlet.documentlibrary.model.DLFileVersion toUnescapedModel() { return new DLFileVersionWrapper(_dlFileVersion.toUnescapedModel()); } @Override public java.lang.String toString() { return _dlFileVersion.toString(); } @Override public java.lang.String toXmlString() { return _dlFileVersion.toXmlString(); } @Override public void persist() throws com.liferay.portal.kernel.exception.SystemException { _dlFileVersion.persist(); } @Override public java.lang.String buildTreePath() throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _dlFileVersion.buildTreePath(); } @Override public java.io.InputStream getContentStream(boolean incrementCounter) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _dlFileVersion.getContentStream(incrementCounter); } @Override public com.liferay.portal.kernel.util.UnicodeProperties getExtraSettingsProperties() { return _dlFileVersion.getExtraSettingsProperties(); } @Override public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry() throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _dlFileVersion.getFileEntry(); } @Override public com.liferay.portlet.documentlibrary.model.DLFolder getFolder() throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _dlFileVersion.getFolder(); } @Override public java.lang.String getIcon() { return _dlFileVersion.getIcon(); } @Override public com.liferay.portlet.documentlibrary.model.DLFolder getTrashContainer() throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _dlFileVersion.getTrashContainer(); } @Override public boolean isInTrashContainer() throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _dlFileVersion.isInTrashContainer(); } @Override public void setExtraSettingsProperties( com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties) { _dlFileVersion.setExtraSettingsProperties(extraSettingsProperties); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DLFileVersionWrapper)) { return false; } DLFileVersionWrapper dlFileVersionWrapper = (DLFileVersionWrapper)obj; if (Validator.equals(_dlFileVersion, dlFileVersionWrapper._dlFileVersion)) { return true; } return false; } @Override public StagedModelType getStagedModelType() { return _dlFileVersion.getStagedModelType(); } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} */ public DLFileVersion getWrappedDLFileVersion() { return _dlFileVersion; } @Override public DLFileVersion getWrappedModel() { return _dlFileVersion; } @Override public void resetOriginalValues() { _dlFileVersion.resetOriginalValues(); } private DLFileVersion _dlFileVersion; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy