1 18 package sync4j.server.engine; 19 20 import sync4j.framework.core.ModificationCommand; 21 import sync4j.framework.core.StatusCode; 22 import sync4j.framework.engine.SyncOperation; 23 import sync4j.framework.engine.source.SyncSource; 24 import sync4j.server.engine.Sync4jOperationStatus; 25 26 32 public class Sync4jOperationStatusOK extends Sync4jOperationStatus { 33 34 37 private int statusCode; 38 39 40 public Sync4jOperationStatusOK(SyncOperation operation , 41 SyncSource syncSource, 42 ModificationCommand cmd ) { 43 super(operation, syncSource); 44 this.cmd = cmd; 45 this.statusCode = StatusCode.OK; 46 } 47 48 public Sync4jOperationStatusOK(SyncOperation operation , 49 SyncSource syncSource, 50 ModificationCommand cmd , 51 int statusCode) { 52 super(operation, syncSource); 53 this.cmd = cmd; 54 this.statusCode = statusCode; 55 } 56 57 58 61 public int getStatusCode() { 62 return statusCode; 63 } 64 } | Popular Tags |