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