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.kernel.portlet;
16  
17  import com.liferay.portal.kernel.job.Scheduler;
18  import com.liferay.portal.kernel.poller.PollerProcessor;
19  import com.liferay.portal.kernel.pop.MessageListener;
20  import com.liferay.portal.kernel.search.Indexer;
21  import com.liferay.portal.kernel.search.OpenSearch;
22  import com.liferay.portal.kernel.servlet.URLEncoder;
23  
24  import java.util.Locale;
25  import java.util.Map;
26  import java.util.ResourceBundle;
27  
28  import javax.portlet.Portlet;
29  import javax.portlet.PreferencesValidator;
30  
31  import javax.servlet.ServletContext;
32  
33  /**
34   * <a href="PortletBag.java.html"><b><i>View Source</i></b></a>
35   *
36   * @author Brian Wing Shun Chan
37   */
38  public interface PortletBag extends Cloneable {
39  
40      public Object clone();
41  
42      public ConfigurationAction getConfigurationActionInstance();
43  
44      public FriendlyURLMapper getFriendlyURLMapperInstance();
45  
46      public Indexer getIndexerInstance();
47  
48      public OpenSearch getOpenSearchInstance();
49  
50      public PollerProcessor getPollerProcessorInstance();
51  
52      public MessageListener getPopMessageListenerInstance();
53  
54      public Portlet getPortletInstance();
55  
56      public PortletLayoutListener getPortletLayoutListenerInstance();
57  
58      public String getPortletName();
59  
60      public PreferencesValidator getPreferencesValidatorInstance();
61  
62      public ResourceBundle getResourceBundle(Locale locale);
63  
64      public Map<String, ResourceBundle> getResourceBundles();
65  
66      public Scheduler getSchedulerInstance();
67  
68      public ServletContext getServletContext();
69  
70      public URLEncoder getURLEncoderInstance();
71  
72      public void setPortletInstance(Portlet portletInstance);
73  
74      public void setPortletName(String portletName);
75  
76  }