public class StrutsPortletToolbarContributorLocator extends BasePortletToolbarContributorLocator
PortletToolbarContributorLocator for
portlets using Struts as MVC pattern, allowing them to have a different
PortletToolbarContributor
for different struts actions.
PortletToolbarContributor implementations must be registered in the OSGI Registry using the following properties:
/blogs/view_entry) the portlet toolbar is extended only
for that specific struts action. If the value is "-" the portlet
toolbar is extended when there is no strutsAction specified in
the request (typically when rendering the first view of the portlet).
A single PortletToolbarContributor implementation can be used for different portlets and struts actions by including multiple times with the same properties.
| Constructor and Description |
|---|
StrutsPortletToolbarContributorLocator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext) |
protected void |
deactivate() |
protected java.lang.String |
getParameterName() |
protected java.lang.String |
getPropertyName() |
protected void |
setModuleServiceLifecycle(com.liferay.portal.kernel.module.framework.ModuleServiceLifecycle moduleServiceLifecycle) |
getKey, getPortletToolbarContributorspublic StrutsPortletToolbarContributorLocator()
protected void activate(org.osgi.framework.BundleContext bundleContext)
activate in class BasePortletToolbarContributorLocatorprotected void deactivate()
deactivate in class BasePortletToolbarContributorLocatorprotected java.lang.String getParameterName()
getParameterName in class BasePortletToolbarContributorLocatorprotected java.lang.String getPropertyName()
getPropertyName in class BasePortletToolbarContributorLocatorprotected void setModuleServiceLifecycle(com.liferay.portal.kernel.module.framework.ModuleServiceLifecycle moduleServiceLifecycle)