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.portlet;
16  
17  import javax.portlet.EventPortlet;
18  import javax.portlet.Portlet;
19  import javax.portlet.PortletConfig;
20  import javax.portlet.PortletContext;
21  import javax.portlet.PortletException;
22  import javax.portlet.ResourceServingPortlet;
23  
24  /**
25   * <a href="InvokerPortlet.java.html"><b><i>View Source</i></b></a>
26   *
27   * @author Michael Young
28   */
29  public interface InvokerPortlet
30      extends Cloneable, EventPortlet, Portlet, ResourceServingPortlet {
31  
32      public static final String INIT_INVOKER_PORTLET_NAME =
33          "com.liferay.portal.invokerPortletName";
34  
35      public InvokerPortlet create(
36              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
37              PortletContext portletContext)
38          throws PortletException;
39  
40      public InvokerPortlet create(
41              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
42              PortletConfig portletConfig, PortletContext portletContext,
43              boolean checkAuthToken, boolean facesPortlet, boolean strutsPortlet,
44              boolean strutsBridgePortlet)
45          throws PortletException;
46  
47      public Portlet getPortlet();
48  
49      public ClassLoader getPortletClassLoader();
50  
51      public PortletConfig getPortletConfig();
52  
53      public PortletContext getPortletContext();
54  
55      public Portlet getPortletInstance();
56  
57      public Integer getExpCache();
58  
59      public boolean isCheckAuthToken();
60  
61      public boolean isDestroyable();
62  
63      public boolean isFacesPortlet();
64  
65      public boolean isStrutsBridgePortlet();
66  
67      public boolean isStrutsPortlet();
68  
69      public void prepare(
70              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
71              PortletContext portletContext)
72          throws PortletException;
73  
74      public void prepare(
75              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
76              PortletConfig portletConfig, PortletContext portletContext,
77              boolean checkAuthToken, boolean facesPortlet, boolean strutsPortlet,
78              boolean strutsBridgePortlet)
79          throws PortletException;
80  
81      public void setPortletFilters() throws PortletException;
82  
83  }