com.liferay.portal.model.PasswordTrackerWrapper 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.Date;
import java.util.HashMap;
import java.util.Map;
/**
*
* This class is a wrapper for {@link PasswordTracker}.
*
*
* @author Brian Wing Shun Chan
* @see PasswordTracker
* @generated
*/
@ProviderType
public class PasswordTrackerWrapper implements PasswordTracker,
ModelWrapper {
public PasswordTrackerWrapper(PasswordTracker passwordTracker) {
_passwordTracker = passwordTracker;
}
@Override
public Class> getModelClass() {
return PasswordTracker.class;
}
@Override
public String getModelClassName() {
return PasswordTracker.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("passwordTrackerId", getPasswordTrackerId());
attributes.put("userId", getUserId());
attributes.put("createDate", getCreateDate());
attributes.put("password", getPassword());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
Long passwordTrackerId = (Long)attributes.get("passwordTrackerId");
if (passwordTrackerId != null) {
setPasswordTrackerId(passwordTrackerId);
}
Long userId = (Long)attributes.get("userId");
if (userId != null) {
setUserId(userId);
}
Date createDate = (Date)attributes.get("createDate");
if (createDate != null) {
setCreateDate(createDate);
}
String password = (String)attributes.get("password");
if (password != null) {
setPassword(password);
}
}
/**
* Returns the primary key of this password tracker.
*
* @return the primary key of this password tracker
*/
@Override
public long getPrimaryKey() {
return _passwordTracker.getPrimaryKey();
}
/**
* Sets the primary key of this password tracker.
*
* @param primaryKey the primary key of this password tracker
*/
@Override
public void setPrimaryKey(long primaryKey) {
_passwordTracker.setPrimaryKey(primaryKey);
}
/**
* Returns the password tracker ID of this password tracker.
*
* @return the password tracker ID of this password tracker
*/
@Override
public long getPasswordTrackerId() {
return _passwordTracker.getPasswordTrackerId();
}
/**
* Sets the password tracker ID of this password tracker.
*
* @param passwordTrackerId the password tracker ID of this password tracker
*/
@Override
public void setPasswordTrackerId(long passwordTrackerId) {
_passwordTracker.setPasswordTrackerId(passwordTrackerId);
}
/**
* Returns the user ID of this password tracker.
*
* @return the user ID of this password tracker
*/
@Override
public long getUserId() {
return _passwordTracker.getUserId();
}
/**
* Sets the user ID of this password tracker.
*
* @param userId the user ID of this password tracker
*/
@Override
public void setUserId(long userId) {
_passwordTracker.setUserId(userId);
}
/**
* Returns the user uuid of this password tracker.
*
* @return the user uuid of this password tracker
* @throws SystemException if a system exception occurred
*/
@Override
public java.lang.String getUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _passwordTracker.getUserUuid();
}
/**
* Sets the user uuid of this password tracker.
*
* @param userUuid the user uuid of this password tracker
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_passwordTracker.setUserUuid(userUuid);
}
/**
* Returns the create date of this password tracker.
*
* @return the create date of this password tracker
*/
@Override
public java.util.Date getCreateDate() {
return _passwordTracker.getCreateDate();
}
/**
* Sets the create date of this password tracker.
*
* @param createDate the create date of this password tracker
*/
@Override
public void setCreateDate(java.util.Date createDate) {
_passwordTracker.setCreateDate(createDate);
}
/**
* Returns the password of this password tracker.
*
* @return the password of this password tracker
*/
@Override
public java.lang.String getPassword() {
return _passwordTracker.getPassword();
}
/**
* Sets the password of this password tracker.
*
* @param password the password of this password tracker
*/
@Override
public void setPassword(java.lang.String password) {
_passwordTracker.setPassword(password);
}
@Override
public boolean isNew() {
return _passwordTracker.isNew();
}
@Override
public void setNew(boolean n) {
_passwordTracker.setNew(n);
}
@Override
public boolean isCachedModel() {
return _passwordTracker.isCachedModel();
}
@Override
public void setCachedModel(boolean cachedModel) {
_passwordTracker.setCachedModel(cachedModel);
}
@Override
public boolean isEscapedModel() {
return _passwordTracker.isEscapedModel();
}
@Override
public java.io.Serializable getPrimaryKeyObj() {
return _passwordTracker.getPrimaryKeyObj();
}
@Override
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_passwordTracker.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _passwordTracker.getExpandoBridge();
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.model.BaseModel> baseModel) {
_passwordTracker.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
_passwordTracker.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_passwordTracker.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new PasswordTrackerWrapper((PasswordTracker)_passwordTracker.clone());
}
@Override
public int compareTo(
com.liferay.portal.model.PasswordTracker passwordTracker) {
return _passwordTracker.compareTo(passwordTracker);
}
@Override
public int hashCode() {
return _passwordTracker.hashCode();
}
@Override
public com.liferay.portal.model.CacheModel toCacheModel() {
return _passwordTracker.toCacheModel();
}
@Override
public com.liferay.portal.model.PasswordTracker toEscapedModel() {
return new PasswordTrackerWrapper(_passwordTracker.toEscapedModel());
}
@Override
public com.liferay.portal.model.PasswordTracker toUnescapedModel() {
return new PasswordTrackerWrapper(_passwordTracker.toUnescapedModel());
}
@Override
public java.lang.String toString() {
return _passwordTracker.toString();
}
@Override
public java.lang.String toXmlString() {
return _passwordTracker.toXmlString();
}
@Override
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_passwordTracker.persist();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof PasswordTrackerWrapper)) {
return false;
}
PasswordTrackerWrapper passwordTrackerWrapper = (PasswordTrackerWrapper)obj;
if (Validator.equals(_passwordTracker,
passwordTrackerWrapper._passwordTracker)) {
return true;
}
return false;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
*/
public PasswordTracker getWrappedPasswordTracker() {
return _passwordTracker;
}
@Override
public PasswordTracker getWrappedModel() {
return _passwordTracker;
}
@Override
public void resetOriginalValues() {
_passwordTracker.resetOriginalValues();
}
private PasswordTracker _passwordTracker;
}