001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.util;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.model.LayoutTypePortlet;
019    import com.liferay.portal.kernel.model.User;
020    import com.liferay.portal.kernel.theme.ThemeDisplay;
021    
022    import javax.servlet.ServletContext;
023    
024    /**
025     * @author Jorge Ferrer
026     * @author Dennis Ju
027     * @author Brian Wing Shun Chan
028     */
029    public interface PortletLister {
030    
031            public TreeView getTreeView() throws PortalException;
032    
033            public void setHierarchicalTree(boolean hierarchicalTree);
034    
035            public void setIncludeInstanceablePortlets(
036                    boolean includeInstanceablePortlets);
037    
038            public void setIteratePortlets(boolean iteratePortlets);
039    
040            public void setLayoutTypePortlet(LayoutTypePortlet layoutTypePortlet);
041    
042            public void setRootNodeName(String rootNodeName);
043    
044            public void setServletContext(ServletContext servletContext);
045    
046            public void setThemeDisplay(ThemeDisplay themeDisplay);
047    
048            public void setUser(User user);
049    
050    }