Search in sources :

Example 1 with JFreeReportValidateParametersComponent

use of org.pentaho.platform.plugin.action.jfreereport.components.JFreeReportValidateParametersComponent in project pentaho-platform by pentaho.

the class JFreeReportComponent method validateAction.

/**
 * We cannot validate the parameters of all components, as the required parameters might not have been created.
 *
 * @return
 */
@Override
public boolean validateAction() {
    boolean result = true;
    if (!(getActionDefinition() instanceof JFreeReportAction)) {
        error(Messages.getInstance().getErrorString("ComponentBase.ERROR_0001_UNKNOWN_ACTION_TYPE", // $NON-NLS-1$
        getActionDefinition().getElement().asXML()));
        result = false;
    } else {
        validateParametersComponent = new JFreeReportValidateParametersComponent();
        if (initAndValidate(validateParametersComponent) == false) {
            // $NON-NLS-1$
            error(Messages.getInstance().getString("JFreeReportComponent.ERROR_0025_COULD_NOT_VALIDATE"));
            result = false;
        }
    }
    return result;
}
Also used : JFreeReportAction(org.pentaho.actionsequence.dom.actions.JFreeReportAction) JFreeReportValidateParametersComponent(org.pentaho.platform.plugin.action.jfreereport.components.JFreeReportValidateParametersComponent)

Aggregations

JFreeReportAction (org.pentaho.actionsequence.dom.actions.JFreeReportAction)1 JFreeReportValidateParametersComponent (org.pentaho.platform.plugin.action.jfreereport.components.JFreeReportValidateParametersComponent)1