com.liferay.portal.kernel.model.LayoutBranchWrapper 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.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.Validator;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
*
* This class is a wrapper for {@link LayoutBranch}.
*
*
* @author Brian Wing Shun Chan
* @see LayoutBranch
* @generated
*/
@ProviderType
public class LayoutBranchWrapper implements LayoutBranch,
ModelWrapper {
public LayoutBranchWrapper(LayoutBranch layoutBranch) {
_layoutBranch = layoutBranch;
}
@Override
public Class> getModelClass() {
return LayoutBranch.class;
}
@Override
public String getModelClassName() {
return LayoutBranch.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("mvccVersion", getMvccVersion());
attributes.put("layoutBranchId", getLayoutBranchId());
attributes.put("groupId", getGroupId());
attributes.put("companyId", getCompanyId());
attributes.put("userId", getUserId());
attributes.put("userName", getUserName());
attributes.put("layoutSetBranchId", getLayoutSetBranchId());
attributes.put("plid", getPlid());
attributes.put("name", getName());
attributes.put("description", getDescription());
attributes.put("master", getMaster());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
Long mvccVersion = (Long)attributes.get("mvccVersion");
if (mvccVersion != null) {
setMvccVersion(mvccVersion);
}
Long layoutBranchId = (Long)attributes.get("layoutBranchId");
if (layoutBranchId != null) {
setLayoutBranchId(layoutBranchId);
}
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);
}
Long layoutSetBranchId = (Long)attributes.get("layoutSetBranchId");
if (layoutSetBranchId != null) {
setLayoutSetBranchId(layoutSetBranchId);
}
Long plid = (Long)attributes.get("plid");
if (plid != null) {
setPlid(plid);
}
String name = (String)attributes.get("name");
if (name != null) {
setName(name);
}
String description = (String)attributes.get("description");
if (description != null) {
setDescription(description);
}
Boolean master = (Boolean)attributes.get("master");
if (master != null) {
setMaster(master);
}
}
@Override
public java.lang.Object clone() {
return new LayoutBranchWrapper((LayoutBranch)_layoutBranch.clone());
}
@Override
public int compareTo(
com.liferay.portal.kernel.model.LayoutBranch layoutBranch) {
return _layoutBranch.compareTo(layoutBranch);
}
/**
* Returns the company ID of this layout branch.
*
* @return the company ID of this layout branch
*/
@Override
public long getCompanyId() {
return _layoutBranch.getCompanyId();
}
/**
* Returns the description of this layout branch.
*
* @return the description of this layout branch
*/
@Override
public java.lang.String getDescription() {
return _layoutBranch.getDescription();
}
@Override
public ExpandoBridge getExpandoBridge() {
return _layoutBranch.getExpandoBridge();
}
/**
* Returns the group ID of this layout branch.
*
* @return the group ID of this layout branch
*/
@Override
public long getGroupId() {
return _layoutBranch.getGroupId();
}
/**
* Returns the layout branch ID of this layout branch.
*
* @return the layout branch ID of this layout branch
*/
@Override
public long getLayoutBranchId() {
return _layoutBranch.getLayoutBranchId();
}
/**
* Returns the layout set branch ID of this layout branch.
*
* @return the layout set branch ID of this layout branch
*/
@Override
public long getLayoutSetBranchId() {
return _layoutBranch.getLayoutSetBranchId();
}
/**
* Returns the master of this layout branch.
*
* @return the master of this layout branch
*/
@Override
public boolean getMaster() {
return _layoutBranch.getMaster();
}
/**
* Returns the mvcc version of this layout branch.
*
* @return the mvcc version of this layout branch
*/
@Override
public long getMvccVersion() {
return _layoutBranch.getMvccVersion();
}
/**
* Returns the name of this layout branch.
*
* @return the name of this layout branch
*/
@Override
public java.lang.String getName() {
return _layoutBranch.getName();
}
/**
* Returns the plid of this layout branch.
*
* @return the plid of this layout branch
*/
@Override
public long getPlid() {
return _layoutBranch.getPlid();
}
/**
* Returns the primary key of this layout branch.
*
* @return the primary key of this layout branch
*/
@Override
public long getPrimaryKey() {
return _layoutBranch.getPrimaryKey();
}
@Override
public Serializable getPrimaryKeyObj() {
return _layoutBranch.getPrimaryKeyObj();
}
/**
* Returns the user ID of this layout branch.
*
* @return the user ID of this layout branch
*/
@Override
public long getUserId() {
return _layoutBranch.getUserId();
}
/**
* Returns the user name of this layout branch.
*
* @return the user name of this layout branch
*/
@Override
public java.lang.String getUserName() {
return _layoutBranch.getUserName();
}
/**
* Returns the user uuid of this layout branch.
*
* @return the user uuid of this layout branch
*/
@Override
public java.lang.String getUserUuid() {
return _layoutBranch.getUserUuid();
}
@Override
public int hashCode() {
return _layoutBranch.hashCode();
}
@Override
public boolean isCachedModel() {
return _layoutBranch.isCachedModel();
}
@Override
public boolean isEscapedModel() {
return _layoutBranch.isEscapedModel();
}
/**
* Returns true
if this layout branch is master.
*
* @return true
if this layout branch is master; false
otherwise
*/
@Override
public boolean isMaster() {
return _layoutBranch.isMaster();
}
@Override
public boolean isNew() {
return _layoutBranch.isNew();
}
@Override
public void persist() {
_layoutBranch.persist();
}
@Override
public void setCachedModel(boolean cachedModel) {
_layoutBranch.setCachedModel(cachedModel);
}
/**
* Sets the company ID of this layout branch.
*
* @param companyId the company ID of this layout branch
*/
@Override
public void setCompanyId(long companyId) {
_layoutBranch.setCompanyId(companyId);
}
/**
* Sets the description of this layout branch.
*
* @param description the description of this layout branch
*/
@Override
public void setDescription(java.lang.String description) {
_layoutBranch.setDescription(description);
}
@Override
public void setExpandoBridgeAttributes(BaseModel> baseModel) {
_layoutBranch.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
_layoutBranch.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
_layoutBranch.setExpandoBridgeAttributes(serviceContext);
}
/**
* Sets the group ID of this layout branch.
*
* @param groupId the group ID of this layout branch
*/
@Override
public void setGroupId(long groupId) {
_layoutBranch.setGroupId(groupId);
}
/**
* Sets the layout branch ID of this layout branch.
*
* @param layoutBranchId the layout branch ID of this layout branch
*/
@Override
public void setLayoutBranchId(long layoutBranchId) {
_layoutBranch.setLayoutBranchId(layoutBranchId);
}
/**
* Sets the layout set branch ID of this layout branch.
*
* @param layoutSetBranchId the layout set branch ID of this layout branch
*/
@Override
public void setLayoutSetBranchId(long layoutSetBranchId) {
_layoutBranch.setLayoutSetBranchId(layoutSetBranchId);
}
/**
* Sets whether this layout branch is master.
*
* @param master the master of this layout branch
*/
@Override
public void setMaster(boolean master) {
_layoutBranch.setMaster(master);
}
/**
* Sets the mvcc version of this layout branch.
*
* @param mvccVersion the mvcc version of this layout branch
*/
@Override
public void setMvccVersion(long mvccVersion) {
_layoutBranch.setMvccVersion(mvccVersion);
}
/**
* Sets the name of this layout branch.
*
* @param name the name of this layout branch
*/
@Override
public void setName(java.lang.String name) {
_layoutBranch.setName(name);
}
@Override
public void setNew(boolean n) {
_layoutBranch.setNew(n);
}
/**
* Sets the plid of this layout branch.
*
* @param plid the plid of this layout branch
*/
@Override
public void setPlid(long plid) {
_layoutBranch.setPlid(plid);
}
/**
* Sets the primary key of this layout branch.
*
* @param primaryKey the primary key of this layout branch
*/
@Override
public void setPrimaryKey(long primaryKey) {
_layoutBranch.setPrimaryKey(primaryKey);
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
_layoutBranch.setPrimaryKeyObj(primaryKeyObj);
}
/**
* Sets the user ID of this layout branch.
*
* @param userId the user ID of this layout branch
*/
@Override
public void setUserId(long userId) {
_layoutBranch.setUserId(userId);
}
/**
* Sets the user name of this layout branch.
*
* @param userName the user name of this layout branch
*/
@Override
public void setUserName(java.lang.String userName) {
_layoutBranch.setUserName(userName);
}
/**
* Sets the user uuid of this layout branch.
*
* @param userUuid the user uuid of this layout branch
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_layoutBranch.setUserUuid(userUuid);
}
@Override
public CacheModel toCacheModel() {
return _layoutBranch.toCacheModel();
}
@Override
public com.liferay.portal.kernel.model.LayoutBranch toEscapedModel() {
return new LayoutBranchWrapper(_layoutBranch.toEscapedModel());
}
@Override
public java.lang.String toString() {
return _layoutBranch.toString();
}
@Override
public com.liferay.portal.kernel.model.LayoutBranch toUnescapedModel() {
return new LayoutBranchWrapper(_layoutBranch.toUnescapedModel());
}
@Override
public java.lang.String toXmlString() {
return _layoutBranch.toXmlString();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof LayoutBranchWrapper)) {
return false;
}
LayoutBranchWrapper layoutBranchWrapper = (LayoutBranchWrapper)obj;
if (Validator.equals(_layoutBranch, layoutBranchWrapper._layoutBranch)) {
return true;
}
return false;
}
@Override
public LayoutBranch getWrappedModel() {
return _layoutBranch;
}
@Override
public boolean isEntityCacheEnabled() {
return _layoutBranch.isEntityCacheEnabled();
}
@Override
public boolean isFinderCacheEnabled() {
return _layoutBranch.isFinderCacheEnabled();
}
@Override
public void resetOriginalValues() {
_layoutBranch.resetOriginalValues();
}
private final LayoutBranch _layoutBranch;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy