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

com.liferay.portal.model.PasswordPolicyRelWrapper 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 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 PasswordPolicyRel}. *

* * @author Brian Wing Shun Chan * @see PasswordPolicyRel * @generated */ @ProviderType public class PasswordPolicyRelWrapper implements PasswordPolicyRel, ModelWrapper { public PasswordPolicyRelWrapper(PasswordPolicyRel passwordPolicyRel) { _passwordPolicyRel = passwordPolicyRel; } @Override public Class getModelClass() { return PasswordPolicyRel.class; } @Override public String getModelClassName() { return PasswordPolicyRel.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("passwordPolicyRelId", getPasswordPolicyRelId()); attributes.put("passwordPolicyId", getPasswordPolicyId()); attributes.put("classNameId", getClassNameId()); attributes.put("classPK", getClassPK()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long passwordPolicyRelId = (Long)attributes.get("passwordPolicyRelId"); if (passwordPolicyRelId != null) { setPasswordPolicyRelId(passwordPolicyRelId); } Long passwordPolicyId = (Long)attributes.get("passwordPolicyId"); if (passwordPolicyId != null) { setPasswordPolicyId(passwordPolicyId); } Long classNameId = (Long)attributes.get("classNameId"); if (classNameId != null) { setClassNameId(classNameId); } Long classPK = (Long)attributes.get("classPK"); if (classPK != null) { setClassPK(classPK); } } /** * Returns the primary key of this password policy rel. * * @return the primary key of this password policy rel */ @Override public long getPrimaryKey() { return _passwordPolicyRel.getPrimaryKey(); } /** * Sets the primary key of this password policy rel. * * @param primaryKey the primary key of this password policy rel */ @Override public void setPrimaryKey(long primaryKey) { _passwordPolicyRel.setPrimaryKey(primaryKey); } /** * Returns the password policy rel ID of this password policy rel. * * @return the password policy rel ID of this password policy rel */ @Override public long getPasswordPolicyRelId() { return _passwordPolicyRel.getPasswordPolicyRelId(); } /** * Sets the password policy rel ID of this password policy rel. * * @param passwordPolicyRelId the password policy rel ID of this password policy rel */ @Override public void setPasswordPolicyRelId(long passwordPolicyRelId) { _passwordPolicyRel.setPasswordPolicyRelId(passwordPolicyRelId); } /** * Returns the password policy ID of this password policy rel. * * @return the password policy ID of this password policy rel */ @Override public long getPasswordPolicyId() { return _passwordPolicyRel.getPasswordPolicyId(); } /** * Sets the password policy ID of this password policy rel. * * @param passwordPolicyId the password policy ID of this password policy rel */ @Override public void setPasswordPolicyId(long passwordPolicyId) { _passwordPolicyRel.setPasswordPolicyId(passwordPolicyId); } /** * Returns the fully qualified class name of this password policy rel. * * @return the fully qualified class name of this password policy rel */ @Override public java.lang.String getClassName() { return _passwordPolicyRel.getClassName(); } @Override public void setClassName(java.lang.String className) { _passwordPolicyRel.setClassName(className); } /** * Returns the class name ID of this password policy rel. * * @return the class name ID of this password policy rel */ @Override public long getClassNameId() { return _passwordPolicyRel.getClassNameId(); } /** * Sets the class name ID of this password policy rel. * * @param classNameId the class name ID of this password policy rel */ @Override public void setClassNameId(long classNameId) { _passwordPolicyRel.setClassNameId(classNameId); } /** * Returns the class p k of this password policy rel. * * @return the class p k of this password policy rel */ @Override public long getClassPK() { return _passwordPolicyRel.getClassPK(); } /** * Sets the class p k of this password policy rel. * * @param classPK the class p k of this password policy rel */ @Override public void setClassPK(long classPK) { _passwordPolicyRel.setClassPK(classPK); } @Override public boolean isNew() { return _passwordPolicyRel.isNew(); } @Override public void setNew(boolean n) { _passwordPolicyRel.setNew(n); } @Override public boolean isCachedModel() { return _passwordPolicyRel.isCachedModel(); } @Override public void setCachedModel(boolean cachedModel) { _passwordPolicyRel.setCachedModel(cachedModel); } @Override public boolean isEscapedModel() { return _passwordPolicyRel.isEscapedModel(); } @Override public java.io.Serializable getPrimaryKeyObj() { return _passwordPolicyRel.getPrimaryKeyObj(); } @Override public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _passwordPolicyRel.setPrimaryKeyObj(primaryKeyObj); } @Override public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _passwordPolicyRel.getExpandoBridge(); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.model.BaseModel baseModel) { _passwordPolicyRel.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes( com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { _passwordPolicyRel.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _passwordPolicyRel.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new PasswordPolicyRelWrapper((PasswordPolicyRel)_passwordPolicyRel.clone()); } @Override public int compareTo( com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) { return _passwordPolicyRel.compareTo(passwordPolicyRel); } @Override public int hashCode() { return _passwordPolicyRel.hashCode(); } @Override public com.liferay.portal.model.CacheModel toCacheModel() { return _passwordPolicyRel.toCacheModel(); } @Override public com.liferay.portal.model.PasswordPolicyRel toEscapedModel() { return new PasswordPolicyRelWrapper(_passwordPolicyRel.toEscapedModel()); } @Override public com.liferay.portal.model.PasswordPolicyRel toUnescapedModel() { return new PasswordPolicyRelWrapper(_passwordPolicyRel.toUnescapedModel()); } @Override public java.lang.String toString() { return _passwordPolicyRel.toString(); } @Override public java.lang.String toXmlString() { return _passwordPolicyRel.toXmlString(); } @Override public void persist() throws com.liferay.portal.kernel.exception.SystemException { _passwordPolicyRel.persist(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof PasswordPolicyRelWrapper)) { return false; } PasswordPolicyRelWrapper passwordPolicyRelWrapper = (PasswordPolicyRelWrapper)obj; if (Validator.equals(_passwordPolicyRel, passwordPolicyRelWrapper._passwordPolicyRel)) { return true; } return false; } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} */ public PasswordPolicyRel getWrappedPasswordPolicyRel() { return _passwordPolicyRel; } @Override public PasswordPolicyRel getWrappedModel() { return _passwordPolicyRel; } @Override public void resetOriginalValues() { _passwordPolicyRel.resetOriginalValues(); } private PasswordPolicyRel _passwordPolicyRel; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy