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.portlet.documentlibrary.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.annotation.ImplementationClassName;
020    import com.liferay.portal.kernel.util.Accessor;
021    import com.liferay.portal.model.PersistedModel;
022    import com.liferay.portal.model.TreeModel;
023    
024    /**
025     * The extended model interface for the DLFileEntry service. Represents a row in the "DLFileEntry" database table, with each column mapped to a property of this class.
026     *
027     * @author Brian Wing Shun Chan
028     * @see DLFileEntryModel
029     * @see com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl
030     * @see com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl
031     * @generated
032     */
033    @ImplementationClassName("com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl")
034    @ProviderType
035    public interface DLFileEntry extends DLFileEntryModel, PersistedModel, TreeModel {
036            /*
037             * NOTE FOR DEVELOPERS:
038             *
039             * Never modify this interface directly. Add methods to {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
040             */
041            public static final Accessor<DLFileEntry, Long> FILE_ENTRY_ID_ACCESSOR = new Accessor<DLFileEntry, Long>() {
042                            @Override
043                            public Long get(DLFileEntry dlFileEntry) {
044                                    return dlFileEntry.getFileEntryId();
045                            }
046    
047                            @Override
048                            public Class<Long> getAttributeClass() {
049                                    return Long.class;
050                            }
051    
052                            @Override
053                            public Class<DLFileEntry> getTypeClass() {
054                                    return DLFileEntry.class;
055                            }
056                    };
057    
058            @Override
059            public java.lang.String buildTreePath()
060                    throws com.liferay.portal.kernel.exception.PortalException;
061    
062            public java.io.InputStream getContentStream()
063                    throws com.liferay.portal.kernel.exception.PortalException;
064    
065            public java.io.InputStream getContentStream(java.lang.String version)
066                    throws com.liferay.portal.kernel.exception.PortalException;
067    
068            public long getDataRepositoryId();
069    
070            public java.util.Map<java.lang.String, com.liferay.dynamic.data.mapping.kernel.DDMFormValues> getDDMFormValuesMap(
071                    long fileVersionId)
072                    throws com.liferay.portal.kernel.exception.PortalException;
073    
074            public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType()
075                    throws com.liferay.portal.kernel.exception.PortalException;
076    
077            public com.liferay.portal.kernel.util.UnicodeProperties getExtraSettingsProperties();
078    
079            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts();
080    
081            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion()
082                    throws com.liferay.portal.kernel.exception.PortalException;
083    
084            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
085                    java.lang.String version)
086                    throws com.liferay.portal.kernel.exception.PortalException;
087    
088            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
089                    int status);
090    
091            public int getFileVersionsCount(int status);
092    
093            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder()
094                    throws com.liferay.portal.kernel.exception.PortalException;
095    
096            public java.lang.String getIcon();
097    
098            public java.lang.String getIconCssClass();
099    
100            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
101                    boolean trusted)
102                    throws com.liferay.portal.kernel.exception.PortalException;
103    
104            public com.liferay.portal.kernel.lock.Lock getLock();
105    
106            public java.lang.String getLuceneProperties();
107    
108            public boolean hasLock();
109    
110            public boolean isCheckedOut();
111    
112            public boolean isInHiddenFolder();
113    
114            public void setExtraSettingsProperties(
115                    com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties);
116    }