Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Dehm
briar
Commits
34d34a75
Unverified
Commit
34d34a75
authored
9 years ago
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Renamed metadata methods.
parent
640f5484
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
briar-api/src/org/briarproject/api/clients/ClientHelper.java
+7
-7
7 additions, 7 deletions
briar-api/src/org/briarproject/api/clients/ClientHelper.java
briar-core/src/org/briarproject/clients/ClientHelperImpl.java
+17
-17
17 additions, 17 deletions
...r-core/src/org/briarproject/clients/ClientHelperImpl.java
with
24 additions
and
24 deletions
briar-api/src/org/briarproject/api/clients/ClientHelper.java
+
7
−
7
View file @
34d34a75
...
@@ -30,23 +30,23 @@ public interface ClientHelper {
...
@@ -30,23 +30,23 @@ public interface ClientHelper {
BdfList
getMessageAsList
(
Transaction
txn
,
MessageId
m
)
throws
DbException
,
BdfList
getMessageAsList
(
Transaction
txn
,
MessageId
m
)
throws
DbException
,
FormatException
;
FormatException
;
BdfDictionary
getGroupMetadata
(
GroupId
g
)
throws
DbException
,
BdfDictionary
getGroupMetadata
AsDictionary
(
GroupId
g
)
throws
DbException
,
FormatException
;
FormatException
;
BdfDictionary
getGroupMetadata
(
Transaction
txn
,
GroupId
g
)
BdfDictionary
getGroupMetadata
AsDictionary
(
Transaction
txn
,
GroupId
g
)
throws
DbException
,
FormatException
;
throws
DbException
,
FormatException
;
BdfDictionary
getMessageMetadata
(
MessageId
m
)
throws
DbException
,
BdfDictionary
getMessageMetadata
AsDictionary
(
MessageId
m
)
throws
DbException
,
FormatException
;
FormatException
;
BdfDictionary
getMessageMetadata
(
Transaction
txn
,
MessageId
m
)
BdfDictionary
getMessageMetadata
AsDictionary
(
Transaction
txn
,
MessageId
m
)
throws
DbException
,
FormatException
;
throws
DbException
,
FormatException
;
Map
<
MessageId
,
BdfDictionary
>
getMessageMetatata
(
GroupId
g
)
Map
<
MessageId
,
BdfDictionary
>
getMessageMetatata
AsDictionary
(
GroupId
g
)
throws
DbException
,
FormatException
;
throws
DbException
,
FormatException
;
Map
<
MessageId
,
BdfDictionary
>
getMessageMetadata
(
Transaction
txn
,
GroupId
g
)
Map
<
MessageId
,
BdfDictionary
>
getMessageMetadata
AsDictionary
(
throws
DbException
,
FormatException
;
Transaction
txn
,
GroupId
g
)
throws
DbException
,
FormatException
;
void
mergeGroupMetadata
(
GroupId
g
,
BdfDictionary
metadata
)
void
mergeGroupMetadata
(
GroupId
g
,
BdfDictionary
metadata
)
throws
DbException
,
FormatException
;
throws
DbException
,
FormatException
;
...
...
This diff is collapsed.
Click to expand it.
briar-core/src/org/briarproject/clients/ClientHelperImpl.java
+
17
−
17
View file @
34d34a75
...
@@ -86,8 +86,8 @@ class ClientHelperImpl implements ClientHelper {
...
@@ -86,8 +86,8 @@ class ClientHelperImpl implements ClientHelper {
}
}
@Override
@Override
public
BdfDictionary
getMessageAsDictionary
(
MessageId
m
)
public
BdfDictionary
getMessageAsDictionary
(
MessageId
m
)
throws
DbException
,
throws
DbException
,
FormatException
{
FormatException
{
BdfDictionary
dictionary
;
BdfDictionary
dictionary
;
Transaction
txn
=
db
.
startTransaction
();
Transaction
txn
=
db
.
startTransaction
();
try
{
try
{
...
@@ -120,8 +120,8 @@ class ClientHelperImpl implements ClientHelper {
...
@@ -120,8 +120,8 @@ class ClientHelperImpl implements ClientHelper {
}
}
@Override
@Override
public
BdfList
getMessageAsList
(
MessageId
m
)
public
BdfList
getMessageAsList
(
MessageId
m
)
throws
DbException
,
throws
DbException
,
FormatException
{
FormatException
{
BdfList
list
;
BdfList
list
;
Transaction
txn
=
db
.
startTransaction
();
Transaction
txn
=
db
.
startTransaction
();
try
{
try
{
...
@@ -154,12 +154,12 @@ class ClientHelperImpl implements ClientHelper {
...
@@ -154,12 +154,12 @@ class ClientHelperImpl implements ClientHelper {
}
}
@Override
@Override
public
BdfDictionary
getGroupMetadata
(
GroupId
g
)
public
BdfDictionary
getGroupMetadata
AsDictionary
(
GroupId
g
)
throws
DbException
,
FormatException
{
throws
DbException
,
FormatException
{
BdfDictionary
dictionary
;
BdfDictionary
dictionary
;
Transaction
txn
=
db
.
startTransaction
();
Transaction
txn
=
db
.
startTransaction
();
try
{
try
{
dictionary
=
getGroupMetadata
(
txn
,
g
);
dictionary
=
getGroupMetadata
AsDictionary
(
txn
,
g
);
txn
.
setComplete
();
txn
.
setComplete
();
}
finally
{
}
finally
{
db
.
endTransaction
(
txn
);
db
.
endTransaction
(
txn
);
...
@@ -168,19 +168,19 @@ class ClientHelperImpl implements ClientHelper {
...
@@ -168,19 +168,19 @@ class ClientHelperImpl implements ClientHelper {
}
}
@Override
@Override
public
BdfDictionary
getGroupMetadata
(
Transaction
txn
,
GroupId
g
)
public
BdfDictionary
getGroupMetadata
AsDictionary
(
Transaction
txn
,
throws
DbException
,
FormatException
{
GroupId
g
)
throws
DbException
,
FormatException
{
Metadata
metadata
=
db
.
getGroupMetadata
(
txn
,
g
);
Metadata
metadata
=
db
.
getGroupMetadata
(
txn
,
g
);
return
metadataParser
.
parse
(
metadata
);
return
metadataParser
.
parse
(
metadata
);
}
}
@Override
@Override
public
BdfDictionary
getMessageMetadata
(
MessageId
m
)
public
BdfDictionary
getMessageMetadata
AsDictionary
(
MessageId
m
)
throws
DbException
,
FormatException
{
throws
DbException
,
FormatException
{
BdfDictionary
dictionary
;
BdfDictionary
dictionary
;
Transaction
txn
=
db
.
startTransaction
();
Transaction
txn
=
db
.
startTransaction
();
try
{
try
{
dictionary
=
getMessageMetadata
(
txn
,
m
);
dictionary
=
getMessageMetadata
AsDictionary
(
txn
,
m
);
txn
.
setComplete
();
txn
.
setComplete
();
}
finally
{
}
finally
{
db
.
endTransaction
(
txn
);
db
.
endTransaction
(
txn
);
...
@@ -189,19 +189,19 @@ class ClientHelperImpl implements ClientHelper {
...
@@ -189,19 +189,19 @@ class ClientHelperImpl implements ClientHelper {
}
}
@Override
@Override
public
BdfDictionary
getMessageMetadata
(
Transaction
txn
,
MessageId
m
)
public
BdfDictionary
getMessageMetadata
AsDictionary
(
Transaction
txn
,
throws
DbException
,
FormatException
{
MessageId
m
)
throws
DbException
,
FormatException
{
Metadata
metadata
=
db
.
getMessageMetadata
(
txn
,
m
);
Metadata
metadata
=
db
.
getMessageMetadata
(
txn
,
m
);
return
metadataParser
.
parse
(
metadata
);
return
metadataParser
.
parse
(
metadata
);
}
}
@Override
@Override
public
Map
<
MessageId
,
BdfDictionary
>
getMessageMetatata
(
GroupId
g
)
public
Map
<
MessageId
,
BdfDictionary
>
getMessageMetatata
AsDictionary
(
throws
DbException
,
FormatException
{
GroupId
g
)
throws
DbException
,
FormatException
{
Map
<
MessageId
,
BdfDictionary
>
map
;
Map
<
MessageId
,
BdfDictionary
>
map
;
Transaction
txn
=
db
.
startTransaction
();
Transaction
txn
=
db
.
startTransaction
();
try
{
try
{
map
=
getMessageMetadata
(
txn
,
g
);
map
=
getMessageMetadata
AsDictionary
(
txn
,
g
);
txn
.
setComplete
();
txn
.
setComplete
();
}
finally
{
}
finally
{
db
.
endTransaction
(
txn
);
db
.
endTransaction
(
txn
);
...
@@ -210,8 +210,8 @@ class ClientHelperImpl implements ClientHelper {
...
@@ -210,8 +210,8 @@ class ClientHelperImpl implements ClientHelper {
}
}
@Override
@Override
public
Map
<
MessageId
,
BdfDictionary
>
getMessageMetadata
(
Transaction
txn
,
public
Map
<
MessageId
,
BdfDictionary
>
getMessageMetadata
AsDictionary
(
GroupId
g
)
throws
DbException
,
FormatException
{
Transaction
txn
,
GroupId
g
)
throws
DbException
,
FormatException
{
Map
<
MessageId
,
Metadata
>
raw
=
db
.
getMessageMetadata
(
txn
,
g
);
Map
<
MessageId
,
Metadata
>
raw
=
db
.
getMessageMetadata
(
txn
,
g
);
Map
<
MessageId
,
BdfDictionary
>
parsed
=
Map
<
MessageId
,
BdfDictionary
>
parsed
=
new
HashMap
<
MessageId
,
BdfDictionary
>(
raw
.
size
());
new
HashMap
<
MessageId
,
BdfDictionary
>(
raw
.
size
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment