Rename BDF methods.

This commit is contained in:
akwizgran
2016-02-29 11:57:42 +00:00
parent 46e7a52c22
commit e3374b7584
9 changed files with 31 additions and 31 deletions

View File

@@ -201,7 +201,7 @@ class ForumManagerImpl implements ForumManager {
for (Entry<MessageId, Metadata> e : metadata.entrySet()) {
try {
BdfDictionary d = metadataParser.parse(e.getValue());
long timestamp = d.getInteger("timestamp");
long timestamp = d.getLong("timestamp");
Author author = null;
Author.Status authorStatus = ANONYMOUS;
BdfDictionary d1 = d.getDictionary("author", null);

View File

@@ -331,7 +331,7 @@ class ForumSharingManagerImpl implements ForumSharingManager, AddContactHook,
for (Entry<MessageId, Metadata> e : metadata.entrySet()) {
BdfDictionary d = metadataParser.parse(e.getValue());
if (d.getBoolean("local") != local) continue;
long version = d.getInteger("version");
long version = d.getLong("version");
if (latest == null || version > latest.version)
latest = new LatestUpdate(e.getKey(), version);
}
@@ -408,7 +408,7 @@ class ForumSharingManagerImpl implements ForumSharingManager, AddContactHook,
throws DbException, FormatException {
Metadata meta = db.getGroupMetadata(txn, contactGroupId);
BdfDictionary d = metadataParser.parse(meta);
return new ContactId(d.getInteger("contactId").intValue());
return new ContactId(d.getLong("contactId").intValue());
}
private Set<GroupId> getVisibleForums(Transaction txn,

View File

@@ -132,7 +132,7 @@ class MessagingManagerImpl implements MessagingManager, AddContactHook,
db.endTransaction(txn);
}
BdfDictionary d = metadataParser.parse(meta);
return new ContactId(d.getInteger("contactId").intValue());
return new ContactId(d.getLong("contactId").intValue());
} catch (FormatException e) {
throw new DbException(e);
}
@@ -173,7 +173,7 @@ class MessagingManagerImpl implements MessagingManager, AddContactHook,
if (m == null) continue;
try {
BdfDictionary d = metadataParser.parse(m);
long timestamp = d.getInteger("timestamp");
long timestamp = d.getLong("timestamp");
String contentType = d.getString("contentType");
boolean local = d.getBoolean("local");
boolean read = d.getBoolean("read");

View File

@@ -307,7 +307,7 @@ class TransportPropertyManagerImpl implements TransportPropertyManager,
BdfDictionary d = metadataParser.parse(e.getValue());
if (d.getBoolean("local") == local) {
TransportId t = new TransportId(d.getString("transportId"));
long version = d.getInteger("version");
long version = d.getLong("version");
LatestUpdate latest = latestUpdates.get(t);
if (latest == null || version > latest.version)
latestUpdates.put(t, new LatestUpdate(e.getKey(), version));
@@ -324,7 +324,7 @@ class TransportPropertyManagerImpl implements TransportPropertyManager,
BdfDictionary d = metadataParser.parse(e.getValue());
if (d.getString("transportId").equals(t.getString())
&& d.getBoolean("local") == local) {
long version = d.getInteger("version");
long version = d.getLong("version");
if (latest == null || version > latest.version)
latest = new LatestUpdate(e.getKey(), version);
}