/** * 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.journal.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.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 JournalFolder}. * </p> * * @author Brian Wing Shun Chan * @see JournalFolder * @generated */ @ProviderType public class JournalFolderWrapper implements JournalFolder, ModelWrapper<JournalFolder> { public JournalFolderWrapper(JournalFolder journalFolder) { _journalFolder = journalFolder; } @Override public Class<?> getModelClass() { return JournalFolder.class; } @Override public String getModelClassName() { return JournalFolder.class.getName(); } @Override public Map<String, Object> getModelAttributes() { Map<String, Object> attributes = new HashMap<String, Object>(); attributes.put("uuid", getUuid()); attributes.put("folderId", getFolderId()); 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("parentFolderId", getParentFolderId()); attributes.put("treePath", getTreePath()); attributes.put("name", getName()); attributes.put("description", getDescription()); attributes.put("restrictionType", getRestrictionType()); attributes.put("lastPublishDate", getLastPublishDate()); attributes.put("status", getStatus()); attributes.put("statusByUserId", getStatusByUserId()); attributes.put("statusByUserName", getStatusByUserName()); attributes.put("statusDate", getStatusDate()); return attributes; } @Override public void setModelAttributes(Map<String, Object> attributes) { String uuid = (String)attributes.get("uuid"); if (uuid != null) { setUuid(uuid); } Long folderId = (Long)attributes.get("folderId"); if (folderId != null) { setFolderId(folderId); } 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 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 description = (String)attributes.get("description"); if (description != null) { setDescription(description); } Integer restrictionType = (Integer)attributes.get("restrictionType"); if (restrictionType != null) { setRestrictionType(restrictionType); } Date lastPublishDate = (Date)attributes.get("lastPublishDate"); if (lastPublishDate != null) { setLastPublishDate(lastPublishDate); } 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); } } @Override public JournalFolder toEscapedModel() { return new JournalFolderWrapper(_journalFolder.toEscapedModel()); } @Override public JournalFolder toUnescapedModel() { return new JournalFolderWrapper(_journalFolder.toUnescapedModel()); } /** * Returns <code>true</code> if this journal folder is approved. * * @return <code>true</code> if this journal folder is approved; <code>false</code> otherwise */ @Override public boolean isApproved() { return _journalFolder.isApproved(); } @Override public boolean isCachedModel() { return _journalFolder.isCachedModel(); } /** * Returns <code>true</code> if this journal folder is denied. * * @return <code>true</code> if this journal folder is denied; <code>false</code> otherwise */ @Override public boolean isDenied() { return _journalFolder.isDenied(); } /** * Returns <code>true</code> if this journal folder is a draft. * * @return <code>true</code> if this journal folder is a draft; <code>false</code> otherwise */ @Override public boolean isDraft() { return _journalFolder.isDraft(); } @Override public boolean isEscapedModel() { return _journalFolder.isEscapedModel(); } /** * Returns <code>true</code> if this journal folder is expired. * * @return <code>true</code> if this journal folder is expired; <code>false</code> otherwise */ @Override public boolean isExpired() { return _journalFolder.isExpired(); } /** * Returns <code>true</code> if this journal folder is in the Recycle Bin. * * @return <code>true</code> if this journal folder is in the Recycle Bin; <code>false</code> otherwise */ @Override public boolean isInTrash() { return _journalFolder.isInTrash(); } /** * Returns <code>true</code> if the parent of this journal folder is in the Recycle Bin. * * @return <code>true</code> if the parent of this journal folder is in the Recycle Bin; <code>false</code> otherwise */ @Override public boolean isInTrashContainer() { return _journalFolder.isInTrashContainer(); } @Override public boolean isInTrashExplicitly() { return _journalFolder.isInTrashExplicitly(); } @Override public boolean isInTrashImplicitly() { return _journalFolder.isInTrashImplicitly(); } /** * Returns <code>true</code> if this journal folder is inactive. * * @return <code>true</code> if this journal folder is inactive; <code>false</code> otherwise */ @Override public boolean isInactive() { return _journalFolder.isInactive(); } /** * Returns <code>true</code> if this journal folder is incomplete. * * @return <code>true</code> if this journal folder is incomplete; <code>false</code> otherwise */ @Override public boolean isIncomplete() { return _journalFolder.isIncomplete(); } @Override public boolean isNew() { return _journalFolder.isNew(); } /** * Returns <code>true</code> if this journal folder is pending. * * @return <code>true</code> if this journal folder is pending; <code>false</code> otherwise */ @Override public boolean isPending() { return _journalFolder.isPending(); } @Override public boolean isRoot() { return _journalFolder.isRoot(); } /** * Returns <code>true</code> if this journal folder is scheduled. * * @return <code>true</code> if this journal folder is scheduled; <code>false</code> otherwise */ @Override public boolean isScheduled() { return _journalFolder.isScheduled(); } @Override public ExpandoBridge getExpandoBridge() { return _journalFolder.getExpandoBridge(); } @Override public JournalFolder getParentFolder() throws com.liferay.portal.kernel.exception.PortalException { return _journalFolder.getParentFolder(); } @Override public com.liferay.portal.kernel.model.CacheModel<JournalFolder> toCacheModel() { return _journalFolder.toCacheModel(); } /** * Returns the trash handler for this journal folder. * * @return the trash handler for this journal folder * @deprecated As of 7.0.0, with no direct replacement */ @Deprecated @Override public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() { return _journalFolder.getTrashHandler(); } /** * Returns the trash entry created when this journal folder was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this journal folder. * * @return the trash entry created when this journal folder was moved to the Recycle Bin */ @Override public com.liferay.trash.kernel.model.TrashEntry getTrashEntry() throws com.liferay.portal.kernel.exception.PortalException { return _journalFolder.getTrashEntry(); } @Override public int compareTo(JournalFolder journalFolder) { return _journalFolder.compareTo(journalFolder); } /** * Returns the restriction type of this journal folder. * * @return the restriction type of this journal folder */ @Override public int getRestrictionType() { return _journalFolder.getRestrictionType(); } /** * Returns the status of this journal folder. * * @return the status of this journal folder */ @Override public int getStatus() { return _journalFolder.getStatus(); } @Override public int hashCode() { return _journalFolder.hashCode(); } @Override public Serializable getPrimaryKeyObj() { return _journalFolder.getPrimaryKeyObj(); } @Override public java.lang.Object clone() { return new JournalFolderWrapper((JournalFolder)_journalFolder.clone()); } @Override public java.lang.String buildTreePath() throws com.liferay.portal.kernel.exception.PortalException { return _journalFolder.buildTreePath(); } /** * Returns the container name of this journal folder. * * @return the container name of this journal folder */ @Override public java.lang.String getContainerModelName() { return _journalFolder.getContainerModelName(); } /** * Returns the description of this journal folder. * * @return the description of this journal folder */ @Override public java.lang.String getDescription() { return _journalFolder.getDescription(); } /** * Returns the name of this journal folder. * * @return the name of this journal folder */ @Override public java.lang.String getName() { return _journalFolder.getName(); } /** * Returns the status by user name of this journal folder. * * @return the status by user name of this journal folder */ @Override public java.lang.String getStatusByUserName() { return _journalFolder.getStatusByUserName(); } /** * Returns the status by user uuid of this journal folder. * * @return the status by user uuid of this journal folder */ @Override public java.lang.String getStatusByUserUuid() { return _journalFolder.getStatusByUserUuid(); } /** * Returns the tree path of this journal folder. * * @return the tree path of this journal folder */ @Override public java.lang.String getTreePath() { return _journalFolder.getTreePath(); } /** * Returns the user name of this journal folder. * * @return the user name of this journal folder */ @Override public java.lang.String getUserName() { return _journalFolder.getUserName(); } /** * Returns the user uuid of this journal folder. * * @return the user uuid of this journal folder */ @Override public java.lang.String getUserUuid() { return _journalFolder.getUserUuid(); } /** * Returns the uuid of this journal folder. * * @return the uuid of this journal folder */ @Override public java.lang.String getUuid() { return _journalFolder.getUuid(); } @Override public java.lang.String toString() { return _journalFolder.toString(); } @Override public java.lang.String toXmlString() { return _journalFolder.toXmlString(); } /** * Returns the create date of this journal folder. * * @return the create date of this journal folder */ @Override public Date getCreateDate() { return _journalFolder.getCreateDate(); } /** * Returns the last publish date of this journal folder. * * @return the last publish date of this journal folder */ @Override public Date getLastPublishDate() { return _journalFolder.getLastPublishDate(); } /** * Returns the modified date of this journal folder. * * @return the modified date of this journal folder */ @Override public Date getModifiedDate() { return _journalFolder.getModifiedDate(); } /** * Returns the status date of this journal folder. * * @return the status date of this journal folder */ @Override public Date getStatusDate() { return _journalFolder.getStatusDate(); } @Override public java.util.List<java.lang.Long> getAncestorFolderIds() throws com.liferay.portal.kernel.exception.PortalException { return _journalFolder.getAncestorFolderIds(); } @Override public java.util.List<JournalFolder> getAncestors() throws com.liferay.portal.kernel.exception.PortalException { return _journalFolder.getAncestors(); } /** * Returns the company ID of this journal folder. * * @return the company ID of this journal folder */ @Override public long getCompanyId() { return _journalFolder.getCompanyId(); } /** * Returns the container model ID of this journal folder. * * @return the container model ID of this journal folder */ @Override public long getContainerModelId() { return _journalFolder.getContainerModelId(); } /** * Returns the folder ID of this journal folder. * * @return the folder ID of this journal folder */ @Override public long getFolderId() { return _journalFolder.getFolderId(); } /** * Returns the group ID of this journal folder. * * @return the group ID of this journal folder */ @Override public long getGroupId() { return _journalFolder.getGroupId(); } /** * Returns the parent container model ID of this journal folder. * * @return the parent container model ID of this journal folder */ @Override public long getParentContainerModelId() { return _journalFolder.getParentContainerModelId(); } /** * Returns the parent folder ID of this journal folder. * * @return the parent folder ID of this journal folder */ @Override public long getParentFolderId() { return _journalFolder.getParentFolderId(); } /** * Returns the primary key of this journal folder. * * @return the primary key of this journal folder */ @Override public long getPrimaryKey() { return _journalFolder.getPrimaryKey(); } /** * Returns the status by user ID of this journal folder. * * @return the status by user ID of this journal folder */ @Override public long getStatusByUserId() { return _journalFolder.getStatusByUserId(); } /** * Returns the class primary key of the trash entry for this journal folder. * * @return the class primary key of the trash entry for this journal folder */ @Override public long getTrashEntryClassPK() { return _journalFolder.getTrashEntryClassPK(); } /** * Returns the user ID of this journal folder. * * @return the user ID of this journal folder */ @Override public long getUserId() { return _journalFolder.getUserId(); } @Override public void persist() { _journalFolder.persist(); } @Override public void setCachedModel(boolean cachedModel) { _journalFolder.setCachedModel(cachedModel); } /** * Sets the company ID of this journal folder. * * @param companyId the company ID of this journal folder */ @Override public void setCompanyId(long companyId) { _journalFolder.setCompanyId(companyId); } /** * Sets the container model ID of this journal folder. * * @param containerModelId the container model ID of this journal folder */ @Override public void setContainerModelId(long containerModelId) { _journalFolder.setContainerModelId(containerModelId); } /** * Sets the create date of this journal folder. * * @param createDate the create date of this journal folder */ @Override public void setCreateDate(Date createDate) { _journalFolder.setCreateDate(createDate); } /** * Sets the description of this journal folder. * * @param description the description of this journal folder */ @Override public void setDescription(java.lang.String description) { _journalFolder.setDescription(description); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _journalFolder.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.kernel.model.BaseModel<?> baseModel) { _journalFolder.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _journalFolder.setExpandoBridgeAttributes(serviceContext); } /** * Sets the folder ID of this journal folder. * * @param folderId the folder ID of this journal folder */ @Override public void setFolderId(long folderId) { _journalFolder.setFolderId(folderId); } /** * Sets the group ID of this journal folder. * * @param groupId the group ID of this journal folder */ @Override public void setGroupId(long groupId) { _journalFolder.setGroupId(groupId); } /** * Sets the last publish date of this journal folder. * * @param lastPublishDate the last publish date of this journal folder */ @Override public void setLastPublishDate(Date lastPublishDate) { _journalFolder.setLastPublishDate(lastPublishDate); } /** * Sets the modified date of this journal folder. * * @param modifiedDate the modified date of this journal folder */ @Override public void setModifiedDate(Date modifiedDate) { _journalFolder.setModifiedDate(modifiedDate); } /** * Sets the name of this journal folder. * * @param name the name of this journal folder */ @Override public void setName(java.lang.String name) { _journalFolder.setName(name); } @Override public void setNew(boolean n) { _journalFolder.setNew(n); } /** * Sets the parent container model ID of this journal folder. * * @param parentContainerModelId the parent container model ID of this journal folder */ @Override public void setParentContainerModelId(long parentContainerModelId) { _journalFolder.setParentContainerModelId(parentContainerModelId); } /** * Sets the parent folder ID of this journal folder. * * @param parentFolderId the parent folder ID of this journal folder */ @Override public void setParentFolderId(long parentFolderId) { _journalFolder.setParentFolderId(parentFolderId); } /** * Sets the primary key of this journal folder. * * @param primaryKey the primary key of this journal folder */ @Override public void setPrimaryKey(long primaryKey) { _journalFolder.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _journalFolder.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the restriction type of this journal folder. * * @param restrictionType the restriction type of this journal folder */ @Override public void setRestrictionType(int restrictionType) { _journalFolder.setRestrictionType(restrictionType); } /** * Sets the status of this journal folder. * * @param status the status of this journal folder */ @Override public void setStatus(int status) { _journalFolder.setStatus(status); } /** * Sets the status by user ID of this journal folder. * * @param statusByUserId the status by user ID of this journal folder */ @Override public void setStatusByUserId(long statusByUserId) { _journalFolder.setStatusByUserId(statusByUserId); } /** * Sets the status by user name of this journal folder. * * @param statusByUserName the status by user name of this journal folder */ @Override public void setStatusByUserName(java.lang.String statusByUserName) { _journalFolder.setStatusByUserName(statusByUserName); } /** * Sets the status by user uuid of this journal folder. * * @param statusByUserUuid the status by user uuid of this journal folder */ @Override public void setStatusByUserUuid(java.lang.String statusByUserUuid) { _journalFolder.setStatusByUserUuid(statusByUserUuid); } /** * Sets the status date of this journal folder. * * @param statusDate the status date of this journal folder */ @Override public void setStatusDate(Date statusDate) { _journalFolder.setStatusDate(statusDate); } /** * Sets the tree path of this journal folder. * * @param treePath the tree path of this journal folder */ @Override public void setTreePath(java.lang.String treePath) { _journalFolder.setTreePath(treePath); } /** * Sets the user ID of this journal folder. * * @param userId the user ID of this journal folder */ @Override public void setUserId(long userId) { _journalFolder.setUserId(userId); } /** * Sets the user name of this journal folder. * * @param userName the user name of this journal folder */ @Override public void setUserName(java.lang.String userName) { _journalFolder.setUserName(userName); } /** * Sets the user uuid of this journal folder. * * @param userUuid the user uuid of this journal folder */ @Override public void setUserUuid(java.lang.String userUuid) { _journalFolder.setUserUuid(userUuid); } /** * Sets the uuid of this journal folder. * * @param uuid the uuid of this journal folder */ @Override public void setUuid(java.lang.String uuid) { _journalFolder.setUuid(uuid); } @Override public void updateTreePath(java.lang.String treePath) { _journalFolder.updateTreePath(treePath); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof JournalFolderWrapper)) { return false; } JournalFolderWrapper journalFolderWrapper = (JournalFolderWrapper)obj; if (Objects.equals(_journalFolder, journalFolderWrapper._journalFolder)) { return true; } return false; } @Override public StagedModelType getStagedModelType() { return _journalFolder.getStagedModelType(); } @Override public JournalFolder getWrappedModel() { return _journalFolder; } @Override public boolean isEntityCacheEnabled() { return _journalFolder.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _journalFolder.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _journalFolder.resetOriginalValues(); } private final JournalFolder _journalFolder; }