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

com.liferay.segments.model.SegmentsExperienceWrapper Maven / Gradle / Ivy

The 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.segments.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 SegmentsExperience}. *

* * @author Eduardo Garcia * @see SegmentsExperience * @generated */ public class SegmentsExperienceWrapper extends BaseModelWrapper implements ModelWrapper, SegmentsExperience { public SegmentsExperienceWrapper(SegmentsExperience segmentsExperience) { super(segmentsExperience); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("ctCollectionId", getCtCollectionId()); attributes.put("uuid", getUuid()); attributes.put("externalReferenceCode", getExternalReferenceCode()); attributes.put("segmentsExperienceId", getSegmentsExperienceId()); 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("segmentsEntryId", getSegmentsEntryId()); attributes.put("segmentsExperienceKey", getSegmentsExperienceKey()); attributes.put("plid", getPlid()); attributes.put("name", getName()); attributes.put("priority", getPriority()); attributes.put("active", isActive()); attributes.put("typeSettings", getTypeSettings()); 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); } String externalReferenceCode = (String)attributes.get( "externalReferenceCode"); if (externalReferenceCode != null) { setExternalReferenceCode(externalReferenceCode); } Long segmentsExperienceId = (Long)attributes.get( "segmentsExperienceId"); if (segmentsExperienceId != null) { setSegmentsExperienceId(segmentsExperienceId); } 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 segmentsEntryId = (Long)attributes.get("segmentsEntryId"); if (segmentsEntryId != null) { setSegmentsEntryId(segmentsEntryId); } String segmentsExperienceKey = (String)attributes.get( "segmentsExperienceKey"); if (segmentsExperienceKey != null) { setSegmentsExperienceKey(segmentsExperienceKey); } Long plid = (Long)attributes.get("plid"); if (plid != null) { setPlid(plid); } String name = (String)attributes.get("name"); if (name != null) { setName(name); } Integer priority = (Integer)attributes.get("priority"); if (priority != null) { setPriority(priority); } Boolean active = (Boolean)attributes.get("active"); if (active != null) { setActive(active); } String typeSettings = (String)attributes.get("typeSettings"); if (typeSettings != null) { setTypeSettings(typeSettings); } Date lastPublishDate = (Date)attributes.get("lastPublishDate"); if (lastPublishDate != null) { setLastPublishDate(lastPublishDate); } } @Override public SegmentsExperience cloneWithOriginalValues() { return wrap(model.cloneWithOriginalValues()); } /** * Returns the active of this segments experience. * * @return the active of this segments experience */ @Override public boolean getActive() { return model.getActive(); } @Override public String[] getAvailableLanguageIds() { return model.getAvailableLanguageIds(); } /** * Returns the company ID of this segments experience. * * @return the company ID of this segments experience */ @Override public long getCompanyId() { return model.getCompanyId(); } /** * Returns the create date of this segments experience. * * @return the create date of this segments experience */ @Override public Date getCreateDate() { return model.getCreateDate(); } /** * Returns the ct collection ID of this segments experience. * * @return the ct collection ID of this segments experience */ @Override public long getCtCollectionId() { return model.getCtCollectionId(); } @Override public String getDefaultLanguageId() { return model.getDefaultLanguageId(); } /** * Returns the external reference code of this segments experience. * * @return the external reference code of this segments experience */ @Override public String getExternalReferenceCode() { return model.getExternalReferenceCode(); } /** * Returns the group ID of this segments experience. * * @return the group ID of this segments experience */ @Override public long getGroupId() { return model.getGroupId(); } /** * Returns the last publish date of this segments experience. * * @return the last publish date of this segments experience */ @Override public Date getLastPublishDate() { return model.getLastPublishDate(); } /** * Returns the modified date of this segments experience. * * @return the modified date of this segments experience */ @Override public Date getModifiedDate() { return model.getModifiedDate(); } /** * Returns the mvcc version of this segments experience. * * @return the mvcc version of this segments experience */ @Override public long getMvccVersion() { return model.getMvccVersion(); } /** * Returns the name of this segments experience. * * @return the name of this segments experience */ @Override public String getName() { return model.getName(); } /** * Returns the localized name of this segments experience in the language. Uses the default language if no localization exists for the requested language. * * @param locale the locale of the language * @return the localized name of this segments experience */ @Override public String getName(java.util.Locale locale) { return model.getName(locale); } /** * Returns the localized name of this segments experience in the language, optionally using the default language if no localization exists for the requested language. * * @param locale the local of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized name of this segments experience. If useDefault is false and no localization exists for the requested language, an empty string will be returned. */ @Override public String getName(java.util.Locale locale, boolean useDefault) { return model.getName(locale, useDefault); } /** * Returns the localized name of this segments experience in the language. Uses the default language if no localization exists for the requested language. * * @param languageId the ID of the language * @return the localized name of this segments experience */ @Override public String getName(String languageId) { return model.getName(languageId); } /** * Returns the localized name of this segments experience in the language, optionally using the default language if no localization exists for the requested language. * * @param languageId the ID of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized name of this segments experience */ @Override public String getName(String languageId, boolean useDefault) { return model.getName(languageId, useDefault); } @Override public String getNameCurrentLanguageId() { return model.getNameCurrentLanguageId(); } @Override public String getNameCurrentValue() { return model.getNameCurrentValue(); } /** * Returns a map of the locales and localized names of this segments experience. * * @return the locales and localized names of this segments experience */ @Override public Map getNameMap() { return model.getNameMap(); } /** * Returns the plid of this segments experience. * * @return the plid of this segments experience */ @Override public long getPlid() { return model.getPlid(); } /** * Returns the primary key of this segments experience. * * @return the primary key of this segments experience */ @Override public long getPrimaryKey() { return model.getPrimaryKey(); } /** * Returns the priority of this segments experience. * * @return the priority of this segments experience */ @Override public int getPriority() { return model.getPriority(); } /** * Returns the segments entry ID of this segments experience. * * @return the segments entry ID of this segments experience */ @Override public long getSegmentsEntryId() { return model.getSegmentsEntryId(); } /** * Returns the segments experience ID of this segments experience. * * @return the segments experience ID of this segments experience */ @Override public long getSegmentsExperienceId() { return model.getSegmentsExperienceId(); } /** * Returns the segments experience key of this segments experience. * * @return the segments experience key of this segments experience */ @Override public String getSegmentsExperienceKey() { return model.getSegmentsExperienceKey(); } /** * Returns the type settings of this segments experience. * * @return the type settings of this segments experience */ @Override public String getTypeSettings() { return model.getTypeSettings(); } @Override public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsUnicodeProperties() { return model.getTypeSettingsUnicodeProperties(); } /** * Returns the user ID of this segments experience. * * @return the user ID of this segments experience */ @Override public long getUserId() { return model.getUserId(); } /** * Returns the user name of this segments experience. * * @return the user name of this segments experience */ @Override public String getUserName() { return model.getUserName(); } /** * Returns the user uuid of this segments experience. * * @return the user uuid of this segments experience */ @Override public String getUserUuid() { return model.getUserUuid(); } /** * Returns the uuid of this segments experience. * * @return the uuid of this segments experience */ @Override public String getUuid() { return model.getUuid(); } @Override public boolean hasSegmentsExperiment() { return model.hasSegmentsExperiment(); } /** * Returns true if this segments experience is active. * * @return true if this segments experience is active; false otherwise */ @Override public boolean isActive() { return model.isActive(); } @Override public void persist() { model.persist(); } @Override public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException { model.prepareLocalizedFieldsForImport(); } @Override public void prepareLocalizedFieldsForImport( java.util.Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException { model.prepareLocalizedFieldsForImport(defaultImportLocale); } /** * Sets whether this segments experience is active. * * @param active the active of this segments experience */ @Override public void setActive(boolean active) { model.setActive(active); } /** * Sets the company ID of this segments experience. * * @param companyId the company ID of this segments experience */ @Override public void setCompanyId(long companyId) { model.setCompanyId(companyId); } /** * Sets the create date of this segments experience. * * @param createDate the create date of this segments experience */ @Override public void setCreateDate(Date createDate) { model.setCreateDate(createDate); } /** * Sets the ct collection ID of this segments experience. * * @param ctCollectionId the ct collection ID of this segments experience */ @Override public void setCtCollectionId(long ctCollectionId) { model.setCtCollectionId(ctCollectionId); } /** * Sets the external reference code of this segments experience. * * @param externalReferenceCode the external reference code of this segments experience */ @Override public void setExternalReferenceCode(String externalReferenceCode) { model.setExternalReferenceCode(externalReferenceCode); } /** * Sets the group ID of this segments experience. * * @param groupId the group ID of this segments experience */ @Override public void setGroupId(long groupId) { model.setGroupId(groupId); } /** * Sets the last publish date of this segments experience. * * @param lastPublishDate the last publish date of this segments experience */ @Override public void setLastPublishDate(Date lastPublishDate) { model.setLastPublishDate(lastPublishDate); } /** * Sets the modified date of this segments experience. * * @param modifiedDate the modified date of this segments experience */ @Override public void setModifiedDate(Date modifiedDate) { model.setModifiedDate(modifiedDate); } /** * Sets the mvcc version of this segments experience. * * @param mvccVersion the mvcc version of this segments experience */ @Override public void setMvccVersion(long mvccVersion) { model.setMvccVersion(mvccVersion); } /** * Sets the name of this segments experience. * * @param name the name of this segments experience */ @Override public void setName(String name) { model.setName(name); } /** * Sets the localized name of this segments experience in the language. * * @param name the localized name of this segments experience * @param locale the locale of the language */ @Override public void setName(String name, java.util.Locale locale) { model.setName(name, locale); } /** * Sets the localized name of this segments experience in the language, and sets the default locale. * * @param name the localized name of this segments experience * @param locale the locale of the language * @param defaultLocale the default locale */ @Override public void setName( String name, java.util.Locale locale, java.util.Locale defaultLocale) { model.setName(name, locale, defaultLocale); } @Override public void setNameCurrentLanguageId(String languageId) { model.setNameCurrentLanguageId(languageId); } /** * Sets the localized names of this segments experience from the map of locales and localized names. * * @param nameMap the locales and localized names of this segments experience */ @Override public void setNameMap(Map nameMap) { model.setNameMap(nameMap); } /** * Sets the localized names of this segments experience from the map of locales and localized names, and sets the default locale. * * @param nameMap the locales and localized names of this segments experience * @param defaultLocale the default locale */ @Override public void setNameMap( Map nameMap, java.util.Locale defaultLocale) { model.setNameMap(nameMap, defaultLocale); } /** * Sets the plid of this segments experience. * * @param plid the plid of this segments experience */ @Override public void setPlid(long plid) { model.setPlid(plid); } /** * Sets the primary key of this segments experience. * * @param primaryKey the primary key of this segments experience */ @Override public void setPrimaryKey(long primaryKey) { model.setPrimaryKey(primaryKey); } /** * Sets the priority of this segments experience. * * @param priority the priority of this segments experience */ @Override public void setPriority(int priority) { model.setPriority(priority); } /** * Sets the segments entry ID of this segments experience. * * @param segmentsEntryId the segments entry ID of this segments experience */ @Override public void setSegmentsEntryId(long segmentsEntryId) { model.setSegmentsEntryId(segmentsEntryId); } /** * Sets the segments experience ID of this segments experience. * * @param segmentsExperienceId the segments experience ID of this segments experience */ @Override public void setSegmentsExperienceId(long segmentsExperienceId) { model.setSegmentsExperienceId(segmentsExperienceId); } /** * Sets the segments experience key of this segments experience. * * @param segmentsExperienceKey the segments experience key of this segments experience */ @Override public void setSegmentsExperienceKey(String segmentsExperienceKey) { model.setSegmentsExperienceKey(segmentsExperienceKey); } /** * Sets the type settings of this segments experience. * * @param typeSettings the type settings of this segments experience */ @Override public void setTypeSettings(String typeSettings) { model.setTypeSettings(typeSettings); } @Override public void setTypeSettingsUnicodeProperties( com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties) { model.setTypeSettingsUnicodeProperties(typeSettingsUnicodeProperties); } /** * Sets the user ID of this segments experience. * * @param userId the user ID of this segments experience */ @Override public void setUserId(long userId) { model.setUserId(userId); } /** * Sets the user name of this segments experience. * * @param userName the user name of this segments experience */ @Override public void setUserName(String userName) { model.setUserName(userName); } /** * Sets the user uuid of this segments experience. * * @param userUuid the user uuid of this segments experience */ @Override public void setUserUuid(String userUuid) { model.setUserUuid(userUuid); } /** * Sets the uuid of this segments experience. * * @param uuid the uuid of this segments experience */ @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 SegmentsExperienceWrapper wrap( SegmentsExperience segmentsExperience) { return new SegmentsExperienceWrapper(segmentsExperience); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy