public class ApiPreconditionCheckerHook extends java.lang.Object implements UploadHook
Capabilities
.Constructor and Description |
---|
ApiPreconditionCheckerHook() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
checkMaxNodes(java.util.Collection<OsmPrimitive> primitives,
long maxNodes) |
boolean |
checkUpload(APIDataSet apiData)
Check, and/or change, the data to be uploaded.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
modifyChangesetTags
public ApiPreconditionCheckerHook()
public boolean checkUpload(APIDataSet apiData)
UploadHook
checkUpload
in interface UploadHook
apiData
- the data to upload, modify this to change the data.true
if upload is possible, false
to block the upload.private static boolean checkMaxNodes(java.util.Collection<OsmPrimitive> primitives, long maxNodes)