001 /** 002 * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.AutoEscape; 020 import com.liferay.portal.kernel.exception.SystemException; 021 import com.liferay.portal.model.BaseModel; 022 import com.liferay.portal.model.CacheModel; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.expando.model.ExpandoBridge; 026 027 import java.io.Serializable; 028 029 /** 030 * 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. 031 * 032 * <p> 033 * 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}. 034 * </p> 035 * 036 * @author Brian Wing Shun Chan 037 * @see AnnouncementsDelivery 038 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryImpl 039 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl 040 * @generated 041 */ 042 @ProviderType 043 public interface AnnouncementsDeliveryModel extends BaseModel<AnnouncementsDelivery> { 044 /* 045 * NOTE FOR DEVELOPERS: 046 * 047 * Never modify or reference this interface directly. All methods that expect a announcements delivery model instance should use the {@link AnnouncementsDelivery} interface instead. 048 */ 049 050 /** 051 * Returns the primary key of this announcements delivery. 052 * 053 * @return the primary key of this announcements delivery 054 */ 055 public long getPrimaryKey(); 056 057 /** 058 * Sets the primary key of this announcements delivery. 059 * 060 * @param primaryKey the primary key of this announcements delivery 061 */ 062 public void setPrimaryKey(long primaryKey); 063 064 /** 065 * Returns the delivery ID of this announcements delivery. 066 * 067 * @return the delivery ID of this announcements delivery 068 */ 069 public long getDeliveryId(); 070 071 /** 072 * Sets the delivery ID of this announcements delivery. 073 * 074 * @param deliveryId the delivery ID of this announcements delivery 075 */ 076 public void setDeliveryId(long deliveryId); 077 078 /** 079 * Returns the company ID of this announcements delivery. 080 * 081 * @return the company ID of this announcements delivery 082 */ 083 public long getCompanyId(); 084 085 /** 086 * Sets the company ID of this announcements delivery. 087 * 088 * @param companyId the company ID of this announcements delivery 089 */ 090 public void setCompanyId(long companyId); 091 092 /** 093 * Returns the user ID of this announcements delivery. 094 * 095 * @return the user ID of this announcements delivery 096 */ 097 public long getUserId(); 098 099 /** 100 * Sets the user ID of this announcements delivery. 101 * 102 * @param userId the user ID of this announcements delivery 103 */ 104 public void setUserId(long userId); 105 106 /** 107 * Returns the user uuid of this announcements delivery. 108 * 109 * @return the user uuid of this announcements delivery 110 * @throws SystemException if a system exception occurred 111 */ 112 public String getUserUuid() throws SystemException; 113 114 /** 115 * Sets the user uuid of this announcements delivery. 116 * 117 * @param userUuid the user uuid of this announcements delivery 118 */ 119 public void setUserUuid(String userUuid); 120 121 /** 122 * Returns the type of this announcements delivery. 123 * 124 * @return the type of this announcements delivery 125 */ 126 @AutoEscape 127 public String getType(); 128 129 /** 130 * Sets the type of this announcements delivery. 131 * 132 * @param type the type of this announcements delivery 133 */ 134 public void setType(String type); 135 136 /** 137 * Returns the email of this announcements delivery. 138 * 139 * @return the email of this announcements delivery 140 */ 141 public boolean getEmail(); 142 143 /** 144 * Returns <code>true</code> if this announcements delivery is email. 145 * 146 * @return <code>true</code> if this announcements delivery is email; <code>false</code> otherwise 147 */ 148 public boolean isEmail(); 149 150 /** 151 * Sets whether this announcements delivery is email. 152 * 153 * @param email the email of this announcements delivery 154 */ 155 public void setEmail(boolean email); 156 157 /** 158 * Returns the sms of this announcements delivery. 159 * 160 * @return the sms of this announcements delivery 161 */ 162 public boolean getSms(); 163 164 /** 165 * Returns <code>true</code> if this announcements delivery is sms. 166 * 167 * @return <code>true</code> if this announcements delivery is sms; <code>false</code> otherwise 168 */ 169 public boolean isSms(); 170 171 /** 172 * Sets whether this announcements delivery is sms. 173 * 174 * @param sms the sms of this announcements delivery 175 */ 176 public void setSms(boolean sms); 177 178 /** 179 * Returns the website of this announcements delivery. 180 * 181 * @return the website of this announcements delivery 182 */ 183 public boolean getWebsite(); 184 185 /** 186 * Returns <code>true</code> if this announcements delivery is website. 187 * 188 * @return <code>true</code> if this announcements delivery is website; <code>false</code> otherwise 189 */ 190 public boolean isWebsite(); 191 192 /** 193 * Sets whether this announcements delivery is website. 194 * 195 * @param website the website of this announcements delivery 196 */ 197 public void setWebsite(boolean website); 198 199 @Override 200 public boolean isNew(); 201 202 @Override 203 public void setNew(boolean n); 204 205 @Override 206 public boolean isCachedModel(); 207 208 @Override 209 public void setCachedModel(boolean cachedModel); 210 211 @Override 212 public boolean isEscapedModel(); 213 214 @Override 215 public Serializable getPrimaryKeyObj(); 216 217 @Override 218 public void setPrimaryKeyObj(Serializable primaryKeyObj); 219 220 @Override 221 public ExpandoBridge getExpandoBridge(); 222 223 @Override 224 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 225 226 @Override 227 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 228 229 @Override 230 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 231 232 @Override 233 public Object clone(); 234 235 @Override 236 public int compareTo(AnnouncementsDelivery announcementsDelivery); 237 238 @Override 239 public int hashCode(); 240 241 @Override 242 public CacheModel<AnnouncementsDelivery> toCacheModel(); 243 244 @Override 245 public AnnouncementsDelivery toEscapedModel(); 246 247 @Override 248 public AnnouncementsDelivery toUnescapedModel(); 249 250 @Override 251 public String toString(); 252 253 @Override 254 public String toXmlString(); 255 }