Class ProjectSettingsGenerationResult


  • public class ProjectSettingsGenerationResult
    extends Object
    A result of project settings generation
    • Constructor Detail

      • ProjectSettingsGenerationResult

        public ProjectSettingsGenerationResult()
    • Method Detail

      • getProjectVersions

        @NotNull
        public Map<String,​String> getProjectVersions()
        Returns map (project uuid -> its configs version). Version can be missing for a project if its configs don't specify a version.
        Returns:
        see above
      • setProjectVersions

        public void setProjectVersions​(@NotNull
                                       Map<String,​String> projectVersions)
      • getConverterReports

        @NotNull
        public Collection<ConvertedEntitiesReport> getConverterReports()
        Returns information about changes made by converters on top of generated settings
        Returns:
        see above
      • projectSettingsUpdated

        public void projectSettingsUpdated​(@NotNull
                                           Set<String> projectExtIds)
        Called after project settings are successfully updated
      • setAfterSuccessfulUpdateCallback

        public void setAfterSuccessfulUpdateCallback​(@NotNull
                                                     Consumer<Set<String>> callback)
        Sets callback to run on successful projects update
        Parameters:
        callback - callback to run
      • projectSettingsUpdateFailed

        public void projectSettingsUpdateFailed()
        Called after failed settings update
      • setUpdateFailedCallback

        public void setUpdateFailedCallback​(@NotNull
                                            Runnable updateFailedCallback)
        Sets callback to run on settings update failure
        Parameters:
        updateFailedCallback - callback to run
      • setBeforeUpdateCallback

        public void setBeforeUpdateCallback​(Runnable beforeUpdateCallback)
        Sets callback which is executed before projects update (update can be skipped)
        Parameters:
        beforeUpdateCallback -
      • replacePlaceholderUuids

        public void replacePlaceholderUuids​(@NotNull
                                            Map<String,​String> projectUuids,
                                            @NotNull
                                            Map<String,​String> buildTypeUuids,
                                            @NotNull
                                            Map<String,​String> templateUuids,
                                            @NotNull
                                            Map<String,​String> vcsRootUuids)
        Replaces placeholder uuids with real uuids in generation result. All arguments are maps from placeholder uuid to real uuid.
      • addProjectWithMissingContextParameters

        public void addProjectWithMissingContextParameters​(@NotNull
                                                           String projectExtId,
                                                           @NotNull
                                                           List<String> parameters)
      • getProjectsWithMissingContextParameters

        @NotNull
        public Map<String,​List<String>> getProjectsWithMissingContextParameters()