Class VersionedSettingsOptionsImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.VersionedSettingsOptionsImpl
-
- All Implemented Interfaces:
VersionedSettingsOptions
,VersionedSettingsOptionsEx
public class VersionedSettingsOptionsImpl extends Object implements VersionedSettingsOptionsEx
-
-
Field Summary
Fields Modifier and Type Field Description static String
ASYNC_VCS_CHANGES_APPLICATION
static String
CHECK_ALLOWED_UUIDS
static String
COMMIT_DISK_CHANGES
static String
COMPLETE_PENDING_TRANSACTIONS
static String
COMPLETE_PENDING_TRANSACTIONS_TIMEOUT_SECONDS
static String
CUSTOM_SETTINGS_PATHS_ENABLED
static String
FREEZE_SETTINGS_IN_BUILD
static String
SUPPLY_SUITABLE_CONFIGURATIONS
static String
SUPPORT_SETTING_BRANCHES
-
Fields inherited from interface jetbrains.buildServer.serverSide.impl.versionedSettings.VersionedSettingsOptions
XML_FORMAT
-
-
Constructor Summary
Constructors Constructor Description VersionedSettingsOptionsImpl()
VersionedSettingsOptionsImpl(ServerPaths serverPaths)
-
Method Summary
-
-
-
Field Detail
-
FREEZE_SETTINGS_IN_BUILD
public static final String FREEZE_SETTINGS_IN_BUILD
- See Also:
- Constant Field Values
-
SUPPORT_SETTING_BRANCHES
public static final String SUPPORT_SETTING_BRANCHES
- See Also:
- Constant Field Values
-
SUPPLY_SUITABLE_CONFIGURATIONS
public static final String SUPPLY_SUITABLE_CONFIGURATIONS
- See Also:
- Constant Field Values
-
COMPLETE_PENDING_TRANSACTIONS
public static final String COMPLETE_PENDING_TRANSACTIONS
- See Also:
- Constant Field Values
-
COMPLETE_PENDING_TRANSACTIONS_TIMEOUT_SECONDS
public static final String COMPLETE_PENDING_TRANSACTIONS_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
-
ASYNC_VCS_CHANGES_APPLICATION
public static final String ASYNC_VCS_CHANGES_APPLICATION
- See Also:
- Constant Field Values
-
COMMIT_DISK_CHANGES
public static final String COMMIT_DISK_CHANGES
- See Also:
- Constant Field Values
-
CHECK_ALLOWED_UUIDS
public static final String CHECK_ALLOWED_UUIDS
- See Also:
- Constant Field Values
-
CUSTOM_SETTINGS_PATHS_ENABLED
public static final String CUSTOM_SETTINGS_PATHS_ENABLED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VersionedSettingsOptionsImpl
@Autowired public VersionedSettingsOptionsImpl(@NotNull ServerPaths serverPaths)
-
VersionedSettingsOptionsImpl
public VersionedSettingsOptionsImpl()
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceVersionedSettingsOptions
-
isApplyVcsChangesEnabled
public boolean isApplyVcsChangesEnabled()
- Specified by:
isApplyVcsChangesEnabled
in interfaceVersionedSettingsOptions
-
isCommitDiskChangesEnabled
public boolean isCommitDiskChangesEnabled()
- Specified by:
isCommitDiskChangesEnabled
in interfaceVersionedSettingsOptions
-
isFreezeSettingsEnabled
public boolean isFreezeSettingsEnabled()
- Specified by:
isFreezeSettingsEnabled
in interfaceVersionedSettingsOptions
-
isSettingBranchesEnabled
public boolean isSettingBranchesEnabled()
- Specified by:
isSettingBranchesEnabled
in interfaceVersionedSettingsOptions
-
isSupplySuitableConfigurations
public boolean isSupplySuitableConfigurations()
- Specified by:
isSupplySuitableConfigurations
in interfaceVersionedSettingsOptions
-
isCompletePendingTransactions
public boolean isCompletePendingTransactions()
- Specified by:
isCompletePendingTransactions
in interfaceVersionedSettingsOptions
-
isAsyncVcsChangesApplication
public boolean isAsyncVcsChangesApplication()
- Specified by:
isAsyncVcsChangesApplication
in interfaceVersionedSettingsOptions
-
isShowCustomSettingsFormats
public boolean isShowCustomSettingsFormats(@NotNull SProject p)
- Specified by:
isShowCustomSettingsFormats
in interfaceVersionedSettingsOptions
-
isShowGenerateDslProjectAction
public boolean isShowGenerateDslProjectAction()
- Specified by:
isShowGenerateDslProjectAction
in interfaceVersionedSettingsOptions
-
isRequireFirstRevisionForProjectLoad
public boolean isRequireFirstRevisionForProjectLoad()
Description copied from interface:VersionedSettingsOptions
Whether TC should check that all projects in settings root have first revisions and don't allow load settings from VCS if it is not the case- Specified by:
isRequireFirstRevisionForProjectLoad
in interfaceVersionedSettingsOptions
-
isCheckAllowedUuids
public boolean isCheckAllowedUuids()
- Specified by:
isCheckAllowedUuids
in interfaceVersionedSettingsOptions
-
getCompletePendingTransactionsTimeoutSeconds
public int getCompletePendingTransactionsTimeoutSeconds()
- Specified by:
getCompletePendingTransactionsTimeoutSeconds
in interfaceVersionedSettingsOptions
-
getVersionedSettingsStatusUpdateIntervalMillis
public long getVersionedSettingsStatusUpdateIntervalMillis()
- Specified by:
getVersionedSettingsStatusUpdateIntervalMillis
in interfaceVersionedSettingsOptions
-
getCommitDelaySeconds
public int getCommitDelaySeconds()
- Specified by:
getCommitDelaySeconds
in interfaceVersionedSettingsOptions
-
setDisabledReason
public void setDisabledReason(@NotNull String reason, @NotNull Date disabledSince)
- Specified by:
setDisabledReason
in interfaceVersionedSettingsOptionsEx
-
setConvertedProjectsIds
public void setConvertedProjectsIds(@NotNull Set<String> projectsInternalIds, @NotNull Date conversionDate)
Description copied from interface:VersionedSettingsOptionsEx
Accepts internal ids of projects whose settings were converted during the last upgrade.- Specified by:
setConvertedProjectsIds
in interfaceVersionedSettingsOptionsEx
-
getConvertedProjectsIds
@NotNull public Set<String> getConvertedProjectsIds()
- Specified by:
getConvertedProjectsIds
in interfaceVersionedSettingsOptionsEx
-
resetConvertedProjectsIds
@NotNull public Set<String> resetConvertedProjectsIds()
- Specified by:
resetConvertedProjectsIds
in interfaceVersionedSettingsOptionsEx
-
getSettingsConversionDate
@Nullable public Date getSettingsConversionDate()
- Specified by:
getSettingsConversionDate
in interfaceVersionedSettingsOptions
- Returns:
- last date of settings disabling
-
clearDisabledReason
public boolean clearDisabledReason()
- Specified by:
clearDisabledReason
in interfaceVersionedSettingsOptionsEx
- Returns:
- true if the disabled reason was set before this method call.
-
setNotPersistedEnabled
public void setNotPersistedEnabled(boolean enabled)
- Specified by:
setNotPersistedEnabled
in interfaceVersionedSettingsOptionsEx
-
isNotPersistedEnabled
public boolean isNotPersistedEnabled()
- Specified by:
isNotPersistedEnabled
in interfaceVersionedSettingsOptionsEx
-
getVersionedSettingsContentDir
@NotNull public File getVersionedSettingsContentDir()
- Specified by:
getVersionedSettingsContentDir
in interfaceVersionedSettingsOptions
-
getDefaultSettingsDirName
@NotNull public String getDefaultSettingsDirName()
- Specified by:
getDefaultSettingsDirName
in interfaceVersionedSettingsOptions
-
getSettingsPluginDataDirName
@NotNull public String getSettingsPluginDataDirName()
- Specified by:
getSettingsPluginDataDirName
in interfaceVersionedSettingsOptions
-
getPendingDeletesDirName
@NotNull public String getPendingDeletesDirName()
- Specified by:
getPendingDeletesDirName
in interfaceVersionedSettingsOptions
-
getCommitMessagePrefix
@NotNull public String getCommitMessagePrefix()
- Specified by:
getCommitMessagePrefix
in interfaceVersionedSettingsOptions
-
getApplySettingsChangesThreadCount
public int getApplySettingsChangesThreadCount()
- Specified by:
getApplySettingsChangesThreadCount
in interfaceVersionedSettingsOptions
-
getApplySettingsChangesQueueSize
public int getApplySettingsChangesQueueSize()
- Specified by:
getApplySettingsChangesQueueSize
in interfaceVersionedSettingsOptions
-
isCustomPathsEnabled
public boolean isCustomPathsEnabled()
- Specified by:
isCustomPathsEnabled
in interfaceVersionedSettingsOptionsEx
-
-