/** {@inheritDoc} */ @Override public void validateSonarServer(ActionParametersMap params, ErrorCollection errorCollection) { LOGGER.debug("Validating Sonar JDBC Properties"); if (!params.getBoolean(CFG_SONAR_SERVER_CONFIGURED)) { super.validateSonarServer(params, errorCollection); } }
/** {@inheritDoc} */ @Override public void validate( @NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection) { super.validate(params, errorCollection); validateSonarServer(params, errorCollection); validateSonarProject(params, errorCollection); }
/** {@inheritDoc} */ @Override public void populateContextForView( @NotNull Map<String, Object> context, @NotNull TaskDefinition taskDefinition) { super.populateContextForView(context, taskDefinition); taskConfiguratorHelper.populateContextWithConfiguration( context, taskDefinition, FIELDS_TO_COPY); context.put( CFG_SONAR_SERVER_CONFIGURED, Boolean.valueOf(taskDefinition.getConfiguration().get(CFG_SONAR_SERVER_CONFIGURED))); context.put( CFG_SONAR_PROJECT_CONFIGURED, Boolean.valueOf(taskDefinition.getConfiguration().get(CFG_SONAR_PROJECT_CONFIGURED))); }
/** {@inheritDoc} */ @Override public void populateContextForEdit( @NotNull Map<String, Object> context, @NotNull TaskDefinition taskDefinition) { super.populateContextForEdit(context, taskDefinition); taskConfiguratorHelper.populateContextWithConfiguration( context, taskDefinition, FIELDS_TO_COPY); boolean serverConfig = Boolean.valueOf(taskDefinition.getConfiguration().get(CFG_SONAR_SERVER_CONFIGURED)); boolean projectConfig = Boolean.valueOf(taskDefinition.getConfiguration().get(CFG_SONAR_PROJECT_CONFIGURED)); if (!serverConfig) { context.put(CFG_SONAR_SERVER_CONFIGURED, Boolean.FALSE.toString()); } if (!projectConfig) { context.put(CFG_SONAR_PROJECT_CONFIGURED, Boolean.FALSE.toString()); } }
/** {@inheritDoc} */ @Override public void populateContextForCreate(Map<String, Object> context) { super.populateContextForCreate(context); context.put(CFG_SONAR_SERVER_CONFIGURED, Boolean.FALSE.toString()); context.put(CFG_SONAR_PROJECT_CONFIGURED, Boolean.FALSE.toString()); }