List of usage examples for com.liferay.portal.kernel.repository LocalRepository getFileEntry
public FileEntry getFileEntry(long folderId, String title) throws PortalException;
From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.java
License:Open Source License
/** * Returns the file entry with the title in the folder. * * @param groupId the primary key of the file entry's group * @param folderId the primary key of the file entry's folder * @param title the file entry's title//from w ww. j av a 2s.c om * @return the file entry with the title in the folder * @throws PortalException if the file entry could not be found * @throws SystemException if a system exception occurred */ public FileEntry getFileEntry(long groupId, long folderId, String title) throws PortalException, SystemException { try { LocalRepository localRepository = getLocalRepository(groupId); return localRepository.getFileEntry(folderId, title); } catch (NoSuchFileEntryException nsfee) { } LocalRepository localRepository = getLocalRepository(folderId, 0, 0); return localRepository.getFileEntry(folderId, title); }