One article my translated and displayed in many country sites. I am traying to retrieve all possible urls and maybe titles for one article.
Currently I am trying to retrieve them from Layout, but I get back empty list. What I am missing here? Or there is some other possibility?
List<Long> layoutIds = JournalContentSearchLocalServiceUtil.getLayoutIds(groupId, false, articleId)
out.println(layoutIds) // i get empty list
for (Long oneId : layoutIds){
Layout layout = LayoutLocalServiceUtil.getLayout(groupId, false, oneId)
String urlFromLayout = layout.getFriendlyURL()}
This won't be a full answer, but it's more than a comment and might set you on the right track (though with a bit of work that you'd need to do by yourself):
When you say "Article": Do you mean a Web Content Article? Such an article can have a "Display Page", a page with its own URL that you can request, showing it fully rendered on a page.
Naming hints for Liferay's Java-API:
Journal, e.g.JournalArticleServiceLayoutin the API (e.g. LayoutService), multiple pages are contained in aLayoutSet(e.g. a public or private LayoutSet)LocalServicecontain the low-level access which has no access control, while those ending inService(but without "Local") are the permission checked equivalents.LayoutTemplateandLayoutFriendlyURLrelated APIsJavadoc likely won't help you much, but here's something to browse on to explore the API.