Checking if repository has a piwik site before creating an identity for it
This commit is contained in:
parent
7e21cdc153
commit
1f7a25d184
|
@ -281,10 +281,16 @@ public class Converter {
|
|||
|
||||
//TODO check identitites
|
||||
//Map<String,String> identity = new HashMap<>();
|
||||
Map<String, Object> identities = new HashMap<>();
|
||||
identities.put("issuertype", "piwik");
|
||||
identities.put("pid","piwik:"+repository.getPiwikInfo().getSiteId());
|
||||
repositoryMap.put("identities",identities);
|
||||
|
||||
if (repository.getPiwikInfo() != null) {
|
||||
Map<String, Object> identities = new HashMap<>();
|
||||
|
||||
identities.put("issuertype", "piwik");
|
||||
identities.put("pid", "piwik:" + repository.getPiwikInfo().getSiteId());
|
||||
|
||||
repositoryMap.put("identities", identities);
|
||||
}
|
||||
|
||||
repositoryMap.put("subjects","");
|
||||
|
||||
return mapper.writeValueAsString(repositoryMap);
|
||||
|
|
Loading…
Reference in New Issue