001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.messageboards.model; 016 017 import com.liferay.portal.kernel.bean.AutoEscape; 018 import com.liferay.portal.kernel.exception.SystemException; 019 import com.liferay.portal.model.BaseModel; 020 import com.liferay.portal.model.CacheModel; 021 import com.liferay.portal.model.WorkflowedModel; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.expando.model.ExpandoBridge; 025 026 import java.io.Serializable; 027 028 import java.util.Date; 029 030 /** 031 * The base model interface for the MBThread service. Represents a row in the "MBThread" database table, with each column mapped to a property of this class. 032 * 033 * <p> 034 * This interface and its corresponding implementation {@link com.liferay.portlet.messageboards.model.impl.MBThreadModelImpl} 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.messageboards.model.impl.MBThreadImpl}. 035 * </p> 036 * 037 * @author Brian Wing Shun Chan 038 * @see MBThread 039 * @see com.liferay.portlet.messageboards.model.impl.MBThreadImpl 040 * @see com.liferay.portlet.messageboards.model.impl.MBThreadModelImpl 041 * @generated 042 */ 043 public interface MBThreadModel extends BaseModel<MBThread>, WorkflowedModel { 044 /* 045 * NOTE FOR DEVELOPERS: 046 * 047 * Never modify or reference this interface directly. All methods that expect a message boards thread model instance should use the {@link MBThread} interface instead. 048 */ 049 050 /** 051 * Gets the primary key of this message boards thread. 052 * 053 * @return the primary key of this message boards thread 054 */ 055 public long getPrimaryKey(); 056 057 /** 058 * Sets the primary key of this message boards thread 059 * 060 * @param primaryKey the primary key of this message boards thread 061 */ 062 public void setPrimaryKey(long primaryKey); 063 064 /** 065 * Gets the thread ID of this message boards thread. 066 * 067 * @return the thread ID of this message boards thread 068 */ 069 public long getThreadId(); 070 071 /** 072 * Sets the thread ID of this message boards thread. 073 * 074 * @param threadId the thread ID of this message boards thread 075 */ 076 public void setThreadId(long threadId); 077 078 /** 079 * Gets the group ID of this message boards thread. 080 * 081 * @return the group ID of this message boards thread 082 */ 083 public long getGroupId(); 084 085 /** 086 * Sets the group ID of this message boards thread. 087 * 088 * @param groupId the group ID of this message boards thread 089 */ 090 public void setGroupId(long groupId); 091 092 /** 093 * Gets the company ID of this message boards thread. 094 * 095 * @return the company ID of this message boards thread 096 */ 097 public long getCompanyId(); 098 099 /** 100 * Sets the company ID of this message boards thread. 101 * 102 * @param companyId the company ID of this message boards thread 103 */ 104 public void setCompanyId(long companyId); 105 106 /** 107 * Gets the category ID of this message boards thread. 108 * 109 * @return the category ID of this message boards thread 110 */ 111 public long getCategoryId(); 112 113 /** 114 * Sets the category ID of this message boards thread. 115 * 116 * @param categoryId the category ID of this message boards thread 117 */ 118 public void setCategoryId(long categoryId); 119 120 /** 121 * Gets the root message ID of this message boards thread. 122 * 123 * @return the root message ID of this message boards thread 124 */ 125 public long getRootMessageId(); 126 127 /** 128 * Sets the root message ID of this message boards thread. 129 * 130 * @param rootMessageId the root message ID of this message boards thread 131 */ 132 public void setRootMessageId(long rootMessageId); 133 134 /** 135 * Gets the root message user ID of this message boards thread. 136 * 137 * @return the root message user ID of this message boards thread 138 */ 139 public long getRootMessageUserId(); 140 141 /** 142 * Sets the root message user ID of this message boards thread. 143 * 144 * @param rootMessageUserId the root message user ID of this message boards thread 145 */ 146 public void setRootMessageUserId(long rootMessageUserId); 147 148 /** 149 * Gets the root message user uuid of this message boards thread. 150 * 151 * @return the root message user uuid of this message boards thread 152 * @throws SystemException if a system exception occurred 153 */ 154 public String getRootMessageUserUuid() throws SystemException; 155 156 /** 157 * Sets the root message user uuid of this message boards thread. 158 * 159 * @param rootMessageUserUuid the root message user uuid of this message boards thread 160 */ 161 public void setRootMessageUserUuid(String rootMessageUserUuid); 162 163 /** 164 * Gets the message count of this message boards thread. 165 * 166 * @return the message count of this message boards thread 167 */ 168 public int getMessageCount(); 169 170 /** 171 * Sets the message count of this message boards thread. 172 * 173 * @param messageCount the message count of this message boards thread 174 */ 175 public void setMessageCount(int messageCount); 176 177 /** 178 * Gets the view count of this message boards thread. 179 * 180 * @return the view count of this message boards thread 181 */ 182 public int getViewCount(); 183 184 /** 185 * Sets the view count of this message boards thread. 186 * 187 * @param viewCount the view count of this message boards thread 188 */ 189 public void setViewCount(int viewCount); 190 191 /** 192 * Gets the last post by user ID of this message boards thread. 193 * 194 * @return the last post by user ID of this message boards thread 195 */ 196 public long getLastPostByUserId(); 197 198 /** 199 * Sets the last post by user ID of this message boards thread. 200 * 201 * @param lastPostByUserId the last post by user ID of this message boards thread 202 */ 203 public void setLastPostByUserId(long lastPostByUserId); 204 205 /** 206 * Gets the last post by user uuid of this message boards thread. 207 * 208 * @return the last post by user uuid of this message boards thread 209 * @throws SystemException if a system exception occurred 210 */ 211 public String getLastPostByUserUuid() throws SystemException; 212 213 /** 214 * Sets the last post by user uuid of this message boards thread. 215 * 216 * @param lastPostByUserUuid the last post by user uuid of this message boards thread 217 */ 218 public void setLastPostByUserUuid(String lastPostByUserUuid); 219 220 /** 221 * Gets the last post date of this message boards thread. 222 * 223 * @return the last post date of this message boards thread 224 */ 225 public Date getLastPostDate(); 226 227 /** 228 * Sets the last post date of this message boards thread. 229 * 230 * @param lastPostDate the last post date of this message boards thread 231 */ 232 public void setLastPostDate(Date lastPostDate); 233 234 /** 235 * Gets the priority of this message boards thread. 236 * 237 * @return the priority of this message boards thread 238 */ 239 public double getPriority(); 240 241 /** 242 * Sets the priority of this message boards thread. 243 * 244 * @param priority the priority of this message boards thread 245 */ 246 public void setPriority(double priority); 247 248 /** 249 * Gets the status of this message boards thread. 250 * 251 * @return the status of this message boards thread 252 */ 253 public int getStatus(); 254 255 /** 256 * Sets the status of this message boards thread. 257 * 258 * @param status the status of this message boards thread 259 */ 260 public void setStatus(int status); 261 262 /** 263 * Gets the status by user ID of this message boards thread. 264 * 265 * @return the status by user ID of this message boards thread 266 */ 267 public long getStatusByUserId(); 268 269 /** 270 * Sets the status by user ID of this message boards thread. 271 * 272 * @param statusByUserId the status by user ID of this message boards thread 273 */ 274 public void setStatusByUserId(long statusByUserId); 275 276 /** 277 * Gets the status by user uuid of this message boards thread. 278 * 279 * @return the status by user uuid of this message boards thread 280 * @throws SystemException if a system exception occurred 281 */ 282 public String getStatusByUserUuid() throws SystemException; 283 284 /** 285 * Sets the status by user uuid of this message boards thread. 286 * 287 * @param statusByUserUuid the status by user uuid of this message boards thread 288 */ 289 public void setStatusByUserUuid(String statusByUserUuid); 290 291 /** 292 * Gets the status by user name of this message boards thread. 293 * 294 * @return the status by user name of this message boards thread 295 */ 296 @AutoEscape 297 public String getStatusByUserName(); 298 299 /** 300 * Sets the status by user name of this message boards thread. 301 * 302 * @param statusByUserName the status by user name of this message boards thread 303 */ 304 public void setStatusByUserName(String statusByUserName); 305 306 /** 307 * Gets the status date of this message boards thread. 308 * 309 * @return the status date of this message boards thread 310 */ 311 public Date getStatusDate(); 312 313 /** 314 * Sets the status date of this message boards thread. 315 * 316 * @param statusDate the status date of this message boards thread 317 */ 318 public void setStatusDate(Date statusDate); 319 320 /** 321 * @deprecated {@link #isApproved} 322 */ 323 public boolean getApproved(); 324 325 /** 326 * Determines if this message boards thread is approved. 327 * 328 * @return <code>true</code> if this message boards thread is approved; <code>false</code> otherwise 329 */ 330 public boolean isApproved(); 331 332 /** 333 * Determines if this message boards thread is a draft. 334 * 335 * @return <code>true</code> if this message boards thread is a draft; <code>false</code> otherwise 336 */ 337 public boolean isDraft(); 338 339 /** 340 * Determines if this message boards thread is expired. 341 * 342 * @return <code>true</code> if this message boards thread is expired; <code>false</code> otherwise 343 */ 344 public boolean isExpired(); 345 346 /** 347 * Determines if this message boards thread is pending. 348 * 349 * @return <code>true</code> if this message boards thread is pending; <code>false</code> otherwise 350 */ 351 public boolean isPending(); 352 353 public boolean isNew(); 354 355 public void setNew(boolean n); 356 357 public boolean isCachedModel(); 358 359 public void setCachedModel(boolean cachedModel); 360 361 public boolean isEscapedModel(); 362 363 public void setEscapedModel(boolean escapedModel); 364 365 public Serializable getPrimaryKeyObj(); 366 367 public void setPrimaryKeyObj(Serializable primaryKeyObj); 368 369 public ExpandoBridge getExpandoBridge(); 370 371 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 372 373 public Object clone(); 374 375 public int compareTo(MBThread mbThread); 376 377 public int hashCode(); 378 379 public CacheModel<MBThread> toCacheModel(); 380 381 public MBThread toEscapedModel(); 382 383 public String toString(); 384 385 public String toXmlString(); 386 }