package org.jfrog.artifactory.client;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.jfrog.artifactory.client.model.ItemPermission;
import org.jfrog.artifactory.client.model.ReplicationStatus;
import org.jfrog.artifactory.client.model.Repository;
import java.io.File;
import java.io.InputStream;
import java.util.Set;

/**
 * @author jbaruch
 * @since 12/08/12
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public interface RepositoryHandle {

    ItemHandle folder(String folderName);

    ItemHandle file(String filePath);

    ReplicationStatus replicationStatus();

    String delete();

    String delete(String path);

    Repository get();

    UploadableArtifact upload(String targetPath, InputStream content);

    UploadableArtifact upload(String targetPath, File content);

    UploadableArtifact copyBySha1(String targetPath, String sha1);

    DownloadableArtifact download(String path);

    Set<ItemPermission> effectivePermissions();

    Replications getReplications();

    boolean isFolder(String path);

    boolean exists();
}


@@ -288,16 +288,44 @@
 o.File;%0A
+import java.io.IOException;%0A
 import j
@@ -1067,24 +1067,43 @@
 String path)
+ throws IOException
 ;%0A%0A    boole

Fix #216: add throws clause for checked exception