|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.services.BaseInitable org.apache.turbine.services.BaseService org.apache.turbine.services.TurbineBaseService org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService
Simple implementation of the PortalFactoryService.
Field Summary |
Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
Fields inherited from interface org.apache.jetspeed.services.portletfactory.PortletFactoryService |
SERVICE_NAME |
Constructor Summary | |
JetspeedPortletFactoryService()
|
Method Summary | |
protected void |
addParentInitParameters(PortletEntry entry,
java.util.Map hash)
Maps all parameters, not found within the entry , from
the entry 's parent into the entry |
protected java.lang.String |
getClassname(PortletEntry entry)
Retruns the classname defined for this PortletEntry. |
protected static MetaData |
getMetaData(Entry entry)
Create a MetaData object from a PSML Metainfo object |
protected static MetaData |
getMetaData(PortletEntry entry)
Create a MetaData object from a registry Metainfo object |
protected static java.util.Map |
getParameters(Entry entry)
Fetches the parameters out of a PSML Entry |
protected static PortletEntry |
getParentEntry(PortletEntry entry)
|
Portlet |
getPortlet(Entry entry)
Given a PSML Entry return an instanciated Portlet. |
protected Portlet |
getPortlet(java.lang.String classname,
PortletConfig pc,
java.lang.String id)
Instanciates or retrieve from memory cache a portlet corresponding to the passed parameters |
Portlet |
getPortlet(java.lang.String name,
java.lang.String id)
Given a Portlet registry entry name, instanciate it |
protected PortletConfig |
getPortletConfig(PortletEntry portletEntry,
java.lang.String id)
Given a Registry Entry, get the value of what its PortletConfig would be. |
protected SecurityReference |
getSecurityReference(Entry entry,
PortletEntry pEntry)
Figures out how to produce a security reference for this portlet. |
void |
init(javax.servlet.ServletConfig conf)
This is the early initialization method called by the Turbine Service framework |
Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, init, shutdown |
Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, init, setInitableBroker, shutdown |
Constructor Detail |
public JetspeedPortletFactoryService()
Method Detail |
public void init(javax.servlet.ServletConfig conf) throws org.apache.turbine.services.InitializationException
Service
framework
org.apache.turbine.services.InitializationException
public Portlet getPortlet(Entry entry) throws PortletException
getPortlet
in interface PortletFactoryService
entry
- a PSML Entry describing a portlet
PortletException
public Portlet getPortlet(java.lang.String name, java.lang.String id) throws PortletException
getPortlet
in interface PortletFactoryService
name
- the name of a portlet in the registry
PortletException
protected Portlet getPortlet(java.lang.String classname, PortletConfig pc, java.lang.String id) throws PortletException
classname
- the classname of the portlet to instanciatepc
- the PortletConfig object to be associated with this objectid
- the PSML entry's portlet id
PortletException
protected PortletConfig getPortletConfig(PortletEntry portletEntry, java.lang.String id)
protected static java.util.Map getParameters(Entry entry)
entry
- the Entry to check for parameters
protected static MetaData getMetaData(Entry entry)
protected static MetaData getMetaData(PortletEntry entry)
protected static PortletEntry getParentEntry(PortletEntry entry)
protected java.lang.String getClassname(PortletEntry entry)
protected void addParentInitParameters(PortletEntry entry, java.util.Map hash)
entry
, from
the entry
's parent into the entry
protected SecurityReference getSecurityReference(Entry entry, PortletEntry pEntry)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |