@Override public Future<Boolean> reindexAsync() throws RepositoryException { // First check permissions ... session.checkPermission(workspaceName, Path.ROOT_PATH, ModeShapePermissions.INDEX_WORKSPACE); // Then reindex ... return repository().runningState().queryManager().reindexContentAsync(this); }
@Override public Future<Boolean> reindexAsync() throws RepositoryException { // First check permissions ... session.checkPermission(workspaceName, Path.ROOT_PATH, ModeShapePermissions.INDEX_WORKSPACE); // Then reindex ... return repository().runningState().queryManager().reindexContentAsync(this); }
@Override public Future<Boolean> reindexAsync( String pathStr ) throws RepositoryException { try { // First check permissions ... Path path = session.pathFactory().create(pathStr); session.checkPermission(workspaceName, path, ModeShapePermissions.INDEX_WORKSPACE); // Then reindex ... return repository().runningState().queryManager().reindexContentAsync(this, path, Integer.MAX_VALUE); } catch (ValueFormatException e) { throw new RepositoryException(e.getMessage()); } }
@Override public Future<Boolean> reindexAsync( String pathStr ) throws RepositoryException { try { // First check permissions ... Path path = session.pathFactory().create(pathStr); session.checkPermission(workspaceName, path, ModeShapePermissions.INDEX_WORKSPACE); // Then reindex ... return repository().runningState().queryManager().reindexContentAsync(this, path, Integer.MAX_VALUE); } catch (ValueFormatException e) { throw new RepositoryException(e.getMessage()); } }