Class StorableRule
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.cleanup.v2019.rules.StorableRule
-
public final class StorableRule extends Object
EncapsulatesKeepRulestorage 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 StringFILTERS_PREFIXstatic StringKEEP_DATA_PREFIXstatic StringLIMIT_PREFIXstatic StringPARTITIONS_PREFIXstatic StringPRESERVE_ARTIFACT_DEPENDENCIES_PARAMstatic StringRULE_DISABLED_PARAM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StorableRulecreate(SKeepRule keepRule)static StorableRulecreate(SKeepRule keepRule, boolean ruleDisabled)static StorableRuledisablingParental()booleanequals(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.SKeepRulegetRule()inthashCode()booleanisPureDisable()booleanisRuleDisabled()booleanisRuleEnabled()StringtoString()
-
-
-
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
nullonly 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.
-
-