SecureRunData sdata = (SecureRunData) data;
String actionId = data.getParameters().getString( "action", "" ).trim();
if ( !actionId.equals( "" ) )
{
Action action;
try
{
action = actionManager.lookup( actionId );
}
catch ( ActionNotFoundException e )
{
getLogger().error( "Cannot find action with the id of " + actionId, e );
return;
}
if ( controller.isAuthorized( sdata.getUser(), actionId ) )
{
try
{
Map m = createContext( data );
m.put( "data", data );
action.execute( m );
}
catch ( Exception e )
{
getLogger().error( e.getMessage(), e );
}