Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Searchable Asset wih REST-Portlet?
Hey Liferay-People,
I am whacking my head against Assets and Asset-Permissions (Liferay 7.2).
Maybe you Liferay-Gurus can enlighten me...
How can I create a SEARCHABLE Asset from within a REST-Module?
I am atm only able to create a searchable asset with a MVC-Portlet...
Cheers,
Fredi
I am whacking my head against Assets and Asset-Permissions (Liferay 7.2).
Maybe you Liferay-Gurus can enlighten me...
How can I create a SEARCHABLE Asset from within a REST-Module?
I am atm only able to create a searchable asset with a MVC-Portlet...
Cheers,
Fredi
Fredi B:
How can I create a SEARCHABLE Asset from within a REST-Module?
I am atm only able to create a searchable asset with a MVC-Portlet...
I would encapsulate such code in a service - then whoever uses that service would create the same kind of asset, with all the same data and mechanics.
Hey Olaf,
thx for your response.
Can you elaborate a little bit further?
I create an Asset via MVC Portlet... In this MVC-Portlet is the AssetRenderer and AssetRendererFactory and their AssetViews (abstract.jsp + fullcontent.jsp)
Example: _newsLocalService.addTestNews(groupId, serviceContext)
Result: I can find it in Asset Publisher and Liferay Search.
By just using the same add-Command (_newsLocalService.addTestNews(groupId, serviceContext)) in my REST-Module the Asset can not be found.
I have the feeling that this might be related to the Ressource-Permission defined in ServiceBuilderModule?
thx for your response.
Can you elaborate a little bit further?
I create an Asset via MVC Portlet... In this MVC-Portlet is the AssetRenderer and AssetRendererFactory and their AssetViews (abstract.jsp + fullcontent.jsp)
Example: _newsLocalService.addTestNews(groupId, serviceContext)
Result: I can find it in Asset Publisher and Liferay Search.
By just using the same add-Command (_newsLocalService.addTestNews(groupId, serviceContext)) in my REST-Module the Asset can not be found.
I have the feeling that this might be related to the Ressource-Permission defined in ServiceBuilderModule?