com.liferay.portal.model.UserNotificationEventWrapper 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 UserNotificationEvent}.
*
*
* @author Brian Wing Shun Chan
* @see UserNotificationEvent
* @generated
*/
@ProviderType
public class UserNotificationEventWrapper implements UserNotificationEvent,
ModelWrapper {
public UserNotificationEventWrapper(
UserNotificationEvent userNotificationEvent) {
_userNotificationEvent = userNotificationEvent;
}
@Override
public Class> getModelClass() {
return UserNotificationEvent.class;
}
@Override
public String getModelClassName() {
return UserNotificationEvent.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("uuid", getUuid());
attributes.put("userNotificationEventId", getUserNotificationEventId());
attributes.put("companyId", getCompanyId());
attributes.put("userId", getUserId());
attributes.put("type", getType());
attributes.put("timestamp", getTimestamp());
attributes.put("deliverBy", getDeliverBy());
attributes.put("delivered", getDelivered());
attributes.put("payload", getPayload());
attributes.put("archived", getArchived());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
String uuid = (String)attributes.get("uuid");
if (uuid != null) {
setUuid(uuid);
}
Long userNotificationEventId = (Long)attributes.get(
"userNotificationEventId");
if (userNotificationEventId != null) {
setUserNotificationEventId(userNotificationEventId);
}
Long companyId = (Long)attributes.get("companyId");
if (companyId != null) {
setCompanyId(companyId);
}
Long userId = (Long)attributes.get("userId");
if (userId != null) {
setUserId(userId);
}
String type = (String)attributes.get("type");
if (type != null) {
setType(type);
}
Long timestamp = (Long)attributes.get("timestamp");
if (timestamp != null) {
setTimestamp(timestamp);
}
Long deliverBy = (Long)attributes.get("deliverBy");
if (deliverBy != null) {
setDeliverBy(deliverBy);
}
Boolean delivered = (Boolean)attributes.get("delivered");
if (delivered != null) {
setDelivered(delivered);
}
String payload = (String)attributes.get("payload");
if (payload != null) {
setPayload(payload);
}
Boolean archived = (Boolean)attributes.get("archived");
if (archived != null) {
setArchived(archived);
}
}
/**
* Returns the primary key of this user notification event.
*
* @return the primary key of this user notification event
*/
@Override
public long getPrimaryKey() {
return _userNotificationEvent.getPrimaryKey();
}
/**
* Sets the primary key of this user notification event.
*
* @param primaryKey the primary key of this user notification event
*/
@Override
public void setPrimaryKey(long primaryKey) {
_userNotificationEvent.setPrimaryKey(primaryKey);
}
/**
* Returns the uuid of this user notification event.
*
* @return the uuid of this user notification event
*/
@Override
public java.lang.String getUuid() {
return _userNotificationEvent.getUuid();
}
/**
* Sets the uuid of this user notification event.
*
* @param uuid the uuid of this user notification event
*/
@Override
public void setUuid(java.lang.String uuid) {
_userNotificationEvent.setUuid(uuid);
}
/**
* Returns the user notification event ID of this user notification event.
*
* @return the user notification event ID of this user notification event
*/
@Override
public long getUserNotificationEventId() {
return _userNotificationEvent.getUserNotificationEventId();
}
/**
* Sets the user notification event ID of this user notification event.
*
* @param userNotificationEventId the user notification event ID of this user notification event
*/
@Override
public void setUserNotificationEventId(long userNotificationEventId) {
_userNotificationEvent.setUserNotificationEventId(userNotificationEventId);
}
/**
* Returns the company ID of this user notification event.
*
* @return the company ID of this user notification event
*/
@Override
public long getCompanyId() {
return _userNotificationEvent.getCompanyId();
}
/**
* Sets the company ID of this user notification event.
*
* @param companyId the company ID of this user notification event
*/
@Override
public void setCompanyId(long companyId) {
_userNotificationEvent.setCompanyId(companyId);
}
/**
* Returns the user ID of this user notification event.
*
* @return the user ID of this user notification event
*/
@Override
public long getUserId() {
return _userNotificationEvent.getUserId();
}
/**
* Sets the user ID of this user notification event.
*
* @param userId the user ID of this user notification event
*/
@Override
public void setUserId(long userId) {
_userNotificationEvent.setUserId(userId);
}
/**
* Returns the user uuid of this user notification event.
*
* @return the user uuid of this user notification event
* @throws SystemException if a system exception occurred
*/
@Override
public java.lang.String getUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _userNotificationEvent.getUserUuid();
}
/**
* Sets the user uuid of this user notification event.
*
* @param userUuid the user uuid of this user notification event
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_userNotificationEvent.setUserUuid(userUuid);
}
/**
* Returns the type of this user notification event.
*
* @return the type of this user notification event
*/
@Override
public java.lang.String getType() {
return _userNotificationEvent.getType();
}
/**
* Sets the type of this user notification event.
*
* @param type the type of this user notification event
*/
@Override
public void setType(java.lang.String type) {
_userNotificationEvent.setType(type);
}
/**
* Returns the timestamp of this user notification event.
*
* @return the timestamp of this user notification event
*/
@Override
public long getTimestamp() {
return _userNotificationEvent.getTimestamp();
}
/**
* Sets the timestamp of this user notification event.
*
* @param timestamp the timestamp of this user notification event
*/
@Override
public void setTimestamp(long timestamp) {
_userNotificationEvent.setTimestamp(timestamp);
}
/**
* Returns the deliver by of this user notification event.
*
* @return the deliver by of this user notification event
*/
@Override
public long getDeliverBy() {
return _userNotificationEvent.getDeliverBy();
}
/**
* Sets the deliver by of this user notification event.
*
* @param deliverBy the deliver by of this user notification event
*/
@Override
public void setDeliverBy(long deliverBy) {
_userNotificationEvent.setDeliverBy(deliverBy);
}
/**
* Returns the delivered of this user notification event.
*
* @return the delivered of this user notification event
*/
@Override
public boolean getDelivered() {
return _userNotificationEvent.getDelivered();
}
/**
* Returns true
if this user notification event is delivered.
*
* @return true
if this user notification event is delivered; false
otherwise
*/
@Override
public boolean isDelivered() {
return _userNotificationEvent.isDelivered();
}
/**
* Sets whether this user notification event is delivered.
*
* @param delivered the delivered of this user notification event
*/
@Override
public void setDelivered(boolean delivered) {
_userNotificationEvent.setDelivered(delivered);
}
/**
* Returns the payload of this user notification event.
*
* @return the payload of this user notification event
*/
@Override
public java.lang.String getPayload() {
return _userNotificationEvent.getPayload();
}
/**
* Sets the payload of this user notification event.
*
* @param payload the payload of this user notification event
*/
@Override
public void setPayload(java.lang.String payload) {
_userNotificationEvent.setPayload(payload);
}
/**
* Returns the archived of this user notification event.
*
* @return the archived of this user notification event
*/
@Override
public boolean getArchived() {
return _userNotificationEvent.getArchived();
}
/**
* Returns true
if this user notification event is archived.
*
* @return true
if this user notification event is archived; false
otherwise
*/
@Override
public boolean isArchived() {
return _userNotificationEvent.isArchived();
}
/**
* Sets whether this user notification event is archived.
*
* @param archived the archived of this user notification event
*/
@Override
public void setArchived(boolean archived) {
_userNotificationEvent.setArchived(archived);
}
@Override
public boolean isNew() {
return _userNotificationEvent.isNew();
}
@Override
public void setNew(boolean n) {
_userNotificationEvent.setNew(n);
}
@Override
public boolean isCachedModel() {
return _userNotificationEvent.isCachedModel();
}
@Override
public void setCachedModel(boolean cachedModel) {
_userNotificationEvent.setCachedModel(cachedModel);
}
@Override
public boolean isEscapedModel() {
return _userNotificationEvent.isEscapedModel();
}
@Override
public java.io.Serializable getPrimaryKeyObj() {
return _userNotificationEvent.getPrimaryKeyObj();
}
@Override
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_userNotificationEvent.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _userNotificationEvent.getExpandoBridge();
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.model.BaseModel> baseModel) {
_userNotificationEvent.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
_userNotificationEvent.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_userNotificationEvent.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new UserNotificationEventWrapper((UserNotificationEvent)_userNotificationEvent.clone());
}
@Override
public int compareTo(
com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
return _userNotificationEvent.compareTo(userNotificationEvent);
}
@Override
public int hashCode() {
return _userNotificationEvent.hashCode();
}
@Override
public com.liferay.portal.model.CacheModel toCacheModel() {
return _userNotificationEvent.toCacheModel();
}
@Override
public com.liferay.portal.model.UserNotificationEvent toEscapedModel() {
return new UserNotificationEventWrapper(_userNotificationEvent.toEscapedModel());
}
@Override
public com.liferay.portal.model.UserNotificationEvent toUnescapedModel() {
return new UserNotificationEventWrapper(_userNotificationEvent.toUnescapedModel());
}
@Override
public java.lang.String toString() {
return _userNotificationEvent.toString();
}
@Override
public java.lang.String toXmlString() {
return _userNotificationEvent.toXmlString();
}
@Override
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_userNotificationEvent.persist();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof UserNotificationEventWrapper)) {
return false;
}
UserNotificationEventWrapper userNotificationEventWrapper = (UserNotificationEventWrapper)obj;
if (Validator.equals(_userNotificationEvent,
userNotificationEventWrapper._userNotificationEvent)) {
return true;
}
return false;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
*/
public UserNotificationEvent getWrappedUserNotificationEvent() {
return _userNotificationEvent;
}
@Override
public UserNotificationEvent getWrappedModel() {
return _userNotificationEvent;
}
@Override
public void resetOriginalValues() {
_userNotificationEvent.resetOriginalValues();
}
private UserNotificationEvent _userNotificationEvent;
}