Package com.denimgroup.threadfix.data.enums

Examples of com.denimgroup.threadfix.data.enums.SourceCodeAccessLevel


   
    if (scanParametersBean != null && application != null) {
     
      FrameworkType frameworkType =
          FrameworkType.getFrameworkType(scanParametersBean.getApplicationType());
      SourceCodeAccessLevel accessLevel =
          SourceCodeAccessLevel.getSourceCodeAccessLevel(scanParametersBean.getSourceCodeAccessLevel());
     
      application.setFrameworkType(frameworkType.toString());
      application.setSourceCodeAccessLevel(accessLevel.toString());
     
      if (scanParametersBean.getSourceCodeUrl() != null &&
          scanParametersBean.getSourceCodeUrl().length() < Application.URL_LENGTH) {
        application.setRepositoryUrl(scanParametersBean.getSourceCodeUrl());
      }
View Full Code Here


    public static FindingProcessor getProcessor(@Nonnull Application application,
                                                @Nonnull Scan scan) {

        LOG.info("Determining proper FindingProcesser implementation for application " + application.getName() + " and new scan.");

        SourceCodeAccessLevel accessLevel = getSourceCodeAccessLevel(application, scan);
        File rootFile = getRootFile(application);
        FrameworkType frameworkType = getFrameworkType(application, accessLevel, rootFile, scan);

        ProjectConfig config = new ProjectConfig(frameworkType, accessLevel, rootFile, "/");
View Full Code Here

    @Nonnull
    private static SourceCodeAccessLevel getSourceCodeAccessLevel(
            @Nonnull Application application,
            @Nonnull Scan scan) {

        SourceCodeAccessLevel accessLevel = SourceCodeAccessLevel.NONE;

        if (application.getSourceCodeAccessLevelEnum() != SourceCodeAccessLevel.DETECT) {
            accessLevel = application.getSourceCodeAccessLevelEnum();
        } else if (!nullOrEmpty(application.getRepositoryUrl()) ||
                !nullOrEmpty(application.getRepositoryFolder())) {
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.data.enums.SourceCodeAccessLevel

Copyright © 2018 www.massapicom. 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.