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?

Était-ce utile?

La solution

You can use DLFileEntryMetadataLocalServiceUtil.

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

Fields fields = StorageEngineUtil.getFields(fileEntryMetadata.getDDMStorageId());
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top