/*******************************************************************************
* Copyright (c) 2012-2015 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.ide.ext.java.client.dependenciesupdater;
import org.eclipse.che.api.builder.dto.BuildTaskDescriptor;
import org.eclipse.che.ide.rest.AsyncRequestCallback;
/**
* Client for Java Name Environment service.
*
* @author Artem Zatsarynnyy
*/
public interface JavaNameEnvironmentServiceClient {
/**
* Update project dependencies.
*
* @param projectPath
* path to the project to update its dependencies
* @param force
* force update
* @param callback
* the callback to use for the response
*/
void updateDependencies(String projectPath, boolean force, AsyncRequestCallback<BuildTaskDescriptor> callback);
/**
* Update project dependencies and wait for ending.
*
* @param projectPath
* path to the project to update its dependencies
* @param buildTaskDescriptor
* {@link BuildTaskDescriptor}
* @param callback
* the callback to use for the response
*/
void updateDependenciesAndWait(String projectPath, BuildTaskDescriptor buildTaskDescriptor, AsyncRequestCallback<Void> callback);
}