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 StringASYNC_VCS_CHANGES_APPLICATIONstatic StringCHECK_ALLOWED_UUIDSstatic StringCOMMIT_DISK_CHANGESstatic StringCOMPLETE_PENDING_TRANSACTIONSstatic StringCOMPLETE_PENDING_TRANSACTIONS_TIMEOUT_SECONDSstatic StringCUSTOM_SETTINGS_PATHS_ENABLEDstatic StringFREEZE_SETTINGS_IN_BUILDstatic StringSUPPLY_SUITABLE_CONFIGURATIONSstatic StringSUPPORT_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:
isEnabledin interfaceVersionedSettingsOptions
-
isApplyVcsChangesEnabled
public boolean isApplyVcsChangesEnabled()
- Specified by:
isApplyVcsChangesEnabledin interfaceVersionedSettingsOptions
-
isCommitDiskChangesEnabled
public boolean isCommitDiskChangesEnabled()
- Specified by:
isCommitDiskChangesEnabledin interfaceVersionedSettingsOptions
-
isFreezeSettingsEnabled
public boolean isFreezeSettingsEnabled()
- Specified by:
isFreezeSettingsEnabledin interfaceVersionedSettingsOptions
-
isSettingBranchesEnabled
public boolean isSettingBranchesEnabled()
- Specified by:
isSettingBranchesEnabledin interfaceVersionedSettingsOptions
-
isSupplySuitableConfigurations
public boolean isSupplySuitableConfigurations()
- Specified by:
isSupplySuitableConfigurationsin interfaceVersionedSettingsOptions
-
isCompletePendingTransactions
public boolean isCompletePendingTransactions()
- Specified by:
isCompletePendingTransactionsin interfaceVersionedSettingsOptions
-
isAsyncVcsChangesApplication
public boolean isAsyncVcsChangesApplication()
- Specified by:
isAsyncVcsChangesApplicationin interfaceVersionedSettingsOptions
-
isShowCustomSettingsFormats
public boolean isShowCustomSettingsFormats(@NotNull SProject p)- Specified by:
isShowCustomSettingsFormatsin interfaceVersionedSettingsOptions
-
isShowGenerateDslProjectAction
public boolean isShowGenerateDslProjectAction()
- Specified by:
isShowGenerateDslProjectActionin interfaceVersionedSettingsOptions
-
isRequireFirstRevisionForProjectLoad
public boolean isRequireFirstRevisionForProjectLoad()
Description copied from interface:VersionedSettingsOptionsWhether 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:
isRequireFirstRevisionForProjectLoadin interfaceVersionedSettingsOptions
-
isCheckAllowedUuids
public boolean isCheckAllowedUuids()
- Specified by:
isCheckAllowedUuidsin interfaceVersionedSettingsOptions
-
getCompletePendingTransactionsTimeoutSeconds
public int getCompletePendingTransactionsTimeoutSeconds()
- Specified by:
getCompletePendingTransactionsTimeoutSecondsin interfaceVersionedSettingsOptions
-
getVersionedSettingsStatusUpdateIntervalMillis
public long getVersionedSettingsStatusUpdateIntervalMillis()
- Specified by:
getVersionedSettingsStatusUpdateIntervalMillisin interfaceVersionedSettingsOptions
-
getCommitDelaySeconds
public int getCommitDelaySeconds()
- Specified by:
getCommitDelaySecondsin interfaceVersionedSettingsOptions
-
setDisabledReason
public void setDisabledReason(@NotNull String reason, @NotNull Date disabledSince)- Specified by:
setDisabledReasonin interfaceVersionedSettingsOptionsEx
-
setConvertedProjectsIds
public void setConvertedProjectsIds(@NotNull Set<String> projectsInternalIds, @NotNull Date conversionDate)Description copied from interface:VersionedSettingsOptionsExAccepts internal ids of projects whose settings were converted during the last upgrade.- Specified by:
setConvertedProjectsIdsin interfaceVersionedSettingsOptionsEx
-
getConvertedProjectsIds
@NotNull public Set<String> getConvertedProjectsIds()
- Specified by:
getConvertedProjectsIdsin interfaceVersionedSettingsOptionsEx
-
resetConvertedProjectsIds
@NotNull public Set<String> resetConvertedProjectsIds()
- Specified by:
resetConvertedProjectsIdsin interfaceVersionedSettingsOptionsEx
-
getSettingsConversionDate
@Nullable public Date getSettingsConversionDate()
- Specified by:
getSettingsConversionDatein interfaceVersionedSettingsOptions- Returns:
- last date of settings disabling
-
clearDisabledReason
public boolean clearDisabledReason()
- Specified by:
clearDisabledReasonin interfaceVersionedSettingsOptionsEx- Returns:
- true if the disabled reason was set before this method call.
-
setNotPersistedEnabled
public void setNotPersistedEnabled(boolean enabled)
- Specified by:
setNotPersistedEnabledin interfaceVersionedSettingsOptionsEx
-
isNotPersistedEnabled
public boolean isNotPersistedEnabled()
- Specified by:
isNotPersistedEnabledin interfaceVersionedSettingsOptionsEx
-
getVersionedSettingsContentDir
@NotNull public File getVersionedSettingsContentDir()
- Specified by:
getVersionedSettingsContentDirin interfaceVersionedSettingsOptions
-
getDefaultSettingsDirName
@NotNull public String getDefaultSettingsDirName()
- Specified by:
getDefaultSettingsDirNamein interfaceVersionedSettingsOptions
-
getSettingsPluginDataDirName
@NotNull public String getSettingsPluginDataDirName()
- Specified by:
getSettingsPluginDataDirNamein interfaceVersionedSettingsOptions
-
getPendingDeletesDirName
@NotNull public String getPendingDeletesDirName()
- Specified by:
getPendingDeletesDirNamein interfaceVersionedSettingsOptions
-
getCommitMessagePrefix
@NotNull public String getCommitMessagePrefix()
- Specified by:
getCommitMessagePrefixin interfaceVersionedSettingsOptions
-
getApplySettingsChangesThreadCount
public int getApplySettingsChangesThreadCount()
- Specified by:
getApplySettingsChangesThreadCountin interfaceVersionedSettingsOptions
-
getApplySettingsChangesQueueSize
public int getApplySettingsChangesQueueSize()
- Specified by:
getApplySettingsChangesQueueSizein interfaceVersionedSettingsOptions
-
isCustomPathsEnabled
public boolean isCustomPathsEnabled()
- Specified by:
isCustomPathsEnabledin interfaceVersionedSettingsOptionsEx
-
-