public class BanDistributionManagement extends AbstractNonCacheableEnforcerRule
distributionManagement
part. This should be by best practice
only defined once. It could happen that you like to check the parent as well. This can be activated by using the
ignoreParent
which is by default turned off (true
) which means not to check the parent.Constructor and Description |
---|
BanDistributionManagement() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper helper) |
boolean |
isAllowRepository() |
boolean |
isAllowSite() |
boolean |
isAllowSnapshotRepository() |
boolean |
isIgnoreParent() |
void |
setAllowRepository(boolean allowRepository) |
void |
setAllowSite(boolean allowSite) |
void |
setAllowSnapshotRepository(boolean allowSnapshotRepository) |
void |
setIgnoreParent(boolean ignoreParent) |
getCacheId, isCacheable, isResultValid
getLevel, getMessage, setLevel, setMessage
public BanDistributionManagement()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRuleException
public boolean isIgnoreParent()
public void setIgnoreParent(boolean ignoreParent)
public boolean isAllowRepository()
public void setAllowRepository(boolean allowRepository)
public boolean isAllowSnapshotRepository()
public void setAllowSnapshotRepository(boolean allowSnapshotRepository)
public boolean isAllowSite()
public void setAllowSite(boolean allowSite)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.