Bug 814331 - Check counts before syncing limited cllections. r=nalexander

This commit is contained in:
Richard Newman
2012-12-10 23:03:14 -08:00
parent 6709b6028b
commit cfd42843e7
15 changed files with 397 additions and 132 deletions

View File

@@ -464,9 +464,18 @@ public class SyncConfiguration implements CredentialsSource {
return serverURL + "user/1.0/" + userPart;
}
public String infoURL() {
return clusterURL + GlobalSession.API_VERSION + "/" + username + "/info/collections";
public String infoBaseURL() {
return clusterURL + GlobalSession.API_VERSION + "/" + username + "/info/";
}
public String infoCollectionsURL() {
return infoBaseURL() + "collections";
}
public String infoCollectionCountsURL() {
return infoBaseURL() + "collection_counts";
}
public String metaURL() {
return clusterURL + GlobalSession.API_VERSION + "/" + username + "/storage/meta/global";
}