public class RepositoryPolicy extends Objectimplements Serializable , Cloneable , InputLocationTracker
| Constructor and Description |
|---|
RepositoryPolicy()
|
| Modifier and Type | Method and Description |
|---|---|
RepositoryPolicy |
clone()
Method clone.
|
String |
getChecksumPolicy()
Get what to do when verification of an artifact checksum fails.
|
String |
getEnabled()
Get whether to use this repository for downloading this type of artifact.
|
InputLocation |
getLocation(Object
Gets the location of the specified field in the input source.
|
String |
getUpdatePolicy()
Get the frequency for downloading updates - can be
always,
daily (default),
interval:XXX (in minutes) or
never (only if it doesn't exist locally).
|
boolean |
isEnabled()
|
void |
setChecksumPolicy(String
Set what to do when verification of an artifact checksum fails.
|
void |
setEnabled(boolean enabled)
|
void |
setEnabled(String
Set whether to use this repository for downloading this type of artifact.
|
void |
setLocation(Object
Sets the location of the specified field.
|
void |
setUpdatePolicy(String
Set the frequency for downloading updates - can be
always,
daily (default),
interval:XXX (in minutes) or
never (only if it doesn't exist locally).
|
public RepositoryPolicyclone()
public StringgetChecksumPolicy()
ignore ,
fail or
warn (the default).
public StringgetEnabled()
String for technical reasons, the semantic type is actually
Boolean. Default value is
true.
public InputLocationgetLocation(Object key)
InputLocationTracker
getLocation in interface
InputLocationTracker
key -
public StringgetUpdatePolicy()
always,
daily (default),
interval:XXX (in minutes) or
never (only if it doesn't exist locally).
public void setChecksumPolicy(StringchecksumPolicy)
ignore ,
fail or
warn (the default).
checksumPolicy -
public void setEnabled(Stringenabled)
String for technical reasons, the semantic type is actually
Boolean. Default value is
true.
enabled -
public void setLocation(Objectkey, InputLocation location)
InputLocationTracker
setLocation in interface
InputLocationTracker
key -
location -
public void setUpdatePolicy(StringupdatePolicy)
always,
daily (default),
interval:XXX (in minutes) or
never (only if it doesn't exist locally).
updatePolicy -
public boolean isEnabled()
public void setEnabled(boolean enabled)