|
|||||||||||
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.portaltoolkit.JetspeedPortalToolkitService
Simple implementation of the PortalFactoryService.
Nested Class Summary | |
protected static class |
JetspeedPortalToolkitService.VariableInteger
|
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.portaltoolkit.PortalToolkitService |
SERVICE_NAME |
Constructor Summary | |
JetspeedPortalToolkitService()
|
Method Summary | |
protected java.lang.String |
findSkin(Portlets portlets)
Helps locate a skin, recursively if neccesary. |
PortletControl |
getControl(Control control)
Instanciates a PortletControl based on a PSML Control object |
protected PortletControl |
getControl(Control control,
PortletEntry entry)
|
PortletControl |
getControl(java.lang.String name)
Instanciates a PortletControl based on a Registry entry, if available or directly from a classname. |
PortletController |
getController(Controller controller)
Instantiates a PortletController based on a PSML Controller object |
PortletController |
getController(java.lang.String name)
Instanciates a PortletController based on a Registry entry, if available or directly from a classname. |
SecurityReference |
getDefaultSecurityRef(Profile profile)
Gets default security ref based on the profile type (user|role|group). |
SecurityReference |
getDefaultSecurityRef(java.lang.String type)
Gets default security ref based on the profile type (user|role|group). |
protected static MetaData |
getMetaData(Portlets portlets)
Create a MetaData object from a PSML Metainfo object |
protected static java.util.Map |
getParameters(Control control)
Retrieves the parameters from a PSML Control object |
protected static java.util.Map |
getParameters(Controller controller)
Retrieves the parameters from a PSML Controller object |
protected static java.util.Map |
getParameters(Layout layout)
Retrieves a parameter Map from an array of PSML Layout object |
protected static java.util.Map |
getParameters(Portlets portlets)
Fetches the parameters out of a PSML Portlets entry |
protected static java.util.Map |
getParameters(Skin skin)
Retrieves a parameter Map from a PSML skin object |
protected PortletConfig |
getPortletConfig(Portlets portlets)
Given a PSML Portlets, get the value of what its PortletConfig would be. |
protected static int |
getPosition(Layout layout)
Get the position value in a Layout object |
Portlets |
getReference(java.lang.String locatorPath)
Given a locator String path, returns a Portlets collecton |
PortletSet |
getSet(Portlets portlets)
Creates a PortletSet from a PSML portlets description |
protected PortletSet |
getSet(Portlets portlets,
JetspeedPortalToolkitService.VariableInteger theCount)
Creates a PortletSet from a PSML portlets description, updating the portletset name based on its position within the tree |
PortletSkin |
getSkin(Skin skin)
Create a PortletSkin object based on PSML skin description |
PortletSkin |
getSkin(java.lang.String name)
Create a PortletSkin object based on a Registry skin name |
void |
init(javax.servlet.ServletConfig conf)
This is the early initialization method called by the Turbine Service framework |
protected PortletControl |
initControl(PortletControl pc,
Portlet portlet)
Associates a PortletControl with an existing Portlet and returns the Control |
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 JetspeedPortalToolkitService()
Method Detail |
public void init(javax.servlet.ServletConfig conf) throws org.apache.turbine.services.InitializationException
Service
framework
org.apache.turbine.services.InitializationException
public PortletControl getControl(java.lang.String name)
getControl
in interface PortalToolkitService
name
- a PortletControl name available in the registry or a classname
public PortletControl getControl(Control control)
getControl
in interface PortalToolkitService
control
- the PSML control object
protected PortletControl getControl(Control control, PortletEntry entry)
public PortletController getController(java.lang.String name)
getController
in interface PortalToolkitService
name
- a PortletController name available in the registry or a classname
public PortletController getController(Controller controller)
getController
in interface PortalToolkitService
controller
- the PSML controller object
public PortletSkin getSkin(java.lang.String name)
getSkin
in interface PortalToolkitService
name
- the registry SkinEntry name
public PortletSkin getSkin(Skin skin)
getSkin
in interface PortalToolkitService
skin
- the PSML Skin object
public PortletSet getSet(Portlets portlets)
getSet
in interface PortalToolkitService
portlets
- the PSML portlet set description
protected PortletSet getSet(Portlets portlets, JetspeedPortalToolkitService.VariableInteger theCount)
portlets
- the PSML portlet set description
protected PortletControl initControl(PortletControl pc, Portlet portlet)
pc
- the existing PortletControlportlet
- the existing Portlet to be associated with the control
protected PortletConfig getPortletConfig(Portlets portlets)
protected static java.util.Map getParameters(Portlets portlets)
portlets
- the Portlets entry to check for parameters
protected static java.util.Map getParameters(Control control)
control
- the PSML object to explore
protected static java.util.Map getParameters(Controller controller)
controller
- the PSML object to explore
protected static java.util.Map getParameters(Layout layout)
layout
- the Layout object to use
protected static java.util.Map getParameters(Skin skin)
skin
- the Skin object to use
protected static MetaData getMetaData(Portlets portlets)
protected static int getPosition(Layout layout)
layout
- the Layout object to use
public Portlets getReference(java.lang.String locatorPath)
getReference
in interface PortalToolkitService
locatorPath
- ProfileLocator resource path identifier
protected java.lang.String findSkin(Portlets portlets)
Portlets
collection.Portlets
collection has no skin defined, it's
parent is checked, then it's parent's parent and so on until either a skin
is found.
public SecurityReference getDefaultSecurityRef(Profile profile)
getDefaultSecurityRef
in interface PortalToolkitService
profile
-
public SecurityReference getDefaultSecurityRef(java.lang.String type)
getDefaultSecurityRef
in interface PortalToolkitService
type
- of entity to return default security ref for
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |