1 18 19 package sync4j.syncclient.spds.engine; 20 21 import java.io.*; 22 import java.util.Date ; 23 import java.security.Principal ; 24 25 import sync4j.syncclient.spds.SyncException; 26 27 60 61 public interface SyncSource { 62 63 68 public String getName(); 69 70 75 public String getSourceURI(); 76 77 82 public String getType(); 83 84 95 public SyncItem[] getAllSyncItems(Principal principal) 96 throws SyncException; 97 98 99 115 public SyncItem[] getDeletedSyncItems(Principal principal, Date since) 116 throws SyncException; 117 118 119 133 public SyncItem[] getNewSyncItems(Principal principal, Date since) 134 throws SyncException; 135 136 148 public SyncItem[] getUpdatedSyncItems(Principal principal, Date since) 149 throws SyncException; 150 151 152 161 public void removeSyncItem(Principal principal, SyncItem syncItem) 162 throws SyncException; 163 164 178 public SyncItem setSyncItem(Principal principal, SyncItem syncItem) 179 throws SyncException; 180 181 182 191 public void beginSync(int syncMode) throws SyncException; 192 193 199 public void commitSync() throws SyncException; 200 201 202 } 203 | Popular Tags |