com.liferay.trash.kernel.model.TrashEntryWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.kernel Show documentation
Show all versions of com.liferay.portal.kernel 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-present 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.trash.kernel.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.Validator;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
*
* This class is a wrapper for {@link TrashEntry}.
*
*
* @author Brian Wing Shun Chan
* @see TrashEntry
* @generated
*/
@ProviderType
public class TrashEntryWrapper implements TrashEntry, ModelWrapper {
public TrashEntryWrapper(TrashEntry trashEntry) {
_trashEntry = trashEntry;
}
@Override
public Class> getModelClass() {
return TrashEntry.class;
}
@Override
public String getModelClassName() {
return TrashEntry.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
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("classNameId", getClassNameId());
attributes.put("classPK", getClassPK());
attributes.put("systemEventSetKey", getSystemEventSetKey());
attributes.put("typeSettings", getTypeSettings());
attributes.put("status", getStatus());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
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);
}
Long classNameId = (Long)attributes.get("classNameId");
if (classNameId != null) {
setClassNameId(classNameId);
}
Long classPK = (Long)attributes.get("classPK");
if (classPK != null) {
setClassPK(classPK);
}
Long systemEventSetKey = (Long)attributes.get("systemEventSetKey");
if (systemEventSetKey != null) {
setSystemEventSetKey(systemEventSetKey);
}
String typeSettings = (String)attributes.get("typeSettings");
if (typeSettings != null) {
setTypeSettings(typeSettings);
}
Integer status = (Integer)attributes.get("status");
if (status != null) {
setStatus(status);
}
}
@Override
public java.lang.Object clone() {
return new TrashEntryWrapper((TrashEntry)_trashEntry.clone());
}
@Override
public int compareTo(com.liferay.trash.kernel.model.TrashEntry trashEntry) {
return _trashEntry.compareTo(trashEntry);
}
/**
* Returns the fully qualified class name of this trash entry.
*
* @return the fully qualified class name of this trash entry
*/
@Override
public java.lang.String getClassName() {
return _trashEntry.getClassName();
}
/**
* Returns the class name ID of this trash entry.
*
* @return the class name ID of this trash entry
*/
@Override
public long getClassNameId() {
return _trashEntry.getClassNameId();
}
/**
* Returns the class p k of this trash entry.
*
* @return the class p k of this trash entry
*/
@Override
public long getClassPK() {
return _trashEntry.getClassPK();
}
/**
* Returns the company ID of this trash entry.
*
* @return the company ID of this trash entry
*/
@Override
public long getCompanyId() {
return _trashEntry.getCompanyId();
}
/**
* Returns the create date of this trash entry.
*
* @return the create date of this trash entry
*/
@Override
public Date getCreateDate() {
return _trashEntry.getCreateDate();
}
/**
* Returns the entry ID of this trash entry.
*
* @return the entry ID of this trash entry
*/
@Override
public long getEntryId() {
return _trashEntry.getEntryId();
}
@Override
public ExpandoBridge getExpandoBridge() {
return _trashEntry.getExpandoBridge();
}
/**
* Returns the group ID of this trash entry.
*
* @return the group ID of this trash entry
*/
@Override
public long getGroupId() {
return _trashEntry.getGroupId();
}
/**
* Returns the primary key of this trash entry.
*
* @return the primary key of this trash entry
*/
@Override
public long getPrimaryKey() {
return _trashEntry.getPrimaryKey();
}
@Override
public Serializable getPrimaryKeyObj() {
return _trashEntry.getPrimaryKeyObj();
}
@Override
public com.liferay.trash.kernel.model.TrashEntry getRootEntry() {
return _trashEntry.getRootEntry();
}
/**
* Returns the status of this trash entry.
*
* @return the status of this trash entry
*/
@Override
public int getStatus() {
return _trashEntry.getStatus();
}
/**
* Returns the system event set key of this trash entry.
*
* @return the system event set key of this trash entry
*/
@Override
public long getSystemEventSetKey() {
return _trashEntry.getSystemEventSetKey();
}
/**
* Returns the type settings of this trash entry.
*
* @return the type settings of this trash entry
*/
@Override
public java.lang.String getTypeSettings() {
return _trashEntry.getTypeSettings();
}
@Override
public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
return _trashEntry.getTypeSettingsProperties();
}
@Override
public java.lang.String getTypeSettingsProperty(java.lang.String key) {
return _trashEntry.getTypeSettingsProperty(key);
}
@Override
public java.lang.String getTypeSettingsProperty(java.lang.String key,
java.lang.String defaultValue) {
return _trashEntry.getTypeSettingsProperty(key, defaultValue);
}
/**
* Returns the user ID of this trash entry.
*
* @return the user ID of this trash entry
*/
@Override
public long getUserId() {
return _trashEntry.getUserId();
}
/**
* Returns the user name of this trash entry.
*
* @return the user name of this trash entry
*/
@Override
public java.lang.String getUserName() {
return _trashEntry.getUserName();
}
/**
* Returns the user uuid of this trash entry.
*
* @return the user uuid of this trash entry
*/
@Override
public java.lang.String getUserUuid() {
return _trashEntry.getUserUuid();
}
@Override
public int hashCode() {
return _trashEntry.hashCode();
}
@Override
public boolean isCachedModel() {
return _trashEntry.isCachedModel();
}
@Override
public boolean isEscapedModel() {
return _trashEntry.isEscapedModel();
}
@Override
public boolean isNew() {
return _trashEntry.isNew();
}
@Override
public boolean isTrashEntry(java.lang.String className, long classPK) {
return _trashEntry.isTrashEntry(className, classPK);
}
@Override
public boolean isTrashEntry(java.lang.Class> clazz, long classPK) {
return _trashEntry.isTrashEntry(clazz, classPK);
}
@Override
public void persist() {
_trashEntry.persist();
}
@Override
public void setCachedModel(boolean cachedModel) {
_trashEntry.setCachedModel(cachedModel);
}
@Override
public void setClassName(java.lang.String className) {
_trashEntry.setClassName(className);
}
/**
* Sets the class name ID of this trash entry.
*
* @param classNameId the class name ID of this trash entry
*/
@Override
public void setClassNameId(long classNameId) {
_trashEntry.setClassNameId(classNameId);
}
/**
* Sets the class p k of this trash entry.
*
* @param classPK the class p k of this trash entry
*/
@Override
public void setClassPK(long classPK) {
_trashEntry.setClassPK(classPK);
}
/**
* Sets the company ID of this trash entry.
*
* @param companyId the company ID of this trash entry
*/
@Override
public void setCompanyId(long companyId) {
_trashEntry.setCompanyId(companyId);
}
/**
* Sets the create date of this trash entry.
*
* @param createDate the create date of this trash entry
*/
@Override
public void setCreateDate(Date createDate) {
_trashEntry.setCreateDate(createDate);
}
/**
* Sets the entry ID of this trash entry.
*
* @param entryId the entry ID of this trash entry
*/
@Override
public void setEntryId(long entryId) {
_trashEntry.setEntryId(entryId);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.kernel.model.BaseModel> baseModel) {
_trashEntry.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
_trashEntry.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
_trashEntry.setExpandoBridgeAttributes(serviceContext);
}
/**
* Sets the group ID of this trash entry.
*
* @param groupId the group ID of this trash entry
*/
@Override
public void setGroupId(long groupId) {
_trashEntry.setGroupId(groupId);
}
@Override
public void setNew(boolean n) {
_trashEntry.setNew(n);
}
/**
* Sets the primary key of this trash entry.
*
* @param primaryKey the primary key of this trash entry
*/
@Override
public void setPrimaryKey(long primaryKey) {
_trashEntry.setPrimaryKey(primaryKey);
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
_trashEntry.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public void setRootEntry(
com.liferay.trash.kernel.model.TrashEntry rootEntry) {
_trashEntry.setRootEntry(rootEntry);
}
/**
* Sets the status of this trash entry.
*
* @param status the status of this trash entry
*/
@Override
public void setStatus(int status) {
_trashEntry.setStatus(status);
}
/**
* Sets the system event set key of this trash entry.
*
* @param systemEventSetKey the system event set key of this trash entry
*/
@Override
public void setSystemEventSetKey(long systemEventSetKey) {
_trashEntry.setSystemEventSetKey(systemEventSetKey);
}
/**
* Sets the type settings of this trash entry.
*
* @param typeSettings the type settings of this trash entry
*/
@Override
public void setTypeSettings(java.lang.String typeSettings) {
_trashEntry.setTypeSettings(typeSettings);
}
@Override
public void setTypeSettingsProperties(
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
_trashEntry.setTypeSettingsProperties(typeSettingsProperties);
}
/**
* Sets the user ID of this trash entry.
*
* @param userId the user ID of this trash entry
*/
@Override
public void setUserId(long userId) {
_trashEntry.setUserId(userId);
}
/**
* Sets the user name of this trash entry.
*
* @param userName the user name of this trash entry
*/
@Override
public void setUserName(java.lang.String userName) {
_trashEntry.setUserName(userName);
}
/**
* Sets the user uuid of this trash entry.
*
* @param userUuid the user uuid of this trash entry
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_trashEntry.setUserUuid(userUuid);
}
@Override
public com.liferay.portal.kernel.model.CacheModel toCacheModel() {
return _trashEntry.toCacheModel();
}
@Override
public com.liferay.trash.kernel.model.TrashEntry toEscapedModel() {
return new TrashEntryWrapper(_trashEntry.toEscapedModel());
}
@Override
public java.lang.String toString() {
return _trashEntry.toString();
}
@Override
public com.liferay.trash.kernel.model.TrashEntry toUnescapedModel() {
return new TrashEntryWrapper(_trashEntry.toUnescapedModel());
}
@Override
public java.lang.String toXmlString() {
return _trashEntry.toXmlString();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof TrashEntryWrapper)) {
return false;
}
TrashEntryWrapper trashEntryWrapper = (TrashEntryWrapper)obj;
if (Validator.equals(_trashEntry, trashEntryWrapper._trashEntry)) {
return true;
}
return false;
}
@Override
public TrashEntry getWrappedModel() {
return _trashEntry;
}
@Override
public boolean isEntityCacheEnabled() {
return _trashEntry.isEntityCacheEnabled();
}
@Override
public boolean isFinderCacheEnabled() {
return _trashEntry.isFinderCacheEnabled();
}
@Override
public void resetOriginalValues() {
_trashEntry.resetOriginalValues();
}
private final TrashEntry _trashEntry;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy