001    /**
002     * Copyright (c) 2000-2010 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.model;
016    
017    import com.liferay.portal.kernel.xml.QName;
018    
019    import java.io.Serializable;
020    
021    import java.util.List;
022    import java.util.Map;
023    import java.util.Properties;
024    import java.util.Set;
025    
026    /**
027     * @author Brian Wing Shun Chan
028     */
029    public interface PortletApp extends Serializable {
030    
031            public void addEventDefinition(EventDefinition eventDefinition);
032    
033            public void addPortlet(Portlet portlet);
034    
035            public void addPortletFilter(PortletFilter portletFilter);
036    
037            public void addPortletURLListener(PortletURLListener portletURLListener);
038    
039            public void addServletURLPatterns(Set<String> servletURLPatterns);
040    
041            public void addPublicRenderParameter(
042                    PublicRenderParameter publicRenderParameter);
043    
044            public void addPublicRenderParameter(String identifier, QName qName);
045    
046            public Map<String, String[]> getContainerRuntimeOptions();
047    
048            public Map<String, String> getCustomUserAttributes();
049    
050            public String getDefaultNamespace();
051    
052            public PortletFilter getPortletFilter(String filterName);
053    
054            public Set<PortletFilter> getPortletFilters();
055    
056            public List<Portlet> getPortlets();
057    
058            public PortletURLListener getPortletURLListener(String listenerClass);
059    
060            public Set<PortletURLListener> getPortletURLListeners();
061    
062            public PublicRenderParameter getPublicRenderParameter(String identifier);
063    
064            public String getServletContextName();
065    
066            public Set<String> getServletURLPatterns();
067    
068            public SpriteImage getSpriteImage(String fileName);
069    
070            public Set<String> getUserAttributes();
071    
072            public boolean isWARFile();
073    
074            public void setDefaultNamespace(String defaultNamespace);
075    
076            public void setSpriteImages(String spriteFileName, Properties properties);
077    
078            public void setWARFile(boolean warFile);
079    
080    }