public String publish( IPentahoSession session, int loggingLevel ) {
// from IPentahoPublisher
try {
PluginMessageLogger.clear();
IPluginManager pluginManager = PentahoSystem.get( IPluginManager.class, "IPluginManager", session );
if ( pluginManager == null ) {
// we cannot continue without the PluginSettings
Logger.error( getClass().toString(), Messages.getInstance().getErrorString(
"PluginAdapter.ERROR_0001_PLUGIN_MANAGER_NOT_CONFIGURED" ) ); //$NON-NLS-1$
return Messages.getInstance().getString( "PluginAdapter.ERROR_0001_PLUGIN_MANAGER_NOT_CONFIGURED" ); //$NON-NLS-1$
}
pluginManager.reload( session );
String rtn = PluginMessageLogger.getAll().toString();
return rtn;
} finally {
PluginMessageLogger.clear();
}