Package jetbrains.buildServer.serverSide
Class ProjectsModelListenerAdapter
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ProjectsModelListenerAdapter
-
- All Implemented Interfaces:
EventListener,ProjectsModelListener
- Direct Known Subclasses:
BuildServerAdapter,OAuthRedirectSettingsListener,RefreshableTokenConfigListener,SpaceApplicationInformationListener
public class ProjectsModelListenerAdapter extends Object implements ProjectsModelListener
A helper for writingProjectsModelListeners.
-
-
Constructor Summary
Constructors Constructor Description ProjectsModelListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeBuildTypeDeleted(String buildTypeId)Called before cleaning the build configuration data from the database.voidbeforeBuildTypesDeleted()Called before cleaning build configurations data from the database.voidbuildTypeActiveStatusChanged(SBuildType buildType)Called when build configuration status changed from active to paused and vice versa.voidbuildTypeDeleted(String buildTypeId)Called after the cleaning the build configuration data from the database.voidbuildTypeDescriptionUpdated(SBuildType buildType, String oldDescription, String newDescription)Called when the build configuration description changed.voidbuildTypeExternalIdChanged(SBuildType buildType, String oldExternalId, String newExternalId)Called when the build configuration external id changed.voidbuildTypeMoved(SBuildType buildType, SProject original)Called when build configuration is moved to another project.voidbuildTypePersisted(SBuildType buildType)Called when build type has been persisted.voidbuildTypeRegistered(SBuildType buildType)Called when build configuration is created or build configuration is reloaded from the diskvoidbuildTypeRenamed(SBuildType buildType, String oldName, String newName)Called when the build configuration name changed.voidbuildTypeTemplateDeleted(String buildTypeTemplateId)Called when build configuration template is deletedvoidbuildTypeTemplateDeleted(BuildTypeTemplate template)Called when build configuration template is deletedvoidbuildTypeTemplateExternalIdChanged(BuildTypeTemplate buildTypeTemplate, String oldExternalId, String newExternalId)Called when build configuration template external id changed.voidbuildTypeTemplateMoved(BuildTypeTemplate buildTemplate, SProject original)Called when a build configuration template has been moved from one project to another.voidbuildTypeTemplatePersisted(BuildTypeTemplate buildTemplate)Called when a build configuration template has been persisted.voidbuildTypeTemplateRestored(BuildTypeTemplate buildTemplate)Called when a build configuration template has been reloaded from disk.voidbuildTypeUnregistered(SBuildType buildType)Called when build configuration is deletedvoidprojectArchived(String projectId)Called when project has been archivedvoidprojectCreated(String projectId, SUser user)Generated when new project was createdvoidprojectDearchived(String projectId)Called when project has been dearchivedvoidprojectDescriptionUpdated(SProject project, String oldDescription, String newDescription)Called when the project description changed.voidprojectExternalIdChanged(SProject project, String oldExternalId, String newExternalId)Called when project external id changed.voidprojectFeatureAdded(SProject project, SProjectFeatureDescriptor projectFeature)Called when project feature was addedvoidprojectFeatureChanged(SProject project, SProjectFeatureDescriptor before, SProjectFeatureDescriptor after)Called when project feature was modifiedvoidprojectFeatureRemoved(SProject project, SProjectFeatureDescriptor projectFeature)Called when project feature was removedvoidprojectMoved(SProject project, SProject originalParentProject)Called when project is moved to another parent project.voidprojectPersisted(String projectId)Generated when project configuration persisted on a diskvoidprojectPluginDataFileRemoved(String projectId, String relativePathToRemovedFile)Sent when a file is removed from the project/pluginData directory.voidprojectPluginDataFileSaved(String projectId, String relativePathToSavedFile)Sent when a file is saved under the project/pluginData directory.voidprojectRemoved(String projectId)Generated when project was removedvoidprojectRemoved(SProject project)Generated when project was removedvoidprojectRenamed(SProject project, String oldName, String newName)Called when the project name changed.voidprojectRestored(String projectId)Generated when project configuration reloaded from diskvoidvcsRootExternalIdChanged(SVcsRoot vcsRoot, String oldExternalId, String newExternalId)Called when VCS root external id has ben changed.voidvcsRootMoved(SVcsRoot root, SProject original)Called when a VCS root has been moved from one project to another.voidvcsRootPersisted(SVcsRoot vcsRoot)Called when VCS root settings have been stored on diskvoidvcsRootRemoved(SVcsRoot root)Called when VCS root was removedvoidvcsRootsPersisted()Called when VCS roots are saved to diskvoidvcsRootUpdated(SVcsRoot oldVcsRoot, SVcsRoot newVcsRoot)Called when VCS root settings were changed
-
-
-
Method Detail
-
buildTypeRegistered
public void buildTypeRegistered(@NotNull SBuildType buildType)Description copied from interface:ProjectsModelListenerCalled when build configuration is created or build configuration is reloaded from the disk- Specified by:
buildTypeRegisteredin interfaceProjectsModelListener- Parameters:
buildType- registered build configuration
-
buildTypeUnregistered
public void buildTypeUnregistered(@NotNull SBuildType buildType)Description copied from interface:ProjectsModelListenerCalled when build configuration is deleted- Specified by:
buildTypeUnregisteredin interfaceProjectsModelListener- Parameters:
buildType- unregistered build configuration
-
buildTypeMoved
public void buildTypeMoved(@NotNull SBuildType buildType, @NotNull SProject original)Description copied from interface:ProjectsModelListenerCalled when build configuration is moved to another project.- Specified by:
buildTypeMovedin interfaceProjectsModelListener- Parameters:
buildType- build typeoriginal- the original project
-
buildTypeTemplateExternalIdChanged
public void buildTypeTemplateExternalIdChanged(@NotNull BuildTypeTemplate buildTypeTemplate, @NotNull String oldExternalId, @NotNull String newExternalId)Description copied from interface:ProjectsModelListenerCalled when build configuration template external id changed.- Specified by:
buildTypeTemplateExternalIdChangedin interfaceProjectsModelListener- Parameters:
buildTypeTemplate- the build configuration template which external identifier has changed.oldExternalId- the previous external identifier.newExternalId- the new external identifier.
-
buildTypeExternalIdChanged
public void buildTypeExternalIdChanged(@NotNull SBuildType buildType, @NotNull String oldExternalId, @NotNull String newExternalId)Description copied from interface:ProjectsModelListenerCalled when the build configuration external id changed.- Specified by:
buildTypeExternalIdChangedin interfaceProjectsModelListener- Parameters:
buildType- the build configuration which external identifier has changed.oldExternalId- the previous external identifier.newExternalId- the new external identifier.
-
buildTypeRenamed
public void buildTypeRenamed(@NotNull SBuildType buildType, @NotNull String oldName, @NotNull String newName)Description copied from interface:ProjectsModelListenerCalled when the build configuration name changed.- Specified by:
buildTypeRenamedin interfaceProjectsModelListener
-
buildTypeDescriptionUpdated
public void buildTypeDescriptionUpdated(@NotNull SBuildType buildType, @Nullable String oldDescription, @Nullable String newDescription)Description copied from interface:ProjectsModelListenerCalled when the build configuration description changed.- Specified by:
buildTypeDescriptionUpdatedin interfaceProjectsModelListener
-
projectMoved
public void projectMoved(@NotNull SProject project, @NotNull SProject originalParentProject)Description copied from interface:ProjectsModelListenerCalled when project is moved to another parent project.- Specified by:
projectMovedin interfaceProjectsModelListener- Parameters:
project- project that is movedoriginalParentProject- original parent project of the moved project
-
beforeBuildTypesDeleted
public void beforeBuildTypesDeleted()
Description copied from interface:ProjectsModelListenerCalled before cleaning build configurations data from the database.- Specified by:
beforeBuildTypesDeletedin interfaceProjectsModelListener
-
beforeBuildTypeDeleted
public void beforeBuildTypeDeleted(@NotNull String buildTypeId)Description copied from interface:ProjectsModelListenerCalled before cleaning the build configuration data from the database.- Specified by:
beforeBuildTypeDeletedin interfaceProjectsModelListener- Parameters:
buildTypeId- id of build configuration
-
buildTypeDeleted
public void buildTypeDeleted(@NotNull String buildTypeId)Description copied from interface:ProjectsModelListenerCalled after the cleaning the build configuration data from the database.- Specified by:
buildTypeDeletedin interfaceProjectsModelListener- Parameters:
buildTypeId- id of build configuration
-
buildTypeTemplateDeleted
public void buildTypeTemplateDeleted(@NotNull String buildTypeTemplateId)Description copied from interface:ProjectsModelListenerCalled when build configuration template is deleted- Specified by:
buildTypeTemplateDeletedin interfaceProjectsModelListener- Parameters:
buildTypeTemplateId- id of build configuration template
-
buildTypeTemplateDeleted
public void buildTypeTemplateDeleted(@NotNull BuildTypeTemplate template)Description copied from interface:ProjectsModelListenerCalled when build configuration template is deleted- Specified by:
buildTypeTemplateDeletedin interfaceProjectsModelListener- Parameters:
template- deleted template
-
buildTypeActiveStatusChanged
public void buildTypeActiveStatusChanged(@NotNull SBuildType buildType)Description copied from interface:ProjectsModelListenerCalled when build configuration status changed from active to paused and vice versa.- Specified by:
buildTypeActiveStatusChangedin interfaceProjectsModelListener- Parameters:
buildType- build configuration whose status has changed
-
projectCreated
public void projectCreated(@NotNull String projectId, @Nullable SUser user)Description copied from interface:ProjectsModelListenerGenerated when new project was created- Specified by:
projectCreatedin interfaceProjectsModelListener- 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
public void projectExternalIdChanged(@NotNull SProject project, @NotNull String oldExternalId, @NotNull String newExternalId)Description copied from interface:ProjectsModelListenerCalled when project external id changed.- Specified by:
projectExternalIdChangedin interfaceProjectsModelListener- Parameters:
project- the project which external id has been changed.oldExternalId- the old external id.newExternalId- the new external id.
-
projectRenamed
public void projectRenamed(@NotNull SProject project, @NotNull String oldName, @NotNull String newName)Description copied from interface:ProjectsModelListenerCalled when the project name changed.- Specified by:
projectRenamedin interfaceProjectsModelListener
-
projectDescriptionUpdated
public void projectDescriptionUpdated(@NotNull SProject project, @NotNull String oldDescription, @NotNull String newDescription)Description copied from interface:ProjectsModelListenerCalled when the project description changed.- Specified by:
projectDescriptionUpdatedin interfaceProjectsModelListener
-
projectRemoved
public void projectRemoved(@NotNull String projectId)Description copied from interface:ProjectsModelListenerGenerated when project was removed- Specified by:
projectRemovedin interfaceProjectsModelListener- Parameters:
projectId- deleted project internal id
-
projectRemoved
public void projectRemoved(@NotNull SProject project)Description copied from interface:ProjectsModelListenerGenerated when project was removed- Specified by:
projectRemovedin interfaceProjectsModelListener- Parameters:
project- deleted project
-
projectPersisted
public void projectPersisted(@NotNull String projectId)Description copied from interface:ProjectsModelListenerGenerated when project configuration persisted on a disk- Specified by:
projectPersistedin interfaceProjectsModelListener- Parameters:
projectId- internal id of the saved project
-
projectPluginDataFileSaved
public void projectPluginDataFileSaved(@NotNull String projectId, @NotNull String relativePathToSavedFile)Description copied from interface:ProjectsModelListenerSent when a file is saved under the project/pluginData directory.- Specified by:
projectPluginDataFileSavedin interfaceProjectsModelListener- Parameters:
projectId- internal id of the affected projectrelativePathToSavedFile- relative path to the saved file inside project directory
-
projectPluginDataFileRemoved
public void projectPluginDataFileRemoved(@NotNull String projectId, @NotNull String relativePathToRemovedFile)Description copied from interface:ProjectsModelListenerSent when a file is removed from the project/pluginData directory.- Specified by:
projectPluginDataFileRemovedin interfaceProjectsModelListener- Parameters:
projectId- internal id of the affected projectrelativePathToRemovedFile- relative path to the removed file inside project directory
-
projectRestored
public void projectRestored(@NotNull String projectId)Description copied from interface:ProjectsModelListenerGenerated when project configuration reloaded from disk- Specified by:
projectRestoredin interfaceProjectsModelListener- Parameters:
projectId- internal id of the reloaded project
-
projectArchived
public void projectArchived(@NotNull String projectId)Description copied from interface:ProjectsModelListenerCalled when project has been archived- Specified by:
projectArchivedin interfaceProjectsModelListener- Parameters:
projectId- internal id of archived project
-
projectDearchived
public void projectDearchived(@NotNull String projectId)Description copied from interface:ProjectsModelListenerCalled when project has been dearchived- Specified by:
projectDearchivedin interfaceProjectsModelListener- Parameters:
projectId- internal id of dearchived project
-
buildTypeTemplatePersisted
public void buildTypeTemplatePersisted(@NotNull BuildTypeTemplate buildTemplate)Description copied from interface:ProjectsModelListenerCalled when a build configuration template has been persisted.- Specified by:
buildTypeTemplatePersistedin interfaceProjectsModelListener- Parameters:
buildTemplate- the just persisted template.
-
buildTypeTemplateRestored
public void buildTypeTemplateRestored(@NotNull BuildTypeTemplate buildTemplate)Description copied from interface:ProjectsModelListenerCalled when a build configuration template has been reloaded from disk.- Specified by:
buildTypeTemplateRestoredin interfaceProjectsModelListener- Parameters:
buildTemplate- the just reloaded template.
-
buildTypeTemplateMoved
public void buildTypeTemplateMoved(@NotNull BuildTypeTemplate buildTemplate, @NotNull SProject original)Description copied from interface:ProjectsModelListenerCalled when a build configuration template has been moved from one project to another.- Specified by:
buildTypeTemplateMovedin interfaceProjectsModelListener- Parameters:
buildTemplate- the just moved template.original- the original project
-
buildTypePersisted
public void buildTypePersisted(@NotNull SBuildType buildType)Description copied from interface:ProjectsModelListenerCalled when build type has been persisted.- Specified by:
buildTypePersistedin interfaceProjectsModelListener- Parameters:
buildType- the just persisted build type.
-
vcsRootRemoved
public void vcsRootRemoved(@NotNull SVcsRoot root)Description copied from interface:ProjectsModelListenerCalled when VCS root was removed- Specified by:
vcsRootRemovedin interfaceProjectsModelListener- Parameters:
root- vcs root
-
vcsRootUpdated
public void vcsRootUpdated(@NotNull SVcsRoot oldVcsRoot, @NotNull SVcsRoot newVcsRoot)Description copied from interface:ProjectsModelListenerCalled when VCS root settings were changed- Specified by:
vcsRootUpdatedin interfaceProjectsModelListener- Parameters:
oldVcsRoot- old VCS rootnewVcsRoot- new VCS root
-
vcsRootExternalIdChanged
public void vcsRootExternalIdChanged(@NotNull SVcsRoot vcsRoot, @NotNull String oldExternalId, @NotNull String newExternalId)Description copied from interface:ProjectsModelListenerCalled when VCS root external id has ben changed.- Specified by:
vcsRootExternalIdChangedin interfaceProjectsModelListener- Parameters:
vcsRoot- the VCS root which external identifier has changed.oldExternalId- the previous external identifier.newExternalId- the new external identifier.
-
vcsRootPersisted
public void vcsRootPersisted(@NotNull SVcsRoot vcsRoot)Description copied from interface:ProjectsModelListenerCalled when VCS root settings have been stored on disk- Specified by:
vcsRootPersistedin interfaceProjectsModelListener- Parameters:
vcsRoot- vcs root whose settings were persisted
-
vcsRootsPersisted
public void vcsRootsPersisted()
Description copied from interface:ProjectsModelListenerCalled when VCS roots are saved to disk- Specified by:
vcsRootsPersistedin interfaceProjectsModelListener
-
vcsRootMoved
public void vcsRootMoved(@NotNull SVcsRoot root, @NotNull SProject original)Description copied from interface:ProjectsModelListenerCalled when a VCS root has been moved from one project to another.- Specified by:
vcsRootMovedin interfaceProjectsModelListeneroriginal- the original project
-
projectFeatureAdded
public void projectFeatureAdded(@NotNull SProject project, @NotNull SProjectFeatureDescriptor projectFeature)Description copied from interface:ProjectsModelListenerCalled when project feature was added- Specified by:
projectFeatureAddedin interfaceProjectsModelListener- Parameters:
project- affected projectprojectFeature- added project feature
-
projectFeatureRemoved
public void projectFeatureRemoved(@NotNull SProject project, @NotNull SProjectFeatureDescriptor projectFeature)Description copied from interface:ProjectsModelListenerCalled when project feature was removed- Specified by:
projectFeatureRemovedin interfaceProjectsModelListener- Parameters:
project- affected projectprojectFeature- removed project feature
-
projectFeatureChanged
public void projectFeatureChanged(@NotNull SProject project, @NotNull SProjectFeatureDescriptor before, @NotNull SProjectFeatureDescriptor after)Description copied from interface:ProjectsModelListenerCalled when project feature was modified- Specified by:
projectFeatureChangedin interfaceProjectsModelListener- Parameters:
project- affected projectbefore- project feature before modificationafter- project feature after modification
-
-