I would like to convert the result of:
gatewayContext.getTagManager().getTagProvider(provider).getTagConfigsAsync()
to obtain the same one that the result of the following script function:
system.tag.getConfiguration
Is there some king of public Utilities functions to do that in the SDK ?
It's not public, but it's basically just this:
private PyDictionary processChildModels(TagConfigurationModel editModel) {
PyTagDictionary.Builder builder = new Builder();
PyDictionary dict = builder
.setTagPath(editModel.getPath())
.setTagType(editModel.getType()).build(editModel);
PyTagList tagsList = new PyTagList();
for (TagConfigurationModel childModel : editModel.getChildren()) {
tagsList.add(processChildModels(childModel));
}
if (!tagsList.isEmpty()) {
dict.put("tags", tagsList);
}
return dict;
}
unless you're working with scripting you probably don't want all these Py types.
2 Likes
Thanks a lot ! Exactly what I need