Example usage for com.liferay.portal.kernel.repository Repository getFileEntries

List of usage examples for com.liferay.portal.kernel.repository Repository getFileEntries

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.repository Repository getFileEntries.

Prototype

public List<FileEntry> getFileEntries(long folderId, String[] mimeTypes, int start, int end,
            OrderByComparator<FileEntry> obc) throws PortalException;

Source Link

Usage

From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.java

License:Open Source License

/**
 * Returns an ordered range of all the file entries with the file entry type
 * in the folder.//from   w w w.  j a  v  a 2  s  .  c o  m
 *
 * @param  repositoryId the primary key of the repository
 * @param  folderId the primary key of the folder
 * @param  fileEntryTypeId the primary key of the file entry type
 * @param  start the lower bound of the range of results
 * @param  end the upper bound of the range of results (not inclusive)
 * @param  obc the comparator to order the results by (optionally
 *         <code>null</code>)
 * @return the range of file entries with the file entry type in the folder
 *         ordered by <code>null</code>
 * @throws PortalException if the folder could not be found
 * @throws SystemException if a system exception occurred
 */
public List<FileEntry> getFileEntries(long repositoryId, long folderId, long fileEntryTypeId, int start,
        int end, OrderByComparator obc) throws PortalException, SystemException {

    Repository repository = getRepository(repositoryId);

    return repository.getFileEntries(folderId, fileEntryTypeId, start, end, obc);
}