-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronization and Error Message for locations. (#15)
- Loading branch information
littlefieldnick
committed
Oct 22, 2018
1 parent
f9391f7
commit 01b4b55
Showing
3 changed files
with
239 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
webservice/src/main/java/org/openhds/webservice/util/Synchronization.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.openhds.webservice.util; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
public class Synchronization implements Serializable { | ||
|
||
private static final long serialVersionUID = -5222233547014252574L; | ||
private long syncTime; | ||
private List<SynchronizationError> errors; | ||
|
||
public long getSyncTime() { | ||
return syncTime; | ||
} | ||
|
||
public void setSyncTime(long syncTime) { | ||
this.syncTime = syncTime; | ||
} | ||
|
||
public List<SynchronizationError> getErrors() { | ||
return errors; | ||
} | ||
|
||
public void setErrors(List<SynchronizationError> errors) { | ||
this.errors = errors; | ||
} | ||
|
||
} |
46 changes: 46 additions & 0 deletions
46
webservice/src/main/java/org/openhds/webservice/util/SynchronizationError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package org.openhds.webservice.util; | ||
|
||
import java.util.List; | ||
|
||
import org.openhds.controller.exception.*; | ||
|
||
public class SynchronizationError { | ||
private String entityType; | ||
private String fieldworkerExtId; | ||
private String entityId; | ||
private List<String> violations; | ||
|
||
public String getEntityType() { | ||
return entityType; | ||
} | ||
|
||
public void setEntityType(String entityType) { | ||
this.entityType = entityType; | ||
} | ||
|
||
public String getFieldworkerExtId() { | ||
return fieldworkerExtId; | ||
} | ||
|
||
public void setFieldworkerExtId(String fieldworkerExtId) { | ||
this.fieldworkerExtId = fieldworkerExtId; | ||
} | ||
|
||
public String getEntityId() { | ||
return entityId; | ||
} | ||
|
||
public void setEntityId(String entityId) { | ||
this.entityId = entityId; | ||
} | ||
|
||
public List<String> getViolations() { | ||
return violations; | ||
} | ||
|
||
public void setViolations(List<String> violations) { | ||
this.violations = violations; | ||
} | ||
|
||
|
||
} |