/** * 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.portal.kernel.model; import aQute.bnd.annotation.ProviderType; import com.liferay.expando.kernel.model.ExpandoBridge; import com.liferay.exportimport.kernel.lar.StagedModelType; import com.liferay.portal.kernel.service.ServiceContext; import java.io.Serializable; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.Objects; /** * <p> * This class is a wrapper for {@link RepositoryEntry}. * </p> * * @author Brian Wing Shun Chan * @see RepositoryEntry * @generated */ @ProviderType public class RepositoryEntryWrapper implements RepositoryEntry, ModelWrapper<RepositoryEntry> { public RepositoryEntryWrapper(RepositoryEntry repositoryEntry) { _repositoryEntry = repositoryEntry; } @Override public Class<?> getModelClass() { return RepositoryEntry.class; } @Override public String getModelClassName() { return RepositoryEntry.class.getName(); } @Override public Map<String, Object> getModelAttributes() { Map<String, Object> attributes = new HashMap<String, Object>(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("uuid", getUuid()); attributes.put("repositoryEntryId", getRepositoryEntryId()); 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("mappedId", getMappedId()); attributes.put("manualCheckInRequired", getManualCheckInRequired()); attributes.put("lastPublishDate", getLastPublishDate()); return attributes; } @Override public void setModelAttributes(Map<String, Object> attributes) { Long mvccVersion = (Long)attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } String uuid = (String)attributes.get("uuid"); if (uuid != null) { setUuid(uuid); } Long repositoryEntryId = (Long)attributes.get("repositoryEntryId"); if (repositoryEntryId != null) { setRepositoryEntryId(repositoryEntryId); } 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); } String mappedId = (String)attributes.get("mappedId"); if (mappedId != null) { setMappedId(mappedId); } Boolean manualCheckInRequired = (Boolean)attributes.get( "manualCheckInRequired"); if (manualCheckInRequired != null) { setManualCheckInRequired(manualCheckInRequired); } Date lastPublishDate = (Date)attributes.get("lastPublishDate"); if (lastPublishDate != null) { setLastPublishDate(lastPublishDate); } } @Override public CacheModel<RepositoryEntry> toCacheModel() { return _repositoryEntry.toCacheModel(); } @Override public RepositoryEntry toEscapedModel() { return new RepositoryEntryWrapper(_repositoryEntry.toEscapedModel()); } @Override public RepositoryEntry toUnescapedModel() { return new RepositoryEntryWrapper(_repositoryEntry.toUnescapedModel()); } /** * Returns the manual check in required of this repository entry. * * @return the manual check in required of this repository entry */ @Override public boolean getManualCheckInRequired() { return _repositoryEntry.getManualCheckInRequired(); } @Override public boolean isCachedModel() { return _repositoryEntry.isCachedModel(); } @Override public boolean isEscapedModel() { return _repositoryEntry.isEscapedModel(); } /** * Returns <code>true</code> if this repository entry is manual check in required. * * @return <code>true</code> if this repository entry is manual check in required; <code>false</code> otherwise */ @Override public boolean isManualCheckInRequired() { return _repositoryEntry.isManualCheckInRequired(); } @Override public boolean isNew() { return _repositoryEntry.isNew(); } @Override public ExpandoBridge getExpandoBridge() { return _repositoryEntry.getExpandoBridge(); } @Override public int compareTo(RepositoryEntry repositoryEntry) { return _repositoryEntry.compareTo(repositoryEntry); } @Override public int hashCode() { return _repositoryEntry.hashCode(); } @Override public Serializable getPrimaryKeyObj() { return _repositoryEntry.getPrimaryKeyObj(); } @Override public java.lang.Object clone() { return new RepositoryEntryWrapper((RepositoryEntry)_repositoryEntry.clone()); } /** * Returns the mapped ID of this repository entry. * * @return the mapped ID of this repository entry */ @Override public java.lang.String getMappedId() { return _repositoryEntry.getMappedId(); } /** * Returns the user name of this repository entry. * * @return the user name of this repository entry */ @Override public java.lang.String getUserName() { return _repositoryEntry.getUserName(); } /** * Returns the user uuid of this repository entry. * * @return the user uuid of this repository entry */ @Override public java.lang.String getUserUuid() { return _repositoryEntry.getUserUuid(); } /** * Returns the uuid of this repository entry. * * @return the uuid of this repository entry */ @Override public java.lang.String getUuid() { return _repositoryEntry.getUuid(); } @Override public java.lang.String toString() { return _repositoryEntry.toString(); } @Override public java.lang.String toXmlString() { return _repositoryEntry.toXmlString(); } /** * Returns the create date of this repository entry. * * @return the create date of this repository entry */ @Override public Date getCreateDate() { return _repositoryEntry.getCreateDate(); } /** * Returns the last publish date of this repository entry. * * @return the last publish date of this repository entry */ @Override public Date getLastPublishDate() { return _repositoryEntry.getLastPublishDate(); } /** * Returns the modified date of this repository entry. * * @return the modified date of this repository entry */ @Override public Date getModifiedDate() { return _repositoryEntry.getModifiedDate(); } /** * Returns the company ID of this repository entry. * * @return the company ID of this repository entry */ @Override public long getCompanyId() { return _repositoryEntry.getCompanyId(); } /** * Returns the group ID of this repository entry. * * @return the group ID of this repository entry */ @Override public long getGroupId() { return _repositoryEntry.getGroupId(); } /** * Returns the mvcc version of this repository entry. * * @return the mvcc version of this repository entry */ @Override public long getMvccVersion() { return _repositoryEntry.getMvccVersion(); } /** * Returns the primary key of this repository entry. * * @return the primary key of this repository entry */ @Override public long getPrimaryKey() { return _repositoryEntry.getPrimaryKey(); } /** * Returns the repository entry ID of this repository entry. * * @return the repository entry ID of this repository entry */ @Override public long getRepositoryEntryId() { return _repositoryEntry.getRepositoryEntryId(); } /** * Returns the repository ID of this repository entry. * * @return the repository ID of this repository entry */ @Override public long getRepositoryId() { return _repositoryEntry.getRepositoryId(); } /** * Returns the user ID of this repository entry. * * @return the user ID of this repository entry */ @Override public long getUserId() { return _repositoryEntry.getUserId(); } @Override public void persist() { _repositoryEntry.persist(); } @Override public void setCachedModel(boolean cachedModel) { _repositoryEntry.setCachedModel(cachedModel); } /** * Sets the company ID of this repository entry. * * @param companyId the company ID of this repository entry */ @Override public void setCompanyId(long companyId) { _repositoryEntry.setCompanyId(companyId); } /** * Sets the create date of this repository entry. * * @param createDate the create date of this repository entry */ @Override public void setCreateDate(Date createDate) { _repositoryEntry.setCreateDate(createDate); } @Override public void setExpandoBridgeAttributes(BaseModel<?> baseModel) { _repositoryEntry.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _repositoryEntry.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _repositoryEntry.setExpandoBridgeAttributes(serviceContext); } /** * Sets the group ID of this repository entry. * * @param groupId the group ID of this repository entry */ @Override public void setGroupId(long groupId) { _repositoryEntry.setGroupId(groupId); } /** * Sets the last publish date of this repository entry. * * @param lastPublishDate the last publish date of this repository entry */ @Override public void setLastPublishDate(Date lastPublishDate) { _repositoryEntry.setLastPublishDate(lastPublishDate); } /** * Sets whether this repository entry is manual check in required. * * @param manualCheckInRequired the manual check in required of this repository entry */ @Override public void setManualCheckInRequired(boolean manualCheckInRequired) { _repositoryEntry.setManualCheckInRequired(manualCheckInRequired); } /** * Sets the mapped ID of this repository entry. * * @param mappedId the mapped ID of this repository entry */ @Override public void setMappedId(java.lang.String mappedId) { _repositoryEntry.setMappedId(mappedId); } /** * Sets the modified date of this repository entry. * * @param modifiedDate the modified date of this repository entry */ @Override public void setModifiedDate(Date modifiedDate) { _repositoryEntry.setModifiedDate(modifiedDate); } /** * Sets the mvcc version of this repository entry. * * @param mvccVersion the mvcc version of this repository entry */ @Override public void setMvccVersion(long mvccVersion) { _repositoryEntry.setMvccVersion(mvccVersion); } @Override public void setNew(boolean n) { _repositoryEntry.setNew(n); } /** * Sets the primary key of this repository entry. * * @param primaryKey the primary key of this repository entry */ @Override public void setPrimaryKey(long primaryKey) { _repositoryEntry.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _repositoryEntry.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the repository entry ID of this repository entry. * * @param repositoryEntryId the repository entry ID of this repository entry */ @Override public void setRepositoryEntryId(long repositoryEntryId) { _repositoryEntry.setRepositoryEntryId(repositoryEntryId); } /** * Sets the repository ID of this repository entry. * * @param repositoryId the repository ID of this repository entry */ @Override public void setRepositoryId(long repositoryId) { _repositoryEntry.setRepositoryId(repositoryId); } /** * Sets the user ID of this repository entry. * * @param userId the user ID of this repository entry */ @Override public void setUserId(long userId) { _repositoryEntry.setUserId(userId); } /** * Sets the user name of this repository entry. * * @param userName the user name of this repository entry */ @Override public void setUserName(java.lang.String userName) { _repositoryEntry.setUserName(userName); } /** * Sets the user uuid of this repository entry. * * @param userUuid the user uuid of this repository entry */ @Override public void setUserUuid(java.lang.String userUuid) { _repositoryEntry.setUserUuid(userUuid); } /** * Sets the uuid of this repository entry. * * @param uuid the uuid of this repository entry */ @Override public void setUuid(java.lang.String uuid) { _repositoryEntry.setUuid(uuid); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof RepositoryEntryWrapper)) { return false; } RepositoryEntryWrapper repositoryEntryWrapper = (RepositoryEntryWrapper)obj; if (Objects.equals(_repositoryEntry, repositoryEntryWrapper._repositoryEntry)) { return true; } return false; } @Override public StagedModelType getStagedModelType() { return _repositoryEntry.getStagedModelType(); } @Override public RepositoryEntry getWrappedModel() { return _repositoryEntry; } @Override public boolean isEntityCacheEnabled() { return _repositoryEntry.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _repositoryEntry.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _repositoryEntry.resetOriginalValues(); } private final RepositoryEntry _repositoryEntry; }