com.liferay.journal.web.internal.display.context.JournalViewMoreMenuItemsManagementToolbarDisplayContext Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.journal.web.internal.display.context;
import com.liferay.frontend.taglib.clay.servlet.taglib.display.context.SearchContainerManagementToolbarDisplayContext;
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
import com.liferay.portal.kernel.portlet.url.builder.PortletURLBuilder;
import javax.servlet.http.HttpServletRequest;
/**
* @author Eudaldo Alonso
*/
public class JournalViewMoreMenuItemsManagementToolbarDisplayContext
extends SearchContainerManagementToolbarDisplayContext {
public JournalViewMoreMenuItemsManagementToolbarDisplayContext(
HttpServletRequest httpServletRequest,
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
JournalViewMoreMenuItemsDisplayContext
journalViewMoreMenuItemsDisplayContext)
throws Exception {
super(
httpServletRequest, liferayPortletRequest, liferayPortletResponse,
journalViewMoreMenuItemsDisplayContext.
getDDMStructuresSearchContainer());
}
@Override
public String getClearResultsURL() {
return PortletURLBuilder.create(
getPortletURL()
).setKeywords(
StringPool.BLANK
).buildString();
}
@Override
public String getComponentId() {
return "journalViewMoreMenuItemsManagementToolbar";
}
@Override
public Boolean isSelectable() {
return false;
}
@Override
protected String[] getOrderByKeys() {
return new String[] {"name", "modified-date"};
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy