Class CompositeConfigChangesCommitter
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ConfigActionsServerAdapter
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.ConfigChangesListener
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.CompositeConfigChangesCommitter
-
- All Implemented Interfaces:
EventListener
,ConfigActionsServerListener
,ConfigChangesCommitter
public class CompositeConfigChangesCommitter extends ConfigChangesListener
-
-
Constructor Summary
Constructors Constructor Description CompositeConfigChangesCommitter(ConfigChangesListener perProjectChangesListener, ConfigChangesListener globalChangesListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtension(ConfigCommitterExtension extension)
void
afterProjectMove(ConfigAction cause, SProject project, SProject oldParent)
void
buildTypeExternalIdChanged(ConfigAction cause, SBuildType buildType, String oldExternalId, String newExternalId)
void
buildTypeTemplateExternalIdChanged(ConfigAction cause, BuildTypeTemplate buildTypeTemplate, String oldExternalId, String newExternalId)
void
deleteFile(SProject project, String pathFromProjectsDir, ConfigAction cause)
Deletes file by the path from project's dirvoid
onDelete(SProject project, SPersistentEntity entity, String path, ConfigAction cause)
void
onDelete(SProject project, SPersistentEntity entity, String path, ConfigAction cause, VcsRootInstance settingsRoot, ProjectSettingsPaths projectSettingsPaths)
void
onPersist(SProject project, SPersistentEntity entity, String path, InputStream data, ConfigAction cause)
void
onPersist(SProject project, SPersistentEntity entity, String path, InputStream data, ConfigAction cause, VcsRootInstance settingsRoot, ProjectSettingsPaths projectSettingsPaths)
void
onProjectRemove(ConfigAction cause, SProject project)
void
onProjectRemove(ConfigAction cause, SProject project, VcsRootInstance settingsRoot, ProjectSettingsPaths projectSettingsPaths)
void
persistFile(SProject project, String pathFromProjectsDir, InputStream data, ConfigAction cause)
Persists file using the path from the projects dirvoid
projectExternalIdChanged(ConfigAction cause, SProject project, String oldExtId, String newId)
void
vcsRootExternalIdChanged(ConfigAction cause, SVcsRoot vcsRoot, String oldExternalId, String newExternalId)
void
vcsRootPersisted(ConfigAction cause, SVcsRoot vcsRoot)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.ConfigChangesCommitter
removeExtension
-
-
-
-
Constructor Detail
-
CompositeConfigChangesCommitter
public CompositeConfigChangesCommitter(ConfigChangesListener perProjectChangesListener, ConfigChangesListener globalChangesListener)
-
-
Method Detail
-
vcsRootExternalIdChanged
public void vcsRootExternalIdChanged(@NotNull ConfigAction cause, @NotNull SVcsRoot vcsRoot, @NotNull String oldExternalId, @NotNull String newExternalId)
- Specified by:
vcsRootExternalIdChanged
in interfaceConfigActionsServerListener
- Overrides:
vcsRootExternalIdChanged
in classConfigActionsServerAdapter
-
buildTypeTemplateExternalIdChanged
public void buildTypeTemplateExternalIdChanged(@NotNull ConfigAction cause, @NotNull BuildTypeTemplate buildTypeTemplate, @NotNull String oldExternalId, @NotNull String newExternalId)
- Specified by:
buildTypeTemplateExternalIdChanged
in interfaceConfigActionsServerListener
- Overrides:
buildTypeTemplateExternalIdChanged
in classConfigActionsServerAdapter
-
buildTypeExternalIdChanged
public void buildTypeExternalIdChanged(@NotNull ConfigAction cause, @NotNull SBuildType buildType, @NotNull String oldExternalId, @NotNull String newExternalId)
- Specified by:
buildTypeExternalIdChanged
in interfaceConfigActionsServerListener
- Overrides:
buildTypeExternalIdChanged
in classConfigActionsServerAdapter
-
projectExternalIdChanged
public void projectExternalIdChanged(@NotNull ConfigAction cause, @NotNull SProject project, @NotNull String oldExtId, @NotNull String newId)
- Specified by:
projectExternalIdChanged
in interfaceConfigActionsServerListener
- Overrides:
projectExternalIdChanged
in classConfigActionsServerAdapter
-
afterProjectMove
public void afterProjectMove(@NotNull ConfigAction cause, @NotNull SProject project, @NotNull SProject oldParent)
- Specified by:
afterProjectMove
in interfaceConfigActionsServerListener
- Overrides:
afterProjectMove
in classConfigActionsServerAdapter
-
vcsRootPersisted
public void vcsRootPersisted(@NotNull ConfigAction cause, @NotNull SVcsRoot vcsRoot)
- Specified by:
vcsRootPersisted
in interfaceConfigActionsServerListener
- Overrides:
vcsRootPersisted
in classConfigActionsServerAdapter
-
onPersist
public void onPersist(@NotNull SProject project, @Nullable SPersistentEntity entity, @NotNull String path, @NotNull InputStream data, @NotNull ConfigAction cause)
-
onPersist
public void onPersist(@NotNull SProject project, @Nullable SPersistentEntity entity, @NotNull String path, @NotNull InputStream data, @NotNull ConfigAction cause, @Nullable VcsRootInstance settingsRoot, @Nullable ProjectSettingsPaths projectSettingsPaths)
-
onDelete
public void onDelete(@NotNull SProject project, @Nullable SPersistentEntity entity, @NotNull String path, @NotNull ConfigAction cause)
-
onDelete
public void onDelete(@NotNull SProject project, @Nullable SPersistentEntity entity, @NotNull String path, @NotNull ConfigAction cause, @Nullable VcsRootInstance settingsRoot, @Nullable ProjectSettingsPaths projectSettingsPaths)
-
onProjectRemove
public void onProjectRemove(@NotNull ConfigAction cause, @NotNull SProject project)
-
onProjectRemove
public void onProjectRemove(@NotNull ConfigAction cause, @NotNull SProject project, @Nullable VcsRootInstance settingsRoot, @Nullable ProjectSettingsPaths projectSettingsPaths)
-
persistFile
public void persistFile(@NotNull SProject project, @NotNull String pathFromProjectsDir, @NotNull InputStream data, @NotNull ConfigAction cause)
Description copied from interface:ConfigChangesCommitter
Persists file using the path from the projects dir- Parameters:
project
- project which settings root should be usedpathFromProjectsDir
- path to file from projects dirdata
- contentcause
- cause of the change
-
deleteFile
public void deleteFile(@NotNull SProject project, @NotNull String pathFromProjectsDir, @NotNull ConfigAction cause)
Description copied from interface:ConfigChangesCommitter
Deletes file by the path from project's dir- Parameters:
project
- project which settings root should be usedpathFromProjectsDir
- path to file from projects dircause
- cause of the change
-
addExtension
public void addExtension(@NotNull ConfigCommitterExtension extension)
-
-