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