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.portal.kernel.repository.model;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portlet.expando.model.ExpandoBridge;
020    
021    import java.io.InputStream;
022    
023    import java.util.Date;
024    
025    /**
026     * @author Alexander Chow
027     */
028    public interface FileVersion extends RepositoryModel<FileVersion> {
029    
030            public String getChangeLog();
031    
032            public long getCompanyId();
033    
034            public InputStream getContentStream(boolean incrementCounter)
035                    throws PortalException, SystemException;
036    
037            public Date getCreateDate();
038    
039            public String getDescription();
040    
041            public ExpandoBridge getExpandoBridge();
042    
043            public String getExtension();
044    
045            public String getExtraSettings();
046    
047            public FileEntry getFileEntry() throws PortalException, SystemException;
048    
049            public long getFileEntryId();
050    
051            public long getFileVersionId();
052    
053            public long getGroupId();
054    
055            public String getIcon();
056    
057            public String getMimeType();
058    
059            public long getRepositoryId();
060    
061            public long getSize();
062    
063            public int getStatus();
064    
065            public long getStatusByUserId();
066    
067            public String getStatusByUserName();
068    
069            public String getStatusByUserUuid() throws SystemException;
070    
071            public Date getStatusDate();
072    
073            public String getTitle();
074    
075            public long getUserId();
076    
077            public String getUserName();
078    
079            public String getUserUuid() throws SystemException;
080    
081            public String getUuid();
082    
083            public String getVersion();
084    
085            public boolean isApproved();
086    
087            public boolean isDefaultRepository();
088    
089            public boolean isDraft();
090    
091            public boolean isExpired();
092    
093            public boolean isPending();
094    
095    }