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 import java.util.Date; 027 028 /** 029 * The base model interface for the AnnouncementsEntry service. Represents a row in the "AnnouncementsEntry" database table, with each column mapped to a property of this class. 030 * 031 * <p> 032 * This interface and its corresponding implementation {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl} 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.AnnouncementsEntryImpl}. 033 * </p> 034 * 035 * <p> 036 * Never modify or reference this interface directly. All methods that expect a announcements entry model instance should use the {@link AnnouncementsEntry} interface instead. 037 * </p> 038 * 039 * @author Brian Wing Shun Chan 040 * @see AnnouncementsEntry 041 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsEntryImpl 042 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl 043 * @generated 044 */ 045 public interface AnnouncementsEntryModel extends BaseModel<AnnouncementsEntry> { 046 /** 047 * Gets the primary key of this announcements entry. 048 * 049 * @return the primary key of this announcements entry 050 */ 051 public long getPrimaryKey(); 052 053 /** 054 * Sets the primary key of this announcements entry 055 * 056 * @param pk the primary key of this announcements entry 057 */ 058 public void setPrimaryKey(long pk); 059 060 /** 061 * Gets the uuid of this announcements entry. 062 * 063 * @return the uuid of this announcements entry 064 */ 065 @AutoEscape 066 public String getUuid(); 067 068 /** 069 * Sets the uuid of this announcements entry. 070 * 071 * @param uuid the uuid of this announcements entry 072 */ 073 public void setUuid(String uuid); 074 075 /** 076 * Gets the entry id of this announcements entry. 077 * 078 * @return the entry id of this announcements entry 079 */ 080 public long getEntryId(); 081 082 /** 083 * Sets the entry id of this announcements entry. 084 * 085 * @param entryId the entry id of this announcements entry 086 */ 087 public void setEntryId(long entryId); 088 089 /** 090 * Gets the company id of this announcements entry. 091 * 092 * @return the company id of this announcements entry 093 */ 094 public long getCompanyId(); 095 096 /** 097 * Sets the company id of this announcements entry. 098 * 099 * @param companyId the company id of this announcements entry 100 */ 101 public void setCompanyId(long companyId); 102 103 /** 104 * Gets the user id of this announcements entry. 105 * 106 * @return the user id of this announcements entry 107 */ 108 public long getUserId(); 109 110 /** 111 * Sets the user id of this announcements entry. 112 * 113 * @param userId the user id of this announcements entry 114 */ 115 public void setUserId(long userId); 116 117 /** 118 * Gets the user uuid of this announcements entry. 119 * 120 * @return the user uuid of this announcements entry 121 * @throws SystemException if a system exception occurred 122 */ 123 public String getUserUuid() throws SystemException; 124 125 /** 126 * Sets the user uuid of this announcements entry. 127 * 128 * @param userUuid the user uuid of this announcements entry 129 */ 130 public void setUserUuid(String userUuid); 131 132 /** 133 * Gets the user name of this announcements entry. 134 * 135 * @return the user name of this announcements entry 136 */ 137 @AutoEscape 138 public String getUserName(); 139 140 /** 141 * Sets the user name of this announcements entry. 142 * 143 * @param userName the user name of this announcements entry 144 */ 145 public void setUserName(String userName); 146 147 /** 148 * Gets the create date of this announcements entry. 149 * 150 * @return the create date of this announcements entry 151 */ 152 public Date getCreateDate(); 153 154 /** 155 * Sets the create date of this announcements entry. 156 * 157 * @param createDate the create date of this announcements entry 158 */ 159 public void setCreateDate(Date createDate); 160 161 /** 162 * Gets the modified date of this announcements entry. 163 * 164 * @return the modified date of this announcements entry 165 */ 166 public Date getModifiedDate(); 167 168 /** 169 * Sets the modified date of this announcements entry. 170 * 171 * @param modifiedDate the modified date of this announcements entry 172 */ 173 public void setModifiedDate(Date modifiedDate); 174 175 /** 176 * Gets the class name of the model instance this announcements entry is polymorphically associated with. 177 * 178 * @return the class name of the model instance this announcements entry is polymorphically associated with 179 */ 180 public String getClassName(); 181 182 /** 183 * Gets the class name id of this announcements entry. 184 * 185 * @return the class name id of this announcements entry 186 */ 187 public long getClassNameId(); 188 189 /** 190 * Sets the class name id of this announcements entry. 191 * 192 * @param classNameId the class name id of this announcements entry 193 */ 194 public void setClassNameId(long classNameId); 195 196 /** 197 * Gets the class p k of this announcements entry. 198 * 199 * @return the class p k of this announcements entry 200 */ 201 public long getClassPK(); 202 203 /** 204 * Sets the class p k of this announcements entry. 205 * 206 * @param classPK the class p k of this announcements entry 207 */ 208 public void setClassPK(long classPK); 209 210 /** 211 * Gets the title of this announcements entry. 212 * 213 * @return the title of this announcements entry 214 */ 215 @AutoEscape 216 public String getTitle(); 217 218 /** 219 * Sets the title of this announcements entry. 220 * 221 * @param title the title of this announcements entry 222 */ 223 public void setTitle(String title); 224 225 /** 226 * Gets the content of this announcements entry. 227 * 228 * @return the content of this announcements entry 229 */ 230 @AutoEscape 231 public String getContent(); 232 233 /** 234 * Sets the content of this announcements entry. 235 * 236 * @param content the content of this announcements entry 237 */ 238 public void setContent(String content); 239 240 /** 241 * Gets the url of this announcements entry. 242 * 243 * @return the url of this announcements entry 244 */ 245 @AutoEscape 246 public String getUrl(); 247 248 /** 249 * Sets the url of this announcements entry. 250 * 251 * @param url the url of this announcements entry 252 */ 253 public void setUrl(String url); 254 255 /** 256 * Gets the type of this announcements entry. 257 * 258 * @return the type of this announcements entry 259 */ 260 @AutoEscape 261 public String getType(); 262 263 /** 264 * Sets the type of this announcements entry. 265 * 266 * @param type the type of this announcements entry 267 */ 268 public void setType(String type); 269 270 /** 271 * Gets the display date of this announcements entry. 272 * 273 * @return the display date of this announcements entry 274 */ 275 public Date getDisplayDate(); 276 277 /** 278 * Sets the display date of this announcements entry. 279 * 280 * @param displayDate the display date of this announcements entry 281 */ 282 public void setDisplayDate(Date displayDate); 283 284 /** 285 * Gets the expiration date of this announcements entry. 286 * 287 * @return the expiration date of this announcements entry 288 */ 289 public Date getExpirationDate(); 290 291 /** 292 * Sets the expiration date of this announcements entry. 293 * 294 * @param expirationDate the expiration date of this announcements entry 295 */ 296 public void setExpirationDate(Date expirationDate); 297 298 /** 299 * Gets the priority of this announcements entry. 300 * 301 * @return the priority of this announcements entry 302 */ 303 public int getPriority(); 304 305 /** 306 * Sets the priority of this announcements entry. 307 * 308 * @param priority the priority of this announcements entry 309 */ 310 public void setPriority(int priority); 311 312 /** 313 * Gets the alert of this announcements entry. 314 * 315 * @return the alert of this announcements entry 316 */ 317 public boolean getAlert(); 318 319 /** 320 * Determines whether this announcements entry is alert. 321 * 322 * @return whether this announcements entry is alert 323 */ 324 public boolean isAlert(); 325 326 /** 327 * Sets whether this {$entity.humanName} is alert. 328 * 329 * @param alert the alert of this announcements entry 330 */ 331 public void setAlert(boolean alert); 332 333 /** 334 * Gets a copy of this announcements entry as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 335 * 336 * @return the escaped model instance 337 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 338 */ 339 public AnnouncementsEntry toEscapedModel(); 340 341 public boolean isNew(); 342 343 public void setNew(boolean n); 344 345 public boolean isCachedModel(); 346 347 public void setCachedModel(boolean cachedModel); 348 349 public boolean isEscapedModel(); 350 351 public void setEscapedModel(boolean escapedModel); 352 353 public Serializable getPrimaryKeyObj(); 354 355 public ExpandoBridge getExpandoBridge(); 356 357 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 358 359 public Object clone(); 360 361 public int compareTo(AnnouncementsEntry announcementsEntry); 362 363 public int hashCode(); 364 365 public String toString(); 366 367 public String toXmlString(); 368 }