001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.announcements.model; 016 017 import com.liferay.portal.kernel.annotation.AutoEscape; 018 import com.liferay.portal.kernel.exception.SystemException; 019 import com.liferay.portal.model.BaseModel; 020 import com.liferay.portal.service.ServiceContext; 021 022 import com.liferay.portlet.expando.model.ExpandoBridge; 023 024 import java.io.Serializable; 025 026 /** 027 * The base model interface for the AnnouncementsDelivery service. Represents a row in the "AnnouncementsDelivery" database table, with each column mapped to a property of this class. 028 * 029 * <p> 030 * This interface and its corresponding implementation {@link com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryImpl}. 031 * </p> 032 * 033 * <p> 034 * Never modify or reference this interface directly. All methods that expect a announcements delivery model instance should use the {@link AnnouncementsDelivery} interface instead. 035 * </p> 036 * 037 * @author Brian Wing Shun Chan 038 * @see AnnouncementsDelivery 039 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryImpl 040 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl 041 * @generated 042 */ 043 public interface AnnouncementsDeliveryModel extends BaseModel<AnnouncementsDelivery> { 044 /** 045 * Gets the primary key of this announcements delivery. 046 * 047 * @return the primary key of this announcements delivery 048 */ 049 public long getPrimaryKey(); 050 051 /** 052 * Sets the primary key of this announcements delivery 053 * 054 * @param pk the primary key of this announcements delivery 055 */ 056 public void setPrimaryKey(long pk); 057 058 /** 059 * Gets the delivery id of this announcements delivery. 060 * 061 * @return the delivery id of this announcements delivery 062 */ 063 public long getDeliveryId(); 064 065 /** 066 * Sets the delivery id of this announcements delivery. 067 * 068 * @param deliveryId the delivery id of this announcements delivery 069 */ 070 public void setDeliveryId(long deliveryId); 071 072 /** 073 * Gets the company id of this announcements delivery. 074 * 075 * @return the company id of this announcements delivery 076 */ 077 public long getCompanyId(); 078 079 /** 080 * Sets the company id of this announcements delivery. 081 * 082 * @param companyId the company id of this announcements delivery 083 */ 084 public void setCompanyId(long companyId); 085 086 /** 087 * Gets the user id of this announcements delivery. 088 * 089 * @return the user id of this announcements delivery 090 */ 091 public long getUserId(); 092 093 /** 094 * Sets the user id of this announcements delivery. 095 * 096 * @param userId the user id of this announcements delivery 097 */ 098 public void setUserId(long userId); 099 100 /** 101 * Gets the user uuid of this announcements delivery. 102 * 103 * @return the user uuid of this announcements delivery 104 * @throws SystemException if a system exception occurred 105 */ 106 public String getUserUuid() throws SystemException; 107 108 /** 109 * Sets the user uuid of this announcements delivery. 110 * 111 * @param userUuid the user uuid of this announcements delivery 112 */ 113 public void setUserUuid(String userUuid); 114 115 /** 116 * Gets the type of this announcements delivery. 117 * 118 * @return the type of this announcements delivery 119 */ 120 @AutoEscape 121 public String getType(); 122 123 /** 124 * Sets the type of this announcements delivery. 125 * 126 * @param type the type of this announcements delivery 127 */ 128 public void setType(String type); 129 130 /** 131 * Gets the email of this announcements delivery. 132 * 133 * @return the email of this announcements delivery 134 */ 135 public boolean getEmail(); 136 137 /** 138 * Determines whether this announcements delivery is email. 139 * 140 * @return whether this announcements delivery is email 141 */ 142 public boolean isEmail(); 143 144 /** 145 * Sets whether this {$entity.humanName} is email. 146 * 147 * @param email the email of this announcements delivery 148 */ 149 public void setEmail(boolean email); 150 151 /** 152 * Gets the sms of this announcements delivery. 153 * 154 * @return the sms of this announcements delivery 155 */ 156 public boolean getSms(); 157 158 /** 159 * Determines whether this announcements delivery is sms. 160 * 161 * @return whether this announcements delivery is sms 162 */ 163 public boolean isSms(); 164 165 /** 166 * Sets whether this {$entity.humanName} is sms. 167 * 168 * @param sms the sms of this announcements delivery 169 */ 170 public void setSms(boolean sms); 171 172 /** 173 * Gets the website of this announcements delivery. 174 * 175 * @return the website of this announcements delivery 176 */ 177 public boolean getWebsite(); 178 179 /** 180 * Determines whether this announcements delivery is website. 181 * 182 * @return whether this announcements delivery is website 183 */ 184 public boolean isWebsite(); 185 186 /** 187 * Sets whether this {$entity.humanName} is website. 188 * 189 * @param website the website of this announcements delivery 190 */ 191 public void setWebsite(boolean website); 192 193 /** 194 * Gets a copy of this announcements delivery as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 195 * 196 * @return the escaped model instance 197 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 198 */ 199 public AnnouncementsDelivery toEscapedModel(); 200 201 public boolean isNew(); 202 203 public void setNew(boolean n); 204 205 public boolean isCachedModel(); 206 207 public void setCachedModel(boolean cachedModel); 208 209 public boolean isEscapedModel(); 210 211 public void setEscapedModel(boolean escapedModel); 212 213 public Serializable getPrimaryKeyObj(); 214 215 public ExpandoBridge getExpandoBridge(); 216 217 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 218 219 public Object clone(); 220 221 public int compareTo(AnnouncementsDelivery announcementsDelivery); 222 223 public int hashCode(); 224 225 public String toString(); 226 227 public String toXmlString(); 228 }