Package jetbrains.buildServer.serverSide
Interface ProjectsModelListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Subinterfaces:
BuildServerListener
- All Known Implementing Classes:
BuildServerAdapter
,ProjectsModelListenerAdapter
@UserImplemented(adapterClass=ProjectsModelListenerAdapter.class) public interface ProjectsModelListener extends java.util.EventListener
Interface for the projects model events listeners.- Since:
- 2017.1
- See Also:
BuildServerListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
beforeBuildTypeDeleted(java.lang.String buildTypeId)
Called before cleaning the build configuration data from the database.void
beforeBuildTypesDeleted()
Called before cleaning build configurations data from the database.void
buildTypeActiveStatusChanged(SBuildType buildType)
Called when build configuration status changed from active to paused and vice versa.void
buildTypeDeleted(java.lang.String buildTypeId)
Called after the cleaning the build configuration data from the database.void
buildTypeDescriptionUpdated(SBuildType buildType, java.lang.String oldDescription, java.lang.String newDescription)
Called when the build configuration description changed.void
buildTypeExternalIdChanged(SBuildType buildType, java.lang.String oldExternalId, java.lang.String newExternalId)
Called when the build configuration external id changed.void
buildTypeMoved(SBuildType buildType, SProject original)
Called when build configuration is moved to another project.void
buildTypePersisted(SBuildType buildType)
Called when build type has been persisted.void
buildTypeRegistered(SBuildType buildType)
Called when build configuration is created or build configuration is reloaded from the diskvoid
buildTypeRenamed(SBuildType buildType, java.lang.String oldName, java.lang.String newName)
Called when the build configuration name changed.void
buildTypeTemplateDeleted(java.lang.String buildTypeTemplateId)
Called when build configuration template is deletedvoid
buildTypeTemplateDeleted(BuildTypeTemplate template)
Called when build configuration template is deletedvoid
buildTypeTemplateExternalIdChanged(BuildTypeTemplate buildTypeTemplate, java.lang.String oldExternalId, java.lang.String newExternalId)
Called when build configuration template external id changed.void
buildTypeTemplateMoved(BuildTypeTemplate buildTemplate, SProject original)
Called when a build configuration template has been moved from one project to another.void
buildTypeTemplatePersisted(BuildTypeTemplate buildTemplate)
Called when a build configuration template has been persisted.void
buildTypeTemplateRestored(BuildTypeTemplate buildTemplate)
Called when a build configuration template has been reloaded from disk.void
buildTypeUnregistered(SBuildType buildType)
Called when build configuration is deletedvoid
projectArchived(java.lang.String projectId)
Called when project has been archivedvoid
projectCreated(java.lang.String projectId, SUser user)
Generated when new project was createdvoid
projectDearchived(java.lang.String projectId)
Called when project has been dearchivedvoid
projectDescriptionUpdated(SProject project, java.lang.String oldDescription, java.lang.String newDescription)
Called when the project description changed.void
projectExternalIdChanged(SProject project, java.lang.String oldExternalId, java.lang.String newExternalId)
Called when project external id changed.void
projectFeatureAdded(SProject project, SProjectFeatureDescriptor projectFeature)
Called when project feature was addedvoid
projectFeatureChanged(SProject project, SProjectFeatureDescriptor before, SProjectFeatureDescriptor after)
Called when project feature was modifiedvoid
projectFeatureRemoved(SProject project, SProjectFeatureDescriptor projectFeature)
Called when project feature was removedvoid
projectMoved(SProject project, SProject originalParentProject)
Called when project is moved to another parent project.void
projectPersisted(java.lang.String projectId)
Generated when project configuration persisted on a diskvoid
projectPluginDataFileRemoved(java.lang.String projectId, java.lang.String relativePathToRemovedFile)
Sent when a file is removed from the project/pluginData directory.void
projectPluginDataFileSaved(java.lang.String projectId, java.lang.String relativePathToSavedFile)
Sent when a file is saved under the project/pluginData directory.void
projectRemoved(java.lang.String projectId)
Deprecated.void
projectRemoved(SProject project)
Generated when project was removedvoid
projectRenamed(SProject project, java.lang.String oldName, java.lang.String newName)
Called when the project name changed.void
projectRestored(java.lang.String projectId)
Generated when project configuration reloaded from diskvoid
vcsRootExternalIdChanged(SVcsRoot vcsRoot, java.lang.String oldExternalId, java.lang.String newExternalId)
Called when VCS root external id has ben changed.void
vcsRootMoved(SVcsRoot root, SProject original)
Called when a VCS root has been moved from one project to another.void
vcsRootPersisted(SVcsRoot vcsRoot)
Called when VCS root settings have been stored on diskvoid
vcsRootRemoved(SVcsRoot root)
Called when VCS root was removedvoid
vcsRootsPersisted()
Deprecated.since 8.0, usevcsRootPersisted(jetbrains.buildServer.vcs.SVcsRoot)
insteadvoid
vcsRootUpdated(SVcsRoot oldVcsRoot, SVcsRoot newVcsRoot)
Called when VCS root settings were changed
-
-
-
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 typeoriginal
- 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 movedoriginalParentProject
- 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 projectuser
- 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 projectrelativePathToSavedFile
- 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 projectrelativePathToRemovedFile
- 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 rootnewVcsRoot
- 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
-
vcsRootsPersisted
@Deprecated void vcsRootsPersisted()
Deprecated.since 8.0, usevcsRootPersisted(jetbrains.buildServer.vcs.SVcsRoot)
insteadCalled when VCS roots are saved to disk- Since:
- 5.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 projectprojectFeature
- added project feature- Since:
- 2017.1
-
projectFeatureRemoved
void projectFeatureRemoved(@NotNull SProject project, @NotNull SProjectFeatureDescriptor projectFeature)
Called when project feature was removed- Parameters:
project
- affected projectprojectFeature
- 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 projectbefore
- project feature before modificationafter
- project feature after modification- Since:
- 2017.1
-
-