Created
September 29, 2016 20:55
-
-
Save kombadzomba/621f92095f6f7fb20ccd0a2efa77e77d to your computer and use it in GitHub Desktop.
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
database.setFilter("deviceFilter", new ReplicationFilter() { | |
@Override | |
public boolean filter(SavedRevision revision, Map<String, Object> params) { | |
String nameParam = (String) params.get(CommonEntity.FIELD_TYPE); | |
return nameParam != null && nameParam.equals(revision.getProperty(DocumentTypeCode.SYS_USER)); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment