com.liferay.portal.kernel.model.LayoutFriendlyURLWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.kernel Show documentation
Show all versions of com.liferay.portal.kernel Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* 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.exportimport.kernel.lar.StagedModelType;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.Validator;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
*
* This class is a wrapper for {@link LayoutFriendlyURL}.
*
*
* @author Brian Wing Shun Chan
* @see LayoutFriendlyURL
* @generated
*/
@ProviderType
public class LayoutFriendlyURLWrapper implements LayoutFriendlyURL,
ModelWrapper {
public LayoutFriendlyURLWrapper(LayoutFriendlyURL layoutFriendlyURL) {
_layoutFriendlyURL = layoutFriendlyURL;
}
@Override
public Class> getModelClass() {
return LayoutFriendlyURL.class;
}
@Override
public String getModelClassName() {
return LayoutFriendlyURL.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("mvccVersion", getMvccVersion());
attributes.put("uuid", getUuid());
attributes.put("layoutFriendlyURLId", getLayoutFriendlyURLId());
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("plid", getPlid());
attributes.put("privateLayout", getPrivateLayout());
attributes.put("friendlyURL", getFriendlyURL());
attributes.put("languageId", getLanguageId());
attributes.put("lastPublishDate", getLastPublishDate());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
Long mvccVersion = (Long)attributes.get("mvccVersion");
if (mvccVersion != null) {
setMvccVersion(mvccVersion);
}
String uuid = (String)attributes.get("uuid");
if (uuid != null) {
setUuid(uuid);
}
Long layoutFriendlyURLId = (Long)attributes.get("layoutFriendlyURLId");
if (layoutFriendlyURLId != null) {
setLayoutFriendlyURLId(layoutFriendlyURLId);
}
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 plid = (Long)attributes.get("plid");
if (plid != null) {
setPlid(plid);
}
Boolean privateLayout = (Boolean)attributes.get("privateLayout");
if (privateLayout != null) {
setPrivateLayout(privateLayout);
}
String friendlyURL = (String)attributes.get("friendlyURL");
if (friendlyURL != null) {
setFriendlyURL(friendlyURL);
}
String languageId = (String)attributes.get("languageId");
if (languageId != null) {
setLanguageId(languageId);
}
Date lastPublishDate = (Date)attributes.get("lastPublishDate");
if (lastPublishDate != null) {
setLastPublishDate(lastPublishDate);
}
}
@Override
public java.lang.Object clone() {
return new LayoutFriendlyURLWrapper((LayoutFriendlyURL)_layoutFriendlyURL.clone());
}
@Override
public int compareTo(
com.liferay.portal.kernel.model.LayoutFriendlyURL layoutFriendlyURL) {
return _layoutFriendlyURL.compareTo(layoutFriendlyURL);
}
/**
* Returns the company ID of this layout friendly u r l.
*
* @return the company ID of this layout friendly u r l
*/
@Override
public long getCompanyId() {
return _layoutFriendlyURL.getCompanyId();
}
/**
* Returns the create date of this layout friendly u r l.
*
* @return the create date of this layout friendly u r l
*/
@Override
public Date getCreateDate() {
return _layoutFriendlyURL.getCreateDate();
}
@Override
public ExpandoBridge getExpandoBridge() {
return _layoutFriendlyURL.getExpandoBridge();
}
/**
* Returns the friendly u r l of this layout friendly u r l.
*
* @return the friendly u r l of this layout friendly u r l
*/
@Override
public java.lang.String getFriendlyURL() {
return _layoutFriendlyURL.getFriendlyURL();
}
/**
* Returns the group ID of this layout friendly u r l.
*
* @return the group ID of this layout friendly u r l
*/
@Override
public long getGroupId() {
return _layoutFriendlyURL.getGroupId();
}
/**
* Returns the language ID of this layout friendly u r l.
*
* @return the language ID of this layout friendly u r l
*/
@Override
public java.lang.String getLanguageId() {
return _layoutFriendlyURL.getLanguageId();
}
/**
* Returns the last publish date of this layout friendly u r l.
*
* @return the last publish date of this layout friendly u r l
*/
@Override
public Date getLastPublishDate() {
return _layoutFriendlyURL.getLastPublishDate();
}
/**
* Returns the layout friendly u r l ID of this layout friendly u r l.
*
* @return the layout friendly u r l ID of this layout friendly u r l
*/
@Override
public long getLayoutFriendlyURLId() {
return _layoutFriendlyURL.getLayoutFriendlyURLId();
}
/**
* Returns the modified date of this layout friendly u r l.
*
* @return the modified date of this layout friendly u r l
*/
@Override
public Date getModifiedDate() {
return _layoutFriendlyURL.getModifiedDate();
}
/**
* Returns the mvcc version of this layout friendly u r l.
*
* @return the mvcc version of this layout friendly u r l
*/
@Override
public long getMvccVersion() {
return _layoutFriendlyURL.getMvccVersion();
}
/**
* Returns the plid of this layout friendly u r l.
*
* @return the plid of this layout friendly u r l
*/
@Override
public long getPlid() {
return _layoutFriendlyURL.getPlid();
}
/**
* Returns the primary key of this layout friendly u r l.
*
* @return the primary key of this layout friendly u r l
*/
@Override
public long getPrimaryKey() {
return _layoutFriendlyURL.getPrimaryKey();
}
@Override
public Serializable getPrimaryKeyObj() {
return _layoutFriendlyURL.getPrimaryKeyObj();
}
/**
* Returns the private layout of this layout friendly u r l.
*
* @return the private layout of this layout friendly u r l
*/
@Override
public boolean getPrivateLayout() {
return _layoutFriendlyURL.getPrivateLayout();
}
/**
* Returns the user ID of this layout friendly u r l.
*
* @return the user ID of this layout friendly u r l
*/
@Override
public long getUserId() {
return _layoutFriendlyURL.getUserId();
}
/**
* Returns the user name of this layout friendly u r l.
*
* @return the user name of this layout friendly u r l
*/
@Override
public java.lang.String getUserName() {
return _layoutFriendlyURL.getUserName();
}
/**
* Returns the user uuid of this layout friendly u r l.
*
* @return the user uuid of this layout friendly u r l
*/
@Override
public java.lang.String getUserUuid() {
return _layoutFriendlyURL.getUserUuid();
}
/**
* Returns the uuid of this layout friendly u r l.
*
* @return the uuid of this layout friendly u r l
*/
@Override
public java.lang.String getUuid() {
return _layoutFriendlyURL.getUuid();
}
@Override
public int hashCode() {
return _layoutFriendlyURL.hashCode();
}
@Override
public boolean isCachedModel() {
return _layoutFriendlyURL.isCachedModel();
}
@Override
public boolean isEscapedModel() {
return _layoutFriendlyURL.isEscapedModel();
}
@Override
public boolean isNew() {
return _layoutFriendlyURL.isNew();
}
/**
* Returns true
if this layout friendly u r l is private layout.
*
* @return true
if this layout friendly u r l is private layout; false
otherwise
*/
@Override
public boolean isPrivateLayout() {
return _layoutFriendlyURL.isPrivateLayout();
}
@Override
public void persist() {
_layoutFriendlyURL.persist();
}
@Override
public void setCachedModel(boolean cachedModel) {
_layoutFriendlyURL.setCachedModel(cachedModel);
}
/**
* Sets the company ID of this layout friendly u r l.
*
* @param companyId the company ID of this layout friendly u r l
*/
@Override
public void setCompanyId(long companyId) {
_layoutFriendlyURL.setCompanyId(companyId);
}
/**
* Sets the create date of this layout friendly u r l.
*
* @param createDate the create date of this layout friendly u r l
*/
@Override
public void setCreateDate(Date createDate) {
_layoutFriendlyURL.setCreateDate(createDate);
}
@Override
public void setExpandoBridgeAttributes(BaseModel> baseModel) {
_layoutFriendlyURL.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
_layoutFriendlyURL.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
_layoutFriendlyURL.setExpandoBridgeAttributes(serviceContext);
}
/**
* Sets the friendly u r l of this layout friendly u r l.
*
* @param friendlyURL the friendly u r l of this layout friendly u r l
*/
@Override
public void setFriendlyURL(java.lang.String friendlyURL) {
_layoutFriendlyURL.setFriendlyURL(friendlyURL);
}
/**
* Sets the group ID of this layout friendly u r l.
*
* @param groupId the group ID of this layout friendly u r l
*/
@Override
public void setGroupId(long groupId) {
_layoutFriendlyURL.setGroupId(groupId);
}
/**
* Sets the language ID of this layout friendly u r l.
*
* @param languageId the language ID of this layout friendly u r l
*/
@Override
public void setLanguageId(java.lang.String languageId) {
_layoutFriendlyURL.setLanguageId(languageId);
}
/**
* Sets the last publish date of this layout friendly u r l.
*
* @param lastPublishDate the last publish date of this layout friendly u r l
*/
@Override
public void setLastPublishDate(Date lastPublishDate) {
_layoutFriendlyURL.setLastPublishDate(lastPublishDate);
}
/**
* Sets the layout friendly u r l ID of this layout friendly u r l.
*
* @param layoutFriendlyURLId the layout friendly u r l ID of this layout friendly u r l
*/
@Override
public void setLayoutFriendlyURLId(long layoutFriendlyURLId) {
_layoutFriendlyURL.setLayoutFriendlyURLId(layoutFriendlyURLId);
}
/**
* Sets the modified date of this layout friendly u r l.
*
* @param modifiedDate the modified date of this layout friendly u r l
*/
@Override
public void setModifiedDate(Date modifiedDate) {
_layoutFriendlyURL.setModifiedDate(modifiedDate);
}
/**
* Sets the mvcc version of this layout friendly u r l.
*
* @param mvccVersion the mvcc version of this layout friendly u r l
*/
@Override
public void setMvccVersion(long mvccVersion) {
_layoutFriendlyURL.setMvccVersion(mvccVersion);
}
@Override
public void setNew(boolean n) {
_layoutFriendlyURL.setNew(n);
}
/**
* Sets the plid of this layout friendly u r l.
*
* @param plid the plid of this layout friendly u r l
*/
@Override
public void setPlid(long plid) {
_layoutFriendlyURL.setPlid(plid);
}
/**
* Sets the primary key of this layout friendly u r l.
*
* @param primaryKey the primary key of this layout friendly u r l
*/
@Override
public void setPrimaryKey(long primaryKey) {
_layoutFriendlyURL.setPrimaryKey(primaryKey);
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
_layoutFriendlyURL.setPrimaryKeyObj(primaryKeyObj);
}
/**
* Sets whether this layout friendly u r l is private layout.
*
* @param privateLayout the private layout of this layout friendly u r l
*/
@Override
public void setPrivateLayout(boolean privateLayout) {
_layoutFriendlyURL.setPrivateLayout(privateLayout);
}
/**
* Sets the user ID of this layout friendly u r l.
*
* @param userId the user ID of this layout friendly u r l
*/
@Override
public void setUserId(long userId) {
_layoutFriendlyURL.setUserId(userId);
}
/**
* Sets the user name of this layout friendly u r l.
*
* @param userName the user name of this layout friendly u r l
*/
@Override
public void setUserName(java.lang.String userName) {
_layoutFriendlyURL.setUserName(userName);
}
/**
* Sets the user uuid of this layout friendly u r l.
*
* @param userUuid the user uuid of this layout friendly u r l
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_layoutFriendlyURL.setUserUuid(userUuid);
}
/**
* Sets the uuid of this layout friendly u r l.
*
* @param uuid the uuid of this layout friendly u r l
*/
@Override
public void setUuid(java.lang.String uuid) {
_layoutFriendlyURL.setUuid(uuid);
}
@Override
public CacheModel toCacheModel() {
return _layoutFriendlyURL.toCacheModel();
}
@Override
public com.liferay.portal.kernel.model.LayoutFriendlyURL toEscapedModel() {
return new LayoutFriendlyURLWrapper(_layoutFriendlyURL.toEscapedModel());
}
@Override
public java.lang.String toString() {
return _layoutFriendlyURL.toString();
}
@Override
public com.liferay.portal.kernel.model.LayoutFriendlyURL toUnescapedModel() {
return new LayoutFriendlyURLWrapper(_layoutFriendlyURL.toUnescapedModel());
}
@Override
public java.lang.String toXmlString() {
return _layoutFriendlyURL.toXmlString();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof LayoutFriendlyURLWrapper)) {
return false;
}
LayoutFriendlyURLWrapper layoutFriendlyURLWrapper = (LayoutFriendlyURLWrapper)obj;
if (Validator.equals(_layoutFriendlyURL,
layoutFriendlyURLWrapper._layoutFriendlyURL)) {
return true;
}
return false;
}
@Override
public StagedModelType getStagedModelType() {
return _layoutFriendlyURL.getStagedModelType();
}
@Override
public LayoutFriendlyURL getWrappedModel() {
return _layoutFriendlyURL;
}
@Override
public boolean isEntityCacheEnabled() {
return _layoutFriendlyURL.isEntityCacheEnabled();
}
@Override
public boolean isFinderCacheEnabled() {
return _layoutFriendlyURL.isFinderCacheEnabled();
}
@Override
public void resetOriginalValues() {
_layoutFriendlyURL.resetOriginalValues();
}
private final LayoutFriendlyURL _layoutFriendlyURL;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy