Class StorableRule
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.cleanup.v2019.rules.StorableRule
-
public final class StorableRule extends Object
EncapsulatesKeepRule
storage logic (keep rules are stored as build configuration/project features). Also supports special virtual "disabling parental" rules that allow to disable parental keep rules in a child.- Since:
- 2019.2
- See Also:
KeepRulesManager
,KeepRuleFactory
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILTERS_PREFIX
static String
KEEP_DATA_PREFIX
static String
LIMIT_PREFIX
static String
PARTITIONS_PREFIX
static String
PRESERVE_ARTIFACT_DEPENDENCIES_PARAM
static String
RULE_DISABLED_PARAM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StorableRule
create(SKeepRule keepRule)
static StorableRule
create(SKeepRule keepRule, boolean ruleDisabled)
static StorableRule
disablingParental()
boolean
equals(Object o)
Map<String,String>
getFeatureParams()
Provides the whole rule parameters and some additional params (as rule enabled/disabled) to store it in project/build feature.SKeepRule
getRule()
int
hashCode()
boolean
isPureDisable()
boolean
isRuleDisabled()
boolean
isRuleEnabled()
String
toString()
-
-
-
Field Detail
-
RULE_DISABLED_PARAM
public static final String RULE_DISABLED_PARAM
- See Also:
- Constant Field Values
-
KEEP_DATA_PREFIX
public static final String KEEP_DATA_PREFIX
- See Also:
- Constant Field Values
-
FILTERS_PREFIX
public static final String FILTERS_PREFIX
- See Also:
- Constant Field Values
-
PARTITIONS_PREFIX
public static final String PARTITIONS_PREFIX
- See Also:
- Constant Field Values
-
LIMIT_PREFIX
public static final String LIMIT_PREFIX
- See Also:
- Constant Field Values
-
PRESERVE_ARTIFACT_DEPENDENCIES_PARAM
public static final String PRESERVE_ARTIFACT_DEPENDENCIES_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
@NotNull public static StorableRule create(@NotNull SKeepRule keepRule)
-
create
@NotNull public static StorableRule create(@NotNull SKeepRule keepRule, boolean ruleDisabled)
-
disablingParental
@NotNull public static StorableRule disablingParental()
-
getRule
@Nullable public SKeepRule getRule()
- Returns:
- cleanup rule. Can be
null
only ifisRuleDisabled() == true
-
isRuleDisabled
public boolean isRuleDisabled()
-
isRuleEnabled
public boolean isRuleEnabled()
-
isPureDisable
public boolean isPureDisable()
-
getFeatureParams
@NotNull public Map<String,String> getFeatureParams()
Provides the whole rule parameters and some additional params (as rule enabled/disabled) to store it in project/build feature.
-
-