2

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?

Prakash K
  • 11,669
  • 6
  • 51
  • 109
Akash
  • 816
  • 3
  • 13
  • 38

1 Answers1

3

You can use DLFileEntryMetadataLocalServiceUtil.

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

Fields fields = StorageEngineUtil.getFields(fileEntryMetadata.getDDMStorageId());
Prakash K
  • 11,669
  • 6
  • 51
  • 109
Ankit P
  • 534
  • 4
  • 12