liferay/liferay-portal — pull request #400 by KocsisDaniel (2013-07-16 09:23:04+00:00)
Title: LPS-37777

Hey Julio,

this is a small fix for DL to not count the portlet file repo entries (and other non-default DL repository entries) like the exported lar, etc... when do the exporting, staging process. Before the rewrite we used to have these queries to get the exported elements:

List folders = FolderUtil.findByRepositoryId(portletDataContext.getScopeGroupId());

List fileEntries = FileEntryUtil.findByR_F(
portletDataContext.getScopeGroupId(), LFolderConstants.DEFAULT_PARENT_FOLDER_ID);

Which means to use the scope group Id as repository Id in the queries, so I followed this way and added the same restrictions to the dynamic query we generate.

thanks,
Daniel