com.liferay.announcements.kernel.model.AnnouncementsEntryWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.kernel Show documentation
Show all versions of com.liferay.portal.kernel 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-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.announcements.kernel.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.exportimport.kernel.lar.StagedModelType;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.Validator;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
*
* This class is a wrapper for {@link AnnouncementsEntry}.
*
*
* @author Brian Wing Shun Chan
* @see AnnouncementsEntry
* @generated
*/
@ProviderType
public class AnnouncementsEntryWrapper implements AnnouncementsEntry,
ModelWrapper {
public AnnouncementsEntryWrapper(AnnouncementsEntry announcementsEntry) {
_announcementsEntry = announcementsEntry;
}
@Override
public Class> getModelClass() {
return AnnouncementsEntry.class;
}
@Override
public String getModelClassName() {
return AnnouncementsEntry.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("uuid", getUuid());
attributes.put("entryId", getEntryId());
attributes.put("companyId", getCompanyId());
attributes.put("userId", getUserId());
attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate());
attributes.put("classNameId", getClassNameId());
attributes.put("classPK", getClassPK());
attributes.put("title", getTitle());
attributes.put("content", getContent());
attributes.put("url", getUrl());
attributes.put("type", getType());
attributes.put("displayDate", getDisplayDate());
attributes.put("expirationDate", getExpirationDate());
attributes.put("priority", getPriority());
attributes.put("alert", getAlert());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
String uuid = (String)attributes.get("uuid");
if (uuid != null) {
setUuid(uuid);
}
Long entryId = (Long)attributes.get("entryId");
if (entryId != null) {
setEntryId(entryId);
}
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 classNameId = (Long)attributes.get("classNameId");
if (classNameId != null) {
setClassNameId(classNameId);
}
Long classPK = (Long)attributes.get("classPK");
if (classPK != null) {
setClassPK(classPK);
}
String title = (String)attributes.get("title");
if (title != null) {
setTitle(title);
}
String content = (String)attributes.get("content");
if (content != null) {
setContent(content);
}
String url = (String)attributes.get("url");
if (url != null) {
setUrl(url);
}
String type = (String)attributes.get("type");
if (type != null) {
setType(type);
}
Date displayDate = (Date)attributes.get("displayDate");
if (displayDate != null) {
setDisplayDate(displayDate);
}
Date expirationDate = (Date)attributes.get("expirationDate");
if (expirationDate != null) {
setExpirationDate(expirationDate);
}
Integer priority = (Integer)attributes.get("priority");
if (priority != null) {
setPriority(priority);
}
Boolean alert = (Boolean)attributes.get("alert");
if (alert != null) {
setAlert(alert);
}
}
@Override
public java.lang.Object clone() {
return new AnnouncementsEntryWrapper((AnnouncementsEntry)_announcementsEntry.clone());
}
@Override
public int compareTo(
com.liferay.announcements.kernel.model.AnnouncementsEntry announcementsEntry) {
return _announcementsEntry.compareTo(announcementsEntry);
}
/**
* Returns the alert of this announcements entry.
*
* @return the alert of this announcements entry
*/
@Override
public boolean getAlert() {
return _announcementsEntry.getAlert();
}
/**
* Returns the fully qualified class name of this announcements entry.
*
* @return the fully qualified class name of this announcements entry
*/
@Override
public java.lang.String getClassName() {
return _announcementsEntry.getClassName();
}
/**
* Returns the class name ID of this announcements entry.
*
* @return the class name ID of this announcements entry
*/
@Override
public long getClassNameId() {
return _announcementsEntry.getClassNameId();
}
/**
* Returns the class p k of this announcements entry.
*
* @return the class p k of this announcements entry
*/
@Override
public long getClassPK() {
return _announcementsEntry.getClassPK();
}
/**
* Returns the company ID of this announcements entry.
*
* @return the company ID of this announcements entry
*/
@Override
public long getCompanyId() {
return _announcementsEntry.getCompanyId();
}
/**
* Returns the content of this announcements entry.
*
* @return the content of this announcements entry
*/
@Override
public java.lang.String getContent() {
return _announcementsEntry.getContent();
}
/**
* Returns the create date of this announcements entry.
*
* @return the create date of this announcements entry
*/
@Override
public Date getCreateDate() {
return _announcementsEntry.getCreateDate();
}
/**
* Returns the display date of this announcements entry.
*
* @return the display date of this announcements entry
*/
@Override
public Date getDisplayDate() {
return _announcementsEntry.getDisplayDate();
}
/**
* Returns the entry ID of this announcements entry.
*
* @return the entry ID of this announcements entry
*/
@Override
public long getEntryId() {
return _announcementsEntry.getEntryId();
}
@Override
public ExpandoBridge getExpandoBridge() {
return _announcementsEntry.getExpandoBridge();
}
/**
* Returns the expiration date of this announcements entry.
*
* @return the expiration date of this announcements entry
*/
@Override
public Date getExpirationDate() {
return _announcementsEntry.getExpirationDate();
}
@Override
public long getGroupId()
throws com.liferay.portal.kernel.exception.PortalException {
return _announcementsEntry.getGroupId();
}
/**
* Returns the modified date of this announcements entry.
*
* @return the modified date of this announcements entry
*/
@Override
public Date getModifiedDate() {
return _announcementsEntry.getModifiedDate();
}
/**
* Returns the primary key of this announcements entry.
*
* @return the primary key of this announcements entry
*/
@Override
public long getPrimaryKey() {
return _announcementsEntry.getPrimaryKey();
}
@Override
public Serializable getPrimaryKeyObj() {
return _announcementsEntry.getPrimaryKeyObj();
}
/**
* Returns the priority of this announcements entry.
*
* @return the priority of this announcements entry
*/
@Override
public int getPriority() {
return _announcementsEntry.getPriority();
}
/**
* Returns the title of this announcements entry.
*
* @return the title of this announcements entry
*/
@Override
public java.lang.String getTitle() {
return _announcementsEntry.getTitle();
}
/**
* Returns the type of this announcements entry.
*
* @return the type of this announcements entry
*/
@Override
public java.lang.String getType() {
return _announcementsEntry.getType();
}
/**
* Returns the url of this announcements entry.
*
* @return the url of this announcements entry
*/
@Override
public java.lang.String getUrl() {
return _announcementsEntry.getUrl();
}
/**
* Returns the user ID of this announcements entry.
*
* @return the user ID of this announcements entry
*/
@Override
public long getUserId() {
return _announcementsEntry.getUserId();
}
/**
* Returns the user name of this announcements entry.
*
* @return the user name of this announcements entry
*/
@Override
public java.lang.String getUserName() {
return _announcementsEntry.getUserName();
}
/**
* Returns the user uuid of this announcements entry.
*
* @return the user uuid of this announcements entry
*/
@Override
public java.lang.String getUserUuid() {
return _announcementsEntry.getUserUuid();
}
/**
* Returns the uuid of this announcements entry.
*
* @return the uuid of this announcements entry
*/
@Override
public java.lang.String getUuid() {
return _announcementsEntry.getUuid();
}
@Override
public int hashCode() {
return _announcementsEntry.hashCode();
}
/**
* Returns true
if this announcements entry is alert.
*
* @return true
if this announcements entry is alert; false
otherwise
*/
@Override
public boolean isAlert() {
return _announcementsEntry.isAlert();
}
@Override
public boolean isCachedModel() {
return _announcementsEntry.isCachedModel();
}
@Override
public boolean isEscapedModel() {
return _announcementsEntry.isEscapedModel();
}
@Override
public boolean isNew() {
return _announcementsEntry.isNew();
}
@Override
public void persist() {
_announcementsEntry.persist();
}
/**
* Sets whether this announcements entry is alert.
*
* @param alert the alert of this announcements entry
*/
@Override
public void setAlert(boolean alert) {
_announcementsEntry.setAlert(alert);
}
@Override
public void setCachedModel(boolean cachedModel) {
_announcementsEntry.setCachedModel(cachedModel);
}
@Override
public void setClassName(java.lang.String className) {
_announcementsEntry.setClassName(className);
}
/**
* Sets the class name ID of this announcements entry.
*
* @param classNameId the class name ID of this announcements entry
*/
@Override
public void setClassNameId(long classNameId) {
_announcementsEntry.setClassNameId(classNameId);
}
/**
* Sets the class p k of this announcements entry.
*
* @param classPK the class p k of this announcements entry
*/
@Override
public void setClassPK(long classPK) {
_announcementsEntry.setClassPK(classPK);
}
/**
* Sets the company ID of this announcements entry.
*
* @param companyId the company ID of this announcements entry
*/
@Override
public void setCompanyId(long companyId) {
_announcementsEntry.setCompanyId(companyId);
}
/**
* Sets the content of this announcements entry.
*
* @param content the content of this announcements entry
*/
@Override
public void setContent(java.lang.String content) {
_announcementsEntry.setContent(content);
}
/**
* Sets the create date of this announcements entry.
*
* @param createDate the create date of this announcements entry
*/
@Override
public void setCreateDate(Date createDate) {
_announcementsEntry.setCreateDate(createDate);
}
/**
* Sets the display date of this announcements entry.
*
* @param displayDate the display date of this announcements entry
*/
@Override
public void setDisplayDate(Date displayDate) {
_announcementsEntry.setDisplayDate(displayDate);
}
/**
* Sets the entry ID of this announcements entry.
*
* @param entryId the entry ID of this announcements entry
*/
@Override
public void setEntryId(long entryId) {
_announcementsEntry.setEntryId(entryId);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.kernel.model.BaseModel> baseModel) {
_announcementsEntry.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
_announcementsEntry.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
_announcementsEntry.setExpandoBridgeAttributes(serviceContext);
}
/**
* Sets the expiration date of this announcements entry.
*
* @param expirationDate the expiration date of this announcements entry
*/
@Override
public void setExpirationDate(Date expirationDate) {
_announcementsEntry.setExpirationDate(expirationDate);
}
/**
* Sets the modified date of this announcements entry.
*
* @param modifiedDate the modified date of this announcements entry
*/
@Override
public void setModifiedDate(Date modifiedDate) {
_announcementsEntry.setModifiedDate(modifiedDate);
}
@Override
public void setNew(boolean n) {
_announcementsEntry.setNew(n);
}
/**
* Sets the primary key of this announcements entry.
*
* @param primaryKey the primary key of this announcements entry
*/
@Override
public void setPrimaryKey(long primaryKey) {
_announcementsEntry.setPrimaryKey(primaryKey);
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
_announcementsEntry.setPrimaryKeyObj(primaryKeyObj);
}
/**
* Sets the priority of this announcements entry.
*
* @param priority the priority of this announcements entry
*/
@Override
public void setPriority(int priority) {
_announcementsEntry.setPriority(priority);
}
/**
* Sets the title of this announcements entry.
*
* @param title the title of this announcements entry
*/
@Override
public void setTitle(java.lang.String title) {
_announcementsEntry.setTitle(title);
}
/**
* Sets the type of this announcements entry.
*
* @param type the type of this announcements entry
*/
@Override
public void setType(java.lang.String type) {
_announcementsEntry.setType(type);
}
/**
* Sets the url of this announcements entry.
*
* @param url the url of this announcements entry
*/
@Override
public void setUrl(java.lang.String url) {
_announcementsEntry.setUrl(url);
}
/**
* Sets the user ID of this announcements entry.
*
* @param userId the user ID of this announcements entry
*/
@Override
public void setUserId(long userId) {
_announcementsEntry.setUserId(userId);
}
/**
* Sets the user name of this announcements entry.
*
* @param userName the user name of this announcements entry
*/
@Override
public void setUserName(java.lang.String userName) {
_announcementsEntry.setUserName(userName);
}
/**
* Sets the user uuid of this announcements entry.
*
* @param userUuid the user uuid of this announcements entry
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_announcementsEntry.setUserUuid(userUuid);
}
/**
* Sets the uuid of this announcements entry.
*
* @param uuid the uuid of this announcements entry
*/
@Override
public void setUuid(java.lang.String uuid) {
_announcementsEntry.setUuid(uuid);
}
@Override
public com.liferay.portal.kernel.model.CacheModel toCacheModel() {
return _announcementsEntry.toCacheModel();
}
@Override
public com.liferay.announcements.kernel.model.AnnouncementsEntry toEscapedModel() {
return new AnnouncementsEntryWrapper(_announcementsEntry.toEscapedModel());
}
@Override
public java.lang.String toString() {
return _announcementsEntry.toString();
}
@Override
public com.liferay.announcements.kernel.model.AnnouncementsEntry toUnescapedModel() {
return new AnnouncementsEntryWrapper(_announcementsEntry.toUnescapedModel());
}
@Override
public java.lang.String toXmlString() {
return _announcementsEntry.toXmlString();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof AnnouncementsEntryWrapper)) {
return false;
}
AnnouncementsEntryWrapper announcementsEntryWrapper = (AnnouncementsEntryWrapper)obj;
if (Validator.equals(_announcementsEntry,
announcementsEntryWrapper._announcementsEntry)) {
return true;
}
return false;
}
@Override
public StagedModelType getStagedModelType() {
return _announcementsEntry.getStagedModelType();
}
@Override
public AnnouncementsEntry getWrappedModel() {
return _announcementsEntry;
}
@Override
public boolean isEntityCacheEnabled() {
return _announcementsEntry.isEntityCacheEnabled();
}
@Override
public boolean isFinderCacheEnabled() {
return _announcementsEntry.isFinderCacheEnabled();
}
@Override
public void resetOriginalValues() {
_announcementsEntry.resetOriginalValues();
}
private final AnnouncementsEntry _announcementsEntry;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy