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 java.io.Serializable;
18  
19  import java.util.Map;
20  import java.util.Properties;
21  import java.util.Set;
22  
23  import javax.xml.namespace.QName;
24  
25  /**
26   * <a href="PortletApp.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   */
30  public interface PortletApp extends Serializable {
31  
32      public void addEventDefinition(EventDefinition eventDefinition);
33  
34      public void addPortletFilter(PortletFilter portletFilter);
35  
36      public void addPortletURLListener(PortletURLListener portletURLListener);
37  
38      public void addPublicRenderParameter(
39          PublicRenderParameter publicRenderParameter);
40  
41      public void addPublicRenderParameter(String identifier, QName qName);
42  
43      public Map<String, String[]> getContainerRuntimeOptions();
44  
45      public Map<String, String> getCustomUserAttributes();
46  
47      public String getDefaultNamespace();
48  
49      public PortletFilter getPortletFilter(String filterName);
50  
51      public Set<PortletFilter> getPortletFilters();
52  
53      public PortletURLListener getPortletURLListener(String listenerClass);
54  
55      public Set<PortletURLListener> getPortletURLListeners();
56  
57      public PublicRenderParameter getPublicRenderParameter(String identifier);
58  
59      public String getServletContextName();
60  
61      public Set<String> getServletURLPatterns();
62  
63      public SpriteImage getSpriteImage(String fileName);
64  
65      public Set<String> getUserAttributes();
66  
67      public boolean isWARFile();
68  
69      public void setDefaultNamespace(String defaultNamespace);
70  
71      public void setSpriteImages(String spriteFileName, Properties properties);
72  
73      public void setWARFile(boolean warFile);
74  
75  }