Package jetbrains
Class BuildServerCreator
- java.lang.Object
-
- jetbrains.BuildServerCreator
-
- All Implemented Interfaces:
ServiceLocator
public class BuildServerCreator extends Object implements ServiceLocator
This class is used in multiple tests as `fixture` - the utility to initialize mock server state before test.- Author:
- Pavel.Sher Date: 06.05.2006
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuildServerCreator.SimpleExecutorService
-
Field Summary
Fields Modifier and Type Field Description static StringCAPTURE_HEARTBEAT_LOCK_PROPERTYstatic StringDEFAULT_TEST_BT_EXT_IDstatic StringDEFAULT_TEST_PROJECT_EXT_IDstatic StringMESSAGE_NO_RUNNING_BUILD
-
Constructor Summary
Constructors Constructor Description BuildServerCreator(Class<?> testFixture, File dataDirectory, TestDBAccess testDbAccess)
-
Method Summary
-
-
-
Field Detail
-
MESSAGE_NO_RUNNING_BUILD
public static final String MESSAGE_NO_RUNNING_BUILD
- See Also:
- Constant Field Values
-
CAPTURE_HEARTBEAT_LOCK_PROPERTY
public static final String CAPTURE_HEARTBEAT_LOCK_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_TEST_PROJECT_EXT_ID
public static final String DEFAULT_TEST_PROJECT_EXT_ID
- See Also:
- Constant Field Values
-
DEFAULT_TEST_BT_EXT_ID
public static final String DEFAULT_TEST_BT_EXT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BuildServerCreator
public BuildServerCreator(@NotNull Class<?> testFixture, @NotNull File dataDirectory, @NotNull TestDBAccess testDbAccess)
-
-
Method Detail
-
addTags
public static void addTags(BuildTypeEx dependency, @NotNull String tags)
-
setAwaitInvestigationsProcessingOnBuildFinish
public void setAwaitInvestigationsProcessingOnBuildFinish(boolean awaitInvestigationsProcessingOnBuildFinish)
-
setDataDirectory
public void setDataDirectory(@NotNull File dataDirectory)
-
getTestAnnotation
@Nullable public <T extends Annotation> T getTestAnnotation(@NotNull Class<T> annotation)
-
createNewServer
public BuildServerImpl createNewServer()
-
createNewServer
public BuildServerImpl createNewServer(boolean newStorage)
-
recreateServer
public BuildServerImpl recreateServer(boolean newStorage)
-
shutdown
public void shutdown()
-
wasShutdownCalled
public boolean wasShutdownCalled()
-
createBuildType
public BuildTypeImpl createBuildType(SProject project, String name, String runnerType)
-
createBuildType
public BuildTypeImpl createBuildType(String name, String runnerType)
-
createCompositeBuildType
@NotNull public static BuildTypeEx createCompositeBuildType(@NotNull ProjectEx project, @NotNull String extId)
-
createCompositeBuildType
@NotNull public static BuildTypeEx createCompositeBuildType(@NotNull ProjectEx project, @NotNull String extId, @Nullable String name)
Creates a composite build configuration.
- Parameters:
project- the parent project.extId- theexternalIdof the configuration.name- the optional name of the build configuration. Ifnull, then theexternalIdis used.- Returns:
- the newly created composite build configuration.
-
makeComposite
public static void makeComposite(@NotNull OptionSupport btComposite)
-
prepare_big_chain
public SBuildType prepare_big_chain(int numNodes, @NotNull SProject project)
-
addDependency
public Dependency addDependency(DependencySettings dependent, SBuildType dependOn, boolean withGraphOptimization)
-
getAdministrator
public SUser getAdministrator()
-
createEnabledAgents
public List<MockBuildAgent> createEnabledAgents(String runType, int agentsNum)
-
createEnabledAgent
public MockBuildAgent createEnabledAgent(String runType)
-
createEnabledAgent
@NotNull public MockBuildAgent createEnabledAgent(@NotNull String name, @NotNull String runType)
-
createAgent
@NotNull public MockBuildAgent createAgent(@NotNull String name, @NotNull String runType)
-
createAgent
@NotNull public MockBuildAgent createAgent(@NotNull String name, @NotNull String runType, boolean addLicenses)
-
registerAgent
public void registerAgent(@NotNull BuildAgentEx buildAgent)
-
unregisterAgent
public void unregisterAgent(@NotNull BuildAgentEx buildAgent)
-
addLicenseKeysIfNeeded
public void addLicenseKeysIfNeeded(int requiredNumAgents)
-
loadConfigurationFromDiskAndFireStartup
public void loadConfigurationFromDiskAndFireStartup()
-
createRootProjectConfigIfNecessary
public static void createRootProjectConfigIfNecessary(@NotNull File dataDirectory)
-
patchDefaultMainConfigFile
public static void patchDefaultMainConfigFile(File mainConfigFile)
-
patchAuthConfig
public static void patchAuthConfig(@NotNull ServerPaths serverPaths, @NotNull Collection<AuthConfigTestPatcher> patchers)
-
fireStartup
public void fireStartup()
-
getStatusProvider
public StatusProvider getStatusProvider()
-
getAgentTypeManager
public AgentTypeManager getAgentTypeManager()
-
getAgentTypeFinder
public AgentTypeFinder getAgentTypeFinder()
-
getAgentPoolManager
public AgentPoolManager getAgentPoolManager()
-
getBuildAgentManager
public BuildAgentManagerImpl getBuildAgentManager()
-
getBuildFactory
public BuildFactoryImpl getBuildFactory()
-
getSecuredBuildFactory
public SecuredBuildFactory getSecuredBuildFactory()
-
getSummaryFactory
public TeamCitySummaryFactory getSummaryFactory()
-
getDb
public SQLRunnerEx getDb()
-
getSqlNumber
public long getSqlNumber(String sqlQuery)
-
executeUpdate
public int executeUpdate(String sqlUpdate)
-
getBuildPromotionManager
public BuildPromotionManagerImpl getBuildPromotionManager()
-
getLoginConfiguration
public LoginConfigurationImpl getLoginConfiguration()
-
getStartupContext
public StartupContext getStartupContext()
-
getValueTypeFactory
public ValueProviderRegistry getValueTypeFactory()
-
getBuildDataStorage
public BuildDataStorage getBuildDataStorage()
-
getServerSettings
public ServerSettingsImpl getServerSettings()
-
getUserChangesFacade
public UserChangesFacade getUserChangesFacade()
-
getChangeStatusProvider
public ChangeStatusProvider getChangeStatusProvider()
-
getProject
@NotNull public ProjectEx getProject()
-
getProjectId
@NotNull public String getProjectId()
-
getBuildAgent
public MockBuildAgent getBuildAgent()
-
getBuildType
@NotNull public BuildTypeImpl getBuildType()
-
createAndPersistBuildType
@NotNull public BuildTypeImpl createAndPersistBuildType(@NotNull SProject project, @NotNull String name, @NotNull String runnerType)
-
getVcsManager
public VcsManagerImpl getVcsManager()
-
getBranchSpecs
public BranchSpecsEx getBranchSpecs()
-
getTriggeringContext
public VcsTriggeringContext getTriggeringContext()
-
getVcsHistory
public VcsModificationHistoryEx getVcsHistory()
-
getVcsRootInstancesManager
public VcsRootInstancesManagerEx getVcsRootInstancesManager()
-
getVcsAccessFactory
public VcsAccessFactory getVcsAccessFactory()
-
getModificationStateCalculator
public ModificationStateCalculator getModificationStateCalculator()
-
getProjectManager
public ProjectManagerImpl getProjectManager()
-
getRunTypeRegistry
public RunTypeRegistry getRunTypeRegistry()
-
getBuildTriggerServicesFinder
public BuildTriggerServicesFinder getBuildTriggerServicesFinder()
-
getBuildFeatureDescriptorFactory
public BuildFeatureDescriptorFactory getBuildFeatureDescriptorFactory()
-
getProjectFeatureDescriptorFactory
public ProjectFeatureDescriptorFactory getProjectFeatureDescriptorFactory()
-
getBuildRunnerDescriptorFactory
public BuildRunnerDescriptorFactory getBuildRunnerDescriptorFactory()
-
getServer
public BaseServerTestCase.TestBuildServerImpl getServer()
-
getBuildsManager
public BuildsManager getBuildsManager()
-
getNotificatorRegistry
public NotificatorRegistryImpl getNotificatorRegistry()
-
getPluginPropertiesRegistry
public PluginPropertiesImpl getPluginPropertiesRegistry()
-
getUserAuthSettingsPluginsRegistry
public UserAuthSettingsPluginsRegistryImpl getUserAuthSettingsPluginsRegistry()
-
getNotificationProcessor
public NotificationProcessor getNotificationProcessor()
-
getWebLinks
public WebLinks getWebLinks()
-
getNotificationCountHandler
public BuildPromotionNotificationCountHandler getNotificationCountHandler()
-
getDomainNameFinder
public DomainNameFinder getDomainNameFinder()
-
getArtifactsLogger
public DownloadedArtifactsLoggerImpl getArtifactsLogger()
-
getBuildTypeFactory
public BuildTypeFactoryImpl getBuildTypeFactory()
-
getSecurityContext
public SecurityContextImpl getSecurityContext()
-
getServerResponsibility
public ServerResponsibilityEx getServerResponsibility()
-
getServerAccessChecker
public ServerAccessChecker getServerAccessChecker()
-
getVfmFactory
public SVcsFileModificationFactory getVfmFactory()
-
getDeprecatedRunTypes
public DeprecatedRunTypes getDeprecatedRunTypes()
-
getUserAvatarsManager
public UserAvatarsManager getUserAvatarsManager()
-
getIdProvider
public ProjectIdProvider getIdProvider()
-
getEncryptionManager
public EncryptionManager getEncryptionManager()
-
getResponsibilityFacadeEx
public ResponsibilityFacadeEx getResponsibilityFacadeEx()
-
getAuditLogFactory
public AuditLogFactoryImpl getAuditLogFactory()
-
getAuditLogProvider
public AuditLogProviderImpl getAuditLogProvider()
-
getHistory
public DBBuildHistory getHistory()
-
getEventTracker
public EventTracker getEventTracker()
-
getServerLoginModel
public ServerLoginModel getServerLoginModel()
-
createConfigurationInitializer
public ConfigurationInitializer createConfigurationInitializer()
-
startBuild
public SRunningBuild startBuild()
-
startBuild
public SRunningBuild startBuild(SBuildType type)
-
startBuild
public SRunningBuild startBuild(SBuildType type, Date startTime)
-
flushQueue
@NotNull public void flushQueue()
-
flushQueueAndWait
@NotNull public RunningBuildEx flushQueueAndWait()
-
flushQueueAndWaitN
@NotNull public List<RunningBuildEx> flushQueueAndWaitN(int buildCount)
-
flushQueueAndWait
@NotNull public static RunningBuildEx flushQueueAndWait(@NotNull BuildServerImpl server)
-
flushQueueAndWaitN
@NotNull public static List<RunningBuildEx> flushQueueAndWaitN(@NotNull BuildServerImpl server, int buildCount)
Flushes the queue and waits for
Nnew builds to start.The size of the list returned may be larger than
Nif one or more builds were already running at the time this method was called.- Parameters:
server- the server.buildCount- the number of new builds (incl. composite ones) to await to get started.- Returns:
- the list of currently running builds (i. e. both regular and composite ones).
-
waitForQueuedBuildToStart
@NotNull public RunningBuildEx waitForQueuedBuildToStart()
-
waitForAllBuildsToFinish
public void waitForAllBuildsToFinish()
-
waitForQueuedBuildToStart
@NotNull public RunningBuildEx waitForQueuedBuildToStart(SQueuedBuild qb)
-
waitForQueuedBuildToStart
@NotNull public RunningBuildEx waitForQueuedBuildToStart(BuildPromotion buildPromotion)
-
waitForQueuedBuildToStart
@NotNull public static RunningBuildEx waitForQueuedBuildToStart(@NotNull BuildServerImpl server, BuildPromotion buildPromotion)
-
waitForQueuedBuildToTerminate
@NotNull public FinishedBuildEx waitForQueuedBuildToTerminate(@NotNull SQueuedBuild qb)
-
waitForQueuedBuildToTerminate
@NotNull public static FinishedBuildEx waitForQueuedBuildToTerminate(@NotNull BuildServerImpl server, @NotNull SQueuedBuild qb)
-
createBuild
public SFinishedBuild createBuild(Status status)
-
createBuild
public SFinishedBuild createBuild(SBuildType type, Status status)
-
createPersonalBuild
public SFinishedBuild createPersonalBuild(SUser kir, BuildTypeEx buildType) throws IOException
- Throws:
IOException
-
startPersonalBuild
public SRunningBuild startPersonalBuild(SUser kir, BuildTypeEx buildType) throws IOException
- Throws:
IOException
-
getNotificationRulesManager
public NotificationRulesManager getNotificationRulesManager()
-
getUserGroupNotificationRulesManager
public UserGroupNotificationRulesManager getUserGroupNotificationRulesManager()
-
getNotificationRuleFactory
public NotificationRuleFactory getNotificationRuleFactory()
-
createBuild
public SFinishedBuild createBuild(SBuildType type, Status status, Date startDate)
-
startHistoryBuild
public RunningBuildEx startHistoryBuild(SBuildType buildType, VcsModification mod)
-
getRunningBuild
public SRunningBuild getRunningBuild()
-
finishBuild
public SFinishedBuild finishBuild(boolean buildFailed)
-
finishBuild
public SFinishedBuild finishBuild(@NotNull SRunningBuild runningBuild, boolean buildFailed)
-
finishBuild
public SFinishedBuild finishBuild(@NotNull SRunningBuild runningBuild, boolean buildFailed, Date finishDate)
-
finishBuild
public SFinishedBuild finishBuild(@NotNull SRunningBuild runningBuild, boolean buildFailed, Date finishDate, boolean finishProperly)
-
waitForBuildFinished
public void waitForBuildFinished(long buildId)
-
createVirtualProject
public ProjectEx createVirtualProject(@NotNull String name, @NotNull ProjectEx parentProject)
-
createProject
public ProjectEx createProject(@NotNull String name, @NotNull ProjectEx parentProject)
-
createProject
public ProjectEx createProject(@NotNull String externalId, @NotNull String name, @NotNull ProjectEx parentProject)
-
registerBuildType
public BuildTypeImpl registerBuildType(String name, String projectName, String runnerType, int maxBuilds, BuildTypeDescriptor.CheckoutType checkoutType)
-
registerBuildType
@NotNull public BuildTypeImpl registerBuildType(String name, SProject project, String runnerType, int maxBuilds, BuildTypeDescriptor.CheckoutType checkoutType)
-
registerTestRelevantBuildTypes
public void registerTestRelevantBuildTypes(BuildTypeEx... extraBuildTypes)
-
createPermissionRestrictedUserAccount
public SUser createPermissionRestrictedUserAccount(String account, PermissionsHolder permissionsHolder)
-
createPermissionRestrictedUserAccount
public UserEx createPermissionRestrictedUserAccount(UserEx user, PermissionsHolder permissionsHolder)
-
removeUserAccount
public void removeUserAccount(long userId)
-
createUserGroup
public SUserGroup createUserGroup(String key, String name, String description)
-
registerVcsSupport
public MockVcsSupport registerVcsSupport(String vcsName)
-
registerVcsSupportWithContent
public void registerVcsSupportWithContent(String vcsName, String path, String content)
-
addVcsRoot
public SVcsRootImpl addVcsRoot(String vcsName, String checkoutRoot)
-
addVcsRoot
public SVcsRootImpl addVcsRoot(String vcsName, CheckoutRules checkoutRules)
-
addVcsRoot
public SVcsRootImpl addVcsRoot(String vcsName, String checkoutRoot, SBuildType buildType)
-
addVcsRoot
public SVcsRootImpl addVcsRoot(String vcsName, CheckoutRules rules, SBuildType buildType)
-
addVcsRootInstance
@NotNull public VcsRootInstanceEx addVcsRootInstance(@NotNull ServerVcsSupport vcs, @NotNull SBuildType buildType)
-
addVcsRootInstance
@NotNull public VcsRootInstanceEx addVcsRootInstance(@NotNull ServerVcsSupport vcs, @NotNull CheckoutRules rules, @NotNull SBuildType buildType)
-
addVcsRootInstance
@NotNull public VcsRootInstanceEx addVcsRootInstance(@NotNull String vcsName, @NotNull CheckoutRules rules, @NotNull SBuildType buildType)
-
createPromotionWithChange
public static BuildPromotionEx createPromotionWithChange(BuildTypeEx bt, SVcsModification modification)
-
logBuildMessagesAndDontFlush
public void logBuildMessagesAndDontFlush(@NotNull SRunningBuild build, @NotNull List<BuildMessage1> messages)
-
logBuildMessages
public void logBuildMessages(@NotNull SRunningBuild build, @NotNull List<BuildMessage1> messages)
-
logBuildMessages
public void logBuildMessages(@NotNull SRunningBuild build, @NotNull BuildMessage1... messages)
-
doTestFailed
public void doTestFailed(SRunningBuild runningBuild, String testName)
-
doCompilation
public void doCompilation(SRunningBuild runningBuild, String blockName, Status compileMessageStatus)
-
doTestIgnored
public void doTestIgnored(SRunningBuild runningBuild, String testName, String reason)
-
doTestPassed
public void doTestPassed(SRunningBuild runningBuild, String testName)
-
doTestMetadata
public void doTestMetadata(SRunningBuild runningBuild, TestMetadata metadata)
-
doTestPassed
public void doTestPassed(SRunningBuild runningBuild, String testName, int testDuration)
-
doBuildProblem
public static void doBuildProblem(SBuild build, String problemIdentity, String type, String descr)
-
getProjectFactory
public ProjectFactory getProjectFactory()
-
getUserModel
public UserModelEx getUserModel()
-
getUserUpdate
public UserUpdate getUserUpdate()
-
getUserDataLoader
public UserDataLoader getUserDataLoader()
-
getServerPaths
public ServerPaths getServerPaths()
-
getRolesManager
public RolesManagerImpl getRolesManager()
-
getVcsModificationChecker
public VcsModificationChecker getVcsModificationChecker()
-
getVcsSettingsTracker
public VcsSettingsTracker getVcsSettingsTracker()
-
getMainConfigsWatcher
public MainConfigManager getMainConfigsWatcher()
-
getProjectSettingsManager
public ProjectSettingsManager getProjectSettingsManager()
-
getConfigActionFactory
public ConfigActionFactoryEx getConfigActionFactory()
-
getBuildTestsEventDispatcher
public BuildTestsEventDispatcher getBuildTestsEventDispatcher()
-
getBuildTestsListenerNotifier
public BuildTestsListenerNotifier getBuildTestsListenerNotifier()
-
getProjectImportEventDispatcher
public EventDispatcher<ProjectsImportListener> getProjectImportEventDispatcher()
-
getBuildAgentMessagesQueue
@NotNull public BuildAgentMessagesQueue getBuildAgentMessagesQueue()
-
getSingletonService
@NotNull public <T> T getSingletonService(@NotNull Class<T> serviceClass)Description copied from interface:ServiceLocatorSearches for singleton service of specified type- Specified by:
getSingletonServicein interfaceServiceLocator- Parameters:
serviceClass- type of the service- Returns:
- found service, never null
-
findSingletonService
@Nullable public <T> T findSingletonService(@NotNull Class<T> serviceClass)Description copied from interface:ServiceLocatorSearches for singleton service of specified type- Specified by:
findSingletonServicein interfaceServiceLocator- Parameters:
serviceClass- type of the service- Returns:
- found service or null if there's no such service
-
getServices
@NotNull public <T> Collection<T> getServices(@NotNull Class<T> serviceClass)
Description copied from interface:ServiceLocatorSearches for all bean instances of type- Specified by:
getServicesin interfaceServiceLocator- Parameters:
serviceClass- - type to search- Returns:
- collection of classes that implements T
-
collectChangesBlockMessages
@NotNull public static List<String> collectChangesBlockMessages(@NotNull VcsRoot root)
-
enableGraphOptimization
public static void enableGraphOptimization(Dependency dep)
-
registerBuildFailureOnMetric
public BuildFailureOnMetricFeature registerBuildFailureOnMetric()
-
getTagsManager
public TagsManagerImpl getTagsManager()
-
getEventDispatcher
public EventDispatcher<BuildServerListener> getEventDispatcher()
-
getUserModelEventDispatcher
public EventDispatcher<UserModelListener> getUserModelEventDispatcher()
-
getBuildQueue
public BuildQueueImpl getBuildQueue()
-
getServerCleanupManager
public ServerCleanupManagerImpl getServerCleanupManager()
-
getKeepRuleFactory
public KeepRuleFactory getKeepRuleFactory()
-
getKeepRulesManager
public KeepRulesManager getKeepRulesManager()
-
getVcsLabeler
public VcsLabeler getVcsLabeler()
-
getTestRoles
public TestRoles getTestRoles()
-
getServerLicenseManager
public ServerLicenseManager getServerLicenseManager()
-
getReleaseDateHolder
public FakeReleaseDateHolder getReleaseDateHolder()
-
switchToEnterpriseMode
public void switchToEnterpriseMode()
-
switchToProfessionalMode
public void switchToProfessionalMode()
-
getGlobalPermissionsModeRoles
public GlobalPermissionsRoles getGlobalPermissionsModeRoles()
-
getBuildAgentFactory
public BuildAgentFactoryImpl getBuildAgentFactory()
-
getSecuredBuildAgentFactory
public BuildAgentFactory getSecuredBuildAgentFactory()
-
getMockBuildAgentFactory
public BuildAgentFactoryImplForTests getMockBuildAgentFactory()
-
getXmlRpcBasedServer
public XmlRpcBasedServer getXmlRpcBasedServer()
-
getXmlRpcSessionManager
public XmlRpcSessionManager getXmlRpcSessionManager()
-
getXmlRpcDispatcher
public XmlRpcDispatcher getXmlRpcDispatcher()
-
getLicenseAgreement
public LicenseAgreement getLicenseAgreement()
-
createMockBuildAgent
public MockBuildAgent createMockBuildAgent(String... availableRunTypes)
- See Also:
createEnabledAgent(java.lang.String)
-
getAgentPersistFacade
public AgentPersistenceFacade getAgentPersistFacade()
-
getBlockManager
public BlockStateManager getBlockManager()
-
getCriticalErrors
public CriticalErrors getCriticalErrors()
-
getConfigurationErrors
public ConfigurationErrorsImpl getConfigurationErrors()
-
getServerMessagesTranslator
public BuildMessagesProcessor getServerMessagesTranslator()
-
getTestsHistory
public TestHistoryImpl getTestsHistory()
-
getUserGroupManager
public UserGroupManager getUserGroupManager()
-
getCurrentProblemsManager
public CurrentProblemsManager getCurrentProblemsManager()
-
getTestManager
public STestManager getTestManager()
-
getCloudManagerBase
public CloudManagerBase getCloudManagerBase()
-
getTeamCityNodes
public TeamCityNodes getTeamCityNodes()
-
getMultiNodesEvents
public MultiNodesEvents getMultiNodesEvents()
-
getMultiNodeTasks
public MultiNodeTasks getMultiNodeTasks()
-
getArtifactDependencyFactory
public ArtifactDependencyFactory getArtifactDependencyFactory()
-
getExecutorServices
public ExecutorServices getExecutorServices()
-
getProjectsPersister
public ProjectsPersister getProjectsPersister()
-
getSettingsPersister
public SettingsPersisterImpl getSettingsPersister()
-
getFileWatcherFactory
public FileWatcherFactory getFileWatcherFactory()
-
setupAgentDistributionMonitor
public void setupAgentDistributionMonitor(boolean shouldUpgrade)
-
setAgentDistributionMonitor
public void setAgentDistributionMonitor(@NotNull AgentDistributionMonitor agentDistributionMonitor)
-
createAndStartXmlRpcServer
public static org.apache.xmlrpc.WebServer createAndStartXmlRpcServer()
-
addService
@NotNull public <T> T addService(@NotNull T service)
-
getDatabaseType
public DatabaseType getDatabaseType()
-
setCachesDir
public void setCachesDir(File caches)
-
addModification
public SVcsModification addModification(@NotNull ModificationDataBuilder modification)
-
addModification
@NotNull public SVcsModification addModification(@NotNull ModificationDataBuilder modification, @NotNull List<SBuildType> excludeBuildTypes)
-
addModification
@NotNull public SVcsModification addModification(ModificationData modificationData)
-
addModification
@NotNull public SVcsModification addModification(@NotNull ModificationData modificationData, @NotNull List<SBuildType> excludeBuildTypes)
-
addModification
@NotNull public VcsModificationEx addModification(@NotNull ModificationDataBuilder m, @NotNull SBuildType buildType, @NotNull RelationType relation)
-
addModification
@NotNull public VcsModificationEx addModification(@NotNull ModificationDataBuilder m, @NotNull Map<SBuildType,RelationType> relations)
-
removeUserGroupRoles
public static void removeUserGroupRoles(@NotNull SQLRunnerEx sqlRunner)
-
createXmlRpcBasedRemoteServer
@NotNull public XmlRpcBasedRemoteServer createXmlRpcBasedRemoteServer()
-
createXmlRpcUserSummaryManager
public RemoteStatusManager createXmlRpcUserSummaryManager()
-
startNewSession
@NotNull public static XmlRpcSession startNewSession(@NotNull XmlRpcSessionManager sessionManager, @Nullable Long userId) throws Exception
- Throws:
Exception
-
makeSessionInXmlRpcHandler
public static <T> T makeSessionInXmlRpcHandler(@NotNull String sessionId, @NotNull XmlRpcSessionManager sessionManager, @NotNull Class<T> clazz, @NotNull T obj)
-
enableVersionedSettings
public void enableVersionedSettings(@NotNull SProject project, @NotNull SVcsRoot vcsRoot)
-
writeVersionedSettingsConfig
public void writeVersionedSettingsConfig(@NotNull SProject project, @NotNull VersionedSettingsConfig config)
-
waitForPersistTasksCompletion
public void waitForPersistTasksCompletion()
-
updateRepositoryState
public void updateRepositoryState(@NotNull VcsRootInstance repository, @NotNull RepositoryState state, BuildTypeEx... buildTypes)Sets the new state toRepositoryStateManagerand sends branchesChanged event for the providede build types
-
updateRepositoryState
public void updateRepositoryState(@NotNull VcsRootInstance repository, @NotNull RepositoryState state, boolean currentNode, BuildTypeEx... buildTypes)Sets the new state toRepositoryStateManagerand sends branchesChanged event for the providede build types
-
-