1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.model;
16  
17  import com.liferay.portal.kernel.xml.QName;
18  
19  import java.io.Serializable;
20  
21  import java.util.List;
22  import java.util.Map;
23  import java.util.Properties;
24  import java.util.Set;
25  
26  /**
27   * <a href="PortletApp.java.html"><b><i>View Source</i></b></a>
28   *
29   * @author Brian Wing Shun Chan
30   */
31  public interface PortletApp extends Serializable {
32  
33      public void addEventDefinition(EventDefinition eventDefinition);
34  
35      public void addPortlet(Portlet portlet);
36  
37      public void addPortletFilter(PortletFilter portletFilter);
38  
39      public void addPortletURLListener(PortletURLListener portletURLListener);
40  
41      public void addServletURLPatterns(Set<String> servletURLPatterns);
42  
43      public void addPublicRenderParameter(
44          PublicRenderParameter publicRenderParameter);
45  
46      public void addPublicRenderParameter(String identifier, QName qName);
47  
48      public Map<String, String[]> getContainerRuntimeOptions();
49  
50      public Map<String, String> getCustomUserAttributes();
51  
52      public String getDefaultNamespace();
53  
54      public PortletFilter getPortletFilter(String filterName);
55  
56      public Set<PortletFilter> getPortletFilters();
57  
58      public List<Portlet> getPortlets();
59  
60      public PortletURLListener getPortletURLListener(String listenerClass);
61  
62      public Set<PortletURLListener> getPortletURLListeners();
63  
64      public PublicRenderParameter getPublicRenderParameter(String identifier);
65  
66      public String getServletContextName();
67  
68      public Set<String> getServletURLPatterns();
69  
70      public SpriteImage getSpriteImage(String fileName);
71  
72      public Set<String> getUserAttributes();
73  
74      public boolean isWARFile();
75  
76      public void setDefaultNamespace(String defaultNamespace);
77  
78      public void setSpriteImages(String spriteFileName, Properties properties);
79  
80      public void setWARFile(boolean warFile);
81  
82  }