Class ConfigHistoryManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ProjectsModelListenerAdapter
-
- jetbrains.buildServer.serverSide.BuildServerAdapter
-
- jetbrains.buildServer.serverSide.config.ConfigHistoryManagerImpl
-
- All Implemented Interfaces:
EventListener,BuildServerListener,ConfigHistoryManager,ProjectsModelListener,ServerListener
public class ConfigHistoryManagerImpl extends BuildServerAdapter implements ConfigHistoryManager
- Author:
- Maxim.Manuylov Date: 21.01.11
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUDITstatic StringAUTHstatic StringBUILD_TYPESstatic StringCONFIG_FILE_NAMEstatic StringCONFIG_HISTORYstatic StringPLUGIN_SETTINGSstatic StringPROJECTSstatic StringSERVERstatic StringTEMPLATESstatic StringVCS_ROOTS
-
Constructor Summary
Constructors Constructor Description ConfigHistoryManagerImpl(ServerPaths serverPaths, EventDispatcher<BuildServerListener> dispatcher, ServerResponsibility serverResponsibility)
-
Method Summary
-
Methods inherited from class jetbrains.buildServer.serverSide.BuildServerAdapter
agentDescriptionUpdated, agentRegistered, agentRemoved, agentRemoved, agentsDescriptionUpdated, agentStatusChanged, agentUnregistered, agentUnregistered, beforeAgentUnregistered, beforeBuildFinish, beforeEntryDelete, beforeServerConfigurationLoaded, buildArtifactsChanged, buildChangedStatus, buildCommented, buildDetachedFromAgent, buildFinished, buildInterrupted, buildPinned, buildProblemsChanged, buildProblemsMuted, buildProblemsUnmuted, buildPromotionTagsChanged, buildQueueOrderChanged, buildRemovedFromQueue, buildStarted, buildTagsChanged, buildTagsChanged, buildTypeAddedToQueue, buildTypeAddedToQueue, buildUnpinned, changeAdded, changesLoaded, changesLoaded, cleanupFinished, cleanupStarted, entriesDeleted, entryCreated, entryDeleted, labelingFailed, labelingSucceed, messageReceived, pluginsLoaded, responsibleChanged, responsibleChanged, responsibleChanged, responsibleChanged, responsibleRemoved, responsibleRemoved, serverConfigurationReloaded, serverShutdown, serverShutdownComplete, serverStartup, sourcesVersionReleased, sourcesVersionReleased, sourcesVersionReleased, statisticValuePublished, testsMuted, testsUnmuted
-
Methods inherited from class jetbrains.buildServer.serverSide.ProjectsModelListenerAdapter
beforeBuildTypeDeleted, beforeBuildTypesDeleted, buildTypeActiveStatusChanged, buildTypeDescriptionUpdated, buildTypeExternalIdChanged, buildTypeMoved, buildTypePersisted, buildTypeRegistered, buildTypeRenamed, buildTypeTemplateDeleted, buildTypeTemplateExternalIdChanged, buildTypeTemplateMoved, buildTypeTemplatePersisted, buildTypeTemplateRestored, buildTypeUnregistered, projectArchived, projectCreated, projectDearchived, projectDescriptionUpdated, projectExternalIdChanged, projectFeatureAdded, projectFeatureChanged, projectFeatureRemoved, projectMoved, projectPersisted, projectPluginDataFileRemoved, projectPluginDataFileSaved, projectRemoved, projectRenamed, projectRestored, vcsRootExternalIdChanged, vcsRootMoved, vcsRootPersisted, vcsRootsPersisted, vcsRootUpdated
-
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.ProjectsModelListener
beforeBuildTypeDeleted, beforeBuildTypesDeleted, buildTypeActiveStatusChanged, buildTypeDescriptionUpdated, buildTypeExternalIdChanged, buildTypeMoved, buildTypePersisted, buildTypeRegistered, buildTypeRenamed, buildTypeTemplateDeleted, buildTypeTemplateExternalIdChanged, buildTypeTemplateMoved, buildTypeTemplatePersisted, buildTypeTemplateRestored, buildTypeUnregistered, projectArchived, projectCreated, projectDearchived, projectDescriptionUpdated, projectExternalIdChanged, projectFeatureAdded, projectFeatureChanged, projectFeatureRemoved, projectMoved, projectPersisted, projectPluginDataFileRemoved, projectPluginDataFileSaved, projectRemoved, projectRenamed, projectRestored, vcsRootExternalIdChanged, vcsRootMoved, vcsRootPersisted, vcsRootsPersisted, vcsRootUpdated
-
-
-
-
Field Detail
-
AUDIT
@NotNull @NonNls public static final String AUDIT
- See Also:
- Constant Field Values
-
CONFIG_HISTORY
@NotNull @NonNls public static final String CONFIG_HISTORY
- See Also:
- Constant Field Values
-
SERVER
@NotNull @NonNls public static final String SERVER
- See Also:
- Constant Field Values
-
AUTH
@NotNull @NonNls public static final String AUTH
- See Also:
- Constant Field Values
-
PROJECTS
@NotNull @NonNls public static final String PROJECTS
- See Also:
- Constant Field Values
-
BUILD_TYPES
@NotNull @NonNls public static final String BUILD_TYPES
- See Also:
- Constant Field Values
-
TEMPLATES
@NotNull @NonNls public static final String TEMPLATES
- See Also:
- Constant Field Values
-
VCS_ROOTS
@NotNull @NonNls public static final String VCS_ROOTS
- See Also:
- Constant Field Values
-
PLUGIN_SETTINGS
@NotNull @NonNls public static final String PLUGIN_SETTINGS
- See Also:
- Constant Field Values
-
CONFIG_FILE_NAME
@NotNull @NonNls public static final String CONFIG_FILE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfigHistoryManagerImpl
public ConfigHistoryManagerImpl(@NotNull ServerPaths serverPaths, @NotNull EventDispatcher<BuildServerListener> dispatcher, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
projectRemoved
public void projectRemoved(@NotNull SProject project)Description copied from interface:ProjectsModelListenerGenerated when project was removed- Specified by:
projectRemovedin interfaceProjectsModelListener- Overrides:
projectRemovedin classProjectsModelListenerAdapter- Parameters:
project- deleted project
-
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- Overrides:
buildTypeDeletedin classProjectsModelListenerAdapter- 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- Overrides:
buildTypeTemplateDeletedin classProjectsModelListenerAdapter- Parameters:
buildTypeTemplateId- id of build configuration template
-
vcsRootRemoved
public void vcsRootRemoved(@NotNull SVcsRoot root)Description copied from interface:ProjectsModelListenerCalled when VCS root was removed- Specified by:
vcsRootRemovedin interfaceProjectsModelListener- Overrides:
vcsRootRemovedin classProjectsModelListenerAdapter- Parameters:
root- vcs root
-
getAuthConfigHistory
@NotNull public FileHistory getAuthConfigHistory() throws IOException
- Specified by:
getAuthConfigHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getProjectConfigHistory
@NotNull public FileHistory getProjectConfigHistory(@NotNull SProject project) throws IOException
- Specified by:
getProjectConfigHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getProjectConfigHistory
@NotNull public FileHistory getProjectConfigHistory(@NotNull String projectId) throws IOException
- Specified by:
getProjectConfigHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getPluginSettingsHistory
@NotNull public FileHistory getPluginSettingsHistory(@NotNull SProject project) throws IOException
- Specified by:
getPluginSettingsHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getPluginSettingsHistory
@NotNull public FileHistory getPluginSettingsHistory(@NotNull String projectId) throws IOException
- Specified by:
getPluginSettingsHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getBuildTypeConfigHistory
@NotNull public FileHistory getBuildTypeConfigHistory(@NotNull SBuildType buildType) throws IOException
- Specified by:
getBuildTypeConfigHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getBuildTypeConfigHistory
@NotNull public FileHistory getBuildTypeConfigHistory(@NotNull String buildTypeId) throws IOException
- Specified by:
getBuildTypeConfigHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getBuildTypeTemplateConfigHistory
@NotNull public FileHistory getBuildTypeTemplateConfigHistory(@NotNull BuildTypeTemplate template) throws IOException
- Specified by:
getBuildTypeTemplateConfigHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getBuildTypeTemplateConfigHistory
@NotNull public FileHistory getBuildTypeTemplateConfigHistory(@NotNull String templateId) throws IOException
- Specified by:
getBuildTypeTemplateConfigHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getVcsRootConfigHistory
@NotNull public FileHistory getVcsRootConfigHistory(@NotNull SVcsRoot vcsRoot) throws IOException
- Specified by:
getVcsRootConfigHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getVcsRootConfigHistory
@NotNull public FileHistory getVcsRootConfigHistory(long vcsRootId) throws IOException
- Specified by:
getVcsRootConfigHistoryin interfaceConfigHistoryManager- Throws:
IOException
-
getOrCreateConfigHistoryStorageDir
@NotNull public static File getOrCreateConfigHistoryStorageDir(@NotNull ServerPaths serverPaths, @NotNull String type, @NotNull String id, @Nullable ServerResponsibility responsibility) throws IOException
- Throws:
IOException
-
getConfigHistoryStorageDir
@NotNull public static File getConfigHistoryStorageDir(@NotNull ServerPaths serverPaths, @NotNull String type, @NotNull String id)
-
-