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