use of org.apache.archiva.rest.api.v2.model.MergeConfiguration in project archiva by apache.
the class DefaultRepositoryGroupService method toConfig.
private RepositoryGroupConfiguration toConfig(RepositoryGroup group) {
RepositoryGroupConfiguration result = new RepositoryGroupConfiguration();
result.setId(group.getId());
result.setName(group.getName());
result.setLocation(group.getLocation());
result.setRepositories(group.getRepositories());
MergeConfiguration mergeConfig = group.getMergeConfiguration();
if (mergeConfig != null) {
result.setMergedIndexPath(mergeConfig.getMergedIndexPath());
result.setMergedIndexTtl(mergeConfig.getMergedIndexTtlMinutes());
result.setCronExpression(mergeConfig.getIndexMergeSchedule());
}
return result;
}
Aggregations