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.portal.repository.liferayrepository.util;
016    
017    import com.liferay.portal.kernel.repository.model.FileEntry;
018    import com.liferay.portal.kernel.repository.model.FileVersion;
019    import com.liferay.portal.kernel.repository.model.Folder;
020    import com.liferay.portlet.documentlibrary.model.DLFileEntry;
021    import com.liferay.portlet.documentlibrary.model.DLFileVersion;
022    import com.liferay.portlet.documentlibrary.model.DLFolder;
023    import com.liferay.portlet.documentlibrary.util.RepositoryModelUtil;
024    
025    import java.util.List;
026    
027    /**
028     * @author     Alexander Chow
029     * @deprecated As of 7.0.0, replaced by {@link RepositoryModelUtil}
030     */
031    @Deprecated
032    public abstract class LiferayBase {
033    
034            public List<FileEntry> toFileEntries(List<DLFileEntry> dlFileEntries) {
035                    return RepositoryModelUtil.toFileEntries(dlFileEntries);
036            }
037    
038            public List<Object> toFileEntriesAndFolders(
039                    List<Object> dlFileEntriesAndDLFolders) {
040    
041                    return RepositoryModelUtil.toFileEntriesAndFolders(
042                            dlFileEntriesAndDLFolders);
043            }
044    
045            public List<FileVersion> toFileVersions(
046                    List<DLFileVersion> dlFileVersions) {
047    
048                    return RepositoryModelUtil.toFileVersions(dlFileVersions);
049            }
050    
051            public List<Folder> toFolders(List<DLFolder> dlFolders) {
052                    return RepositoryModelUtil.toFolders(dlFolders);
053            }
054    
055    }