1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.Map;
22  import java.util.Properties;
23  import java.util.Set;
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  }