* @return a list of ordered PortletAction objects describing the
* the actions available for this portlet
*/
protected List buildActionList( RunData rundata, Portlet portlet )
{
PortletInstance instance = portlet.getInstance(rundata);
Portlet real = portlet.getInstance(rundata).getPortlet();
if (!(real instanceof JetspeedFusionPortlet))
{
return super.buildActionList(rundata, portlet);
}
JetspeedFusionPortlet fusion = (JetspeedFusionPortlet)real;
List actions = new Vector();
JetspeedRunData jdata = (JetspeedRunData)rundata;
// disable actions option
if (JetspeedSecurity.areActionsDisabledForAllUsers())
{
return actions;
}
JetspeedUser user = jdata.getJetspeedUser();
if (JetspeedSecurity.areActionsDisabledForAnon() && false == user.hasLoggedIn())
{
return actions;
}
// the portlet is state aware
PortletState state = (PortletState)portlet;
String entityId = instance.getAttribute(J2_ENTITY, "");
serviceNavsPipeline(rundata, entityId);
String pa = getPortletConfig().getInitParameter(PORTLET_APPLICATION_NAME, null);
String pd = getPortletConfig().getInitParameter(PORTLET_DEFINITION_NAME, null);
String registryKey = pa + "::" + pd;