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