public class ArtifactRepositoryPolicy extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CHECKSUM_POLICY_FAIL |
static String |
CHECKSUM_POLICY_IGNORE |
static String |
CHECKSUM_POLICY_WARN |
static String |
UPDATE_POLICY_ALWAYS |
static String |
UPDATE_POLICY_DAILY |
static String |
UPDATE_POLICY_INTERVAL |
static String |
UPDATE_POLICY_NEVER |
Constructor and Description |
---|
ArtifactRepositoryPolicy() |
ArtifactRepositoryPolicy(ArtifactRepositoryPolicy policy) |
ArtifactRepositoryPolicy(boolean enabled,
String updatePolicy,
String checksumPolicy) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkOutOfDate(Date lastModified) |
String |
getChecksumPolicy() |
String |
getUpdatePolicy() |
boolean |
isEnabled() |
void |
merge(ArtifactRepositoryPolicy policy) |
void |
setChecksumPolicy(String checksumPolicy) |
void |
setEnabled(boolean enabled) |
void |
setUpdatePolicy(String updatePolicy) |
String |
toString() |
public static final String UPDATE_POLICY_NEVER
public static final String UPDATE_POLICY_ALWAYS
public static final String UPDATE_POLICY_DAILY
public static final String UPDATE_POLICY_INTERVAL
public static final String CHECKSUM_POLICY_FAIL
public static final String CHECKSUM_POLICY_WARN
public static final String CHECKSUM_POLICY_IGNORE
public ArtifactRepositoryPolicy()
public ArtifactRepositoryPolicy(ArtifactRepositoryPolicy policy)
public ArtifactRepositoryPolicy(boolean enabled, String updatePolicy, String checksumPolicy)
public void setEnabled(boolean enabled)
public void setUpdatePolicy(String updatePolicy)
public void setChecksumPolicy(String checksumPolicy)
public boolean isEnabled()
public String getUpdatePolicy()
public String getChecksumPolicy()
public boolean checkOutOfDate(Date lastModified)
public void merge(ArtifactRepositoryPolicy policy)
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.