001    /**
002     * Copyright (c) 2000-2013 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.util;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.util.TreeView;
020    import com.liferay.portal.model.LayoutTypePortlet;
021    import com.liferay.portal.model.User;
022    import com.liferay.portal.theme.ThemeDisplay;
023    
024    import javax.servlet.ServletContext;
025    
026    /**
027     * @author Jorge Ferrer
028     * @author Dennis Ju
029     * @author Brian Wing Shun Chan
030     */
031    public interface PortletLister {
032    
033            public TreeView getTreeView() throws PortalException, SystemException;
034    
035            public void setHierarchicalTree(boolean hierarchicalTree);
036    
037            public void setIncludeInstanceablePortlets(
038                    boolean includeInstanceablePortlets);
039    
040            public void setIteratePortlets(boolean iteratePortlets);
041    
042            public void setLayoutTypePortlet(LayoutTypePortlet layoutTypePortlet);
043    
044            public void setRootNodeName(String rootNodeName);
045    
046            public void setServletContext(ServletContext servletContext);
047    
048            public void setThemeDisplay(ThemeDisplay themeDisplay);
049    
050            public void setUser(User user);
051    
052    }