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

com.liferay.portal.kernel.model.LayoutRevisionWrapper Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * 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.portal.kernel.model;

import aQute.bnd.annotation.ProviderType;

import com.liferay.expando.kernel.model.ExpandoBridge;
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;

/**
 * 

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

* * @author Brian Wing Shun Chan * @see LayoutRevision * @generated */ @ProviderType public class LayoutRevisionWrapper implements LayoutRevision, ModelWrapper { public LayoutRevisionWrapper(LayoutRevision layoutRevision) { _layoutRevision = layoutRevision; } @Override public Class getModelClass() { return LayoutRevision.class; } @Override public String getModelClassName() { return LayoutRevision.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("layoutRevisionId", getLayoutRevisionId()); 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("layoutSetBranchId", getLayoutSetBranchId()); attributes.put("layoutBranchId", getLayoutBranchId()); attributes.put("parentLayoutRevisionId", getParentLayoutRevisionId()); attributes.put("head", isHead()); attributes.put("major", isMajor()); attributes.put("plid", getPlid()); attributes.put("privateLayout", isPrivateLayout()); attributes.put("name", getName()); attributes.put("title", getTitle()); attributes.put("description", getDescription()); attributes.put("keywords", getKeywords()); attributes.put("robots", getRobots()); attributes.put("typeSettings", getTypeSettings()); attributes.put("iconImageId", getIconImageId()); attributes.put("themeId", getThemeId()); attributes.put("colorSchemeId", getColorSchemeId()); attributes.put("css", getCss()); attributes.put("status", getStatus()); attributes.put("statusByUserId", getStatusByUserId()); attributes.put("statusByUserName", getStatusByUserName()); attributes.put("statusDate", getStatusDate()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long mvccVersion = (Long)attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } Long layoutRevisionId = (Long)attributes.get("layoutRevisionId"); if (layoutRevisionId != null) { setLayoutRevisionId(layoutRevisionId); } 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 layoutSetBranchId = (Long)attributes.get("layoutSetBranchId"); if (layoutSetBranchId != null) { setLayoutSetBranchId(layoutSetBranchId); } Long layoutBranchId = (Long)attributes.get("layoutBranchId"); if (layoutBranchId != null) { setLayoutBranchId(layoutBranchId); } Long parentLayoutRevisionId = (Long)attributes.get( "parentLayoutRevisionId"); if (parentLayoutRevisionId != null) { setParentLayoutRevisionId(parentLayoutRevisionId); } Boolean head = (Boolean)attributes.get("head"); if (head != null) { setHead(head); } Boolean major = (Boolean)attributes.get("major"); if (major != null) { setMajor(major); } Long plid = (Long)attributes.get("plid"); if (plid != null) { setPlid(plid); } Boolean privateLayout = (Boolean)attributes.get("privateLayout"); if (privateLayout != null) { setPrivateLayout(privateLayout); } String name = (String)attributes.get("name"); if (name != null) { setName(name); } String title = (String)attributes.get("title"); if (title != null) { setTitle(title); } String description = (String)attributes.get("description"); if (description != null) { setDescription(description); } String keywords = (String)attributes.get("keywords"); if (keywords != null) { setKeywords(keywords); } String robots = (String)attributes.get("robots"); if (robots != null) { setRobots(robots); } String typeSettings = (String)attributes.get("typeSettings"); if (typeSettings != null) { setTypeSettings(typeSettings); } Long iconImageId = (Long)attributes.get("iconImageId"); if (iconImageId != null) { setIconImageId(iconImageId); } String themeId = (String)attributes.get("themeId"); if (themeId != null) { setThemeId(themeId); } String colorSchemeId = (String)attributes.get("colorSchemeId"); if (colorSchemeId != null) { setColorSchemeId(colorSchemeId); } String css = (String)attributes.get("css"); if (css != null) { setCss(css); } 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 Object clone() { return new LayoutRevisionWrapper( (LayoutRevision)_layoutRevision.clone()); } @Override public int compareTo(LayoutRevision layoutRevision) { return _layoutRevision.compareTo(layoutRevision); } @Override public String[] getAvailableLanguageIds() { return _layoutRevision.getAvailableLanguageIds(); } @Override public java.util.List getChildren() { return _layoutRevision.getChildren(); } @Override public ColorScheme getColorScheme() throws com.liferay.portal.kernel.exception.PortalException { return _layoutRevision.getColorScheme(); } /** * Returns the color scheme ID of this layout revision. * * @return the color scheme ID of this layout revision */ @Override public String getColorSchemeId() { return _layoutRevision.getColorSchemeId(); } /** * Returns the company ID of this layout revision. * * @return the company ID of this layout revision */ @Override public long getCompanyId() { return _layoutRevision.getCompanyId(); } /** * Returns the create date of this layout revision. * * @return the create date of this layout revision */ @Override public Date getCreateDate() { return _layoutRevision.getCreateDate(); } /** * Returns the css of this layout revision. * * @return the css of this layout revision */ @Override public String getCss() { return _layoutRevision.getCss(); } @Override public String getCssText() throws com.liferay.portal.kernel.exception.PortalException { return _layoutRevision.getCssText(); } @Override public String getDefaultLanguageId() { return _layoutRevision.getDefaultLanguageId(); } /** * Returns the description of this layout revision. * * @return the description of this layout revision */ @Override public String getDescription() { return _layoutRevision.getDescription(); } /** * Returns the localized description of this layout revision 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 layout revision */ @Override public String getDescription(java.util.Locale locale) { return _layoutRevision.getDescription(locale); } /** * Returns the localized description of this layout revision 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 layout revision. 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 _layoutRevision.getDescription(locale, useDefault); } /** * Returns the localized description of this layout revision 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 layout revision */ @Override public String getDescription(String languageId) { return _layoutRevision.getDescription(languageId); } /** * Returns the localized description of this layout revision 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 layout revision */ @Override public String getDescription(String languageId, boolean useDefault) { return _layoutRevision.getDescription(languageId, useDefault); } @Override public String getDescriptionCurrentLanguageId() { return _layoutRevision.getDescriptionCurrentLanguageId(); } @Override public String getDescriptionCurrentValue() { return _layoutRevision.getDescriptionCurrentValue(); } /** * Returns a map of the locales and localized descriptions of this layout revision. * * @return the locales and localized descriptions of this layout revision */ @Override public Map getDescriptionMap() { return _layoutRevision.getDescriptionMap(); } @Override public ExpandoBridge getExpandoBridge() { return _layoutRevision.getExpandoBridge(); } /** * Returns the group ID of this layout revision. * * @return the group ID of this layout revision */ @Override public long getGroupId() { return _layoutRevision.getGroupId(); } /** * Returns the head of this layout revision. * * @return the head of this layout revision */ @Override public boolean getHead() { return _layoutRevision.getHead(); } @Override public String getHTMLTitle(java.util.Locale locale) { return _layoutRevision.getHTMLTitle(locale); } @Override public String getHTMLTitle(String localeLanguageId) { return _layoutRevision.getHTMLTitle(localeLanguageId); } @Override public boolean getIconImage() { return _layoutRevision.getIconImage(); } /** * Returns the icon image ID of this layout revision. * * @return the icon image ID of this layout revision */ @Override public long getIconImageId() { return _layoutRevision.getIconImageId(); } /** * Returns the keywords of this layout revision. * * @return the keywords of this layout revision */ @Override public String getKeywords() { return _layoutRevision.getKeywords(); } /** * Returns the localized keywords of this layout revision 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 keywords of this layout revision */ @Override public String getKeywords(java.util.Locale locale) { return _layoutRevision.getKeywords(locale); } /** * Returns the localized keywords of this layout revision 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 keywords of this layout revision. If useDefault is false and no localization exists for the requested language, an empty string will be returned. */ @Override public String getKeywords(java.util.Locale locale, boolean useDefault) { return _layoutRevision.getKeywords(locale, useDefault); } /** * Returns the localized keywords of this layout revision 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 keywords of this layout revision */ @Override public String getKeywords(String languageId) { return _layoutRevision.getKeywords(languageId); } /** * Returns the localized keywords of this layout revision 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 keywords of this layout revision */ @Override public String getKeywords(String languageId, boolean useDefault) { return _layoutRevision.getKeywords(languageId, useDefault); } @Override public String getKeywordsCurrentLanguageId() { return _layoutRevision.getKeywordsCurrentLanguageId(); } @Override public String getKeywordsCurrentValue() { return _layoutRevision.getKeywordsCurrentValue(); } /** * Returns a map of the locales and localized keywordses of this layout revision. * * @return the locales and localized keywordses of this layout revision */ @Override public Map getKeywordsMap() { return _layoutRevision.getKeywordsMap(); } @Override public LayoutBranch getLayoutBranch() throws com.liferay.portal.kernel.exception.PortalException { return _layoutRevision.getLayoutBranch(); } /** * Returns the layout branch ID of this layout revision. * * @return the layout branch ID of this layout revision */ @Override public long getLayoutBranchId() { return _layoutRevision.getLayoutBranchId(); } /** * Returns the layout revision ID of this layout revision. * * @return the layout revision ID of this layout revision */ @Override public long getLayoutRevisionId() { return _layoutRevision.getLayoutRevisionId(); } @Override public LayoutSet getLayoutSet() throws com.liferay.portal.kernel.exception.PortalException { return _layoutRevision.getLayoutSet(); } /** * Returns the layout set branch ID of this layout revision. * * @return the layout set branch ID of this layout revision */ @Override public long getLayoutSetBranchId() { return _layoutRevision.getLayoutSetBranchId(); } /** * Returns the major of this layout revision. * * @return the major of this layout revision */ @Override public boolean getMajor() { return _layoutRevision.getMajor(); } /** * Returns the modified date of this layout revision. * * @return the modified date of this layout revision */ @Override public Date getModifiedDate() { return _layoutRevision.getModifiedDate(); } /** * Returns the mvcc version of this layout revision. * * @return the mvcc version of this layout revision */ @Override public long getMvccVersion() { return _layoutRevision.getMvccVersion(); } /** * Returns the name of this layout revision. * * @return the name of this layout revision */ @Override public String getName() { return _layoutRevision.getName(); } /** * Returns the localized name of this layout revision 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 layout revision */ @Override public String getName(java.util.Locale locale) { return _layoutRevision.getName(locale); } /** * Returns the localized name of this layout revision 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 layout revision. 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 _layoutRevision.getName(locale, useDefault); } /** * Returns the localized name of this layout revision 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 layout revision */ @Override public String getName(String languageId) { return _layoutRevision.getName(languageId); } /** * Returns the localized name of this layout revision 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 layout revision */ @Override public String getName(String languageId, boolean useDefault) { return _layoutRevision.getName(languageId, useDefault); } @Override public String getNameCurrentLanguageId() { return _layoutRevision.getNameCurrentLanguageId(); } @Override public String getNameCurrentValue() { return _layoutRevision.getNameCurrentValue(); } /** * Returns a map of the locales and localized names of this layout revision. * * @return the locales and localized names of this layout revision */ @Override public Map getNameMap() { return _layoutRevision.getNameMap(); } /** * Returns the parent layout revision ID of this layout revision. * * @return the parent layout revision ID of this layout revision */ @Override public long getParentLayoutRevisionId() { return _layoutRevision.getParentLayoutRevisionId(); } /** * Returns the plid of this layout revision. * * @return the plid of this layout revision */ @Override public long getPlid() { return _layoutRevision.getPlid(); } /** * Returns the primary key of this layout revision. * * @return the primary key of this layout revision */ @Override public long getPrimaryKey() { return _layoutRevision.getPrimaryKey(); } @Override public Serializable getPrimaryKeyObj() { return _layoutRevision.getPrimaryKeyObj(); } /** * Returns the private layout of this layout revision. * * @return the private layout of this layout revision */ @Override public boolean getPrivateLayout() { return _layoutRevision.getPrivateLayout(); } @Override public String getRegularURL(javax.servlet.http.HttpServletRequest request) throws com.liferay.portal.kernel.exception.PortalException { return _layoutRevision.getRegularURL(request); } /** * Returns the robots of this layout revision. * * @return the robots of this layout revision */ @Override public String getRobots() { return _layoutRevision.getRobots(); } /** * Returns the localized robots of this layout revision 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 robots of this layout revision */ @Override public String getRobots(java.util.Locale locale) { return _layoutRevision.getRobots(locale); } /** * Returns the localized robots of this layout revision 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 robots of this layout revision. If useDefault is false and no localization exists for the requested language, an empty string will be returned. */ @Override public String getRobots(java.util.Locale locale, boolean useDefault) { return _layoutRevision.getRobots(locale, useDefault); } /** * Returns the localized robots of this layout revision 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 robots of this layout revision */ @Override public String getRobots(String languageId) { return _layoutRevision.getRobots(languageId); } /** * Returns the localized robots of this layout revision 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 robots of this layout revision */ @Override public String getRobots(String languageId, boolean useDefault) { return _layoutRevision.getRobots(languageId, useDefault); } @Override public String getRobotsCurrentLanguageId() { return _layoutRevision.getRobotsCurrentLanguageId(); } @Override public String getRobotsCurrentValue() { return _layoutRevision.getRobotsCurrentValue(); } /** * Returns a map of the locales and localized robotses of this layout revision. * * @return the locales and localized robotses of this layout revision */ @Override public Map getRobotsMap() { return _layoutRevision.getRobotsMap(); } /** * Returns the status of this layout revision. * * @return the status of this layout revision */ @Override public int getStatus() { return _layoutRevision.getStatus(); } /** * Returns the status by user ID of this layout revision. * * @return the status by user ID of this layout revision */ @Override public long getStatusByUserId() { return _layoutRevision.getStatusByUserId(); } /** * Returns the status by user name of this layout revision. * * @return the status by user name of this layout revision */ @Override public String getStatusByUserName() { return _layoutRevision.getStatusByUserName(); } /** * Returns the status by user uuid of this layout revision. * * @return the status by user uuid of this layout revision */ @Override public String getStatusByUserUuid() { return _layoutRevision.getStatusByUserUuid(); } /** * Returns the status date of this layout revision. * * @return the status date of this layout revision */ @Override public Date getStatusDate() { return _layoutRevision.getStatusDate(); } @Override public Theme getTheme() throws com.liferay.portal.kernel.exception.PortalException { return _layoutRevision.getTheme(); } /** * Returns the theme ID of this layout revision. * * @return the theme ID of this layout revision */ @Override public String getThemeId() { return _layoutRevision.getThemeId(); } @Override public String getThemeSetting(String key, String device) { return _layoutRevision.getThemeSetting(key, device); } /** * Returns the title of this layout revision. * * @return the title of this layout revision */ @Override public String getTitle() { return _layoutRevision.getTitle(); } /** * Returns the localized title of this layout revision 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 title of this layout revision */ @Override public String getTitle(java.util.Locale locale) { return _layoutRevision.getTitle(locale); } /** * Returns the localized title of this layout revision 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 title of this layout revision. If useDefault is false and no localization exists for the requested language, an empty string will be returned. */ @Override public String getTitle(java.util.Locale locale, boolean useDefault) { return _layoutRevision.getTitle(locale, useDefault); } /** * Returns the localized title of this layout revision 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 title of this layout revision */ @Override public String getTitle(String languageId) { return _layoutRevision.getTitle(languageId); } /** * Returns the localized title of this layout revision 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 title of this layout revision */ @Override public String getTitle(String languageId, boolean useDefault) { return _layoutRevision.getTitle(languageId, useDefault); } @Override public String getTitleCurrentLanguageId() { return _layoutRevision.getTitleCurrentLanguageId(); } @Override public String getTitleCurrentValue() { return _layoutRevision.getTitleCurrentValue(); } /** * Returns a map of the locales and localized titles of this layout revision. * * @return the locales and localized titles of this layout revision */ @Override public Map getTitleMap() { return _layoutRevision.getTitleMap(); } /** * Returns the type settings of this layout revision. * * @return the type settings of this layout revision */ @Override public String getTypeSettings() { return _layoutRevision.getTypeSettings(); } @Override public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() { return _layoutRevision.getTypeSettingsProperties(); } @Override public String getTypeSettingsProperty(String key) { return _layoutRevision.getTypeSettingsProperty(key); } @Override public String getTypeSettingsProperty(String key, String defaultValue) { return _layoutRevision.getTypeSettingsProperty(key, defaultValue); } /** * Returns the user ID of this layout revision. * * @return the user ID of this layout revision */ @Override public long getUserId() { return _layoutRevision.getUserId(); } /** * Returns the user name of this layout revision. * * @return the user name of this layout revision */ @Override public String getUserName() { return _layoutRevision.getUserName(); } /** * Returns the user uuid of this layout revision. * * @return the user uuid of this layout revision */ @Override public String getUserUuid() { return _layoutRevision.getUserUuid(); } @Override public boolean hasChildren() { return _layoutRevision.hasChildren(); } @Override public int hashCode() { return _layoutRevision.hashCode(); } /** * Returns true if this layout revision is approved. * * @return true if this layout revision is approved; false otherwise */ @Override public boolean isApproved() { return _layoutRevision.isApproved(); } @Override public boolean isCachedModel() { return _layoutRevision.isCachedModel(); } @Override public boolean isContentDisplayPage() { return _layoutRevision.isContentDisplayPage(); } /** * Returns true if this layout revision is denied. * * @return true if this layout revision is denied; false otherwise */ @Override public boolean isDenied() { return _layoutRevision.isDenied(); } /** * Returns true if this layout revision is a draft. * * @return true if this layout revision is a draft; false otherwise */ @Override public boolean isDraft() { return _layoutRevision.isDraft(); } @Override public boolean isEscapedModel() { return _layoutRevision.isEscapedModel(); } /** * Returns true if this layout revision is expired. * * @return true if this layout revision is expired; false otherwise */ @Override public boolean isExpired() { return _layoutRevision.isExpired(); } /** * Returns true if this layout revision is head. * * @return true if this layout revision is head; false otherwise */ @Override public boolean isHead() { return _layoutRevision.isHead(); } @Override public boolean isIconImage() { return _layoutRevision.isIconImage(); } /** * Returns true if this layout revision is inactive. * * @return true if this layout revision is inactive; false otherwise */ @Override public boolean isInactive() { return _layoutRevision.isInactive(); } /** * Returns true if this layout revision is incomplete. * * @return true if this layout revision is incomplete; false otherwise */ @Override public boolean isIncomplete() { return _layoutRevision.isIncomplete(); } @Override public boolean isInheritLookAndFeel() { return _layoutRevision.isInheritLookAndFeel(); } /** * Returns true if this layout revision is major. * * @return true if this layout revision is major; false otherwise */ @Override public boolean isMajor() { return _layoutRevision.isMajor(); } @Override public boolean isNew() { return _layoutRevision.isNew(); } /** * Returns true if this layout revision is pending. * * @return true if this layout revision is pending; false otherwise */ @Override public boolean isPending() { return _layoutRevision.isPending(); } /** * Returns true if this layout revision is private layout. * * @return true if this layout revision is private layout; false otherwise */ @Override public boolean isPrivateLayout() { return _layoutRevision.isPrivateLayout(); } /** * Returns true if this layout revision is scheduled. * * @return true if this layout revision is scheduled; false otherwise */ @Override public boolean isScheduled() { return _layoutRevision.isScheduled(); } @Override public void persist() { _layoutRevision.persist(); } @Override public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException { _layoutRevision.prepareLocalizedFieldsForImport(); } @Override public void prepareLocalizedFieldsForImport( java.util.Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException { _layoutRevision.prepareLocalizedFieldsForImport(defaultImportLocale); } @Override public void setCachedModel(boolean cachedModel) { _layoutRevision.setCachedModel(cachedModel); } /** * Sets the color scheme ID of this layout revision. * * @param colorSchemeId the color scheme ID of this layout revision */ @Override public void setColorSchemeId(String colorSchemeId) { _layoutRevision.setColorSchemeId(colorSchemeId); } /** * Sets the company ID of this layout revision. * * @param companyId the company ID of this layout revision */ @Override public void setCompanyId(long companyId) { _layoutRevision.setCompanyId(companyId); } /** * Sets the create date of this layout revision. * * @param createDate the create date of this layout revision */ @Override public void setCreateDate(Date createDate) { _layoutRevision.setCreateDate(createDate); } /** * Sets the css of this layout revision. * * @param css the css of this layout revision */ @Override public void setCss(String css) { _layoutRevision.setCss(css); } /** * Sets the description of this layout revision. * * @param description the description of this layout revision */ @Override public void setDescription(String description) { _layoutRevision.setDescription(description); } /** * Sets the localized description of this layout revision in the language. * * @param description the localized description of this layout revision * @param locale the locale of the language */ @Override public void setDescription(String description, java.util.Locale locale) { _layoutRevision.setDescription(description, locale); } /** * Sets the localized description of this layout revision in the language, and sets the default locale. * * @param description the localized description of this layout revision * @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) { _layoutRevision.setDescription(description, locale, defaultLocale); } @Override public void setDescriptionCurrentLanguageId(String languageId) { _layoutRevision.setDescriptionCurrentLanguageId(languageId); } /** * Sets the localized descriptions of this layout revision from the map of locales and localized descriptions. * * @param descriptionMap the locales and localized descriptions of this layout revision */ @Override public void setDescriptionMap( Map descriptionMap) { _layoutRevision.setDescriptionMap(descriptionMap); } /** * Sets the localized descriptions of this layout revision from the map of locales and localized descriptions, and sets the default locale. * * @param descriptionMap the locales and localized descriptions of this layout revision * @param defaultLocale the default locale */ @Override public void setDescriptionMap( Map descriptionMap, java.util.Locale defaultLocale) { _layoutRevision.setDescriptionMap(descriptionMap, defaultLocale); } @Override public void setExpandoBridgeAttributes(BaseModel baseModel) { _layoutRevision.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _layoutRevision.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _layoutRevision.setExpandoBridgeAttributes(serviceContext); } /** * Sets the group ID of this layout revision. * * @param groupId the group ID of this layout revision */ @Override public void setGroupId(long groupId) { _layoutRevision.setGroupId(groupId); } /** * Sets whether this layout revision is head. * * @param head the head of this layout revision */ @Override public void setHead(boolean head) { _layoutRevision.setHead(head); } /** * Sets the icon image ID of this layout revision. * * @param iconImageId the icon image ID of this layout revision */ @Override public void setIconImageId(long iconImageId) { _layoutRevision.setIconImageId(iconImageId); } /** * Sets the keywords of this layout revision. * * @param keywords the keywords of this layout revision */ @Override public void setKeywords(String keywords) { _layoutRevision.setKeywords(keywords); } /** * Sets the localized keywords of this layout revision in the language. * * @param keywords the localized keywords of this layout revision * @param locale the locale of the language */ @Override public void setKeywords(String keywords, java.util.Locale locale) { _layoutRevision.setKeywords(keywords, locale); } /** * Sets the localized keywords of this layout revision in the language, and sets the default locale. * * @param keywords the localized keywords of this layout revision * @param locale the locale of the language * @param defaultLocale the default locale */ @Override public void setKeywords( String keywords, java.util.Locale locale, java.util.Locale defaultLocale) { _layoutRevision.setKeywords(keywords, locale, defaultLocale); } @Override public void setKeywordsCurrentLanguageId(String languageId) { _layoutRevision.setKeywordsCurrentLanguageId(languageId); } /** * Sets the localized keywordses of this layout revision from the map of locales and localized keywordses. * * @param keywordsMap the locales and localized keywordses of this layout revision */ @Override public void setKeywordsMap(Map keywordsMap) { _layoutRevision.setKeywordsMap(keywordsMap); } /** * Sets the localized keywordses of this layout revision from the map of locales and localized keywordses, and sets the default locale. * * @param keywordsMap the locales and localized keywordses of this layout revision * @param defaultLocale the default locale */ @Override public void setKeywordsMap( Map keywordsMap, java.util.Locale defaultLocale) { _layoutRevision.setKeywordsMap(keywordsMap, defaultLocale); } /** * Sets the layout branch ID of this layout revision. * * @param layoutBranchId the layout branch ID of this layout revision */ @Override public void setLayoutBranchId(long layoutBranchId) { _layoutRevision.setLayoutBranchId(layoutBranchId); } /** * Sets the layout revision ID of this layout revision. * * @param layoutRevisionId the layout revision ID of this layout revision */ @Override public void setLayoutRevisionId(long layoutRevisionId) { _layoutRevision.setLayoutRevisionId(layoutRevisionId); } /** * Sets the layout set branch ID of this layout revision. * * @param layoutSetBranchId the layout set branch ID of this layout revision */ @Override public void setLayoutSetBranchId(long layoutSetBranchId) { _layoutRevision.setLayoutSetBranchId(layoutSetBranchId); } /** * Sets whether this layout revision is major. * * @param major the major of this layout revision */ @Override public void setMajor(boolean major) { _layoutRevision.setMajor(major); } /** * Sets the modified date of this layout revision. * * @param modifiedDate the modified date of this layout revision */ @Override public void setModifiedDate(Date modifiedDate) { _layoutRevision.setModifiedDate(modifiedDate); } /** * Sets the mvcc version of this layout revision. * * @param mvccVersion the mvcc version of this layout revision */ @Override public void setMvccVersion(long mvccVersion) { _layoutRevision.setMvccVersion(mvccVersion); } /** * Sets the name of this layout revision. * * @param name the name of this layout revision */ @Override public void setName(String name) { _layoutRevision.setName(name); } /** * Sets the localized name of this layout revision in the language. * * @param name the localized name of this layout revision * @param locale the locale of the language */ @Override public void setName(String name, java.util.Locale locale) { _layoutRevision.setName(name, locale); } /** * Sets the localized name of this layout revision in the language, and sets the default locale. * * @param name the localized name of this layout revision * @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) { _layoutRevision.setName(name, locale, defaultLocale); } @Override public void setNameCurrentLanguageId(String languageId) { _layoutRevision.setNameCurrentLanguageId(languageId); } /** * Sets the localized names of this layout revision from the map of locales and localized names. * * @param nameMap the locales and localized names of this layout revision */ @Override public void setNameMap(Map nameMap) { _layoutRevision.setNameMap(nameMap); } /** * Sets the localized names of this layout revision from the map of locales and localized names, and sets the default locale. * * @param nameMap the locales and localized names of this layout revision * @param defaultLocale the default locale */ @Override public void setNameMap( Map nameMap, java.util.Locale defaultLocale) { _layoutRevision.setNameMap(nameMap, defaultLocale); } @Override public void setNew(boolean n) { _layoutRevision.setNew(n); } /** * Sets the parent layout revision ID of this layout revision. * * @param parentLayoutRevisionId the parent layout revision ID of this layout revision */ @Override public void setParentLayoutRevisionId(long parentLayoutRevisionId) { _layoutRevision.setParentLayoutRevisionId(parentLayoutRevisionId); } /** * Sets the plid of this layout revision. * * @param plid the plid of this layout revision */ @Override public void setPlid(long plid) { _layoutRevision.setPlid(plid); } /** * Sets the primary key of this layout revision. * * @param primaryKey the primary key of this layout revision */ @Override public void setPrimaryKey(long primaryKey) { _layoutRevision.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _layoutRevision.setPrimaryKeyObj(primaryKeyObj); } /** * Sets whether this layout revision is private layout. * * @param privateLayout the private layout of this layout revision */ @Override public void setPrivateLayout(boolean privateLayout) { _layoutRevision.setPrivateLayout(privateLayout); } /** * Sets the robots of this layout revision. * * @param robots the robots of this layout revision */ @Override public void setRobots(String robots) { _layoutRevision.setRobots(robots); } /** * Sets the localized robots of this layout revision in the language. * * @param robots the localized robots of this layout revision * @param locale the locale of the language */ @Override public void setRobots(String robots, java.util.Locale locale) { _layoutRevision.setRobots(robots, locale); } /** * Sets the localized robots of this layout revision in the language, and sets the default locale. * * @param robots the localized robots of this layout revision * @param locale the locale of the language * @param defaultLocale the default locale */ @Override public void setRobots( String robots, java.util.Locale locale, java.util.Locale defaultLocale) { _layoutRevision.setRobots(robots, locale, defaultLocale); } @Override public void setRobotsCurrentLanguageId(String languageId) { _layoutRevision.setRobotsCurrentLanguageId(languageId); } /** * Sets the localized robotses of this layout revision from the map of locales and localized robotses. * * @param robotsMap the locales and localized robotses of this layout revision */ @Override public void setRobotsMap(Map robotsMap) { _layoutRevision.setRobotsMap(robotsMap); } /** * Sets the localized robotses of this layout revision from the map of locales and localized robotses, and sets the default locale. * * @param robotsMap the locales and localized robotses of this layout revision * @param defaultLocale the default locale */ @Override public void setRobotsMap( Map robotsMap, java.util.Locale defaultLocale) { _layoutRevision.setRobotsMap(robotsMap, defaultLocale); } /** * Sets the status of this layout revision. * * @param status the status of this layout revision */ @Override public void setStatus(int status) { _layoutRevision.setStatus(status); } /** * Sets the status by user ID of this layout revision. * * @param statusByUserId the status by user ID of this layout revision */ @Override public void setStatusByUserId(long statusByUserId) { _layoutRevision.setStatusByUserId(statusByUserId); } /** * Sets the status by user name of this layout revision. * * @param statusByUserName the status by user name of this layout revision */ @Override public void setStatusByUserName(String statusByUserName) { _layoutRevision.setStatusByUserName(statusByUserName); } /** * Sets the status by user uuid of this layout revision. * * @param statusByUserUuid the status by user uuid of this layout revision */ @Override public void setStatusByUserUuid(String statusByUserUuid) { _layoutRevision.setStatusByUserUuid(statusByUserUuid); } /** * Sets the status date of this layout revision. * * @param statusDate the status date of this layout revision */ @Override public void setStatusDate(Date statusDate) { _layoutRevision.setStatusDate(statusDate); } /** * Sets the theme ID of this layout revision. * * @param themeId the theme ID of this layout revision */ @Override public void setThemeId(String themeId) { _layoutRevision.setThemeId(themeId); } /** * Sets the title of this layout revision. * * @param title the title of this layout revision */ @Override public void setTitle(String title) { _layoutRevision.setTitle(title); } /** * Sets the localized title of this layout revision in the language. * * @param title the localized title of this layout revision * @param locale the locale of the language */ @Override public void setTitle(String title, java.util.Locale locale) { _layoutRevision.setTitle(title, locale); } /** * Sets the localized title of this layout revision in the language, and sets the default locale. * * @param title the localized title of this layout revision * @param locale the locale of the language * @param defaultLocale the default locale */ @Override public void setTitle( String title, java.util.Locale locale, java.util.Locale defaultLocale) { _layoutRevision.setTitle(title, locale, defaultLocale); } @Override public void setTitleCurrentLanguageId(String languageId) { _layoutRevision.setTitleCurrentLanguageId(languageId); } /** * Sets the localized titles of this layout revision from the map of locales and localized titles. * * @param titleMap the locales and localized titles of this layout revision */ @Override public void setTitleMap(Map titleMap) { _layoutRevision.setTitleMap(titleMap); } /** * Sets the localized titles of this layout revision from the map of locales and localized titles, and sets the default locale. * * @param titleMap the locales and localized titles of this layout revision * @param defaultLocale the default locale */ @Override public void setTitleMap( Map titleMap, java.util.Locale defaultLocale) { _layoutRevision.setTitleMap(titleMap, defaultLocale); } /** * Sets the type settings of this layout revision. * * @param typeSettings the type settings of this layout revision */ @Override public void setTypeSettings(String typeSettings) { _layoutRevision.setTypeSettings(typeSettings); } @Override public void setTypeSettingsProperties( com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) { _layoutRevision.setTypeSettingsProperties(typeSettingsProperties); } /** * Sets the user ID of this layout revision. * * @param userId the user ID of this layout revision */ @Override public void setUserId(long userId) { _layoutRevision.setUserId(userId); } /** * Sets the user name of this layout revision. * * @param userName the user name of this layout revision */ @Override public void setUserName(String userName) { _layoutRevision.setUserName(userName); } /** * Sets the user uuid of this layout revision. * * @param userUuid the user uuid of this layout revision */ @Override public void setUserUuid(String userUuid) { _layoutRevision.setUserUuid(userUuid); } @Override public CacheModel toCacheModel() { return _layoutRevision.toCacheModel(); } @Override public LayoutRevision toEscapedModel() { return new LayoutRevisionWrapper(_layoutRevision.toEscapedModel()); } @Override public String toString() { return _layoutRevision.toString(); } @Override public LayoutRevision toUnescapedModel() { return new LayoutRevisionWrapper(_layoutRevision.toUnescapedModel()); } @Override public String toXmlString() { return _layoutRevision.toXmlString(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof LayoutRevisionWrapper)) { return false; } LayoutRevisionWrapper layoutRevisionWrapper = (LayoutRevisionWrapper)obj; if (Objects.equals( _layoutRevision, layoutRevisionWrapper._layoutRevision)) { return true; } return false; } @Override public LayoutRevision getWrappedModel() { return _layoutRevision; } @Override public boolean isEntityCacheEnabled() { return _layoutRevision.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _layoutRevision.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _layoutRevision.resetOriginalValues(); } private final LayoutRevision _layoutRevision; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy