@Override protected Summary doGetSummary( Document document, Locale locale, String snippet, PortletURL portletURL) { LiferayPortletURL liferayPortletURL = (LiferayPortletURL) portletURL; liferayPortletURL.setLifecycle(PortletRequest.ACTION_PHASE); try { liferayPortletURL.setWindowState(LiferayWindowState.EXCLUSIVE); } catch (WindowStateException wse) { } String folderId = document.get(Field.ENTRY_CLASS_PK); portletURL.setParameter("struts_action", "/journal/view"); portletURL.setParameter("folderId", folderId); Summary summary = createSummary(document, Field.TITLE, Field.DESCRIPTION); summary.setMaxContentLength(200); summary.setPortletURL(portletURL); return summary; }
@Override protected Summary doGetSummary( Document document, Locale locale, String snippet, PortletURL portletURL, PortletRequest portletRequest, PortletResponse portletResponse) { LiferayPortletURL liferayPortletURL = (LiferayPortletURL) portletURL; liferayPortletURL.setLifecycle(PortletRequest.ACTION_PHASE); try { liferayPortletURL.setWindowState(LiferayWindowState.EXCLUSIVE); } catch (WindowStateException wse) { } String fileEntryId = document.get(Field.ENTRY_CLASS_PK); portletURL.setParameter("struts_action", "/document_library/get_file"); portletURL.setParameter("fileEntryId", fileEntryId); Summary summary = createSummary(document, Field.TITLE, Field.CONTENT); summary.setMaxContentLength(200); summary.setPortletURL(portletURL); return summary; }
@Override protected Summary doGetSummary( Document document, Locale locale, String snippet, PortletURL portletURL) { String entryId = document.get(Field.ENTRY_CLASS_PK); portletURL.setParameter("struts_action", "/bookmarks/view_entry"); portletURL.setParameter("entryId", entryId); Summary summary = createSummary(document, Field.TITLE, Field.URL); summary.setPortletURL(portletURL); return summary; }
@Override protected Summary doGetSummary( Document document, Locale locale, String snippet, PortletURL portletURL, PortletRequest portletRequest, PortletResponse portletResponse) throws Exception { String exportImportConfigurationId = document.get(Field.ENTRY_CLASS_PK); Summary summary = createSummary(document, Field.TITLE, Field.DESCRIPTION); portletURL.setParameter("struts_action", "/layouts_admin/edit_export_configuration"); portletURL.setParameter("exportImportConfigurationId", exportImportConfigurationId); summary.setPortletURL(portletURL); return summary; }