List of usage examples for com.liferay.portal.kernel.servlet.taglib.ui URLToolbarItem URLToolbarItem
URLToolbarItem
From source file:com.liferay.document.library.web.internal.display.context.logic.UIItemsBuilder.java
License:Open Source License
public void addDownloadToolbarItem(List<ToolbarItem> toolbarItems) throws PortalException { if (!_fileEntryDisplayContextHelper.isDownloadActionAvailable()) { return;// www.j a v a2 s. c om } _addURLUIItem(new URLToolbarItem(), toolbarItems, DLUIItemKeys.DOWNLOAD, LanguageUtil.get(_resourceBundle, "download"), DLUtil.getDownloadURL(_fileEntry, _fileVersion, _themeDisplay, StringPool.BLANK)); }
From source file:com.liferay.document.library.web.internal.display.context.logic.UIItemsBuilder.java
License:Open Source License
public void addEditToolbarItem(List<ToolbarItem> toolbarItems) throws PortalException { if (!_fileEntryDisplayContextHelper.isEditActionAvailable()) { return;//from w w w. j a va 2 s.com } PortletURL portletURL = _getRenderURL("/document_library/edit_file_entry"); _addURLUIItem(new URLToolbarItem(), toolbarItems, DLUIItemKeys.EDIT, LanguageUtil.get(_resourceBundle, "edit"), portletURL.toString()); }
From source file:com.liferay.document.library.web.internal.display.context.logic.UIItemsBuilder.java
License:Open Source License
public void addMoveToolbarItem(List<ToolbarItem> toolbarItems) throws PortalException { if (!_fileEntryDisplayContextHelper.isMoveActionAvailable()) { return;/*from w w w.j a v a 2 s. c om*/ } PortletURL portletURL = _getRenderURL("/document_library/move_entry"); _addURLUIItem(new URLToolbarItem(), toolbarItems, DLUIItemKeys.MOVE, LanguageUtil.get(_resourceBundle, "move"), portletURL.toString()); }