|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.archiva.policies.AbstractUpdatePolicy
public abstract class AbstractUpdatePolicy
AbstractUpdatePolicy
Field Summary | |
---|---|
static java.lang.String |
ALWAYS
The ALWAYS policy setting means that the artifact is always uipdated from the remote repo. |
static java.lang.String |
DAILY
The DAILY policy means that the artifact retrieval occurs only if one of the following conditions are met... |
static java.lang.String |
HOURLY
The HOURLY policy means that the artifact retrieval occurs only if one of the following conditions are met... |
static java.lang.String |
NEVER
The NEVER policy setting means that the artifact is never updated from the remote repo. |
static java.lang.String |
ONCE
The ONCE policy means that the artifact retrieval occurs only if the local artifact is not present. |
Constructor Summary | |
---|---|
AbstractUpdatePolicy()
|
Method Summary | |
---|---|
void |
applyPolicy(java.lang.String policySetting,
java.util.Properties request,
java.io.File localFile)
Apply the download policy. |
java.util.List<java.lang.String> |
getOptions()
Get the list of options for this policy. |
protected abstract java.lang.String |
getUpdateMode()
|
protected abstract boolean |
isSnapshotPolicy()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.archiva.policies.Policy |
---|
getDefaultOption, getId, getName |
Field Detail |
---|
public static final java.lang.String ALWAYS
public static final java.lang.String NEVER
public static final java.lang.String DAILY
The DAILY policy means that the artifact retrieval occurs only if one of the following conditions are met...
public static final java.lang.String HOURLY
The HOURLY policy means that the artifact retrieval occurs only if one of the following conditions are met...
public static final java.lang.String ONCE
Constructor Detail |
---|
public AbstractUpdatePolicy()
Method Detail |
---|
protected abstract boolean isSnapshotPolicy()
protected abstract java.lang.String getUpdateMode()
public java.util.List<java.lang.String> getOptions()
Policy
getOptions
in interface Policy
public void applyPolicy(java.lang.String policySetting, java.util.Properties request, java.io.File localFile) throws PolicyViolationException, PolicyConfigurationException
DownloadPolicy
applyPolicy
in interface DownloadPolicy
policySetting
- the policy setting.request
- the list of request properties that the policy might use.
PolicyViolationException
- if the policy has been violated.
PolicyConfigurationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |