com.liferay.portal.model.ClusterGroupWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service 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-2013 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.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.util.Validator;
import java.util.HashMap;
import java.util.Map;
/**
*
* This class is a wrapper for {@link ClusterGroup}.
*
*
* @author Brian Wing Shun Chan
* @see ClusterGroup
* @generated
*/
@ProviderType
public class ClusterGroupWrapper implements ClusterGroup,
ModelWrapper {
public ClusterGroupWrapper(ClusterGroup clusterGroup) {
_clusterGroup = clusterGroup;
}
@Override
public Class getModelClass() {
return ClusterGroup.class;
}
@Override
public String getModelClassName() {
return ClusterGroup.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("clusterGroupId", getClusterGroupId());
attributes.put("name", getName());
attributes.put("clusterNodeIds", getClusterNodeIds());
attributes.put("wholeCluster", getWholeCluster());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
Long clusterGroupId = (Long)attributes.get("clusterGroupId");
if (clusterGroupId != null) {
setClusterGroupId(clusterGroupId);
}
String name = (String)attributes.get("name");
if (name != null) {
setName(name);
}
String clusterNodeIds = (String)attributes.get("clusterNodeIds");
if (clusterNodeIds != null) {
setClusterNodeIds(clusterNodeIds);
}
Boolean wholeCluster = (Boolean)attributes.get("wholeCluster");
if (wholeCluster != null) {
setWholeCluster(wholeCluster);
}
}
/**
* Returns the primary key of this cluster group.
*
* @return the primary key of this cluster group
*/
@Override
public long getPrimaryKey() {
return _clusterGroup.getPrimaryKey();
}
/**
* Sets the primary key of this cluster group.
*
* @param primaryKey the primary key of this cluster group
*/
@Override
public void setPrimaryKey(long primaryKey) {
_clusterGroup.setPrimaryKey(primaryKey);
}
/**
* Returns the cluster group ID of this cluster group.
*
* @return the cluster group ID of this cluster group
*/
@Override
public long getClusterGroupId() {
return _clusterGroup.getClusterGroupId();
}
/**
* Sets the cluster group ID of this cluster group.
*
* @param clusterGroupId the cluster group ID of this cluster group
*/
@Override
public void setClusterGroupId(long clusterGroupId) {
_clusterGroup.setClusterGroupId(clusterGroupId);
}
/**
* Returns the name of this cluster group.
*
* @return the name of this cluster group
*/
@Override
public java.lang.String getName() {
return _clusterGroup.getName();
}
/**
* Sets the name of this cluster group.
*
* @param name the name of this cluster group
*/
@Override
public void setName(java.lang.String name) {
_clusterGroup.setName(name);
}
/**
* Returns the cluster node IDs of this cluster group.
*
* @return the cluster node IDs of this cluster group
*/
@Override
public java.lang.String getClusterNodeIds() {
return _clusterGroup.getClusterNodeIds();
}
/**
* Sets the cluster node IDs of this cluster group.
*
* @param clusterNodeIds the cluster node IDs of this cluster group
*/
@Override
public void setClusterNodeIds(java.lang.String clusterNodeIds) {
_clusterGroup.setClusterNodeIds(clusterNodeIds);
}
/**
* Returns the whole cluster of this cluster group.
*
* @return the whole cluster of this cluster group
*/
@Override
public boolean getWholeCluster() {
return _clusterGroup.getWholeCluster();
}
/**
* Returns true
if this cluster group is whole cluster.
*
* @return true
if this cluster group is whole cluster; false
otherwise
*/
@Override
public boolean isWholeCluster() {
return _clusterGroup.isWholeCluster();
}
/**
* Sets whether this cluster group is whole cluster.
*
* @param wholeCluster the whole cluster of this cluster group
*/
@Override
public void setWholeCluster(boolean wholeCluster) {
_clusterGroup.setWholeCluster(wholeCluster);
}
@Override
public boolean isNew() {
return _clusterGroup.isNew();
}
@Override
public void setNew(boolean n) {
_clusterGroup.setNew(n);
}
@Override
public boolean isCachedModel() {
return _clusterGroup.isCachedModel();
}
@Override
public void setCachedModel(boolean cachedModel) {
_clusterGroup.setCachedModel(cachedModel);
}
@Override
public boolean isEscapedModel() {
return _clusterGroup.isEscapedModel();
}
@Override
public java.io.Serializable getPrimaryKeyObj() {
return _clusterGroup.getPrimaryKeyObj();
}
@Override
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_clusterGroup.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _clusterGroup.getExpandoBridge();
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.model.BaseModel baseModel) {
_clusterGroup.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
_clusterGroup.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_clusterGroup.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new ClusterGroupWrapper((ClusterGroup)_clusterGroup.clone());
}
@Override
public int compareTo(com.liferay.portal.model.ClusterGroup clusterGroup) {
return _clusterGroup.compareTo(clusterGroup);
}
@Override
public int hashCode() {
return _clusterGroup.hashCode();
}
@Override
public com.liferay.portal.model.CacheModel toCacheModel() {
return _clusterGroup.toCacheModel();
}
@Override
public com.liferay.portal.model.ClusterGroup toEscapedModel() {
return new ClusterGroupWrapper(_clusterGroup.toEscapedModel());
}
@Override
public com.liferay.portal.model.ClusterGroup toUnescapedModel() {
return new ClusterGroupWrapper(_clusterGroup.toUnescapedModel());
}
@Override
public java.lang.String toString() {
return _clusterGroup.toString();
}
@Override
public java.lang.String toXmlString() {
return _clusterGroup.toXmlString();
}
@Override
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_clusterGroup.persist();
}
@Override
public java.lang.String[] getClusterNodeIdsArray() {
return _clusterGroup.getClusterNodeIdsArray();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ClusterGroupWrapper)) {
return false;
}
ClusterGroupWrapper clusterGroupWrapper = (ClusterGroupWrapper)obj;
if (Validator.equals(_clusterGroup, clusterGroupWrapper._clusterGroup)) {
return true;
}
return false;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
*/
public ClusterGroup getWrappedClusterGroup() {
return _clusterGroup;
}
@Override
public ClusterGroup getWrappedModel() {
return _clusterGroup;
}
@Override
public void resetOriginalValues() {
_clusterGroup.resetOriginalValues();
}
private ClusterGroup _clusterGroup;
}