org.apache.archiva.configuration
Class ManagedRepositoryConfiguration

java.lang.Object
  extended by org.apache.archiva.configuration.AbstractRepositoryConfiguration
      extended by org.apache.archiva.configuration.ManagedRepositoryConfiguration
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
V1RepositoryConfiguration

public class ManagedRepositoryConfiguration
extends AbstractRepositoryConfiguration
implements Serializable

Class ManagedRepositoryConfiguration.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
private  boolean blockRedeployments
          True if re-deployment of artifacts already in the repository will be blocked.
private  int daysOlder
          The number of days old which will be the basis for removing a snapshot.
private  boolean deleteReleasedSnapshots
          True if the released snapshots are to be removed from the repo during repository purge.
private  String location
          The file system location for this repository.
private  String refreshCronExpression
          When to run the refresh task.
private  boolean releases
          True if this repository contains release versioned artifacts.
private  int retentionCount
          The total count of the artifact to be retained for each snapshot.
private  boolean scanned
          True if this repository should be scanned and processed.
private  boolean skipPackedIndexCreation
          True to not generate packed index (note you won't be able to export your index.
private  boolean snapshots
          True if this repository contains snapshot versioned artifacts
private  boolean stageRepoNeeded
          Need a staging repository .
 
Constructor Summary
ManagedRepositoryConfiguration()
           
 
Method Summary
 int getDaysOlder()
          Get the number of days old which will be the basis for removing a snapshot.
 String getLocation()
          Get the file system location for this repository.
 String getRefreshCronExpression()
          Get when to run the refresh task.
 int getRetentionCount()
          Get the total count of the artifact to be retained for each snapshot.
 boolean isBlockRedeployments()
          Get true if re-deployment of artifacts already in the repository will be blocked.
 boolean isDeleteReleasedSnapshots()
          Get true if the released snapshots are to be removed from the repo during repository purge.
 boolean isReleases()
          Get true if this repository contains release versioned artifacts.
 boolean isScanned()
          Get true if this repository should be scanned and processed.
 boolean isSkipPackedIndexCreation()
          Get true to not generate packed index (note you won't be able to export your index.
 boolean isSnapshots()
          Get true if this repository contains snapshot versioned artifacts.
 boolean isStageRepoNeeded()
          Get need a staging repository.
 void setBlockRedeployments(boolean blockRedeployments)
          Set true if re-deployment of artifacts already in the repository will be blocked.
 void setDaysOlder(int daysOlder)
          Set the number of days old which will be the basis for removing a snapshot.
 void setDeleteReleasedSnapshots(boolean deleteReleasedSnapshots)
          Set true if the released snapshots are to be removed from the repo during repository purge.
 void setLocation(String location)
          Set the file system location for this repository.
 void setRefreshCronExpression(String refreshCronExpression)
          Set when to run the refresh task.
 void setReleases(boolean releases)
          Set true if this repository contains release versioned artifacts.
 void setRetentionCount(int retentionCount)
          Set the total count of the artifact to be retained for each snapshot.
 void setScanned(boolean scanned)
          Set true if this repository should be scanned and processed.
 void setSkipPackedIndexCreation(boolean skipPackedIndexCreation)
          Set true to not generate packed index (note you won't be able to export your index.
 void setSnapshots(boolean snapshots)
          Set true if this repository contains snapshot versioned artifacts.
 void setStageRepoNeeded(boolean stageRepoNeeded)
          Set need a staging repository.
 
Methods inherited from class org.apache.archiva.configuration.AbstractRepositoryConfiguration
equals, getDescription, getId, getIndexDir, getLayout, getName, hashCode, setDescription, setId, setIndexDir, setLayout, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

private String location
The file system location for this repository.


releases

private boolean releases
True if this repository contains release versioned artifacts.


blockRedeployments

private boolean blockRedeployments
True if re-deployment of artifacts already in the repository will be blocked.


snapshots

private boolean snapshots
True if this repository contains snapshot versioned artifacts


scanned

private boolean scanned
True if this repository should be scanned and processed.


refreshCronExpression

private String refreshCronExpression
When to run the refresh task. Default is every hour .


retentionCount

private int retentionCount
The total count of the artifact to be retained for each snapshot.


daysOlder

private int daysOlder
The number of days old which will be the basis for removing a snapshot.


deleteReleasedSnapshots

private boolean deleteReleasedSnapshots
True if the released snapshots are to be removed from the repo during repository purge.


skipPackedIndexCreation

private boolean skipPackedIndexCreation
True to not generate packed index (note you won't be able to export your index.


stageRepoNeeded

private boolean stageRepoNeeded
Need a staging repository .

Constructor Detail

ManagedRepositoryConfiguration

public ManagedRepositoryConfiguration()
Method Detail

getDaysOlder

public int getDaysOlder()
Get the number of days old which will be the basis for removing a snapshot.

Returns:
int

getLocation

public String getLocation()
Get the file system location for this repository.

Returns:
String

getRefreshCronExpression

public String getRefreshCronExpression()
Get when to run the refresh task. Default is every hour.

Returns:
String

getRetentionCount

public int getRetentionCount()
Get the total count of the artifact to be retained for each snapshot.

Returns:
int

isBlockRedeployments

public boolean isBlockRedeployments()
Get true if re-deployment of artifacts already in the repository will be blocked.

Returns:
boolean

isDeleteReleasedSnapshots

public boolean isDeleteReleasedSnapshots()
Get true if the released snapshots are to be removed from the repo during repository purge.

Returns:
boolean

isReleases

public boolean isReleases()
Get true if this repository contains release versioned artifacts.

Returns:
boolean

isScanned

public boolean isScanned()
Get true if this repository should be scanned and processed.

Returns:
boolean

isSkipPackedIndexCreation

public boolean isSkipPackedIndexCreation()
Get true to not generate packed index (note you won't be able to export your index.

Returns:
boolean

isSnapshots

public boolean isSnapshots()
Get true if this repository contains snapshot versioned artifacts.

Returns:
boolean

isStageRepoNeeded

public boolean isStageRepoNeeded()
Get need a staging repository.

Returns:
boolean

setBlockRedeployments

public void setBlockRedeployments(boolean blockRedeployments)
Set true if re-deployment of artifacts already in the repository will be blocked.

Parameters:
blockRedeployments -

setDaysOlder

public void setDaysOlder(int daysOlder)
Set the number of days old which will be the basis for removing a snapshot.

Parameters:
daysOlder -

setDeleteReleasedSnapshots

public void setDeleteReleasedSnapshots(boolean deleteReleasedSnapshots)
Set true if the released snapshots are to be removed from the repo during repository purge.

Parameters:
deleteReleasedSnapshots -

setLocation

public void setLocation(String location)
Set the file system location for this repository.

Parameters:
location -

setRefreshCronExpression

public void setRefreshCronExpression(String refreshCronExpression)
Set when to run the refresh task. Default is every hour.

Parameters:
refreshCronExpression -

setReleases

public void setReleases(boolean releases)
Set true if this repository contains release versioned artifacts.

Parameters:
releases -

setRetentionCount

public void setRetentionCount(int retentionCount)
Set the total count of the artifact to be retained for each snapshot.

Parameters:
retentionCount -

setScanned

public void setScanned(boolean scanned)
Set true if this repository should be scanned and processed.

Parameters:
scanned -

setSkipPackedIndexCreation

public void setSkipPackedIndexCreation(boolean skipPackedIndexCreation)
Set true to not generate packed index (note you won't be able to export your index.

Parameters:
skipPackedIndexCreation -

setSnapshots

public void setSnapshots(boolean snapshots)
Set true if this repository contains snapshot versioned artifacts.

Parameters:
snapshots -

setStageRepoNeeded

public void setStageRepoNeeded(boolean stageRepoNeeded)
Set need a staging repository.

Parameters:
stageRepoNeeded -


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.