use of org.pentaho.di.repository.RepositoryExtended in project pentaho-kettle by pentaho.
the class UIRepositoryDirectory method refresh.
/**
* Synchronize this folder with the back-end
*/
public void refresh() {
try {
kidElementCache = null;
kidDirectoryCache = null;
if (this == getRootDirectory()) {
RepositoryDirectoryInterface localRoot;
if (rep instanceof RepositoryExtended) {
localRoot = ((RepositoryExtended) rep).loadRepositoryDirectoryTree("/", "*.ktr|*.kjb", -1, BooleanUtils.isTrue(rep.getUserInfo().isAdmin()), true, true).findDirectory(rd.getObjectId());
} else {
localRoot = rep.findDirectory(rd.getObjectId());
}
rd = localRoot;
// Rebuild caches
fireCollectionChanged();
} else {
getRootDirectory().refresh();
}
} catch (Exception e) {
// TODO: Better error handling
e.printStackTrace();
}
}
Aggregations