org.apache.maven.artifact.repository
Class ArtifactRepositoryPolicy

java.lang.Object
  extended by org.apache.maven.artifact.repository.ArtifactRepositoryPolicy

public class ArtifactRepositoryPolicy
extends Object

Describes a set of policies for a repository to use under certain conditions.

Version:
$Id: ArtifactRepositoryPolicy.java 999860 2010-09-22 10:23:18Z bentmann $
Author:
Brett Porter

Field Summary
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 Summary
ArtifactRepositoryPolicy()
           
ArtifactRepositoryPolicy(ArtifactRepositoryPolicy policy)
           
ArtifactRepositoryPolicy(boolean enabled, String updatePolicy, String checksumPolicy)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UPDATE_POLICY_NEVER

public static final String UPDATE_POLICY_NEVER
See Also:
Constant Field Values

UPDATE_POLICY_ALWAYS

public static final String UPDATE_POLICY_ALWAYS
See Also:
Constant Field Values

UPDATE_POLICY_DAILY

public static final String UPDATE_POLICY_DAILY
See Also:
Constant Field Values

UPDATE_POLICY_INTERVAL

public static final String UPDATE_POLICY_INTERVAL
See Also:
Constant Field Values

CHECKSUM_POLICY_FAIL

public static final String CHECKSUM_POLICY_FAIL
See Also:
Constant Field Values

CHECKSUM_POLICY_WARN

public static final String CHECKSUM_POLICY_WARN
See Also:
Constant Field Values

CHECKSUM_POLICY_IGNORE

public static final String CHECKSUM_POLICY_IGNORE
See Also:
Constant Field Values
Constructor Detail

ArtifactRepositoryPolicy

public ArtifactRepositoryPolicy()

ArtifactRepositoryPolicy

public ArtifactRepositoryPolicy(ArtifactRepositoryPolicy policy)

ArtifactRepositoryPolicy

public ArtifactRepositoryPolicy(boolean enabled,
                                String updatePolicy,
                                String checksumPolicy)
Method Detail

setEnabled

public void setEnabled(boolean enabled)

setUpdatePolicy

public void setUpdatePolicy(String updatePolicy)

setChecksumPolicy

public void setChecksumPolicy(String checksumPolicy)

isEnabled

public boolean isEnabled()

getUpdatePolicy

public String getUpdatePolicy()

getChecksumPolicy

public String getChecksumPolicy()

checkOutOfDate

public boolean checkOutOfDate(Date lastModified)

toString

public String toString()
Overrides:
toString in class Object

merge

public void merge(ArtifactRepositoryPolicy policy)


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.