/*******************************************************************************
 * Copyright (c) 2014 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 com.codenvy.flux.watcher.core.spi;

import java.nio.file.Path;

/**
 * @author Kevin Pollet
 */
public interface RepositoryWatchingService {
    void watch(String projectId, Path path);

    void unwatch(String projectId);

    boolean addRepositoryListener(RepositoryListener listener);

    boolean removeRepositoryListener(RepositoryListener listener);
}

/*******************************************************************************
 * Copyright (c) 2014 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 com.codenvy.flux.watcher.core.spi;

import java.nio.file.Path;

/**
 * @author Kevin Pollet
 */
public interface RepositoryWatchingService {
    void watch(Path path);

    void unwatch(Path path);

    boolean addRepositoryListener(RepositoryListener listener);

    boolean removeRepositoryListener(RepositoryListener listener);
}

Remove project parameter from watching service
Remove project parameter from watching service