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 DLFileShortcut service. Represents a row in the "DLFileShortcut" database table, with each column mapped to a property of this class.
026     *
027     * @author Brian Wing Shun Chan
028     * @see DLFileShortcutModel
029     * @see com.liferay.portlet.documentlibrary.model.impl.DLFileShortcutImpl
030     * @see com.liferay.portlet.documentlibrary.model.impl.DLFileShortcutModelImpl
031     * @generated
032     */
033    @ImplementationClassName("com.liferay.portlet.documentlibrary.model.impl.DLFileShortcutImpl")
034    @ProviderType
035    public interface DLFileShortcut extends DLFileShortcutModel, 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.DLFileShortcutImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
041             */
042            public static final Accessor<DLFileShortcut, Long> FILE_SHORTCUT_ID_ACCESSOR =
043                    new Accessor<DLFileShortcut, Long>() {
044                            @Override
045                            public Long get(DLFileShortcut dlFileShortcut) {
046                                    return dlFileShortcut.getFileShortcutId();
047                            }
048    
049                            @Override
050                            public Class<Long> getAttributeClass() {
051                                    return Long.class;
052                            }
053    
054                            @Override
055                            public Class<DLFileShortcut> getTypeClass() {
056                                    return DLFileShortcut.class;
057                            }
058                    };
059    
060            @Override
061            public java.lang.String buildTreePath()
062                    throws com.liferay.portal.kernel.exception.PortalException;
063    
064            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder()
065                    throws com.liferay.portal.kernel.exception.PortalException;
066    
067            public com.liferay.portal.kernel.repository.model.FileVersion getFileVersion()
068                    throws com.liferay.portal.kernel.exception.PortalException;
069    
070            public com.liferay.portal.kernel.repository.model.Folder getFolder()
071                    throws com.liferay.portal.kernel.exception.PortalException;
072    
073            public java.lang.String getToTitle();
074    
075            public boolean isInHiddenFolder();
076    }