1 16 package org.apache.cocoon.components.repository; 17 18 import java.io.IOException ; 19 20 import org.apache.excalibur.source.SourceException; 21 22 32 public interface SourceRepository { 33 34 public static final String ROLE = SourceRepository.class.getName(); 35 36 39 public static final int STATUS_OK = 200; 40 41 44 public static final int STATUS_CREATED = 201; 45 46 49 public static final int STATUS_NO_CONTENT = 204; 50 51 54 public static final int STATUS_FORBIDDEN = 403; 55 56 59 public static final int STATUS_NOT_FOUND = 404; 60 61 64 public static final int STATUS_NOT_ALLOWED = 405; 65 66 69 public static final int STATUS_CONFLICT = 409; 70 71 74 public static final int STATUS_PRECONDITION_FAILED = 412; 75 76 77 86 public abstract int save(String in, String out) throws IOException , SourceException; 87 88 96 public abstract int makeCollection(String location) throws IOException , SourceException; 97 98 106 public abstract int remove(String location) throws IOException , SourceException; 107 108 119 public abstract int move(String from, String to, boolean recurse, boolean overwrite) 120 throws IOException , SourceException; 121 122 133 public abstract int copy(String from, String to, boolean recurse, boolean overwrite) 134 throws IOException , SourceException; 135 136 } | Popular Tags |