|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.plan.branch.BranchMonitoringConfigurationImpl
public class BranchMonitoringConfigurationImpl
Keeps build plan specific plan branch monitoring settings.
Field Summary |
---|
Constructor Summary | |
---|---|
BranchMonitoringConfigurationImpl()
|
Method Summary | |
---|---|
org.apache.commons.configuration.HierarchicalConfiguration |
getCustomConfiguration()
Return custom configuration related to branch detection in the particular plan. |
BranchIntegrationConfiguration |
getDefaultBranchIntegrationConfiguration()
|
BranchNotificationStrategy |
getDefaultBranchNotificationStrategy()
|
int |
getInactiveBranchCleanUpPeriodInDays()
Returns a number of days the branch will be consider inactive (as per no commits activity in the repo) and therefore deleted. |
String |
getMatchingPattern()
Returns the reg expression every vcs branch name needs to match for Bamboo to automatically create a plan branch for it. |
int |
getRemovedBranchCleanUpPeriodInDays()
Returns a number of days the plan branch will be deleted once detected the vcs branch has been removed. |
int |
getTimeOfInactivityInDays()
Returns the period a branch is considered inactive, and therefore deleted given that inactive cleanup is enabled. |
boolean |
isCleanupEnabled()
Returns if Bamboo is configured to automatically clean up plan branches. |
boolean |
isInactiveBranchCleanUpEnabled()
Returns if Bamboo is configured to automatically clean up plan branches for branches that are considered inactive. |
boolean |
isMonitoringEnabled()
Returns if Bamboo is configured to monitor plan branches when detecting new branches in the repo. |
boolean |
isPlanBranchCreationEnabled()
Returns if Bamboo is configured to automatically create plan branches when detecting new branches in the repo. |
boolean |
isRemoteJiraBranchLinkingEnabled()
Returns if Bamboo will attempt to create remote issue links in JIRA when it finds an issue key in the branch name. |
boolean |
isRemovedBranchCleanUpEnabled()
Returns if Bamboo is configured to automatically clean up plan branches if the vcs branch is removed. |
boolean |
isValid()
Is the object state valid after it has been initialised from properties. |
boolean |
monitorPullRequests()
Currently Bamboo does not handle plan branch monitoring by Pull Requests detection. |
void |
populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
Update the current object with data in the HierarchicalConfiguration |
void |
setCustomConfiguration(org.apache.commons.configuration.HierarchicalConfiguration customConfiguration)
|
void |
setDefaultBranchIntegrationConfiguration(BranchIntegrationConfiguration defaultBranchIntegrationConfiguration)
|
void |
setDefaultBranchNotificationStrategy(BranchNotificationStrategy defaultBranchNotificationStrategy)
|
void |
setInactiveBranchCleanUpEnabled(boolean enabled)
Sets Bamboo to automatically cleanup plan branches if vcs branch is inactive. |
void |
setInactiveBranchCleanUpPeriodInDays(int inactiveBranchCleanUpPeriodInDays)
Sets the number of days a plan branch will be consider inactive (as per no commits activity in the repo) and therefore deleted. |
void |
setMatchingPattern(String regularExpression)
Sets the reg expression every vcs branch name will match for Bamboo to automatically create a plan branch for it. |
void |
setMonitoringEnabled(boolean enabled)
Controls whether plan branches will be created when new branches are detected and whether inactive branches will be automatically removed. |
void |
setMonitorPullRequests(boolean monitorPullRequests)
Currently Bamboo does not handle plan branch monitoring by Pull Requests detection. |
void |
setPlanBranchCreationEnabled(boolean isBranchCreationEnabled)
Sets Bamboo to automatically create plan branches when detecting new branches in the repo. |
void |
setRemoteJiraBranchLinkingEnabled(boolean jiraBranchLinkingEnabled)
Sets if Bamboo will attempt to create remote issue links in JIRA when it finds an issue key in the branch name. |
void |
setRemovedBranchCleanUpEnabled(boolean isAutomaticPlanBranchCleanUpEnabled)
Sets Bamboo to automatically cleanup plan branches if vcs branch is deleted. |
void |
setRemovedBranchCleanUpPeriodInDays(int cleanUpPeriodInDays)
Sets the number of days a plan branch will be deleted once detected the vcs branch is removed. |
void |
setTimeOfInactivityInDays(int timeOfInactivityInDays)
Set inactivity cleanup period or turn inactivity cleanup off by passing 0. |
org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Generate a HierarchicalConfiguration from the current state of the object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BranchMonitoringConfigurationImpl()
Method Detail |
---|
public boolean isMonitoringEnabled()
BranchMonitoringConfiguration
isMonitoringEnabled
in interface BranchMonitoringConfiguration
public void setMonitoringEnabled(boolean enabled)
BranchMonitoringConfiguration
setMonitoringEnabled
in interface BranchMonitoringConfiguration
public boolean isPlanBranchCreationEnabled()
BranchMonitoringConfiguration
isPlanBranchCreationEnabled
in interface BranchMonitoringConfiguration
public boolean isRemovedBranchCleanUpEnabled()
BranchMonitoringConfiguration
BranchMonitoringConfiguration.setRemovedBranchCleanUpPeriodInDays(int)
.
isRemovedBranchCleanUpEnabled
in interface BranchMonitoringConfiguration
public void setPlanBranchCreationEnabled(boolean isBranchCreationEnabled)
BranchMonitoringConfiguration
setPlanBranchCreationEnabled
in interface BranchMonitoringConfiguration
isBranchCreationEnabled
- turns on / off this settingpublic void setRemovedBranchCleanUpEnabled(boolean isAutomaticPlanBranchCleanUpEnabled)
BranchMonitoringConfiguration
setRemovedBranchCleanUpEnabled
in interface BranchMonitoringConfiguration
isAutomaticPlanBranchCleanUpEnabled
- turns on / off this settingpublic boolean isInactiveBranchCleanUpEnabled()
BranchMonitoringConfiguration
BranchMonitoringConfiguration.setInactiveBranchCleanUpPeriodInDays(int)
.
isInactiveBranchCleanUpEnabled
in interface BranchMonitoringConfiguration
public void setInactiveBranchCleanUpEnabled(boolean enabled)
BranchMonitoringConfiguration
setInactiveBranchCleanUpEnabled
in interface BranchMonitoringConfiguration
enabled
- turns on / off this settingpublic String getMatchingPattern()
BranchMonitoringConfiguration
BranchMonitoringConfiguration.isPlanBranchCreationEnabled()
.
getMatchingPattern
in interface BranchMonitoringConfiguration
public void setMatchingPattern(@NotNull String regularExpression)
BranchMonitoringConfiguration
BranchMonitoringConfiguration.setPlanBranchCreationEnabled(boolean)
.
setMatchingPattern
in interface BranchMonitoringConfiguration
regularExpression
- regular expression for the vcs branch name to matchpublic boolean isCleanupEnabled()
BranchMonitoringConfiguration
isCleanupEnabled
in interface BranchMonitoringConfiguration
public int getTimeOfInactivityInDays()
BranchMonitoringConfiguration
getTimeOfInactivityInDays
in interface BranchMonitoringConfiguration
public void setTimeOfInactivityInDays(int timeOfInactivityInDays)
BranchMonitoringConfiguration
setTimeOfInactivityInDays
in interface BranchMonitoringConfiguration
public int getInactiveBranchCleanUpPeriodInDays()
BranchMonitoringConfiguration
getInactiveBranchCleanUpPeriodInDays
in interface BranchMonitoringConfiguration
public void setInactiveBranchCleanUpPeriodInDays(int inactiveBranchCleanUpPeriodInDays)
BranchMonitoringConfiguration
setInactiveBranchCleanUpPeriodInDays
in interface BranchMonitoringConfiguration
inactiveBranchCleanUpPeriodInDays
- number of days a vcs branch is considered to be inactivepublic int getRemovedBranchCleanUpPeriodInDays()
BranchMonitoringConfiguration
getRemovedBranchCleanUpPeriodInDays
in interface BranchMonitoringConfiguration
public void setRemovedBranchCleanUpPeriodInDays(int cleanUpPeriodInDays)
BranchMonitoringConfiguration
setRemovedBranchCleanUpPeriodInDays
in interface BranchMonitoringConfiguration
cleanUpPeriodInDays
- number of days a plan branch is considered to be removed afterpublic boolean monitorPullRequests()
BranchMonitoringConfiguration
monitorPullRequests
in interface BranchMonitoringConfiguration
public void setMonitorPullRequests(boolean monitorPullRequests)
BranchMonitoringConfiguration
setMonitorPullRequests
in interface BranchMonitoringConfiguration
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration getCustomConfiguration()
BranchMonitoringConfiguration
getCustomConfiguration
in interface BranchMonitoringConfiguration
public void setCustomConfiguration(org.apache.commons.configuration.HierarchicalConfiguration customConfiguration)
setCustomConfiguration
in interface BranchMonitoringConfiguration
public BranchNotificationStrategy getDefaultBranchNotificationStrategy()
getDefaultBranchNotificationStrategy
in interface BranchMonitoringConfiguration
public void setDefaultBranchNotificationStrategy(BranchNotificationStrategy defaultBranchNotificationStrategy)
setDefaultBranchNotificationStrategy
in interface BranchMonitoringConfiguration
public BranchIntegrationConfiguration getDefaultBranchIntegrationConfiguration()
getDefaultBranchIntegrationConfiguration
in interface BranchMonitoringConfiguration
public void setDefaultBranchIntegrationConfiguration(BranchIntegrationConfiguration defaultBranchIntegrationConfiguration)
setDefaultBranchIntegrationConfiguration
in interface BranchMonitoringConfiguration
public boolean isRemoteJiraBranchLinkingEnabled()
BranchMonitoringConfiguration
isRemoteJiraBranchLinkingEnabled
in interface BranchMonitoringConfiguration
public void setRemoteJiraBranchLinkingEnabled(boolean jiraBranchLinkingEnabled)
BranchMonitoringConfiguration
setRemoteJiraBranchLinkingEnabled
in interface BranchMonitoringConfiguration
jiraBranchLinkingEnabled
- enables/disables this settingpublic void populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfig
HierarchicalConfiguration
populateFromConfig
in interface ConvertibleFromConfig
public boolean isValid()
OptionallyConvertibleFromConfig
isValid
in interface OptionallyConvertibleFromConfig
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the object
toConfiguration
in interface ConvertibleFromConfig
HierarchicalConfiguration
. Never null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |