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

com.liferay.layout.model.LayoutLocalizationWrapper Maven / Gradle / Ivy

There is a newer version: 50.2.0
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.layout.model;

import com.liferay.exportimport.kernel.lar.StagedModelType;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.model.wrapper.BaseModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;
import java.util.function.Function;

/**
 * 

* This class is a wrapper for {@link LayoutLocalization}. *

* * @author Brian Wing Shun Chan * @see LayoutLocalization * @generated */ public class LayoutLocalizationWrapper extends BaseModelWrapper implements LayoutLocalization, ModelWrapper { public LayoutLocalizationWrapper(LayoutLocalization layoutLocalization) { super(layoutLocalization); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("ctCollectionId", getCtCollectionId()); attributes.put("uuid", getUuid()); attributes.put("layoutLocalizationId", getLayoutLocalizationId()); attributes.put("groupId", getGroupId()); attributes.put("companyId", getCompanyId()); attributes.put("createDate", getCreateDate()); attributes.put("modifiedDate", getModifiedDate()); attributes.put("content", getContent()); attributes.put("languageId", getLanguageId()); attributes.put("plid", getPlid()); attributes.put("lastPublishDate", getLastPublishDate()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long mvccVersion = (Long)attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } Long ctCollectionId = (Long)attributes.get("ctCollectionId"); if (ctCollectionId != null) { setCtCollectionId(ctCollectionId); } String uuid = (String)attributes.get("uuid"); if (uuid != null) { setUuid(uuid); } Long layoutLocalizationId = (Long)attributes.get( "layoutLocalizationId"); if (layoutLocalizationId != null) { setLayoutLocalizationId(layoutLocalizationId); } Long groupId = (Long)attributes.get("groupId"); if (groupId != null) { setGroupId(groupId); } Long companyId = (Long)attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Date createDate = (Date)attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } Date modifiedDate = (Date)attributes.get("modifiedDate"); if (modifiedDate != null) { setModifiedDate(modifiedDate); } String content = (String)attributes.get("content"); if (content != null) { setContent(content); } String languageId = (String)attributes.get("languageId"); if (languageId != null) { setLanguageId(languageId); } Long plid = (Long)attributes.get("plid"); if (plid != null) { setPlid(plid); } Date lastPublishDate = (Date)attributes.get("lastPublishDate"); if (lastPublishDate != null) { setLastPublishDate(lastPublishDate); } } @Override public LayoutLocalization cloneWithOriginalValues() { return wrap(model.cloneWithOriginalValues()); } /** * Returns the company ID of this layout localization. * * @return the company ID of this layout localization */ @Override public long getCompanyId() { return model.getCompanyId(); } /** * Returns the content of this layout localization. * * @return the content of this layout localization */ @Override public String getContent() { return model.getContent(); } /** * Returns the create date of this layout localization. * * @return the create date of this layout localization */ @Override public Date getCreateDate() { return model.getCreateDate(); } /** * Returns the ct collection ID of this layout localization. * * @return the ct collection ID of this layout localization */ @Override public long getCtCollectionId() { return model.getCtCollectionId(); } /** * Returns the group ID of this layout localization. * * @return the group ID of this layout localization */ @Override public long getGroupId() { return model.getGroupId(); } /** * Returns the language ID of this layout localization. * * @return the language ID of this layout localization */ @Override public String getLanguageId() { return model.getLanguageId(); } /** * Returns the last publish date of this layout localization. * * @return the last publish date of this layout localization */ @Override public Date getLastPublishDate() { return model.getLastPublishDate(); } /** * Returns the layout localization ID of this layout localization. * * @return the layout localization ID of this layout localization */ @Override public long getLayoutLocalizationId() { return model.getLayoutLocalizationId(); } /** * Returns the modified date of this layout localization. * * @return the modified date of this layout localization */ @Override public Date getModifiedDate() { return model.getModifiedDate(); } /** * Returns the mvcc version of this layout localization. * * @return the mvcc version of this layout localization */ @Override public long getMvccVersion() { return model.getMvccVersion(); } /** * Returns the plid of this layout localization. * * @return the plid of this layout localization */ @Override public long getPlid() { return model.getPlid(); } /** * Returns the primary key of this layout localization. * * @return the primary key of this layout localization */ @Override public long getPrimaryKey() { return model.getPrimaryKey(); } /** * Returns the uuid of this layout localization. * * @return the uuid of this layout localization */ @Override public String getUuid() { return model.getUuid(); } @Override public void persist() { model.persist(); } /** * Sets the company ID of this layout localization. * * @param companyId the company ID of this layout localization */ @Override public void setCompanyId(long companyId) { model.setCompanyId(companyId); } /** * Sets the content of this layout localization. * * @param content the content of this layout localization */ @Override public void setContent(String content) { model.setContent(content); } /** * Sets the create date of this layout localization. * * @param createDate the create date of this layout localization */ @Override public void setCreateDate(Date createDate) { model.setCreateDate(createDate); } /** * Sets the ct collection ID of this layout localization. * * @param ctCollectionId the ct collection ID of this layout localization */ @Override public void setCtCollectionId(long ctCollectionId) { model.setCtCollectionId(ctCollectionId); } /** * Sets the group ID of this layout localization. * * @param groupId the group ID of this layout localization */ @Override public void setGroupId(long groupId) { model.setGroupId(groupId); } /** * Sets the language ID of this layout localization. * * @param languageId the language ID of this layout localization */ @Override public void setLanguageId(String languageId) { model.setLanguageId(languageId); } /** * Sets the last publish date of this layout localization. * * @param lastPublishDate the last publish date of this layout localization */ @Override public void setLastPublishDate(Date lastPublishDate) { model.setLastPublishDate(lastPublishDate); } /** * Sets the layout localization ID of this layout localization. * * @param layoutLocalizationId the layout localization ID of this layout localization */ @Override public void setLayoutLocalizationId(long layoutLocalizationId) { model.setLayoutLocalizationId(layoutLocalizationId); } /** * Sets the modified date of this layout localization. * * @param modifiedDate the modified date of this layout localization */ @Override public void setModifiedDate(Date modifiedDate) { model.setModifiedDate(modifiedDate); } /** * Sets the mvcc version of this layout localization. * * @param mvccVersion the mvcc version of this layout localization */ @Override public void setMvccVersion(long mvccVersion) { model.setMvccVersion(mvccVersion); } /** * Sets the plid of this layout localization. * * @param plid the plid of this layout localization */ @Override public void setPlid(long plid) { model.setPlid(plid); } /** * Sets the primary key of this layout localization. * * @param primaryKey the primary key of this layout localization */ @Override public void setPrimaryKey(long primaryKey) { model.setPrimaryKey(primaryKey); } /** * Sets the uuid of this layout localization. * * @param uuid the uuid of this layout localization */ @Override public void setUuid(String uuid) { model.setUuid(uuid); } @Override public String toXmlString() { return model.toXmlString(); } @Override public Map> getAttributeGetterFunctions() { return model.getAttributeGetterFunctions(); } @Override public Map> getAttributeSetterBiConsumers() { return model.getAttributeSetterBiConsumers(); } @Override public StagedModelType getStagedModelType() { return model.getStagedModelType(); } @Override protected LayoutLocalizationWrapper wrap( LayoutLocalization layoutLocalization) { return new LayoutLocalizationWrapper(layoutLocalization); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy