001    /**
002     * Copyright (c) 2000-2011 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 long getCustom1ImageId();
040    
041            public long getCustom2ImageId();
042    
043            public String getDescription();
044    
045            public ExpandoBridge getExpandoBridge();
046    
047            public String getExtension();
048    
049            public String getExtraSettings();
050    
051            public FileEntry getFileEntry() throws PortalException, SystemException;
052    
053            public long getFileEntryId();
054    
055            public long getFileVersionId();
056    
057            public long getGroupId();
058    
059            public String getIcon();
060    
061            public String getImageType();
062    
063            public long getLargeImageId();
064    
065            public String getMimeType();
066    
067            public long getRepositoryId();
068    
069            public long getSize();
070    
071            public long getSmallImageId();
072    
073            public int getStatus();
074    
075            public long getStatusByUserId();
076    
077            public String getStatusByUserName();
078    
079            public String getStatusByUserUuid() throws SystemException;
080    
081            public Date getStatusDate();
082    
083            public String getTitle();
084    
085            public long getUserId();
086    
087            public String getUserName();
088    
089            public String getUserUuid() throws SystemException;
090    
091            public String getVersion();
092    
093            public boolean isApproved();
094    
095            public boolean isDefaultRepository();
096    
097            public boolean isDraft();
098    
099            public boolean isExpired();
100    
101            public boolean isPending();
102    
103    }