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 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 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<DLFileShortcut> getFileShortcuts();
080    
081            public DLFileVersion getFileVersion()
082                    throws com.liferay.portal.kernel.exception.PortalException;
083    
084            public DLFileVersion getFileVersion(java.lang.String version)
085                    throws com.liferay.portal.kernel.exception.PortalException;
086    
087            public java.util.List<DLFileVersion> getFileVersions(int status);
088    
089            public int getFileVersionsCount(int status);
090    
091            public DLFolder getFolder()
092                    throws com.liferay.portal.kernel.exception.PortalException;
093    
094            public java.lang.String getIcon();
095    
096            public java.lang.String getIconCssClass();
097    
098            public DLFileVersion getLatestFileVersion(boolean trusted)
099                    throws com.liferay.portal.kernel.exception.PortalException;
100    
101            public com.liferay.portal.kernel.lock.Lock getLock();
102    
103            public java.lang.String getLuceneProperties();
104    
105            public boolean hasLock();
106    
107            public boolean isCheckedOut();
108    
109            public boolean isInHiddenFolder();
110    
111            public void setExtraSettingsProperties(
112                    com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties);
113    }