Class GlobalConfigChangesCommitterImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ConfigActionsServerAdapter
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.ConfigChangesListener
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.GlobalConfigChangesCommitterImpl
-
- All Implemented Interfaces:
EventListener,ConfigActionsServerListener,ConfigChangesCommitter,GlobalConfigsChangesCommitter
public class GlobalConfigChangesCommitterImpl extends ConfigChangesListener implements GlobalConfigsChangesCommitter
-
-
Constructor Summary
Constructors Constructor Description GlobalConfigChangesCommitterImpl(EventDispatcher<ConfigActionsServerListener> configEvents, CentralConfigsRepository centralConfigsRepository, ServerPaths serverPaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterProjectMove(ConfigAction cause, SProject project, SProject oldParent)voiddeleteFile(SProject project, String pathFromProjectsDir, ConfigAction cause)Deletes file by the path from project's dirvoidonDelete(SProject project, SPersistentEntity entity, String path, ConfigAction cause)voidonDelete(SProject project, SPersistentEntity entity, String path, ConfigAction cause, VcsRootInstance settingsRoot, ProjectSettingsPaths projectSettingsPaths)voidonPersist(SProject project, SPersistentEntity entity, String path, InputStream data, ConfigAction cause)voidonPersist(SProject project, SPersistentEntity entity, String path, InputStream data, ConfigAction cause, VcsRootInstance settingsRoot, ProjectSettingsPaths projectSettingsPaths)voidonProjectRemove(ConfigAction cause, SProject project)voidonProjectRemove(ConfigAction cause, SProject project, VcsRootInstance settingsRoot, ProjectSettingsPaths projectSettingsPaths)voidonTaskFinished(PersistTaskEx task, User user, String description)voidonTaskStarted(PersistTaskEx task)voidpersistFile(SProject project, String pathFromProjectsDir, InputStream data, ConfigAction cause)Persists file using the path from the projects dirvoidprojectExternalIdChanged(ConfigAction cause, SProject project, String oldExtId, String newId)voidsettingsFilePersisted(File file, byte[] content, User user)-
Methods inherited from class jetbrains.buildServer.serverSide.ConfigActionsServerAdapter
buildTypeExternalIdChanged, buildTypeTemplateExternalIdChanged, vcsRootExternalIdChanged, vcsRootPersisted
-
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
addExtension, removeExtension
-
-
-
-
Constructor Detail
-
GlobalConfigChangesCommitterImpl
public GlobalConfigChangesCommitterImpl(@NotNull EventDispatcher<ConfigActionsServerListener> configEvents, @NotNull CentralConfigsRepository centralConfigsRepository, @NotNull ServerPaths serverPaths)
-
-
Method Detail
-
afterProjectMove
public void afterProjectMove(@NotNull ConfigAction cause, @NotNull SProject project, @NotNull SProject oldParent)- Specified by:
afterProjectMovein interfaceConfigActionsServerListener- Overrides:
afterProjectMovein classConfigActionsServerAdapter
-
projectExternalIdChanged
public void projectExternalIdChanged(@NotNull ConfigAction cause, @NotNull SProject project, @NotNull String oldExtId, @NotNull String newId)- Specified by:
projectExternalIdChangedin interfaceConfigActionsServerListener- Overrides:
projectExternalIdChangedin classConfigActionsServerAdapter
-
onTaskStarted
public void onTaskStarted(@NotNull PersistTaskEx task)- Specified by:
onTaskStartedin interfaceGlobalConfigsChangesCommitter
-
onTaskFinished
public void onTaskFinished(@NotNull PersistTaskEx task, @Nullable User user, @NotNull String description)- Specified by:
onTaskFinishedin interfaceGlobalConfigsChangesCommitter
-
onPersist
public void onPersist(@NotNull SProject project, @Nullable SPersistentEntity entity, @NotNull String path, @NotNull InputStream data, @NotNull ConfigAction cause)- Specified by:
onPersistin interfaceConfigChangesCommitter
-
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)- Specified by:
onPersistin interfaceConfigChangesCommitter
-
onDelete
public void onDelete(@NotNull SProject project, @Nullable SPersistentEntity entity, @NotNull String path, @NotNull ConfigAction cause)- Specified by:
onDeletein interfaceConfigChangesCommitter
-
onDelete
public void onDelete(@NotNull SProject project, @Nullable SPersistentEntity entity, @NotNull String path, @NotNull ConfigAction cause, @Nullable VcsRootInstance settingsRoot, @Nullable ProjectSettingsPaths projectSettingsPaths)- Specified by:
onDeletein interfaceConfigChangesCommitter
-
onProjectRemove
public void onProjectRemove(@NotNull ConfigAction cause, @NotNull SProject project)- Specified by:
onProjectRemovein interfaceConfigChangesCommitter
-
onProjectRemove
public void onProjectRemove(@NotNull ConfigAction cause, @NotNull SProject project, @Nullable VcsRootInstance settingsRoot, @Nullable ProjectSettingsPaths projectSettingsPaths)- Specified by:
onProjectRemovein interfaceConfigChangesCommitter
-
persistFile
public void persistFile(@NotNull SProject project, @NotNull String pathFromProjectsDir, @NotNull InputStream data, @NotNull ConfigAction cause)Description copied from interface:ConfigChangesCommitterPersists file using the path from the projects dir- Specified by:
persistFilein interfaceConfigChangesCommitter- 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:ConfigChangesCommitterDeletes file by the path from project's dir- Specified by:
deleteFilein interfaceConfigChangesCommitter- Parameters:
project- project which settings root should be usedpathFromProjectsDir- path to file from projects dircause- cause of the change
-
settingsFilePersisted
public void settingsFilePersisted(@NotNull File file, @Nullable byte[] content, @Nullable User user)- Specified by:
settingsFilePersistedin interfaceGlobalConfigsChangesCommitter
-
-