purgeExecutor = new DaysOldRepositoryPurgeExecutor( repositoryContent, repoPurge.getDaysOlder(),
repoPurge.getRetentionCount() );
}
else
{
purgeExecutor = new RetentionCountRepositoryPurgeExecutor( repositoryContent,
repoPurge.getRetentionCount() );
}
purgeReleasedSnapshotsExecutor = new ReleasedSnapshotsRepositoryPurgeExecutor( repositoryContent );
deleteReleasedSnapshots = repoPurge.isDeleteReleasedSnapshots();