Forums de discussion

Retreive Content Of DLFolder LR6.1.1

thumbnail
mohammad azaruddin, modifié il y a 11 années.

Retreive Content Of DLFolder LR6.1.1

Expert Publications: 492 Date d'inscription: 17/09/12 Publications récentes
Hi All
I'm storing DLFile inside DlFolder of document library.So by using DLFolder Id how can i retreive fileId of all files stored inside DLFolder


Thank You
Azhar
joel stenberg, modifié il y a 11 années.

RE: Retreive Content Of DLFolder LR6.1.1 (Réponse)

New Member Publications: 3 Date d'inscription: 20/02/13 Publications récentes
Use DLAppLocalServiceUtil for Document Library.


DLAppLocalServiceUtil.getFileEntries(repositoryId, folderId);


List<FileEntry> com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil.getFileEntries(long repositoryId, long folderId) throws PortalException, SystemException
Returns the file entries in the folder.
Andrea Chiodi, modifié il y a 9 années.

RE: Retreive Content Of DLFolder LR6.1.1

Junior Member Publications: 33 Date d'inscription: 09/09/10 Publications récentes
Suddendly, in LR6.2, DLAppLocalServiceUtil.getFileEntries(..) and 1DLAppLocalServiceUtil.getFolders disappeared.
What happened ?
What is the alternative way to get the same result now ?
thumbnail
Jitendra Rajput, modifié il y a 11 années.

RE: Retreive Content Of DLFolder LR6.1.1 (Réponse)

Liferay Master Publications: 875 Date d'inscription: 07/01/11 Publications récentes
Did you tried by below method inside DLAppserviceUtil

/**
* Returns all the file entries in the folder.
*
* @param repositoryId the primary key of the file entry's repository
* @param folderId the primary key of the file entry's folder
* @return the file entries in the folder
* @throws PortalException if the folder could not be found
* @throws SystemException if a system exception occurred
*/
public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(
long repositoryId, long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().getFileEntries(repositoryId, folderId);
}
thumbnail
mohammad azaruddin, modifié il y a 11 années.

RE: Retreive Content Of DLFolder LR6.1.1

Expert Publications: 492 Date d'inscription: 17/09/12 Publications récentes
Hi Jitendra Rajput&joel stenberg
Its Working Fineemoticon
Thank you