Interface ProjectsModelListener

    • Method Detail

      • buildTypeRegistered

        void buildTypeRegistered​(@NotNull
                                 SBuildType buildType)
        Called when build configuration is created or build configuration is reloaded from the disk
        Parameters:
        buildType - registered build configuration
      • buildTypeUnregistered

        void buildTypeUnregistered​(@NotNull
                                   SBuildType buildType)
        Called when build configuration is deleted
        Parameters:
        buildType - unregistered build configuration
      • buildTypeMoved

        void buildTypeMoved​(@NotNull
                            SBuildType buildType,
                            @NotNull
                            SProject original)
        Called when build configuration is moved to another project.
        Parameters:
        buildType - build type
        original - the original project
      • buildTypeTemplateExternalIdChanged

        void buildTypeTemplateExternalIdChanged​(@NotNull
                                                BuildTypeTemplate buildTypeTemplate,
                                                @NotNull
                                                java.lang.String oldExternalId,
                                                @NotNull
                                                java.lang.String newExternalId)
        Called when build configuration template external id changed.
        Parameters:
        buildTypeTemplate - the build configuration template which external identifier has changed.
        oldExternalId - the previous external identifier.
        newExternalId - the new external identifier.
        Since:
        8.0
      • buildTypeExternalIdChanged

        void buildTypeExternalIdChanged​(@NotNull
                                        SBuildType buildType,
                                        @NotNull
                                        java.lang.String oldExternalId,
                                        @NotNull
                                        java.lang.String newExternalId)
        Called when the build configuration external id changed.
        Parameters:
        buildType - the build configuration which external identifier has changed.
        oldExternalId - the previous external identifier.
        newExternalId - the new external identifier.
        Since:
        8.0
      • buildTypeRenamed

        void buildTypeRenamed​(@NotNull
                              SBuildType buildType,
                              @NotNull
                              java.lang.String oldName,
                              @NotNull
                              java.lang.String newName)
        Called when the build configuration name changed.
        Since:
        2021.1
      • buildTypeDescriptionUpdated

        void buildTypeDescriptionUpdated​(@NotNull
                                         SBuildType buildType,
                                         @Nullable
                                         java.lang.String oldDescription,
                                         @Nullable
                                         java.lang.String newDescription)
        Called when the build configuration description changed.
        Since:
        2021.1
      • projectMoved

        void projectMoved​(@NotNull
                          SProject project,
                          @NotNull
                          SProject originalParentProject)
        Called when project is moved to another parent project.
        Parameters:
        project - project that is moved
        originalParentProject - original parent project of the moved project
        Since:
        8.0
      • beforeBuildTypesDeleted

        void beforeBuildTypesDeleted()
        Called before cleaning build configurations data from the database.
        Since:
        2020.2.2
      • beforeBuildTypeDeleted

        void beforeBuildTypeDeleted​(@NotNull
                                    java.lang.String buildTypeId)
        Called before cleaning the build configuration data from the database.
        Parameters:
        buildTypeId - id of build configuration
      • buildTypeDeleted

        void buildTypeDeleted​(@NotNull
                              java.lang.String buildTypeId)
        Called after the cleaning the build configuration data from the database.
        Parameters:
        buildTypeId - id of build configuration
      • buildTypeTemplateDeleted

        void buildTypeTemplateDeleted​(@NotNull
                                      java.lang.String buildTypeTemplateId)
        Called when build configuration template is deleted
        Parameters:
        buildTypeTemplateId - id of build configuration template
        Since:
        6.5
      • buildTypeTemplateDeleted

        void buildTypeTemplateDeleted​(@NotNull
                                      BuildTypeTemplate template)
        Called when build configuration template is deleted
        Parameters:
        template - deleted template
        Since:
        2018.1
      • buildTypeActiveStatusChanged

        void buildTypeActiveStatusChanged​(@NotNull
                                          SBuildType buildType)
        Called when build configuration status changed from active to paused and vice versa.
        Parameters:
        buildType - build configuration whose status has changed
      • projectCreated

        void projectCreated​(@NotNull
                            java.lang.String projectId,
                            @Nullable
                            SUser user)
        Generated when new project was created
        Parameters:
        projectId - internal id of the created project
        user - the user creating the project (or null if it can't be determined, e.g. after manual project config change)
      • projectExternalIdChanged

        void projectExternalIdChanged​(@NotNull
                                      SProject project,
                                      @NotNull
                                      java.lang.String oldExternalId,
                                      @NotNull
                                      java.lang.String newExternalId)
        Called when project external id changed.
        Parameters:
        project - the project which external id has been changed.
        oldExternalId - the old external id.
        newExternalId - the new external id.
        Since:
        8.0
      • projectRenamed

        void projectRenamed​(@NotNull
                            SProject project,
                            @NotNull
                            java.lang.String oldName,
                            @NotNull
                            java.lang.String newName)
        Called when the project name changed.
        Since:
        2021.1
      • projectDescriptionUpdated

        void projectDescriptionUpdated​(@NotNull
                                       SProject project,
                                       @NotNull
                                       java.lang.String oldDescription,
                                       @NotNull
                                       java.lang.String newDescription)
        Called when the project description changed.
        Since:
        2021.1
      • projectRemoved

        @Deprecated
        void projectRemoved​(@NotNull
                            java.lang.String projectId)
        Deprecated.
        Generated when project was removed
        Parameters:
        projectId - deleted project internal id
      • projectRemoved

        void projectRemoved​(@NotNull
                            SProject project)
        Generated when project was removed
        Parameters:
        project - deleted project
        Since:
        9.0
      • projectPersisted

        void projectPersisted​(@NotNull
                              java.lang.String projectId)
        Generated when project configuration persisted on a disk
        Parameters:
        projectId - internal id of the saved project
      • projectPluginDataFileSaved

        void projectPluginDataFileSaved​(@NotNull
                                        java.lang.String projectId,
                                        @NotNull
                                        java.lang.String relativePathToSavedFile)
        Sent when a file is saved under the project/pluginData directory.
        Parameters:
        projectId - internal id of the affected project
        relativePathToSavedFile - relative path to the saved file inside project directory
        Since:
        2021.1
      • projectPluginDataFileRemoved

        void projectPluginDataFileRemoved​(@NotNull
                                          java.lang.String projectId,
                                          @NotNull
                                          java.lang.String relativePathToRemovedFile)
        Sent when a file is removed from the project/pluginData directory.
        Parameters:
        projectId - internal id of the affected project
        relativePathToRemovedFile - relative path to the removed file inside project directory
        Since:
        2021.1
      • projectRestored

        void projectRestored​(@NotNull
                             java.lang.String projectId)
        Generated when project configuration reloaded from disk
        Parameters:
        projectId - internal id of the reloaded project
      • projectArchived

        void projectArchived​(@NotNull
                             java.lang.String projectId)
        Called when project has been archived
        Parameters:
        projectId - internal id of archived project
      • projectDearchived

        void projectDearchived​(@NotNull
                               java.lang.String projectId)
        Called when project has been dearchived
        Parameters:
        projectId - internal id of dearchived project
      • buildTypeTemplatePersisted

        void buildTypeTemplatePersisted​(@NotNull
                                        BuildTypeTemplate buildTemplate)
        Called when a build configuration template has been persisted.
        Parameters:
        buildTemplate - the just persisted template.
        Since:
        8.0
      • buildTypeTemplateRestored

        void buildTypeTemplateRestored​(@NotNull
                                       BuildTypeTemplate buildTemplate)
        Called when a build configuration template has been reloaded from disk.
        Parameters:
        buildTemplate - the just reloaded template.
        Since:
        2019.1.2
      • buildTypeTemplateMoved

        void buildTypeTemplateMoved​(@NotNull
                                    BuildTypeTemplate buildTemplate,
                                    @NotNull
                                    SProject original)
        Called when a build configuration template has been moved from one project to another.
        Parameters:
        buildTemplate - the just moved template.
        original - the original project
        Since:
        2021.2
      • buildTypePersisted

        void buildTypePersisted​(@NotNull
                                SBuildType buildType)
        Called when build type has been persisted.
        Parameters:
        buildType - the just persisted build type.
        Since:
        8.0
      • vcsRootRemoved

        void vcsRootRemoved​(@NotNull
                            SVcsRoot root)
        Called when VCS root was removed
        Parameters:
        root - vcs root
        Since:
        5.0
      • vcsRootUpdated

        void vcsRootUpdated​(@NotNull
                            SVcsRoot oldVcsRoot,
                            @NotNull
                            SVcsRoot newVcsRoot)
        Called when VCS root settings were changed
        Parameters:
        oldVcsRoot - old VCS root
        newVcsRoot - new VCS root
        Since:
        8.0 oldVcsRoot and newVcsRoot are the same objects
      • vcsRootExternalIdChanged

        void vcsRootExternalIdChanged​(@NotNull
                                      SVcsRoot vcsRoot,
                                      @NotNull
                                      java.lang.String oldExternalId,
                                      @NotNull
                                      java.lang.String newExternalId)
        Called when VCS root external id has ben changed.
        Parameters:
        vcsRoot - the VCS root which external identifier has changed.
        oldExternalId - the previous external identifier.
        newExternalId - the new external identifier.
        Since:
        8.0
      • vcsRootPersisted

        void vcsRootPersisted​(@NotNull
                              SVcsRoot vcsRoot)
        Called when VCS root settings have been stored on disk
        Parameters:
        vcsRoot - vcs root whose settings were persisted
        Since:
        8.0
      • vcsRootMoved

        void vcsRootMoved​(@NotNull
                          SVcsRoot root,
                          @NotNull
                          SProject original)
        Called when a VCS root has been moved from one project to another.
        Parameters:
        SVcsRoot - the just moved VCS root.
        original - the original project
        Since:
        2021.2
      • projectFeatureAdded

        void projectFeatureAdded​(@NotNull
                                 SProject project,
                                 @NotNull
                                 SProjectFeatureDescriptor projectFeature)
        Called when project feature was added
        Parameters:
        project - affected project
        projectFeature - added project feature
        Since:
        2017.1
      • projectFeatureRemoved

        void projectFeatureRemoved​(@NotNull
                                   SProject project,
                                   @NotNull
                                   SProjectFeatureDescriptor projectFeature)
        Called when project feature was removed
        Parameters:
        project - affected project
        projectFeature - removed project feature
        Since:
        2017.1
      • projectFeatureChanged

        void projectFeatureChanged​(@NotNull
                                   SProject project,
                                   @NotNull
                                   SProjectFeatureDescriptor before,
                                   @NotNull
                                   SProjectFeatureDescriptor after)
        Called when project feature was modified
        Parameters:
        project - affected project
        before - project feature before modification
        after - project feature after modification
        Since:
        2017.1