문제

Im adding Documents with this snippet of code:

fileEntry = DLAppServiceUtil.addFileEntry(
                                    repositoryId, folderId, filename, MimeTypesUtil.getContentType(strFile), filename,
                                    description, changelog, in, srcfile.length(), serviceContext);

Documents are shown in Asset Publisher and Documents and Media Portlet. After this im adding Vocabularies and Categories programatically, which are shown correctly in Categories Navigation Portlet. Then i'm adding the Categories to the documents. This Categories are shown in Asset Publisher correctly, but when i select a Category in Category Navigation Portlet i don't get any result. In Documents and Media Portlet selection by Category is working without problems.

This is the code i'm using to attach Categories:

DLAppHelperLocalServiceUtil.updateAsset(userId, fileEntry, fileEntry.getLatestFileVersion(), categoryIds, null, null);

I would be very glad anybody got a hint.

도움이 되었습니까?

해결책

Problem was they did not have same scope.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top