/* * (C) Copyright 2010 Nuxeo SA (http://nuxeo.com/) and contributors. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl.html * * 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. * * Contributors: * Anahide Tchertchian */ package org.nuxeo.ecm.platform.contentview.jsf; import java.io.Serializable; /** * Content view layout definition * * @author Anahide Tchertchian * @since 5.4 */ public interface ContentViewLayout extends Serializable { /** * Returns the name of the layout */ String getName(); /** * Returns a title for this content view layout */ String getTitle(); /** * Returns a boolean stating if title has to be translated */ boolean getTranslateTitle(); /** * Returns the icon relative path for this content view layout */ String getIconPath(); /** * Returns true if CSV export is enabled for this layout. Defaults to * false. * * @since 5.4.2 */ boolean getShowCSVExport(); /** * Returns true if PDF export is enabled for this layout. Defaults to * false. * * @since 5.4.2 */ boolean getShowPDFExport(); /** * Returns true if syndication links are enabled for this layout. Defaults * to false. * * @since 5.5 */ boolean getShowSyndicationLinks(); /** * Returns true if 'slide show' link is enabled for this layout. Defaults * to false. * * @since 6.0 */ boolean getShowSlideshow(); /** * Returns true if 'edit columns' link is enabled for this layout. Defaults * to false. * * @since 6.0 */ boolean getShowEditColumns(); /** * Returns true if 'edit rows' link is enabled for this layout. Defaults to * false. * <p> * This marker is only useful to handle layout column selection when * columns are actually rows (or display content differently that using * columns). * * @since 6.0 */ boolean getShowEditRows(); /** * Returns true if 'spreadsheet' link is enabled for this layout. Defaults * to false. * * @since 6.0 */ boolean getShowSpreadsheet(); /** * Returns the filter display type to handle different kinds of filter * display. * * @since 5.5 */ String getFilterDisplayType(); /** * Returns true is the filter should be unfolded by default. * <p> * Does not have any impact on the filter display if filter display type is * "quick" (i.e. opens in a popup) * * @since 5.7.2 */ boolean isFilterUnfolded(); ContentViewLayout clone(); }