
META-INF.resources.wiki_admin.view_node_deleted_attachments.jsp Maven / Gradle / Ivy
The newest version!
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<%@ include file="/wiki/init.jsp" %>
<%
WikiNode node = (WikiNode)request.getAttribute(WikiWebKeys.WIKI_NODE);
List attachmentsFileEntries = node.getDeletedAttachmentsFiles();
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("mvcRenderCommandName", "/wiki/view_pages");
portletURL.setParameter("redirect", currentURL);
portletURL.setParameter("nodeId", String.valueOf(node.getNodeId()));
PortalUtil.addPortletBreadcrumbEntry(request, node.getName(), portletURL.toString());
portletURL.setParameter("mvcRenderCommandName", "/wiki/view_node_deleted_attachments");
PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "attachments-recycle-bin"), portletURL.toString());
WikiURLHelper wikiURLHelper = new WikiURLHelper(wikiRequestHelper, renderResponse, wikiGroupServiceConfiguration);
PortletURL backToNodeURL = wikiURLHelper.getBackToNodeURL(node);
portletDisplay.setShowBackIcon(true);
portletDisplay.setURLBack(backToNodeURL.toString());
renderResponse.setTitle(LanguageUtil.get(request, "removed-attachments"));
%>
<%
int attachmentsFileEntriesCount = attachmentsFileEntries.size();
String emptyResultsMessage = "this-wiki-node-does-not-have-file-attachments-in-the-recycle-bin";
PortletURL iteratorURL = renderResponse.createRenderURL();
iteratorURL.setParameter("mvcRenderCommandName", "/wiki/view_node_deleted_attachments");
iteratorURL.setParameter("redirect", currentURL);
iteratorURL.setParameter("nodeId", String.valueOf(node.getNodeId()));
iteratorURL.setParameter("viewTrashAttachments", Boolean.TRUE.toString());
boolean paginate = true;
boolean showPageAttachmentAction = true;
int status = WorkflowConstants.STATUS_IN_TRASH;
%>
<%@ include file="/wiki/attachments_list.jspf" %>
new Liferay.RestoreEntry(
{
checkEntryURL: '<%= checkEntryURL.toString() %>',
duplicateEntryURL: '<%= duplicateEntryURL.toString() %>',
namespace: ' '
}
);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy