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