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.kernel.repository;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    
019    import java.util.List;
020    
021    /**
022     * @author Iv??n Zaera
023     */
024    public interface RepositoryProvider {
025    
026            public LocalRepository getFileEntryLocalRepository(long fileEntryId)
027                    throws PortalException;
028    
029            public Repository getFileEntryRepository(long fileEntryId)
030                    throws PortalException;
031    
032            public LocalRepository getFileShortcutLocalRepository(long fileShortcutId)
033                    throws PortalException;
034    
035            public Repository getFileShortcutRepository(
036                    long fileShortcutId) throws PortalException;
037    
038            public LocalRepository getFileVersionLocalRepository(long fileVersionId)
039                    throws PortalException;
040    
041            public Repository getFileVersionRepository(
042                    long fileVersionId) throws PortalException;
043    
044            public LocalRepository getFolderLocalRepository(long folderId)
045                    throws PortalException;
046    
047            public Repository getFolderRepository(long folderId) throws PortalException;
048    
049            public List<LocalRepository> getGroupLocalRepositories(long groupId)
050                    throws PortalException;
051    
052            public List<Repository> getGroupRepositories(long groupId)
053                    throws PortalException;
054    
055            public LocalRepository getImageLocalRepository(long imageId)
056                    throws PortalException;
057    
058            public Repository getImageRepository(long imageId) throws PortalException;
059    
060            public LocalRepository getLocalRepository(long repositoryId)
061                    throws PortalException;
062    
063            public Repository getRepository(long repositoryId) throws PortalException;
064    
065    }