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.document.library.kernel.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.annotation.ImplementationClassName;
020    import com.liferay.portal.kernel.model.PersistedModel;
021    import com.liferay.portal.kernel.model.TreeModel;
022    import com.liferay.portal.kernel.util.Accessor;
023    
024    /**
025     * The extended model interface for the DLFileVersion service. Represents a row in the "DLFileVersion" database table, with each column mapped to a property of this class.
026     *
027     * @author Brian Wing Shun Chan
028     * @see DLFileVersionModel
029     * @see com.liferay.portlet.documentlibrary.model.impl.DLFileVersionImpl
030     * @see com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl
031     * @generated
032     */
033    @ImplementationClassName("com.liferay.portlet.documentlibrary.model.impl.DLFileVersionImpl")
034    @ProviderType
035    public interface DLFileVersion extends DLFileVersionModel, PersistedModel,
036            TreeModel {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify this interface directly. Add methods to {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
041             */
042            public static final Accessor<DLFileVersion, Long> FILE_VERSION_ID_ACCESSOR = new Accessor<DLFileVersion, Long>() {
043                            @Override
044                            public Long get(DLFileVersion dlFileVersion) {
045                                    return dlFileVersion.getFileVersionId();
046                            }
047    
048                            @Override
049                            public Class<Long> getAttributeClass() {
050                                    return Long.class;
051                            }
052    
053                            @Override
054                            public Class<DLFileVersion> getTypeClass() {
055                                    return DLFileVersion.class;
056                            }
057                    };
058    
059            @Override
060            public java.lang.String buildTreePath()
061                    throws com.liferay.portal.kernel.exception.PortalException;
062    
063            public java.io.InputStream getContentStream(boolean incrementCounter)
064                    throws com.liferay.portal.kernel.exception.PortalException;
065    
066            public java.util.List<com.liferay.dynamic.data.mapping.kernel.DDMStructure> getDDMStructures()
067                    throws com.liferay.portal.kernel.exception.PortalException;
068    
069            public DLFileEntryType getDLFileEntryType()
070                    throws com.liferay.portal.kernel.exception.PortalException;
071    
072            public com.liferay.portal.kernel.util.UnicodeProperties getExtraSettingsProperties();
073    
074            public DLFileEntry getFileEntry()
075                    throws com.liferay.portal.kernel.exception.PortalException;
076    
077            public DLFolder getFolder()
078                    throws com.liferay.portal.kernel.exception.PortalException;
079    
080            public java.lang.String getIcon();
081    
082            public void setExtraSettingsProperties(
083                    com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties);
084    }