Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Register
Commits
4373c55d
Commit
4373c55d
authored
Mar 08, 2021
by
Komal Makkar
Browse files
intermediate changes
parent
41bb39be
Pipeline
#30614
failed with stages
in 2 minutes and 9 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
provider/register-azure/src/main/java/org/opengroup/osdu/register/provider/azure/subscriber/TopicsRepositoryImpl.java
View file @
4373c55d
...
@@ -53,7 +53,7 @@ public class TopicsRepositoryImpl implements ITopicsRepository {
...
@@ -53,7 +53,7 @@ public class TopicsRepositoryImpl implements ITopicsRepository {
}
}
public
String
getTopicAliasFromFullyQualifiedTopicName
(
String
fullyQualifiedTopicName
)
{
public
String
getTopicAliasFromFullyQualifiedTopicName
(
String
fullyQualifiedTopicName
)
{
if
(
fullyQualifiedNameToAliasMap
==
null
)
{
if
(
fullyQualifiedNameToAliasMap
==
null
)
{
List
<
Topic
>
topicList
=
listMessages
();
List
<
Topic
>
topicList
=
listMessages
();
for
(
Topic
topicIterator
:
topicList
)
{
for
(
Topic
topicIterator
:
topicList
)
{
fullyQualifiedNameToAliasMap
.
put
(
partitionHelper
.
getFullyQualifiedTopicName
(
topicIterator
.
getName
()),
topicIterator
.
getName
());
fullyQualifiedNameToAliasMap
.
put
(
partitionHelper
.
getFullyQualifiedTopicName
(
topicIterator
.
getName
()),
topicIterator
.
getName
());
...
@@ -63,7 +63,8 @@ public class TopicsRepositoryImpl implements ITopicsRepository {
...
@@ -63,7 +63,8 @@ public class TopicsRepositoryImpl implements ITopicsRepository {
}
}
private
List
<
Topic
>
getTopicTemplate
()
{
private
List
<
Topic
>
getTopicTemplate
()
{
Type
type
=
new
TypeToken
<
ArrayList
<
Topic
>>()
{}.
getType
();
Type
type
=
new
TypeToken
<
ArrayList
<
Topic
>>()
{
}.
getType
();
return
new
Gson
().
fromJson
(
FileUtil
.
readFile
(
"topics.json"
,
log
),
type
);
return
new
Gson
().
fromJson
(
FileUtil
.
readFile
(
"topics.json"
,
log
),
type
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment