com.liferay.portal.model.OrgGroupRoleWrapper 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 OrgGroupRole}.
*
*
* @author Brian Wing Shun Chan
* @see OrgGroupRole
* @generated
*/
@ProviderType
public class OrgGroupRoleWrapper implements OrgGroupRole,
ModelWrapper {
public OrgGroupRoleWrapper(OrgGroupRole orgGroupRole) {
_orgGroupRole = orgGroupRole;
}
@Override
public Class> getModelClass() {
return OrgGroupRole.class;
}
@Override
public String getModelClassName() {
return OrgGroupRole.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("organizationId", getOrganizationId());
attributes.put("groupId", getGroupId());
attributes.put("roleId", getRoleId());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
Long organizationId = (Long)attributes.get("organizationId");
if (organizationId != null) {
setOrganizationId(organizationId);
}
Long groupId = (Long)attributes.get("groupId");
if (groupId != null) {
setGroupId(groupId);
}
Long roleId = (Long)attributes.get("roleId");
if (roleId != null) {
setRoleId(roleId);
}
}
/**
* Returns the primary key of this org group role.
*
* @return the primary key of this org group role
*/
@Override
public com.liferay.portal.service.persistence.OrgGroupRolePK getPrimaryKey() {
return _orgGroupRole.getPrimaryKey();
}
/**
* Sets the primary key of this org group role.
*
* @param primaryKey the primary key of this org group role
*/
@Override
public void setPrimaryKey(
com.liferay.portal.service.persistence.OrgGroupRolePK primaryKey) {
_orgGroupRole.setPrimaryKey(primaryKey);
}
/**
* Returns the organization ID of this org group role.
*
* @return the organization ID of this org group role
*/
@Override
public long getOrganizationId() {
return _orgGroupRole.getOrganizationId();
}
/**
* Sets the organization ID of this org group role.
*
* @param organizationId the organization ID of this org group role
*/
@Override
public void setOrganizationId(long organizationId) {
_orgGroupRole.setOrganizationId(organizationId);
}
/**
* Returns the group ID of this org group role.
*
* @return the group ID of this org group role
*/
@Override
public long getGroupId() {
return _orgGroupRole.getGroupId();
}
/**
* Sets the group ID of this org group role.
*
* @param groupId the group ID of this org group role
*/
@Override
public void setGroupId(long groupId) {
_orgGroupRole.setGroupId(groupId);
}
/**
* Returns the role ID of this org group role.
*
* @return the role ID of this org group role
*/
@Override
public long getRoleId() {
return _orgGroupRole.getRoleId();
}
/**
* Sets the role ID of this org group role.
*
* @param roleId the role ID of this org group role
*/
@Override
public void setRoleId(long roleId) {
_orgGroupRole.setRoleId(roleId);
}
@Override
public boolean isNew() {
return _orgGroupRole.isNew();
}
@Override
public void setNew(boolean n) {
_orgGroupRole.setNew(n);
}
@Override
public boolean isCachedModel() {
return _orgGroupRole.isCachedModel();
}
@Override
public void setCachedModel(boolean cachedModel) {
_orgGroupRole.setCachedModel(cachedModel);
}
@Override
public boolean isEscapedModel() {
return _orgGroupRole.isEscapedModel();
}
@Override
public java.io.Serializable getPrimaryKeyObj() {
return _orgGroupRole.getPrimaryKeyObj();
}
@Override
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_orgGroupRole.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _orgGroupRole.getExpandoBridge();
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.model.BaseModel> baseModel) {
_orgGroupRole.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
_orgGroupRole.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_orgGroupRole.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new OrgGroupRoleWrapper((OrgGroupRole)_orgGroupRole.clone());
}
@Override
public int compareTo(com.liferay.portal.model.OrgGroupRole orgGroupRole) {
return _orgGroupRole.compareTo(orgGroupRole);
}
@Override
public int hashCode() {
return _orgGroupRole.hashCode();
}
@Override
public com.liferay.portal.model.CacheModel toCacheModel() {
return _orgGroupRole.toCacheModel();
}
@Override
public com.liferay.portal.model.OrgGroupRole toEscapedModel() {
return new OrgGroupRoleWrapper(_orgGroupRole.toEscapedModel());
}
@Override
public com.liferay.portal.model.OrgGroupRole toUnescapedModel() {
return new OrgGroupRoleWrapper(_orgGroupRole.toUnescapedModel());
}
@Override
public java.lang.String toString() {
return _orgGroupRole.toString();
}
@Override
public java.lang.String toXmlString() {
return _orgGroupRole.toXmlString();
}
@Override
public boolean containsGroup(
java.util.List groups) {
return _orgGroupRole.containsGroup(groups);
}
@Override
public boolean containsOrganization(
java.util.List organizations) {
return _orgGroupRole.containsOrganization(organizations);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof OrgGroupRoleWrapper)) {
return false;
}
OrgGroupRoleWrapper orgGroupRoleWrapper = (OrgGroupRoleWrapper)obj;
if (Validator.equals(_orgGroupRole, orgGroupRoleWrapper._orgGroupRole)) {
return true;
}
return false;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
*/
public OrgGroupRole getWrappedOrgGroupRole() {
return _orgGroupRole;
}
@Override
public OrgGroupRole getWrappedModel() {
return _orgGroupRole;
}
@Override
public void resetOriginalValues() {
_orgGroupRole.resetOriginalValues();
}
private OrgGroupRole _orgGroupRole;
}