private boolean resetStats;
- private boolean scanned =false;
+ private boolean scanned = false;
+
+ /**
+ * default model value
+ */
+ private int daysOlder = 100;
+
+ /**
+ * default model value
+ */
+ private int retentionCount = 2;
+
+ private boolean deleteReleasedSnapshots;
+
+ private String indexDirectory;
public ManagedRepository()
{
this.scanned = scanned;
}
+ public String getIndexDirectory()
+ {
+ return indexDirectory;
+ }
+
+ public void setIndexDirectory( String indexDirectory )
+ {
+ this.indexDirectory = indexDirectory;
+ }
+
+ public int getDaysOlder()
+ {
+ return daysOlder;
+ }
+
+ public void setDaysOlder( int daysOlder )
+ {
+ this.daysOlder = daysOlder;
+ }
+
+ public int getRetentionCount()
+ {
+ return retentionCount;
+ }
+
+ public void setRetentionCount( int retentionCount )
+ {
+ this.retentionCount = retentionCount;
+ }
+
+ public boolean isDeleteReleasedSnapshots()
+ {
+ return deleteReleasedSnapshots;
+ }
+
+ public void setDeleteReleasedSnapshots( boolean deleteReleasedSnapshots )
+ {
+ this.deleteReleasedSnapshots = deleteReleasedSnapshots;
+ }
+
public int hashCode()
{
int result = 17;
sb.append( ", cronExpression='" ).append( cronExpression ).append( '\'' );
sb.append( ", resetStats=" ).append( resetStats );
sb.append( ", scanned=" ).append( scanned );
+ sb.append( ", indexDirectory='" ).append( indexDirectory ).append( '\'' );
sb.append( '}' );
return sb.toString();
}
repo.setName( managedRepository.getName() );
repo.setReleases( managedRepository.isReleases() );
repo.setSnapshots( managedRepository.isSnapshots() );
+ repo.setIndexDirectory( managedRepository.getIndexDirectory() );
+ repo.setDaysOlder( managedRepository.getDaysOlder() );
+ repo.setDeleteReleasedSnapshots( managedRepository.isDeleteReleasedSnapshots() );
+ repo.setRetentionCount( managedRepository.getRetentionCount() );
try
{
return managedRepositoryAdmin.addManagedRepository( repo, managedRepository.isStageRepoNeeded(),