/** * 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.sync.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 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 SyncDLObject}. * </p> * * @author Brian Wing Shun Chan * @see SyncDLObject * @generated */ @ProviderType public class SyncDLObjectWrapper implements SyncDLObject, ModelWrapper<SyncDLObject> { public SyncDLObjectWrapper(SyncDLObject syncDLObject) { _syncDLObject = syncDLObject; } @Override public Class<?> getModelClass() { return SyncDLObject.class; } @Override public String getModelClassName() { return SyncDLObject.class.getName(); } @Override public Map<String, Object> getModelAttributes() { Map<String, Object> attributes = new HashMap<String, Object>(); attributes.put("syncDLObjectId", getSyncDLObjectId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("userName", getUserName()); attributes.put("createTime", getCreateTime()); attributes.put("modifiedTime", getModifiedTime()); attributes.put("repositoryId", getRepositoryId()); attributes.put("parentFolderId", getParentFolderId()); attributes.put("treePath", getTreePath()); attributes.put("name", getName()); attributes.put("extension", getExtension()); attributes.put("mimeType", getMimeType()); attributes.put("description", getDescription()); attributes.put("changeLog", getChangeLog()); attributes.put("extraSettings", getExtraSettings()); attributes.put("version", getVersion()); attributes.put("versionId", getVersionId()); attributes.put("size", getSize()); attributes.put("checksum", getChecksum()); attributes.put("event", getEvent()); attributes.put("lanTokenKey", getLanTokenKey()); attributes.put("lastPermissionChangeDate", getLastPermissionChangeDate()); attributes.put("lockExpirationDate", getLockExpirationDate()); attributes.put("lockUserId", getLockUserId()); attributes.put("lockUserName", getLockUserName()); attributes.put("type", getType()); attributes.put("typePK", getTypePK()); attributes.put("typeUuid", getTypeUuid()); return attributes; } @Override public void setModelAttributes(Map<String, Object> attributes) { Long syncDLObjectId = (Long)attributes.get("syncDLObjectId"); if (syncDLObjectId != null) { setSyncDLObjectId(syncDLObjectId); } 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); } Long createTime = (Long)attributes.get("createTime"); if (createTime != null) { setCreateTime(createTime); } Long modifiedTime = (Long)attributes.get("modifiedTime"); if (modifiedTime != null) { setModifiedTime(modifiedTime); } Long repositoryId = (Long)attributes.get("repositoryId"); if (repositoryId != null) { setRepositoryId(repositoryId); } Long parentFolderId = (Long)attributes.get("parentFolderId"); if (parentFolderId != null) { setParentFolderId(parentFolderId); } String treePath = (String)attributes.get("treePath"); if (treePath != null) { setTreePath(treePath); } String name = (String)attributes.get("name"); if (name != null) { setName(name); } String extension = (String)attributes.get("extension"); if (extension != null) { setExtension(extension); } String mimeType = (String)attributes.get("mimeType"); if (mimeType != null) { setMimeType(mimeType); } 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); } String version = (String)attributes.get("version"); if (version != null) { setVersion(version); } Long versionId = (Long)attributes.get("versionId"); if (versionId != null) { setVersionId(versionId); } Long size = (Long)attributes.get("size"); if (size != null) { setSize(size); } String checksum = (String)attributes.get("checksum"); if (checksum != null) { setChecksum(checksum); } String event = (String)attributes.get("event"); if (event != null) { setEvent(event); } String lanTokenKey = (String)attributes.get("lanTokenKey"); if (lanTokenKey != null) { setLanTokenKey(lanTokenKey); } Date lastPermissionChangeDate = (Date)attributes.get( "lastPermissionChangeDate"); if (lastPermissionChangeDate != null) { setLastPermissionChangeDate(lastPermissionChangeDate); } Date lockExpirationDate = (Date)attributes.get("lockExpirationDate"); if (lockExpirationDate != null) { setLockExpirationDate(lockExpirationDate); } Long lockUserId = (Long)attributes.get("lockUserId"); if (lockUserId != null) { setLockUserId(lockUserId); } String lockUserName = (String)attributes.get("lockUserName"); if (lockUserName != null) { setLockUserName(lockUserName); } String type = (String)attributes.get("type"); if (type != null) { setType(type); } Long typePK = (Long)attributes.get("typePK"); if (typePK != null) { setTypePK(typePK); } String typeUuid = (String)attributes.get("typeUuid"); if (typeUuid != null) { setTypeUuid(typeUuid); } } @Override public SyncDLObject toEscapedModel() { return new SyncDLObjectWrapper(_syncDLObject.toEscapedModel()); } @Override public SyncDLObject toUnescapedModel() { return new SyncDLObjectWrapper(_syncDLObject.toUnescapedModel()); } @Override public boolean isCachedModel() { return _syncDLObject.isCachedModel(); } @Override public boolean isEscapedModel() { return _syncDLObject.isEscapedModel(); } @Override public boolean isNew() { return _syncDLObject.isNew(); } @Override public ExpandoBridge getExpandoBridge() { return _syncDLObject.getExpandoBridge(); } @Override public com.liferay.portal.kernel.model.CacheModel<SyncDLObject> toCacheModel() { return _syncDLObject.toCacheModel(); } @Override public int compareTo(SyncDLObject syncDLObject) { return _syncDLObject.compareTo(syncDLObject); } @Override public int hashCode() { return _syncDLObject.hashCode(); } @Override public Serializable getPrimaryKeyObj() { return _syncDLObject.getPrimaryKeyObj(); } @Override public java.lang.Object clone() { return new SyncDLObjectWrapper((SyncDLObject)_syncDLObject.clone()); } @Override public java.lang.String buildTreePath() { return _syncDLObject.buildTreePath(); } /** * Returns the change log of this sync dl object. * * @return the change log of this sync dl object */ @Override public java.lang.String getChangeLog() { return _syncDLObject.getChangeLog(); } /** * Returns the checksum of this sync dl object. * * @return the checksum of this sync dl object */ @Override public java.lang.String getChecksum() { return _syncDLObject.getChecksum(); } /** * Returns the description of this sync dl object. * * @return the description of this sync dl object */ @Override public java.lang.String getDescription() { return _syncDLObject.getDescription(); } /** * Returns the event of this sync dl object. * * @return the event of this sync dl object */ @Override public java.lang.String getEvent() { return _syncDLObject.getEvent(); } /** * Returns the extension of this sync dl object. * * @return the extension of this sync dl object */ @Override public java.lang.String getExtension() { return _syncDLObject.getExtension(); } /** * Returns the extra settings of this sync dl object. * * @return the extra settings of this sync dl object */ @Override public java.lang.String getExtraSettings() { return _syncDLObject.getExtraSettings(); } /** * Returns the lan token key of this sync dl object. * * @return the lan token key of this sync dl object */ @Override public java.lang.String getLanTokenKey() { return _syncDLObject.getLanTokenKey(); } /** * Returns the lock user name of this sync dl object. * * @return the lock user name of this sync dl object */ @Override public java.lang.String getLockUserName() { return _syncDLObject.getLockUserName(); } /** * Returns the lock user uuid of this sync dl object. * * @return the lock user uuid of this sync dl object */ @Override public java.lang.String getLockUserUuid() { return _syncDLObject.getLockUserUuid(); } /** * Returns the mime type of this sync dl object. * * @return the mime type of this sync dl object */ @Override public java.lang.String getMimeType() { return _syncDLObject.getMimeType(); } /** * Returns the name of this sync dl object. * * @return the name of this sync dl object */ @Override public java.lang.String getName() { return _syncDLObject.getName(); } /** * Returns the tree path of this sync dl object. * * @return the tree path of this sync dl object */ @Override public java.lang.String getTreePath() { return _syncDLObject.getTreePath(); } /** * Returns the type of this sync dl object. * * @return the type of this sync dl object */ @Override public java.lang.String getType() { return _syncDLObject.getType(); } /** * Returns the type uuid of this sync dl object. * * @return the type uuid of this sync dl object */ @Override public java.lang.String getTypeUuid() { return _syncDLObject.getTypeUuid(); } /** * Returns the user name of this sync dl object. * * @return the user name of this sync dl object */ @Override public java.lang.String getUserName() { return _syncDLObject.getUserName(); } /** * Returns the user uuid of this sync dl object. * * @return the user uuid of this sync dl object */ @Override public java.lang.String getUserUuid() { return _syncDLObject.getUserUuid(); } /** * Returns the version of this sync dl object. * * @return the version of this sync dl object */ @Override public java.lang.String getVersion() { return _syncDLObject.getVersion(); } @Override public java.lang.String toString() { return _syncDLObject.toString(); } @Override public java.lang.String toXmlString() { return _syncDLObject.toXmlString(); } /** * Returns the last permission change date of this sync dl object. * * @return the last permission change date of this sync dl object */ @Override public Date getLastPermissionChangeDate() { return _syncDLObject.getLastPermissionChangeDate(); } /** * Returns the lock expiration date of this sync dl object. * * @return the lock expiration date of this sync dl object */ @Override public Date getLockExpirationDate() { return _syncDLObject.getLockExpirationDate(); } /** * Returns the company ID of this sync dl object. * * @return the company ID of this sync dl object */ @Override public long getCompanyId() { return _syncDLObject.getCompanyId(); } /** * Returns the create time of this sync dl object. * * @return the create time of this sync dl object */ @Override public long getCreateTime() { return _syncDLObject.getCreateTime(); } /** * Returns the lock user ID of this sync dl object. * * @return the lock user ID of this sync dl object */ @Override public long getLockUserId() { return _syncDLObject.getLockUserId(); } /** * Returns the modified time of this sync dl object. * * @return the modified time of this sync dl object */ @Override public long getModifiedTime() { return _syncDLObject.getModifiedTime(); } /** * Returns the parent folder ID of this sync dl object. * * @return the parent folder ID of this sync dl object */ @Override public long getParentFolderId() { return _syncDLObject.getParentFolderId(); } /** * Returns the primary key of this sync dl object. * * @return the primary key of this sync dl object */ @Override public long getPrimaryKey() { return _syncDLObject.getPrimaryKey(); } /** * Returns the repository ID of this sync dl object. * * @return the repository ID of this sync dl object */ @Override public long getRepositoryId() { return _syncDLObject.getRepositoryId(); } /** * Returns the size of this sync dl object. * * @return the size of this sync dl object */ @Override public long getSize() { return _syncDLObject.getSize(); } /** * Returns the sync dl object ID of this sync dl object. * * @return the sync dl object ID of this sync dl object */ @Override public long getSyncDLObjectId() { return _syncDLObject.getSyncDLObjectId(); } /** * Returns the type pk of this sync dl object. * * @return the type pk of this sync dl object */ @Override public long getTypePK() { return _syncDLObject.getTypePK(); } /** * Returns the user ID of this sync dl object. * * @return the user ID of this sync dl object */ @Override public long getUserId() { return _syncDLObject.getUserId(); } /** * Returns the version ID of this sync dl object. * * @return the version ID of this sync dl object */ @Override public long getVersionId() { return _syncDLObject.getVersionId(); } @Override public void persist() { _syncDLObject.persist(); } @Override public void setCachedModel(boolean cachedModel) { _syncDLObject.setCachedModel(cachedModel); } /** * Sets the change log of this sync dl object. * * @param changeLog the change log of this sync dl object */ @Override public void setChangeLog(java.lang.String changeLog) { _syncDLObject.setChangeLog(changeLog); } /** * Sets the checksum of this sync dl object. * * @param checksum the checksum of this sync dl object */ @Override public void setChecksum(java.lang.String checksum) { _syncDLObject.setChecksum(checksum); } /** * Sets the company ID of this sync dl object. * * @param companyId the company ID of this sync dl object */ @Override public void setCompanyId(long companyId) { _syncDLObject.setCompanyId(companyId); } @Override public void setCreateDate(Date createDate) { _syncDLObject.setCreateDate(createDate); } /** * Sets the create time of this sync dl object. * * @param createTime the create time of this sync dl object */ @Override public void setCreateTime(long createTime) { _syncDLObject.setCreateTime(createTime); } /** * Sets the description of this sync dl object. * * @param description the description of this sync dl object */ @Override public void setDescription(java.lang.String description) { _syncDLObject.setDescription(description); } /** * Sets the event of this sync dl object. * * @param event the event of this sync dl object */ @Override public void setEvent(java.lang.String event) { _syncDLObject.setEvent(event); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _syncDLObject.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.kernel.model.BaseModel<?> baseModel) { _syncDLObject.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _syncDLObject.setExpandoBridgeAttributes(serviceContext); } /** * Sets the extension of this sync dl object. * * @param extension the extension of this sync dl object */ @Override public void setExtension(java.lang.String extension) { _syncDLObject.setExtension(extension); } /** * Sets the extra settings of this sync dl object. * * @param extraSettings the extra settings of this sync dl object */ @Override public void setExtraSettings(java.lang.String extraSettings) { _syncDLObject.setExtraSettings(extraSettings); } /** * Sets the lan token key of this sync dl object. * * @param lanTokenKey the lan token key of this sync dl object */ @Override public void setLanTokenKey(java.lang.String lanTokenKey) { _syncDLObject.setLanTokenKey(lanTokenKey); } /** * Sets the last permission change date of this sync dl object. * * @param lastPermissionChangeDate the last permission change date of this sync dl object */ @Override public void setLastPermissionChangeDate(Date lastPermissionChangeDate) { _syncDLObject.setLastPermissionChangeDate(lastPermissionChangeDate); } /** * Sets the lock expiration date of this sync dl object. * * @param lockExpirationDate the lock expiration date of this sync dl object */ @Override public void setLockExpirationDate(Date lockExpirationDate) { _syncDLObject.setLockExpirationDate(lockExpirationDate); } /** * Sets the lock user ID of this sync dl object. * * @param lockUserId the lock user ID of this sync dl object */ @Override public void setLockUserId(long lockUserId) { _syncDLObject.setLockUserId(lockUserId); } /** * Sets the lock user name of this sync dl object. * * @param lockUserName the lock user name of this sync dl object */ @Override public void setLockUserName(java.lang.String lockUserName) { _syncDLObject.setLockUserName(lockUserName); } /** * Sets the lock user uuid of this sync dl object. * * @param lockUserUuid the lock user uuid of this sync dl object */ @Override public void setLockUserUuid(java.lang.String lockUserUuid) { _syncDLObject.setLockUserUuid(lockUserUuid); } /** * Sets the mime type of this sync dl object. * * @param mimeType the mime type of this sync dl object */ @Override public void setMimeType(java.lang.String mimeType) { _syncDLObject.setMimeType(mimeType); } @Override public void setModifiedDate(Date modifiedDate) { _syncDLObject.setModifiedDate(modifiedDate); } /** * Sets the modified time of this sync dl object. * * @param modifiedTime the modified time of this sync dl object */ @Override public void setModifiedTime(long modifiedTime) { _syncDLObject.setModifiedTime(modifiedTime); } /** * Sets the name of this sync dl object. * * @param name the name of this sync dl object */ @Override public void setName(java.lang.String name) { _syncDLObject.setName(name); } @Override public void setNew(boolean n) { _syncDLObject.setNew(n); } /** * Sets the parent folder ID of this sync dl object. * * @param parentFolderId the parent folder ID of this sync dl object */ @Override public void setParentFolderId(long parentFolderId) { _syncDLObject.setParentFolderId(parentFolderId); } /** * Sets the primary key of this sync dl object. * * @param primaryKey the primary key of this sync dl object */ @Override public void setPrimaryKey(long primaryKey) { _syncDLObject.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _syncDLObject.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the repository ID of this sync dl object. * * @param repositoryId the repository ID of this sync dl object */ @Override public void setRepositoryId(long repositoryId) { _syncDLObject.setRepositoryId(repositoryId); } /** * Sets the size of this sync dl object. * * @param size the size of this sync dl object */ @Override public void setSize(long size) { _syncDLObject.setSize(size); } /** * Sets the sync dl object ID of this sync dl object. * * @param syncDLObjectId the sync dl object ID of this sync dl object */ @Override public void setSyncDLObjectId(long syncDLObjectId) { _syncDLObject.setSyncDLObjectId(syncDLObjectId); } /** * Sets the tree path of this sync dl object. * * @param treePath the tree path of this sync dl object */ @Override public void setTreePath(java.lang.String treePath) { _syncDLObject.setTreePath(treePath); } /** * Sets the type of this sync dl object. * * @param type the type of this sync dl object */ @Override public void setType(java.lang.String type) { _syncDLObject.setType(type); } /** * Sets the type pk of this sync dl object. * * @param typePK the type pk of this sync dl object */ @Override public void setTypePK(long typePK) { _syncDLObject.setTypePK(typePK); } /** * Sets the type uuid of this sync dl object. * * @param typeUuid the type uuid of this sync dl object */ @Override public void setTypeUuid(java.lang.String typeUuid) { _syncDLObject.setTypeUuid(typeUuid); } /** * Sets the user ID of this sync dl object. * * @param userId the user ID of this sync dl object */ @Override public void setUserId(long userId) { _syncDLObject.setUserId(userId); } /** * Sets the user name of this sync dl object. * * @param userName the user name of this sync dl object */ @Override public void setUserName(java.lang.String userName) { _syncDLObject.setUserName(userName); } /** * Sets the user uuid of this sync dl object. * * @param userUuid the user uuid of this sync dl object */ @Override public void setUserUuid(java.lang.String userUuid) { _syncDLObject.setUserUuid(userUuid); } /** * Sets the version of this sync dl object. * * @param version the version of this sync dl object */ @Override public void setVersion(java.lang.String version) { _syncDLObject.setVersion(version); } /** * Sets the version ID of this sync dl object. * * @param versionId the version ID of this sync dl object */ @Override public void setVersionId(long versionId) { _syncDLObject.setVersionId(versionId); } @Override public void updateTreePath(java.lang.String treePath) { _syncDLObject.updateTreePath(treePath); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof SyncDLObjectWrapper)) { return false; } SyncDLObjectWrapper syncDLObjectWrapper = (SyncDLObjectWrapper)obj; if (Objects.equals(_syncDLObject, syncDLObjectWrapper._syncDLObject)) { return true; } return false; } @Override public SyncDLObject getWrappedModel() { return _syncDLObject; } @Override public boolean isEntityCacheEnabled() { return _syncDLObject.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _syncDLObject.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _syncDLObject.resetOriginalValues(); } private final SyncDLObject _syncDLObject; }