Search in sources :

Example 1 with ProjectSyncOptions

use of com.synopsys.integration.detect.workflow.blackduck.project.options.ProjectSyncOptions in project synopsys-detect by blackducksoftware.

the class DetectConfigurationFactory method createDetectProjectServiceOptions.

public ProjectSyncOptions createDetectProjectServiceOptions() {
    ProjectVersionPhaseType projectVersionPhase = detectConfiguration.getValue(DetectProperties.DETECT_PROJECT_VERSION_PHASE);
    ProjectVersionDistributionType projectVersionDistribution = detectConfiguration.getValue(DetectProperties.DETECT_PROJECT_VERSION_DISTRIBUTION);
    Integer projectTier = detectConfiguration.getNullableValue(DetectProperties.DETECT_PROJECT_TIER);
    String projectDescription = detectConfiguration.getNullableValue(DetectProperties.DETECT_PROJECT_DESCRIPTION);
    String projectVersionNotes = detectConfiguration.getNullableValue(DetectProperties.DETECT_PROJECT_VERSION_NOTES);
    List<ProjectCloneCategoriesType> cloneCategories = detectConfiguration.getValue(DetectProperties.DETECT_PROJECT_CLONE_CATEGORIES).representedValues();
    Boolean projectLevelAdjustments = detectConfiguration.getValue(DetectProperties.DETECT_PROJECT_LEVEL_ADJUSTMENTS);
    Boolean forceProjectVersionUpdate = detectConfiguration.getValue(DetectProperties.DETECT_PROJECT_VERSION_UPDATE);
    String projectVersionNickname = detectConfiguration.getNullableValue(DetectProperties.DETECT_PROJECT_VERSION_NICKNAME);
    return new ProjectSyncOptions(projectVersionPhase, projectVersionDistribution, projectTier, projectDescription, projectVersionNotes, cloneCategories, forceProjectVersionUpdate, projectVersionNickname, projectLevelAdjustments);
}
Also used : ProjectVersionDistributionType(com.synopsys.integration.blackduck.api.generated.enumeration.ProjectVersionDistributionType) ProjectVersionPhaseType(com.synopsys.integration.blackduck.api.manual.temporary.enumeration.ProjectVersionPhaseType) ProjectCloneCategoriesType(com.synopsys.integration.blackduck.api.generated.enumeration.ProjectCloneCategoriesType) ProjectSyncOptions(com.synopsys.integration.detect.workflow.blackduck.project.options.ProjectSyncOptions)

Aggregations

ProjectCloneCategoriesType (com.synopsys.integration.blackduck.api.generated.enumeration.ProjectCloneCategoriesType)1 ProjectVersionDistributionType (com.synopsys.integration.blackduck.api.generated.enumeration.ProjectVersionDistributionType)1 ProjectVersionPhaseType (com.synopsys.integration.blackduck.api.manual.temporary.enumeration.ProjectVersionPhaseType)1 ProjectSyncOptions (com.synopsys.integration.detect.workflow.blackduck.project.options.ProjectSyncOptions)1