1 23 24 package org.apache.slide.macro; 25 26 import org.apache.slide.common.SlideToken; 27 28 33 public interface Macro { 34 35 public static final MacroParameters DEFAULT_PARAMETERS = 36 new MacroParameters(); 37 38 public static final MacroParameters RECURSIVE_OVERWRITE_PARAMETERS = 39 new MacroParameters(true, true); 40 41 public final static String ALREADY_COPIED = "alreadyCopied"; 42 public final static String PARENT_BINDINGS = "parentBindings"; 43 44 45 47 48 56 void copy(SlideToken token, String sourceUri, 57 String destinationUri) 58 throws CopyMacroException, DeleteMacroException; 59 60 82 void copy(SlideToken token, String sourceUri, 83 String destinationUri, CopyRouteRedirector copyRedirector, CopyListener copyListener, 84 DeleteTargetRedirector deleteRedirector, DeleteListener deleteListener) 85 throws CopyMacroException, DeleteMacroException; 86 87 88 97 void copy(SlideToken token, String sourceUri, 98 String destinationUri, MacroParameters parameters) 99 throws CopyMacroException, DeleteMacroException; 100 101 124 void copy(SlideToken token, String sourceUri, 125 String destinationUri, MacroParameters parameters, 126 CopyRouteRedirector copyRedirector, CopyListener copyListener, 127 DeleteTargetRedirector deleteRedirector, DeleteListener deleteListener) 128 throws CopyMacroException, DeleteMacroException; 129 130 131 140 void move(SlideToken token, String sourceUri, 141 String destinationUri) 142 throws CopyMacroException, DeleteMacroException; 143 144 166 void move(SlideToken token, String sourceUri, 167 String destinationUri, CopyRouteRedirector copyRedirector, CopyListener copyListener, 168 DeleteTargetRedirector deleteRedirector, DeleteListener deleteListener) 169 throws CopyMacroException, DeleteMacroException; 170 171 172 182 void move(SlideToken token, String sourceUri, 183 String destinationUri, MacroParameters parameters) 184 throws CopyMacroException, DeleteMacroException; 185 186 209 void move(SlideToken token, String sourceUri, 210 String destinationUri, MacroParameters parameters, 211 CopyRouteRedirector copyRedirector, CopyListener copyListener, 212 DeleteTargetRedirector deleteRedirector, DeleteListener deleteListener) 213 throws CopyMacroException, DeleteMacroException; 214 215 216 223 void delete(SlideToken token, String targetUri) 224 throws DeleteMacroException; 225 226 239 void delete(SlideToken token, String targetUri, 240 DeleteTargetRedirector deleteRedirector, DeleteListener deleteListener) 241 throws DeleteMacroException; 242 243 244 253 void delete(SlideToken token, String targetUri, 254 MacroParameters parameters) 255 throws DeleteMacroException; 256 257 258 273 void delete(SlideToken token, String targetUri, MacroParameters parameters, 274 DeleteTargetRedirector deleteRedirector, DeleteListener deleteListener) 275 throws DeleteMacroException; 276 277 } 278 | Popular Tags |