com.liferay.segments.model.SegmentsEntryWrapper 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 SegmentsEntry}.
*
*
* @author Eduardo Garcia
* @see SegmentsEntry
* @generated
*/
public class SegmentsEntryWrapper
extends BaseModelWrapper
implements ModelWrapper, SegmentsEntry {
public SegmentsEntryWrapper(SegmentsEntry segmentsEntry) {
super(segmentsEntry);
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("mvccVersion", getMvccVersion());
attributes.put("ctCollectionId", getCtCollectionId());
attributes.put("uuid", getUuid());
attributes.put("segmentsEntryId", getSegmentsEntryId());
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("segmentsEntryKey", getSegmentsEntryKey());
attributes.put("name", getName());
attributes.put("description", getDescription());
attributes.put("active", isActive());
attributes.put("criteria", getCriteria());
attributes.put("source", getSource());
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 segmentsEntryId = (Long)attributes.get("segmentsEntryId");
if (segmentsEntryId != null) {
setSegmentsEntryId(segmentsEntryId);
}
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);
}
String segmentsEntryKey = (String)attributes.get("segmentsEntryKey");
if (segmentsEntryKey != null) {
setSegmentsEntryKey(segmentsEntryKey);
}
String name = (String)attributes.get("name");
if (name != null) {
setName(name);
}
String description = (String)attributes.get("description");
if (description != null) {
setDescription(description);
}
Boolean active = (Boolean)attributes.get("active");
if (active != null) {
setActive(active);
}
String criteria = (String)attributes.get("criteria");
if (criteria != null) {
setCriteria(criteria);
}
String source = (String)attributes.get("source");
if (source != null) {
setSource(source);
}
Date lastPublishDate = (Date)attributes.get("lastPublishDate");
if (lastPublishDate != null) {
setLastPublishDate(lastPublishDate);
}
}
@Override
public SegmentsEntry cloneWithOriginalValues() {
return wrap(model.cloneWithOriginalValues());
}
/**
* Returns the active of this segments entry.
*
* @return the active of this segments entry
*/
@Override
public boolean getActive() {
return model.getActive();
}
@Override
public String[] getAvailableLanguageIds() {
return model.getAvailableLanguageIds();
}
/**
* Returns the company ID of this segments entry.
*
* @return the company ID of this segments entry
*/
@Override
public long getCompanyId() {
return model.getCompanyId();
}
/**
* Returns the create date of this segments entry.
*
* @return the create date of this segments entry
*/
@Override
public Date getCreateDate() {
return model.getCreateDate();
}
/**
* Returns the criteria of this segments entry.
*
* @return the criteria of this segments entry
*/
@Override
public String getCriteria() {
return model.getCriteria();
}
@Override
public com.liferay.segments.criteria.Criteria getCriteriaObj() {
return model.getCriteriaObj();
}
/**
* Returns the ct collection ID of this segments entry.
*
* @return the ct collection ID of this segments entry
*/
@Override
public long getCtCollectionId() {
return model.getCtCollectionId();
}
@Override
public String getDefaultLanguageId() {
return model.getDefaultLanguageId();
}
/**
* Returns the description of this segments entry.
*
* @return the description of this segments entry
*/
@Override
public String getDescription() {
return model.getDescription();
}
/**
* Returns the localized description of this segments entry 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 description of this segments entry
*/
@Override
public String getDescription(java.util.Locale locale) {
return model.getDescription(locale);
}
/**
* Returns the localized description of this segments entry 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 description of this segments entry. If useDefault
is false
and no localization exists for the requested language, an empty string will be returned.
*/
@Override
public String getDescription(java.util.Locale locale, boolean useDefault) {
return model.getDescription(locale, useDefault);
}
/**
* Returns the localized description of this segments entry 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 description of this segments entry
*/
@Override
public String getDescription(String languageId) {
return model.getDescription(languageId);
}
/**
* Returns the localized description of this segments entry 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 description of this segments entry
*/
@Override
public String getDescription(String languageId, boolean useDefault) {
return model.getDescription(languageId, useDefault);
}
@Override
public String getDescriptionCurrentLanguageId() {
return model.getDescriptionCurrentLanguageId();
}
@Override
public String getDescriptionCurrentValue() {
return model.getDescriptionCurrentValue();
}
/**
* Returns a map of the locales and localized descriptions of this segments entry.
*
* @return the locales and localized descriptions of this segments entry
*/
@Override
public Map getDescriptionMap() {
return model.getDescriptionMap();
}
/**
* Returns the group ID of this segments entry.
*
* @return the group ID of this segments entry
*/
@Override
public long getGroupId() {
return model.getGroupId();
}
/**
* Returns the last publish date of this segments entry.
*
* @return the last publish date of this segments entry
*/
@Override
public Date getLastPublishDate() {
return model.getLastPublishDate();
}
/**
* Returns the modified date of this segments entry.
*
* @return the modified date of this segments entry
*/
@Override
public Date getModifiedDate() {
return model.getModifiedDate();
}
/**
* Returns the mvcc version of this segments entry.
*
* @return the mvcc version of this segments entry
*/
@Override
public long getMvccVersion() {
return model.getMvccVersion();
}
/**
* Returns the name of this segments entry.
*
* @return the name of this segments entry
*/
@Override
public String getName() {
return model.getName();
}
/**
* Returns the localized name of this segments entry 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 entry
*/
@Override
public String getName(java.util.Locale locale) {
return model.getName(locale);
}
/**
* Returns the localized name of this segments entry 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 entry. 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 entry 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 entry
*/
@Override
public String getName(String languageId) {
return model.getName(languageId);
}
/**
* Returns the localized name of this segments entry 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 entry
*/
@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 entry.
*
* @return the locales and localized names of this segments entry
*/
@Override
public Map getNameMap() {
return model.getNameMap();
}
/**
* Returns the primary key of this segments entry.
*
* @return the primary key of this segments entry
*/
@Override
public long getPrimaryKey() {
return model.getPrimaryKey();
}
@Override
public long[] getRoleIds() {
return model.getRoleIds();
}
/**
* Returns the segments entry ID of this segments entry.
*
* @return the segments entry ID of this segments entry
*/
@Override
public long getSegmentsEntryId() {
return model.getSegmentsEntryId();
}
/**
* Returns the segments entry key of this segments entry.
*
* @return the segments entry key of this segments entry
*/
@Override
public String getSegmentsEntryKey() {
return model.getSegmentsEntryKey();
}
/**
* Returns the source of this segments entry.
*
* @return the source of this segments entry
*/
@Override
public String getSource() {
return model.getSource();
}
/**
* Returns the user ID of this segments entry.
*
* @return the user ID of this segments entry
*/
@Override
public long getUserId() {
return model.getUserId();
}
/**
* Returns the user name of this segments entry.
*
* @return the user name of this segments entry
*/
@Override
public String getUserName() {
return model.getUserName();
}
/**
* Returns the user uuid of this segments entry.
*
* @return the user uuid of this segments entry
*/
@Override
public String getUserUuid() {
return model.getUserUuid();
}
/**
* Returns the uuid of this segments entry.
*
* @return the uuid of this segments entry
*/
@Override
public String getUuid() {
return model.getUuid();
}
/**
* Returns true
if this segments entry is active.
*
* @return true
if this segments entry 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 entry is active.
*
* @param active the active of this segments entry
*/
@Override
public void setActive(boolean active) {
model.setActive(active);
}
/**
* Sets the company ID of this segments entry.
*
* @param companyId the company ID of this segments entry
*/
@Override
public void setCompanyId(long companyId) {
model.setCompanyId(companyId);
}
/**
* Sets the create date of this segments entry.
*
* @param createDate the create date of this segments entry
*/
@Override
public void setCreateDate(Date createDate) {
model.setCreateDate(createDate);
}
/**
* Sets the criteria of this segments entry.
*
* @param criteria the criteria of this segments entry
*/
@Override
public void setCriteria(String criteria) {
model.setCriteria(criteria);
}
/**
* Sets the ct collection ID of this segments entry.
*
* @param ctCollectionId the ct collection ID of this segments entry
*/
@Override
public void setCtCollectionId(long ctCollectionId) {
model.setCtCollectionId(ctCollectionId);
}
/**
* Sets the description of this segments entry.
*
* @param description the description of this segments entry
*/
@Override
public void setDescription(String description) {
model.setDescription(description);
}
/**
* Sets the localized description of this segments entry in the language.
*
* @param description the localized description of this segments entry
* @param locale the locale of the language
*/
@Override
public void setDescription(String description, java.util.Locale locale) {
model.setDescription(description, locale);
}
/**
* Sets the localized description of this segments entry in the language, and sets the default locale.
*
* @param description the localized description of this segments entry
* @param locale the locale of the language
* @param defaultLocale the default locale
*/
@Override
public void setDescription(
String description, java.util.Locale locale,
java.util.Locale defaultLocale) {
model.setDescription(description, locale, defaultLocale);
}
@Override
public void setDescriptionCurrentLanguageId(String languageId) {
model.setDescriptionCurrentLanguageId(languageId);
}
/**
* Sets the localized descriptions of this segments entry from the map of locales and localized descriptions.
*
* @param descriptionMap the locales and localized descriptions of this segments entry
*/
@Override
public void setDescriptionMap(
Map descriptionMap) {
model.setDescriptionMap(descriptionMap);
}
/**
* Sets the localized descriptions of this segments entry from the map of locales and localized descriptions, and sets the default locale.
*
* @param descriptionMap the locales and localized descriptions of this segments entry
* @param defaultLocale the default locale
*/
@Override
public void setDescriptionMap(
Map descriptionMap,
java.util.Locale defaultLocale) {
model.setDescriptionMap(descriptionMap, defaultLocale);
}
/**
* Sets the group ID of this segments entry.
*
* @param groupId the group ID of this segments entry
*/
@Override
public void setGroupId(long groupId) {
model.setGroupId(groupId);
}
/**
* Sets the last publish date of this segments entry.
*
* @param lastPublishDate the last publish date of this segments entry
*/
@Override
public void setLastPublishDate(Date lastPublishDate) {
model.setLastPublishDate(lastPublishDate);
}
/**
* Sets the modified date of this segments entry.
*
* @param modifiedDate the modified date of this segments entry
*/
@Override
public void setModifiedDate(Date modifiedDate) {
model.setModifiedDate(modifiedDate);
}
/**
* Sets the mvcc version of this segments entry.
*
* @param mvccVersion the mvcc version of this segments entry
*/
@Override
public void setMvccVersion(long mvccVersion) {
model.setMvccVersion(mvccVersion);
}
/**
* Sets the name of this segments entry.
*
* @param name the name of this segments entry
*/
@Override
public void setName(String name) {
model.setName(name);
}
/**
* Sets the localized name of this segments entry in the language.
*
* @param name the localized name of this segments entry
* @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 entry in the language, and sets the default locale.
*
* @param name the localized name of this segments entry
* @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 entry from the map of locales and localized names.
*
* @param nameMap the locales and localized names of this segments entry
*/
@Override
public void setNameMap(Map nameMap) {
model.setNameMap(nameMap);
}
/**
* Sets the localized names of this segments entry from the map of locales and localized names, and sets the default locale.
*
* @param nameMap the locales and localized names of this segments entry
* @param defaultLocale the default locale
*/
@Override
public void setNameMap(
Map nameMap, java.util.Locale defaultLocale) {
model.setNameMap(nameMap, defaultLocale);
}
/**
* Sets the primary key of this segments entry.
*
* @param primaryKey the primary key of this segments entry
*/
@Override
public void setPrimaryKey(long primaryKey) {
model.setPrimaryKey(primaryKey);
}
/**
* Sets the segments entry ID of this segments entry.
*
* @param segmentsEntryId the segments entry ID of this segments entry
*/
@Override
public void setSegmentsEntryId(long segmentsEntryId) {
model.setSegmentsEntryId(segmentsEntryId);
}
/**
* Sets the segments entry key of this segments entry.
*
* @param segmentsEntryKey the segments entry key of this segments entry
*/
@Override
public void setSegmentsEntryKey(String segmentsEntryKey) {
model.setSegmentsEntryKey(segmentsEntryKey);
}
/**
* Sets the source of this segments entry.
*
* @param source the source of this segments entry
*/
@Override
public void setSource(String source) {
model.setSource(source);
}
/**
* Sets the user ID of this segments entry.
*
* @param userId the user ID of this segments entry
*/
@Override
public void setUserId(long userId) {
model.setUserId(userId);
}
/**
* Sets the user name of this segments entry.
*
* @param userName the user name of this segments entry
*/
@Override
public void setUserName(String userName) {
model.setUserName(userName);
}
/**
* Sets the user uuid of this segments entry.
*
* @param userUuid the user uuid of this segments entry
*/
@Override
public void setUserUuid(String userUuid) {
model.setUserUuid(userUuid);
}
/**
* Sets the uuid of this segments entry.
*
* @param uuid the uuid of this segments entry
*/
@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 SegmentsEntryWrapper wrap(SegmentsEntry segmentsEntry) {
return new SegmentsEntryWrapper(segmentsEntry);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy