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

com.liferay.portal.model.ResourceBlockPermissionWrapper Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 7.0.0-nightly
Show newest version
/**
 * 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 com.liferay.portal.kernel.util.Validator;

import java.util.HashMap;
import java.util.Map;

/**
 * 

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

* * @author Brian Wing Shun Chan * @see ResourceBlockPermission * @generated */ public class ResourceBlockPermissionWrapper implements ResourceBlockPermission, ModelWrapper { public ResourceBlockPermissionWrapper( ResourceBlockPermission resourceBlockPermission) { _resourceBlockPermission = resourceBlockPermission; } @Override public Class getModelClass() { return ResourceBlockPermission.class; } @Override public String getModelClassName() { return ResourceBlockPermission.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("resourceBlockPermissionId", getResourceBlockPermissionId()); attributes.put("resourceBlockId", getResourceBlockId()); attributes.put("roleId", getRoleId()); attributes.put("actionIds", getActionIds()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long resourceBlockPermissionId = (Long)attributes.get( "resourceBlockPermissionId"); if (resourceBlockPermissionId != null) { setResourceBlockPermissionId(resourceBlockPermissionId); } Long resourceBlockId = (Long)attributes.get("resourceBlockId"); if (resourceBlockId != null) { setResourceBlockId(resourceBlockId); } Long roleId = (Long)attributes.get("roleId"); if (roleId != null) { setRoleId(roleId); } Long actionIds = (Long)attributes.get("actionIds"); if (actionIds != null) { setActionIds(actionIds); } } /** * Returns the primary key of this resource block permission. * * @return the primary key of this resource block permission */ @Override public long getPrimaryKey() { return _resourceBlockPermission.getPrimaryKey(); } /** * Sets the primary key of this resource block permission. * * @param primaryKey the primary key of this resource block permission */ @Override public void setPrimaryKey(long primaryKey) { _resourceBlockPermission.setPrimaryKey(primaryKey); } /** * Returns the resource block permission ID of this resource block permission. * * @return the resource block permission ID of this resource block permission */ @Override public long getResourceBlockPermissionId() { return _resourceBlockPermission.getResourceBlockPermissionId(); } /** * Sets the resource block permission ID of this resource block permission. * * @param resourceBlockPermissionId the resource block permission ID of this resource block permission */ @Override public void setResourceBlockPermissionId(long resourceBlockPermissionId) { _resourceBlockPermission.setResourceBlockPermissionId(resourceBlockPermissionId); } /** * Returns the resource block ID of this resource block permission. * * @return the resource block ID of this resource block permission */ @Override public long getResourceBlockId() { return _resourceBlockPermission.getResourceBlockId(); } /** * Sets the resource block ID of this resource block permission. * * @param resourceBlockId the resource block ID of this resource block permission */ @Override public void setResourceBlockId(long resourceBlockId) { _resourceBlockPermission.setResourceBlockId(resourceBlockId); } /** * Returns the role ID of this resource block permission. * * @return the role ID of this resource block permission */ @Override public long getRoleId() { return _resourceBlockPermission.getRoleId(); } /** * Sets the role ID of this resource block permission. * * @param roleId the role ID of this resource block permission */ @Override public void setRoleId(long roleId) { _resourceBlockPermission.setRoleId(roleId); } /** * Returns the action IDs of this resource block permission. * * @return the action IDs of this resource block permission */ @Override public long getActionIds() { return _resourceBlockPermission.getActionIds(); } /** * Sets the action IDs of this resource block permission. * * @param actionIds the action IDs of this resource block permission */ @Override public void setActionIds(long actionIds) { _resourceBlockPermission.setActionIds(actionIds); } @Override public boolean isNew() { return _resourceBlockPermission.isNew(); } @Override public void setNew(boolean n) { _resourceBlockPermission.setNew(n); } @Override public boolean isCachedModel() { return _resourceBlockPermission.isCachedModel(); } @Override public void setCachedModel(boolean cachedModel) { _resourceBlockPermission.setCachedModel(cachedModel); } @Override public boolean isEscapedModel() { return _resourceBlockPermission.isEscapedModel(); } @Override public java.io.Serializable getPrimaryKeyObj() { return _resourceBlockPermission.getPrimaryKeyObj(); } @Override public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _resourceBlockPermission.setPrimaryKeyObj(primaryKeyObj); } @Override public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _resourceBlockPermission.getExpandoBridge(); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.model.BaseModel baseModel) { _resourceBlockPermission.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes( com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { _resourceBlockPermission.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _resourceBlockPermission.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new ResourceBlockPermissionWrapper((ResourceBlockPermission)_resourceBlockPermission.clone()); } @Override public int compareTo( com.liferay.portal.model.ResourceBlockPermission resourceBlockPermission) { return _resourceBlockPermission.compareTo(resourceBlockPermission); } @Override public int hashCode() { return _resourceBlockPermission.hashCode(); } @Override public com.liferay.portal.model.CacheModel toCacheModel() { return _resourceBlockPermission.toCacheModel(); } @Override public com.liferay.portal.model.ResourceBlockPermission toEscapedModel() { return new ResourceBlockPermissionWrapper(_resourceBlockPermission.toEscapedModel()); } @Override public com.liferay.portal.model.ResourceBlockPermission toUnescapedModel() { return new ResourceBlockPermissionWrapper(_resourceBlockPermission.toUnescapedModel()); } @Override public java.lang.String toString() { return _resourceBlockPermission.toString(); } @Override public java.lang.String toXmlString() { return _resourceBlockPermission.toXmlString(); } @Override public void persist() throws com.liferay.portal.kernel.exception.SystemException { _resourceBlockPermission.persist(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ResourceBlockPermissionWrapper)) { return false; } ResourceBlockPermissionWrapper resourceBlockPermissionWrapper = (ResourceBlockPermissionWrapper)obj; if (Validator.equals(_resourceBlockPermission, resourceBlockPermissionWrapper._resourceBlockPermission)) { return true; } return false; } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} */ public ResourceBlockPermission getWrappedResourceBlockPermission() { return _resourceBlockPermission; } @Override public ResourceBlockPermission getWrappedModel() { return _resourceBlockPermission; } @Override public void resetOriginalValues() { _resourceBlockPermission.resetOriginalValues(); } private ResourceBlockPermission _resourceBlockPermission; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy