@Override public Object doRun() throws Exception { if (getRepositoryId() != null) { indexManager.optimizeRepositoryIndex(getRepositoryId()); } else { indexManager.optimizeAllRepositoriesIndex(); } return null; }
@Override public Object doRun() throws Exception { if ( getRepositoryId() != null ) { indexManager.optimizeRepositoryIndex( getRepositoryId() ); } else if ( getRepositoryGroupId() != null ) { indexManager.optimizeGroupIndex( getRepositoryGroupId() ); } else { indexManager.optimizeAllRepositoriesIndex(); } return null; }