protected List<DLFileEntry> doFindBy_G_U_F_M( long userId, String mimeType, QueryDefinition<DLFileEntry> queryDefinition) throws Exception { List<Long> folderIds = ListUtil.toList(new long[] {_defaultRepositoryFolder.getFolderId()}); String[] mimeTypes = null; if (mimeType != null) { mimeTypes = new String[] {mimeType}; } return DLFileEntryLocalServiceUtil.getFileEntries( _group.getGroupId(), userId, folderIds, mimeTypes, queryDefinition); }
protected List<DLFileEntry> doFindBy_G_U_R_F_M( long userId, List<Long> repositoryIds, List<Long> folderIds, String mimeType, QueryDefinition<DLFileEntry> queryDefinition) throws Exception { String[] mimeTypes = null; if (mimeType != null) { mimeTypes = new String[] {mimeType}; } return DLFileEntryLocalServiceUtil.getFileEntries( _group.getGroupId(), userId, repositoryIds, folderIds, mimeTypes, queryDefinition); }