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