Examples of addValidationWarning()


Examples of org.sonatype.nexus.configuration.validator.ApplicationValidationResponse.addValidationWarning()

          + LocalStatus.IN_SERVICE + "\" and \"" + LocalStatus.OUT_OF_SERVICE + "\")", e));
    }

    // indexable
    if (cfg.isIndexable() && (!"maven2".equals(cfg.getProviderHint()))) {
      response.addValidationWarning(new ValidationMessage("indexable", "Indexing isn't supported for \""
          + cfg.getProviderHint() + "\" repositories, only Maven2 repositories are indexable!"));

      cfg.setIndexable(false);

      response.setModified(true);
View Full Code Here

Examples of org.sonatype.nexus.configuration.validator.ApplicationValidationResponse.addValidationWarning()

        item.getId()))) {
      String newId = generateId();

      item.setId(newId);

      response.addValidationWarning("Fixed wrong route ID from '" + item.getId() + "' to '" + newId + "'");

      response.setModified(true);
    }

    if (StringUtils.isEmpty(item.getGroupId())) {
View Full Code Here

Examples of org.sonatype.nexus.configuration.validator.ApplicationValidationResponse.addValidationWarning()

    }

    if (StringUtils.isEmpty(item.getGroupId())) {
      item.setGroupId(CPathMappingItem.ALL_GROUPS);

      response.addValidationWarning("Fixed route without groupId set, set to ALL_GROUPS to keep backward comp, ID='"
          + item.getId() + "'.");

      response.setModified(true);
    }
View Full Code Here

Examples of org.sonatype.nexus.rest.model.StatusConfigurationValidationResponse.addValidationWarning()

    validation.setValid(true);

    validation.addValidationError("error1");
    validation.addValidationError("error2");

    validation.addValidationWarning("warning1");
    validation.addValidationWarning("warning2");
    status.setConfigurationValidationResponse(validation);

    resourceResponse.setData(status);
View Full Code Here

Examples of org.sonatype.nexus.rest.model.StatusConfigurationValidationResponse.addValidationWarning()

    validation.addValidationError("error1");
    validation.addValidationError("error2");

    validation.addValidationWarning("warning1");
    validation.addValidationWarning("warning2");
    status.setConfigurationValidationResponse(validation);

    resourceResponse.setData(status);

    this.marshalUnmarchalThenCompare(resourceResponse, this.xstreamXML); // FIXME: JSON READER CANNOT PARSE DATES
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.