,"knockout.simpleGrid","knockout.sortable","archiva/admin/repository/maven2/repositories"],
function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) {
- RepositoryGroup=function(id,repositories,mergedIndexPath){
+ RepositoryGroup=function(id,repositories,mergedIndexPath,mergedIndexTtl){
var self=this;
this.mergedIndexPath=ko.observable(mergedIndexPath?mergedIndexPath:".indexer");
this.mergedIndexPath.subscribe(function(newValue){self.modified(true)});
+ // private int mergedIndexTtl = 30;
+ this.mergedIndexTtl=ko.observable(mergedIndexTtl?mergedIndexTtl:30);
+ this.mergedIndexTtl.subscribe(function(newValue){self.modified(true)});
+
// private List<String> repositories;
this.repositories=ko.observableArray(repositories);
this.repositories.subscribe(function(newValue){self.modified(true)});
}
mapRepositoryGroup=function(data){
- return new RepositoryGroup(data.id, mapStringArray(data.repositories),data.mergedIndexPath);
+ return new RepositoryGroup(data.id, mapStringArray(data.repositories),data.mergedIndexPath,data.mergedIndexTtl);
}
});