站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

PortletContainer - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.portlet.container
Class PortletContainer

java.lang.Object
  extended byorg.jboss.portal.portlet.container.PortletContainer
All Implemented Interfaces:
Portlet

public class PortletContainer
extends java.lang.Object
implements Portlet


Field Summary
protected  PortletApplicationImpl application
          .
protected  PortletResourceBundleManager bundleMgr
          .
protected  java.lang.String className
          The portlet implementation class name.
protected  PortletConfig config
          The portlet config.
protected  ContentTypes contentTypes
          .
protected  PortletInfo info
          Return info.
protected  JBossPortletMetaData jbossMetaData
          .
protected  org.apache.log4j.Logger log
          Logger.
protected  PortletMetaData metaData
          .
protected  Portlet portlet
          The portlet instance.
protected  org.apache.log4j.Logger portletLog
          Logger for portlet.
protected  PreferencesValidator preferencesValidator
          The preference validator, this is not exposed as runtime meta data as it is only used by the JSR 168 portlet container implementation.
protected  java.util.Map securityRoleRefsMap
          Give the correspondance between role name and role link.
protected  boolean started
          Are we started or not.
protected  java.util.Set userDataConstraints
          User data constraint.
protected  Valve valve
          The invocation valve.
 
Constructor Summary
PortletContainer(PortletApplicationImpl application, PortletMetaData metaData, JBossPortletMetaData jbossMetaData)
           
 
Method Summary
 void dispatch(PortletInvocation invocation)
           
 PortletApplication getApplication()
           
 PortletConfig getConfig()
           
 ContentTypes getContentTypes()
           
 java.lang.String getId()
          Return the portlet identifier.
 PortletInfo getInfo()
          Return the portlet info.
 JBossPortletMetaData getJBossMetaData()
           
 PortletMetaData getMetaData()
           
 java.lang.String getName()
           
 Portlet getPortlet()
           
 PreferencesValidator getPreferencesValidator()
           
 java.util.Map getSecurityRoleRefsMap()
           
 java.util.Set getUserDataConstraints()
           
 Valve getValve()
           
protected  Result invokeAction(ActionInvocation invocation)
           
protected  Result invokeRender(RenderInvocation invocation)
           
 boolean isRemote()
          Determines whether the described portlet is remote or not.
 boolean isStarted()
           
 void start()
           
 void stop()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected final org.apache.log4j.Logger log
Logger.


application

protected PortletApplicationImpl application
.


metaData

protected PortletMetaData metaData
.


jbossMetaData

protected JBossPortletMetaData jbossMetaData
.


className

protected java.lang.String className
The portlet implementation class name.


config

protected PortletConfig config
The portlet config.


portlet

protected Portlet portlet
The portlet instance.


contentTypes

protected ContentTypes contentTypes
.


bundleMgr

protected PortletResourceBundleManager bundleMgr
.


valve

protected final Valve valve
The invocation valve.


securityRoleRefsMap

protected java.util.Map securityRoleRefsMap
Give the correspondance between role name and role link.


started

protected boolean started
Are we started or not.


userDataConstraints

protected java.util.Set userDataConstraints
User data constraint.


portletLog

protected org.apache.log4j.Logger portletLog
Logger for portlet.


info

protected PortletInfo info
Return info.


preferencesValidator

protected PreferencesValidator preferencesValidator
The preference validator, this is not exposed as runtime meta data as it is only used by the JSR 168 portlet container implementation.

Constructor Detail

PortletContainer

public PortletContainer(PortletApplicationImpl application,
                        PortletMetaData metaData,
                        JBossPortletMetaData jbossMetaData)
Method Detail

getInfo

public PortletInfo getInfo()
Description copied from interface: Portlet
Return the portlet info.

Specified by:
getInfo in interface Portlet

getId

public java.lang.String getId()
Description copied from interface: Portlet
Return the portlet identifier.

Specified by:
getId in interface Portlet

isRemote

public boolean isRemote()
Description copied from interface: Portlet
Determines whether the described portlet is remote or not.

Specified by:
isRemote in interface Portlet
Returns:
true if the described portlet runs in a remote context (such as WSRP), false otherwise

getName

public java.lang.String getName()

getMetaData

public PortletMetaData getMetaData()

getJBossMetaData

public JBossPortletMetaData getJBossMetaData()

isStarted

public boolean isStarted()

start

public void start()
           throws java.lang.Exception,
                  PortletInitializationException
Throws:
java.lang.Exception
PortletInitializationException

stop

public void stop()

getConfig

public PortletConfig getConfig()

getPortlet

public Portlet getPortlet()

getContentTypes

public ContentTypes getContentTypes()

getSecurityRoleRefsMap

public java.util.Map getSecurityRoleRefsMap()

getApplication

public PortletApplication getApplication()

getValve

public Valve getValve()

getUserDataConstraints

public java.util.Set getUserDataConstraints()

getPreferencesValidator

public PreferencesValidator getPreferencesValidator()

toString

public java.lang.String toString()

dispatch

public void dispatch(PortletInvocation invocation)
              throws PortletInvokerException,
                     InvocationException
Throws:
PortletInvokerException
InvocationException

invokeAction

protected Result invokeAction(ActionInvocation invocation)
                       throws java.lang.Exception
Throws:
java.lang.Exception

invokeRender

protected Result invokeRender(RenderInvocation invocation)
                       throws java.lang.Exception
Throws:
java.lang.Exception