001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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    }