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.documentlibrary.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 DLFileVersion service. Represents a row in the "DLFileVersion" 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.documentlibrary.model.impl.DLFileVersionModelImpl} 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.documentlibrary.model.impl.DLFileVersionImpl}. 035 * </p> 036 * 037 * @author Brian Wing Shun Chan 038 * @see DLFileVersion 039 * @see com.liferay.portlet.documentlibrary.model.impl.DLFileVersionImpl 040 * @see com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl 041 * @generated 042 */ 043 public interface DLFileVersionModel extends BaseModel<DLFileVersion>, 044 WorkflowedModel { 045 /* 046 * NOTE FOR DEVELOPERS: 047 * 048 * Never modify or reference this interface directly. All methods that expect a d l file version model instance should use the {@link DLFileVersion} interface instead. 049 */ 050 051 /** 052 * Gets the primary key of this d l file version. 053 * 054 * @return the primary key of this d l file version 055 */ 056 public long getPrimaryKey(); 057 058 /** 059 * Sets the primary key of this d l file version 060 * 061 * @param primaryKey the primary key of this d l file version 062 */ 063 public void setPrimaryKey(long primaryKey); 064 065 /** 066 * Gets the file version ID of this d l file version. 067 * 068 * @return the file version ID of this d l file version 069 */ 070 public long getFileVersionId(); 071 072 /** 073 * Sets the file version ID of this d l file version. 074 * 075 * @param fileVersionId the file version ID of this d l file version 076 */ 077 public void setFileVersionId(long fileVersionId); 078 079 /** 080 * Gets the group ID of this d l file version. 081 * 082 * @return the group ID of this d l file version 083 */ 084 public long getGroupId(); 085 086 /** 087 * Sets the group ID of this d l file version. 088 * 089 * @param groupId the group ID of this d l file version 090 */ 091 public void setGroupId(long groupId); 092 093 /** 094 * Gets the company ID of this d l file version. 095 * 096 * @return the company ID of this d l file version 097 */ 098 public long getCompanyId(); 099 100 /** 101 * Sets the company ID of this d l file version. 102 * 103 * @param companyId the company ID of this d l file version 104 */ 105 public void setCompanyId(long companyId); 106 107 /** 108 * Gets the user ID of this d l file version. 109 * 110 * @return the user ID of this d l file version 111 */ 112 public long getUserId(); 113 114 /** 115 * Sets the user ID of this d l file version. 116 * 117 * @param userId the user ID of this d l file version 118 */ 119 public void setUserId(long userId); 120 121 /** 122 * Gets the user uuid of this d l file version. 123 * 124 * @return the user uuid of this d l file version 125 * @throws SystemException if a system exception occurred 126 */ 127 public String getUserUuid() throws SystemException; 128 129 /** 130 * Sets the user uuid of this d l file version. 131 * 132 * @param userUuid the user uuid of this d l file version 133 */ 134 public void setUserUuid(String userUuid); 135 136 /** 137 * Gets the user name of this d l file version. 138 * 139 * @return the user name of this d l file version 140 */ 141 @AutoEscape 142 public String getUserName(); 143 144 /** 145 * Sets the user name of this d l file version. 146 * 147 * @param userName the user name of this d l file version 148 */ 149 public void setUserName(String userName); 150 151 /** 152 * Gets the create date of this d l file version. 153 * 154 * @return the create date of this d l file version 155 */ 156 public Date getCreateDate(); 157 158 /** 159 * Sets the create date of this d l file version. 160 * 161 * @param createDate the create date of this d l file version 162 */ 163 public void setCreateDate(Date createDate); 164 165 /** 166 * Gets the file entry ID of this d l file version. 167 * 168 * @return the file entry ID of this d l file version 169 */ 170 public long getFileEntryId(); 171 172 /** 173 * Sets the file entry ID of this d l file version. 174 * 175 * @param fileEntryId the file entry ID of this d l file version 176 */ 177 public void setFileEntryId(long fileEntryId); 178 179 /** 180 * Gets the extension of this d l file version. 181 * 182 * @return the extension of this d l file version 183 */ 184 @AutoEscape 185 public String getExtension(); 186 187 /** 188 * Sets the extension of this d l file version. 189 * 190 * @param extension the extension of this d l file version 191 */ 192 public void setExtension(String extension); 193 194 /** 195 * Gets the mime type of this d l file version. 196 * 197 * @return the mime type of this d l file version 198 */ 199 @AutoEscape 200 public String getMimeType(); 201 202 /** 203 * Sets the mime type of this d l file version. 204 * 205 * @param mimeType the mime type of this d l file version 206 */ 207 public void setMimeType(String mimeType); 208 209 /** 210 * Gets the title of this d l file version. 211 * 212 * @return the title of this d l file version 213 */ 214 @AutoEscape 215 public String getTitle(); 216 217 /** 218 * Sets the title of this d l file version. 219 * 220 * @param title the title of this d l file version 221 */ 222 public void setTitle(String title); 223 224 /** 225 * Gets the description of this d l file version. 226 * 227 * @return the description of this d l file version 228 */ 229 @AutoEscape 230 public String getDescription(); 231 232 /** 233 * Sets the description of this d l file version. 234 * 235 * @param description the description of this d l file version 236 */ 237 public void setDescription(String description); 238 239 /** 240 * Gets the change log of this d l file version. 241 * 242 * @return the change log of this d l file version 243 */ 244 @AutoEscape 245 public String getChangeLog(); 246 247 /** 248 * Sets the change log of this d l file version. 249 * 250 * @param changeLog the change log of this d l file version 251 */ 252 public void setChangeLog(String changeLog); 253 254 /** 255 * Gets the extra settings of this d l file version. 256 * 257 * @return the extra settings of this d l file version 258 */ 259 @AutoEscape 260 public String getExtraSettings(); 261 262 /** 263 * Sets the extra settings of this d l file version. 264 * 265 * @param extraSettings the extra settings of this d l file version 266 */ 267 public void setExtraSettings(String extraSettings); 268 269 /** 270 * Gets the version of this d l file version. 271 * 272 * @return the version of this d l file version 273 */ 274 @AutoEscape 275 public String getVersion(); 276 277 /** 278 * Sets the version of this d l file version. 279 * 280 * @param version the version of this d l file version 281 */ 282 public void setVersion(String version); 283 284 /** 285 * Gets the size of this d l file version. 286 * 287 * @return the size of this d l file version 288 */ 289 public long getSize(); 290 291 /** 292 * Sets the size of this d l file version. 293 * 294 * @param size the size of this d l file version 295 */ 296 public void setSize(long size); 297 298 /** 299 * Gets the status of this d l file version. 300 * 301 * @return the status of this d l file version 302 */ 303 public int getStatus(); 304 305 /** 306 * Sets the status of this d l file version. 307 * 308 * @param status the status of this d l file version 309 */ 310 public void setStatus(int status); 311 312 /** 313 * Gets the status by user ID of this d l file version. 314 * 315 * @return the status by user ID of this d l file version 316 */ 317 public long getStatusByUserId(); 318 319 /** 320 * Sets the status by user ID of this d l file version. 321 * 322 * @param statusByUserId the status by user ID of this d l file version 323 */ 324 public void setStatusByUserId(long statusByUserId); 325 326 /** 327 * Gets the status by user uuid of this d l file version. 328 * 329 * @return the status by user uuid of this d l file version 330 * @throws SystemException if a system exception occurred 331 */ 332 public String getStatusByUserUuid() throws SystemException; 333 334 /** 335 * Sets the status by user uuid of this d l file version. 336 * 337 * @param statusByUserUuid the status by user uuid of this d l file version 338 */ 339 public void setStatusByUserUuid(String statusByUserUuid); 340 341 /** 342 * Gets the status by user name of this d l file version. 343 * 344 * @return the status by user name of this d l file version 345 */ 346 @AutoEscape 347 public String getStatusByUserName(); 348 349 /** 350 * Sets the status by user name of this d l file version. 351 * 352 * @param statusByUserName the status by user name of this d l file version 353 */ 354 public void setStatusByUserName(String statusByUserName); 355 356 /** 357 * Gets the status date of this d l file version. 358 * 359 * @return the status date of this d l file version 360 */ 361 public Date getStatusDate(); 362 363 /** 364 * Sets the status date of this d l file version. 365 * 366 * @param statusDate the status date of this d l file version 367 */ 368 public void setStatusDate(Date statusDate); 369 370 /** 371 * @deprecated {@link #isApproved} 372 */ 373 public boolean getApproved(); 374 375 /** 376 * Determines if this d l file version is approved. 377 * 378 * @return <code>true</code> if this d l file version is approved; <code>false</code> otherwise 379 */ 380 public boolean isApproved(); 381 382 /** 383 * Determines if this d l file version is a draft. 384 * 385 * @return <code>true</code> if this d l file version is a draft; <code>false</code> otherwise 386 */ 387 public boolean isDraft(); 388 389 /** 390 * Determines if this d l file version is expired. 391 * 392 * @return <code>true</code> if this d l file version is expired; <code>false</code> otherwise 393 */ 394 public boolean isExpired(); 395 396 /** 397 * Determines if this d l file version is pending. 398 * 399 * @return <code>true</code> if this d l file version is pending; <code>false</code> otherwise 400 */ 401 public boolean isPending(); 402 403 public boolean isNew(); 404 405 public void setNew(boolean n); 406 407 public boolean isCachedModel(); 408 409 public void setCachedModel(boolean cachedModel); 410 411 public boolean isEscapedModel(); 412 413 public void setEscapedModel(boolean escapedModel); 414 415 public Serializable getPrimaryKeyObj(); 416 417 public void setPrimaryKeyObj(Serializable primaryKeyObj); 418 419 public ExpandoBridge getExpandoBridge(); 420 421 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 422 423 public Object clone(); 424 425 public int compareTo(DLFileVersion dlFileVersion); 426 427 public int hashCode(); 428 429 public CacheModel<DLFileVersion> toCacheModel(); 430 431 public DLFileVersion toEscapedModel(); 432 433 public String toString(); 434 435 public String toXmlString(); 436 }