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