/**
* Copyright (c) 2000-present 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.workflow.kaleo.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.service.ServiceContext;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* <p>
* This class is a wrapper for {@link KaleoNotificationRecipient}.
* </p>
*
* @author Brian Wing Shun Chan
* @see KaleoNotificationRecipient
* @generated
*/
@ProviderType
public class KaleoNotificationRecipientWrapper
implements KaleoNotificationRecipient,
ModelWrapper<KaleoNotificationRecipient> {
public KaleoNotificationRecipientWrapper(
KaleoNotificationRecipient kaleoNotificationRecipient) {
_kaleoNotificationRecipient = kaleoNotificationRecipient;
}
@Override
public Class<?> getModelClass() {
return KaleoNotificationRecipient.class;
}
@Override
public String getModelClassName() {
return KaleoNotificationRecipient.class.getName();
}
@Override
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("kaleoNotificationRecipientId",
getKaleoNotificationRecipientId());
attributes.put("groupId", getGroupId());
attributes.put("companyId", getCompanyId());
attributes.put("userId", getUserId());
attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate());
attributes.put("kaleoDefinitionId", getKaleoDefinitionId());
attributes.put("kaleoNotificationId", getKaleoNotificationId());
attributes.put("recipientClassName", getRecipientClassName());
attributes.put("recipientClassPK", getRecipientClassPK());
attributes.put("recipientRoleType", getRecipientRoleType());
attributes.put("recipientScript", getRecipientScript());
attributes.put("recipientScriptLanguage", getRecipientScriptLanguage());
attributes.put("recipientScriptContexts", getRecipientScriptContexts());
attributes.put("address", getAddress());
attributes.put("notificationReceptionType",
getNotificationReceptionType());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long kaleoNotificationRecipientId = (Long)attributes.get(
"kaleoNotificationRecipientId");
if (kaleoNotificationRecipientId != null) {
setKaleoNotificationRecipientId(kaleoNotificationRecipientId);
}
Long groupId = (Long)attributes.get("groupId");
if (groupId != null) {
setGroupId(groupId);
}
Long companyId = (Long)attributes.get("companyId");
if (companyId != null) {
setCompanyId(companyId);
}
Long userId = (Long)attributes.get("userId");
if (userId != null) {
setUserId(userId);
}
String userName = (String)attributes.get("userName");
if (userName != null) {
setUserName(userName);
}
Date createDate = (Date)attributes.get("createDate");
if (createDate != null) {
setCreateDate(createDate);
}
Date modifiedDate = (Date)attributes.get("modifiedDate");
if (modifiedDate != null) {
setModifiedDate(modifiedDate);
}
Long kaleoDefinitionId = (Long)attributes.get("kaleoDefinitionId");
if (kaleoDefinitionId != null) {
setKaleoDefinitionId(kaleoDefinitionId);
}
Long kaleoNotificationId = (Long)attributes.get("kaleoNotificationId");
if (kaleoNotificationId != null) {
setKaleoNotificationId(kaleoNotificationId);
}
String recipientClassName = (String)attributes.get("recipientClassName");
if (recipientClassName != null) {
setRecipientClassName(recipientClassName);
}
Long recipientClassPK = (Long)attributes.get("recipientClassPK");
if (recipientClassPK != null) {
setRecipientClassPK(recipientClassPK);
}
Integer recipientRoleType = (Integer)attributes.get("recipientRoleType");
if (recipientRoleType != null) {
setRecipientRoleType(recipientRoleType);
}
String recipientScript = (String)attributes.get("recipientScript");
if (recipientScript != null) {
setRecipientScript(recipientScript);
}
String recipientScriptLanguage = (String)attributes.get(
"recipientScriptLanguage");
if (recipientScriptLanguage != null) {
setRecipientScriptLanguage(recipientScriptLanguage);
}
String recipientScriptContexts = (String)attributes.get(
"recipientScriptContexts");
if (recipientScriptContexts != null) {
setRecipientScriptContexts(recipientScriptContexts);
}
String address = (String)attributes.get("address");
if (address != null) {
setAddress(address);
}
String notificationReceptionType = (String)attributes.get(
"notificationReceptionType");
if (notificationReceptionType != null) {
setNotificationReceptionType(notificationReceptionType);
}
}
@Override
public KaleoNotificationRecipient toEscapedModel() {
return new KaleoNotificationRecipientWrapper(_kaleoNotificationRecipient.toEscapedModel());
}
@Override
public KaleoNotificationRecipient toUnescapedModel() {
return new KaleoNotificationRecipientWrapper(_kaleoNotificationRecipient.toUnescapedModel());
}
@Override
public boolean isCachedModel() {
return _kaleoNotificationRecipient.isCachedModel();
}
@Override
public boolean isEscapedModel() {
return _kaleoNotificationRecipient.isEscapedModel();
}
@Override
public boolean isNew() {
return _kaleoNotificationRecipient.isNew();
}
@Override
public ExpandoBridge getExpandoBridge() {
return _kaleoNotificationRecipient.getExpandoBridge();
}
@Override
public com.liferay.portal.kernel.model.CacheModel<KaleoNotificationRecipient> toCacheModel() {
return _kaleoNotificationRecipient.toCacheModel();
}
@Override
public int compareTo(KaleoNotificationRecipient kaleoNotificationRecipient) {
return _kaleoNotificationRecipient.compareTo(kaleoNotificationRecipient);
}
/**
* Returns the recipient role type of this kaleo notification recipient.
*
* @return the recipient role type of this kaleo notification recipient
*/
@Override
public int getRecipientRoleType() {
return _kaleoNotificationRecipient.getRecipientRoleType();
}
@Override
public int hashCode() {
return _kaleoNotificationRecipient.hashCode();
}
@Override
public Serializable getPrimaryKeyObj() {
return _kaleoNotificationRecipient.getPrimaryKeyObj();
}
@Override
public java.lang.Object clone() {
return new KaleoNotificationRecipientWrapper((KaleoNotificationRecipient)_kaleoNotificationRecipient.clone());
}
/**
* Returns the address of this kaleo notification recipient.
*
* @return the address of this kaleo notification recipient
*/
@Override
public java.lang.String getAddress() {
return _kaleoNotificationRecipient.getAddress();
}
/**
* Returns the notification reception type of this kaleo notification recipient.
*
* @return the notification reception type of this kaleo notification recipient
*/
@Override
public java.lang.String getNotificationReceptionType() {
return _kaleoNotificationRecipient.getNotificationReceptionType();
}
/**
* Returns the recipient class name of this kaleo notification recipient.
*
* @return the recipient class name of this kaleo notification recipient
*/
@Override
public java.lang.String getRecipientClassName() {
return _kaleoNotificationRecipient.getRecipientClassName();
}
/**
* Returns the recipient script of this kaleo notification recipient.
*
* @return the recipient script of this kaleo notification recipient
*/
@Override
public java.lang.String getRecipientScript() {
return _kaleoNotificationRecipient.getRecipientScript();
}
/**
* Returns the recipient script contexts of this kaleo notification recipient.
*
* @return the recipient script contexts of this kaleo notification recipient
*/
@Override
public java.lang.String getRecipientScriptContexts() {
return _kaleoNotificationRecipient.getRecipientScriptContexts();
}
/**
* Returns the recipient script language of this kaleo notification recipient.
*
* @return the recipient script language of this kaleo notification recipient
*/
@Override
public java.lang.String getRecipientScriptLanguage() {
return _kaleoNotificationRecipient.getRecipientScriptLanguage();
}
/**
* Returns the user name of this kaleo notification recipient.
*
* @return the user name of this kaleo notification recipient
*/
@Override
public java.lang.String getUserName() {
return _kaleoNotificationRecipient.getUserName();
}
/**
* Returns the user uuid of this kaleo notification recipient.
*
* @return the user uuid of this kaleo notification recipient
*/
@Override
public java.lang.String getUserUuid() {
return _kaleoNotificationRecipient.getUserUuid();
}
@Override
public java.lang.String toString() {
return _kaleoNotificationRecipient.toString();
}
@Override
public java.lang.String toXmlString() {
return _kaleoNotificationRecipient.toXmlString();
}
/**
* Returns the create date of this kaleo notification recipient.
*
* @return the create date of this kaleo notification recipient
*/
@Override
public Date getCreateDate() {
return _kaleoNotificationRecipient.getCreateDate();
}
/**
* Returns the modified date of this kaleo notification recipient.
*
* @return the modified date of this kaleo notification recipient
*/
@Override
public Date getModifiedDate() {
return _kaleoNotificationRecipient.getModifiedDate();
}
/**
* Returns the company ID of this kaleo notification recipient.
*
* @return the company ID of this kaleo notification recipient
*/
@Override
public long getCompanyId() {
return _kaleoNotificationRecipient.getCompanyId();
}
/**
* Returns the group ID of this kaleo notification recipient.
*
* @return the group ID of this kaleo notification recipient
*/
@Override
public long getGroupId() {
return _kaleoNotificationRecipient.getGroupId();
}
/**
* Returns the kaleo definition ID of this kaleo notification recipient.
*
* @return the kaleo definition ID of this kaleo notification recipient
*/
@Override
public long getKaleoDefinitionId() {
return _kaleoNotificationRecipient.getKaleoDefinitionId();
}
/**
* Returns the kaleo notification ID of this kaleo notification recipient.
*
* @return the kaleo notification ID of this kaleo notification recipient
*/
@Override
public long getKaleoNotificationId() {
return _kaleoNotificationRecipient.getKaleoNotificationId();
}
/**
* Returns the kaleo notification recipient ID of this kaleo notification recipient.
*
* @return the kaleo notification recipient ID of this kaleo notification recipient
*/
@Override
public long getKaleoNotificationRecipientId() {
return _kaleoNotificationRecipient.getKaleoNotificationRecipientId();
}
/**
* Returns the primary key of this kaleo notification recipient.
*
* @return the primary key of this kaleo notification recipient
*/
@Override
public long getPrimaryKey() {
return _kaleoNotificationRecipient.getPrimaryKey();
}
/**
* Returns the recipient class pk of this kaleo notification recipient.
*
* @return the recipient class pk of this kaleo notification recipient
*/
@Override
public long getRecipientClassPK() {
return _kaleoNotificationRecipient.getRecipientClassPK();
}
/**
* Returns the user ID of this kaleo notification recipient.
*
* @return the user ID of this kaleo notification recipient
*/
@Override
public long getUserId() {
return _kaleoNotificationRecipient.getUserId();
}
@Override
public void persist() {
_kaleoNotificationRecipient.persist();
}
/**
* Sets the address of this kaleo notification recipient.
*
* @param address the address of this kaleo notification recipient
*/
@Override
public void setAddress(java.lang.String address) {
_kaleoNotificationRecipient.setAddress(address);
}
@Override
public void setCachedModel(boolean cachedModel) {
_kaleoNotificationRecipient.setCachedModel(cachedModel);
}
/**
* Sets the company ID of this kaleo notification recipient.
*
* @param companyId the company ID of this kaleo notification recipient
*/
@Override
public void setCompanyId(long companyId) {
_kaleoNotificationRecipient.setCompanyId(companyId);
}
/**
* Sets the create date of this kaleo notification recipient.
*
* @param createDate the create date of this kaleo notification recipient
*/
@Override
public void setCreateDate(Date createDate) {
_kaleoNotificationRecipient.setCreateDate(createDate);
}
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
_kaleoNotificationRecipient.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.kernel.model.BaseModel<?> baseModel) {
_kaleoNotificationRecipient.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
_kaleoNotificationRecipient.setExpandoBridgeAttributes(serviceContext);
}
/**
* Sets the group ID of this kaleo notification recipient.
*
* @param groupId the group ID of this kaleo notification recipient
*/
@Override
public void setGroupId(long groupId) {
_kaleoNotificationRecipient.setGroupId(groupId);
}
/**
* Sets the kaleo definition ID of this kaleo notification recipient.
*
* @param kaleoDefinitionId the kaleo definition ID of this kaleo notification recipient
*/
@Override
public void setKaleoDefinitionId(long kaleoDefinitionId) {
_kaleoNotificationRecipient.setKaleoDefinitionId(kaleoDefinitionId);
}
/**
* Sets the kaleo notification ID of this kaleo notification recipient.
*
* @param kaleoNotificationId the kaleo notification ID of this kaleo notification recipient
*/
@Override
public void setKaleoNotificationId(long kaleoNotificationId) {
_kaleoNotificationRecipient.setKaleoNotificationId(kaleoNotificationId);
}
/**
* Sets the kaleo notification recipient ID of this kaleo notification recipient.
*
* @param kaleoNotificationRecipientId the kaleo notification recipient ID of this kaleo notification recipient
*/
@Override
public void setKaleoNotificationRecipientId(
long kaleoNotificationRecipientId) {
_kaleoNotificationRecipient.setKaleoNotificationRecipientId(kaleoNotificationRecipientId);
}
/**
* Sets the modified date of this kaleo notification recipient.
*
* @param modifiedDate the modified date of this kaleo notification recipient
*/
@Override
public void setModifiedDate(Date modifiedDate) {
_kaleoNotificationRecipient.setModifiedDate(modifiedDate);
}
@Override
public void setNew(boolean n) {
_kaleoNotificationRecipient.setNew(n);
}
/**
* Sets the notification reception type of this kaleo notification recipient.
*
* @param notificationReceptionType the notification reception type of this kaleo notification recipient
*/
@Override
public void setNotificationReceptionType(
java.lang.String notificationReceptionType) {
_kaleoNotificationRecipient.setNotificationReceptionType(notificationReceptionType);
}
/**
* Sets the primary key of this kaleo notification recipient.
*
* @param primaryKey the primary key of this kaleo notification recipient
*/
@Override
public void setPrimaryKey(long primaryKey) {
_kaleoNotificationRecipient.setPrimaryKey(primaryKey);
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
_kaleoNotificationRecipient.setPrimaryKeyObj(primaryKeyObj);
}
/**
* Sets the recipient class name of this kaleo notification recipient.
*
* @param recipientClassName the recipient class name of this kaleo notification recipient
*/
@Override
public void setRecipientClassName(java.lang.String recipientClassName) {
_kaleoNotificationRecipient.setRecipientClassName(recipientClassName);
}
/**
* Sets the recipient class pk of this kaleo notification recipient.
*
* @param recipientClassPK the recipient class pk of this kaleo notification recipient
*/
@Override
public void setRecipientClassPK(long recipientClassPK) {
_kaleoNotificationRecipient.setRecipientClassPK(recipientClassPK);
}
/**
* Sets the recipient role type of this kaleo notification recipient.
*
* @param recipientRoleType the recipient role type of this kaleo notification recipient
*/
@Override
public void setRecipientRoleType(int recipientRoleType) {
_kaleoNotificationRecipient.setRecipientRoleType(recipientRoleType);
}
/**
* Sets the recipient script of this kaleo notification recipient.
*
* @param recipientScript the recipient script of this kaleo notification recipient
*/
@Override
public void setRecipientScript(java.lang.String recipientScript) {
_kaleoNotificationRecipient.setRecipientScript(recipientScript);
}
/**
* Sets the recipient script contexts of this kaleo notification recipient.
*
* @param recipientScriptContexts the recipient script contexts of this kaleo notification recipient
*/
@Override
public void setRecipientScriptContexts(
java.lang.String recipientScriptContexts) {
_kaleoNotificationRecipient.setRecipientScriptContexts(recipientScriptContexts);
}
/**
* Sets the recipient script language of this kaleo notification recipient.
*
* @param recipientScriptLanguage the recipient script language of this kaleo notification recipient
*/
@Override
public void setRecipientScriptLanguage(
java.lang.String recipientScriptLanguage) {
_kaleoNotificationRecipient.setRecipientScriptLanguage(recipientScriptLanguage);
}
/**
* Sets the user ID of this kaleo notification recipient.
*
* @param userId the user ID of this kaleo notification recipient
*/
@Override
public void setUserId(long userId) {
_kaleoNotificationRecipient.setUserId(userId);
}
/**
* Sets the user name of this kaleo notification recipient.
*
* @param userName the user name of this kaleo notification recipient
*/
@Override
public void setUserName(java.lang.String userName) {
_kaleoNotificationRecipient.setUserName(userName);
}
/**
* Sets the user uuid of this kaleo notification recipient.
*
* @param userUuid the user uuid of this kaleo notification recipient
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_kaleoNotificationRecipient.setUserUuid(userUuid);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof KaleoNotificationRecipientWrapper)) {
return false;
}
KaleoNotificationRecipientWrapper kaleoNotificationRecipientWrapper = (KaleoNotificationRecipientWrapper)obj;
if (Objects.equals(_kaleoNotificationRecipient,
kaleoNotificationRecipientWrapper._kaleoNotificationRecipient)) {
return true;
}
return false;
}
@Override
public KaleoNotificationRecipient getWrappedModel() {
return _kaleoNotificationRecipient;
}
@Override
public boolean isEntityCacheEnabled() {
return _kaleoNotificationRecipient.isEntityCacheEnabled();
}
@Override
public boolean isFinderCacheEnabled() {
return _kaleoNotificationRecipient.isFinderCacheEnabled();
}
@Override
public void resetOriginalValues() {
_kaleoNotificationRecipient.resetOriginalValues();
}
private final KaleoNotificationRecipient _kaleoNotificationRecipient;
}