Question

I have a custom document library portlet, where I have to show metadata of attached document in another page, can anyone suggest how can I show these fields?

Was it helpful?

Solution

You can use DLFileEntryMetadataLocalServiceUtil.

DLFileEntryMetadata fileEntryMetadata = DLFileEntryMetadataLocalServiceUtil
                      .getFileEntryMetadata(ddmStructure.getStructureId(), fileVersionId);

Fields fields = StorageEngineUtil.getFields(fileEntryMetadata.getDDMStorageId());
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top