return config.getConfigProperty( key, defaultvalue );
}
@Override
protected String lookupVariable( final String property ) {
final IApplicationContext context = PentahoSystem.getApplicationContext();
if ( context != null ) {
final String contextParam = context.getProperty( property );
if ( contextParam != null ) {
return contextParam;
}
}
final IParameterProvider globalParameters = PentahoSystem.getGlobalParameters();
if ( globalParameters != null ) {
final String globalParam = globalParameters.getStringParameter( property, null );
if ( globalParam != null ) {
return globalParam;
}
}
final String systemSetting = PentahoSystem.getSystemSetting( property, null );
if ( systemSetting != null ) {
return systemSetting;
}
if ( context != null ) {
if ( "base-url".equals( property ) ) { //$NON-NLS-1$
return context.getFullyQualifiedServerURL();
}
}
return null;
}