Class PortletApplicationImpl
java.lang.Object
org.gatein.pc.portlet.impl.jsr168.PortletApplicationImpl
- All Implemented Interfaces:
PortletApplicationObject,PortletApplication
- Version:
- $Revision: 7226 $
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PortletApplicationContext.protected final ContainerPortletApplicationInfo.protected final org.exoplatform.services.log.LogLogger.protected PortletContextImpl.protected LinkedHashMap<String, PortletContainer> .protected javax.portlet.PortletURLGenerationListener. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPortletContainer(PortletContainer container) Add a container.voidaddPortletFilter(PortletFilter filter) Add a filter.Returns the context related to this application.getId()Return the web app id.getInfo()<T> TgetListener(Class<T> type) getPortletContainer(String name) Returns a specific container or null if it does not existReturns the set of related portlet containers.javax.portlet.PortletContextvoidremovePortletContainer(PortletContainer container) Remove a container.voidremovePortletFilter(PortletFilter filter) Remove a filter.voidsetContext(PortletApplicationContext context) Set the context required by that application.voidstart()Starts the application only.voidstop()Stops the application only.toString()
-
Field Details
-
info
. -
log
protected final org.exoplatform.services.log.Log logLogger. -
context
. -
portlets
. -
portletContext
. -
urlListener
protected javax.portlet.PortletURLGenerationListener urlListener.
-
-
Constructor Details
-
PortletApplicationImpl
- Parameters:
info- the portlet application info
-
-
Method Details
-
setContext
Description copied from interface:PortletApplicationObjectSet the context required by that application.- Specified by:
setContextin interfacePortletApplicationObject- Parameters:
context- the context
-
getId
Description copied from interface:PortletApplicationReturn the web app id.- Specified by:
getIdin interfacePortletApplication- Returns:
- the id
-
addPortletFilter
Description copied from interface:PortletApplicationObjectAdd a filter.- Specified by:
addPortletFilterin interfacePortletApplicationObject- Parameters:
filter- the filter
-
removePortletFilter
Description copied from interface:PortletApplicationObjectRemove a filter.- Specified by:
removePortletFilterin interfacePortletApplicationObject- Parameters:
filter- the filter
-
getInfo
-
addPortletContainer
Description copied from interface:PortletApplicationObjectAdd a container.- Specified by:
addPortletContainerin interfacePortletApplicationObject- Parameters:
container- the container
-
removePortletContainer
Description copied from interface:PortletApplicationObjectRemove a container.- Specified by:
removePortletContainerin interfacePortletApplicationObject- Parameters:
container- the container
-
start
Description copied from interface:PortletApplicationObjectStarts the application only. It does not take care of starting its components.- Specified by:
startin interfacePortletApplicationObject- Throws:
Exception- any exception preventing the start
-
stop
public void stop()Description copied from interface:PortletApplicationObjectStops the application only. It does not take care of stopping its components.- Specified by:
stopin interfacePortletApplicationObject
-
getPortletContext
public javax.portlet.PortletContext getPortletContext() -
getListener
-
getPortletContainers
Description copied from interface:PortletApplicationReturns the set of related portlet containers.- Specified by:
getPortletContainersin interfacePortletApplication- Returns:
- the portlet containers
-
getPortletContainer
Description copied from interface:PortletApplicationReturns a specific container or null if it does not exist- Specified by:
getPortletContainerin interfacePortletApplication- Parameters:
name- the container id- Returns:
- the portlet container
-
getContext
Description copied from interface:PortletApplicationObjectReturns the context related to this application.- Specified by:
getContextin interfacePortletApplication- Specified by:
getContextin interfacePortletApplicationObject- Returns:
- the context
-
toString
-