|
||||||||||
| 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 String |
ALWAYS
The ALWAYS policy setting means that the artifact is always uipdated from the remote repo. |
static String |
DAILY
The DAILY policy means that the artifact retrieval occurs only if one of the following conditions are met... |
static String |
HOURLY
The HOURLY policy means that the artifact retrieval occurs only if one of the following conditions are met... |
static String |
NEVER
The NEVER policy setting means that the artifact is never updated from the remote repo. |
static 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(String policySetting,
Properties request,
File localFile)
Apply the download policy. |
List<String> |
getOptions()
Get the list of options for this policy. |
protected abstract 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 String ALWAYS
public static final String NEVER
public static final String DAILY
The DAILY policy means that the artifact retrieval occurs only if one of the following conditions are met...
public static final String HOURLY
The HOURLY policy means that the artifact retrieval occurs only if one of the following conditions are met...
public static final String ONCE
| Constructor Detail |
|---|
public AbstractUpdatePolicy()
| Method Detail |
|---|
protected abstract boolean isSnapshotPolicy()
protected abstract String getUpdateMode()
public List<String> getOptions()
Policy
getOptions in interface Policy
public void applyPolicy(String policySetting,
Properties request,
File localFile)
throws PolicyViolationException,
PolicyConfigurationException
DownloadPolicy
applyPolicy in interface DownloadPolicypolicySetting - 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 | |||||||||