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 String
AUDIT
static String
AUTH
static String
BUILD_TYPES
static String
CONFIG_FILE_NAME
static String
CONFIG_HISTORY
static String
PLUGIN_SETTINGS
static String
PROJECTS
static String
SERVER
static String
TEMPLATES
static String
VCS_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:ProjectsModelListener
Generated when project was removed- Specified by:
projectRemoved
in interfaceProjectsModelListener
- Overrides:
projectRemoved
in classProjectsModelListenerAdapter
- Parameters:
project
- deleted project
-
buildTypeDeleted
public void buildTypeDeleted(@NotNull String buildTypeId)
Description copied from interface:ProjectsModelListener
Called after the cleaning the build configuration data from the database.- Specified by:
buildTypeDeleted
in interfaceProjectsModelListener
- Overrides:
buildTypeDeleted
in classProjectsModelListenerAdapter
- Parameters:
buildTypeId
- id of build configuration
-
buildTypeTemplateDeleted
public void buildTypeTemplateDeleted(@NotNull String buildTypeTemplateId)
Description copied from interface:ProjectsModelListener
Called when build configuration template is deleted- Specified by:
buildTypeTemplateDeleted
in interfaceProjectsModelListener
- Overrides:
buildTypeTemplateDeleted
in classProjectsModelListenerAdapter
- Parameters:
buildTypeTemplateId
- id of build configuration template
-
vcsRootRemoved
public void vcsRootRemoved(@NotNull SVcsRoot root)
Description copied from interface:ProjectsModelListener
Called when VCS root was removed- Specified by:
vcsRootRemoved
in interfaceProjectsModelListener
- Overrides:
vcsRootRemoved
in classProjectsModelListenerAdapter
- Parameters:
root
- vcs root
-
getAuthConfigHistory
@NotNull public FileHistory getAuthConfigHistory() throws IOException
- Specified by:
getAuthConfigHistory
in interfaceConfigHistoryManager
- Throws:
IOException
-
getProjectConfigHistory
@NotNull public FileHistory getProjectConfigHistory(@NotNull SProject project) throws IOException
- Specified by:
getProjectConfigHistory
in interfaceConfigHistoryManager
- Throws:
IOException
-
getProjectConfigHistory
@NotNull public FileHistory getProjectConfigHistory(@NotNull String projectId) throws IOException
- Specified by:
getProjectConfigHistory
in interfaceConfigHistoryManager
- Throws:
IOException
-
getPluginSettingsHistory
@NotNull public FileHistory getPluginSettingsHistory(@NotNull SProject project) throws IOException
- Specified by:
getPluginSettingsHistory
in interfaceConfigHistoryManager
- Throws:
IOException
-
getPluginSettingsHistory
@NotNull public FileHistory getPluginSettingsHistory(@NotNull String projectId) throws IOException
- Specified by:
getPluginSettingsHistory
in interfaceConfigHistoryManager
- Throws:
IOException
-
getBuildTypeConfigHistory
@NotNull public FileHistory getBuildTypeConfigHistory(@NotNull SBuildType buildType) throws IOException
- Specified by:
getBuildTypeConfigHistory
in interfaceConfigHistoryManager
- Throws:
IOException
-
getBuildTypeConfigHistory
@NotNull public FileHistory getBuildTypeConfigHistory(@NotNull String buildTypeId) throws IOException
- Specified by:
getBuildTypeConfigHistory
in interfaceConfigHistoryManager
- Throws:
IOException
-
getBuildTypeTemplateConfigHistory
@NotNull public FileHistory getBuildTypeTemplateConfigHistory(@NotNull BuildTypeTemplate template) throws IOException
- Specified by:
getBuildTypeTemplateConfigHistory
in interfaceConfigHistoryManager
- Throws:
IOException
-
getBuildTypeTemplateConfigHistory
@NotNull public FileHistory getBuildTypeTemplateConfigHistory(@NotNull String templateId) throws IOException
- Specified by:
getBuildTypeTemplateConfigHistory
in interfaceConfigHistoryManager
- Throws:
IOException
-
getVcsRootConfigHistory
@NotNull public FileHistory getVcsRootConfigHistory(@NotNull SVcsRoot vcsRoot) throws IOException
- Specified by:
getVcsRootConfigHistory
in interfaceConfigHistoryManager
- Throws:
IOException
-
getVcsRootConfigHistory
@NotNull public FileHistory getVcsRootConfigHistory(long vcsRootId) throws IOException
- Specified by:
getVcsRootConfigHistory
in 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)
-
-